Description
Please confirm the following
- I agree to follow this project's code of conduct.
- I have checked the current issues for duplicates.
- I understand that AWX is open source software provided for free and that I might not receive a timely response.
Bug Summary
When running a job template in AWX, we intermittently have failure modes where the tasks in a playbook successfully set_stats to generate artifacts, but upon completion not artifacts object/values are generated/persisted. This causes failures in workflow runs since later job_template_nodes rely on those artifacts.
We see 0 artifacts in the UI as well as the API of the job run in question even though it set values we expect to see in artifacts.
Rerunning the same job/workflow seems to succeed most of the time; this behavior appears random/intermittent, but is concerning.
AWX version
20.0.1
Select the relevant components
- UI
- API
- Docs
- Collection
- CLI
- Other
Installation method
kubernetes
Modifications
no
Ansible version
20.0.1
Operating system
CentOS
Web browser
Chrome
Steps to reproduce
- Create a job which generates artifacts
- Create another job which relies on said artifacts
- Create a workflow that has the artifact generator run and then runs the artifact user job
- Run created workflow to see it (potentially) succeed on the artifact generator job, but fail on the user job as the artifacts were never generated as expected
Note that this behavior appears to occur roughly 30% of the time we run this.
Expected results
We expect the artifacts object to be populated with the artifacts a job generates/sets.
Actual results
The artifacts are never created/generated by the job_template even though the playbook tasks show the steps succeeding.
Additional information
playbook task output:
{
"changed": false,
"ansible_stats": {
"data": {
"test_hostname": "testing01"
},
"per_host": false,
"aggregate": true
},
"_ansible_no_log": false
}
artifacts from API:
"artifacts": {},
artifacts in UI:
---