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.
- I am NOT reporting a (potential) security vulnerability. (These should be emailed to
security@ansible.com
instead.)
Bug Summary
i am not able to upgrade AWX to a latest release ... i could not figure out how to do that using the awx operator, so i am reporting this issue on 24.3.1 which could well be resolved but i dont know ...
the issue is that when i run a script inventory (python script) i get this error:
2025-05-29 16:15:51,010 INFO [4bdce32ccd4c4ee8b551927f9fc74cb2] awx.main.commands.run_callback_receiver Starting EOF event processing for Job 984
2025-05-29 16:15:51,011 INFO [4bdce32ccd4c4ee8b551927f9fc74cb2] awx.analytics.job_lifecycle projectupdate-984 post run {"type": "projectupdate", "task_id": 984, "state": "post_run", "work_unit_id": "V3fF4lhC", "task_name": "ansible-all"}
2025-05-29 16:15:51,038 INFO [4bdce32ccd4c4ee8b551927f9fc74cb2] awx.analytics.job_lifecycle projectupdate-984 finalize run {"type": "projectupdate", "task_id": 984, "state": "finalize_run", "work_unit_id": "V3fF4lhC", "task_name": "ansible-all"}
2025-05-29 16:15:51,104 ERROR [4bdce32ccd4c4ee8b551927f9fc74cb2] awx.main.tasks.jobs inventory_update 983 (failed) Exception occurred while running task
Traceback (most recent call last):
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 500, in run
self.build_project_dir(self.instance, private_data_dir)
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 1634, in build_project_dir
self.sync_and_copy(source_project, private_data_dir, scm_branch=inventory_update.inventory_source.scm_branch)
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 791, in sync_and_copy
return self.sync_and_copy_without_lock(project, private_data_dir, scm_branch=scm_branch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 747, in sync_and_copy_without_lock
sync_task.run(local_project_sync.id)
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 94, in _wrapped
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/signals.py", line 81, in _wrapped
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/awx/main/tasks/jobs.py", line 665, in run
raise AwxTaskError.TaskError(self.instance, rc)
Exception: project_update 984 (failed) encountered an error (rc=None), please see task stdout for details.
2025-05-29 16:15:51,105 INFO [4bdce32ccd4c4ee8b551927f9fc74cb2] awx.analytics.job_lifecycle inventoryupdate-983 post run {"type": "inventoryupdate", "task_id": 983, "state": "post_run", "work_unit_id": null, "task_name": "testbed - dhcp_server"}
2025-05-29 16:15:51,151 INFO [4bdce32ccd4c4ee8b551927f9fc74cb2] awx.analytics.job_lifecycle inventoryupdate-983 finalize run {"type": "inventoryupdate", "task_id": 983, "state": "finalize_run", "work_unit_id": null, "task_name": "testbed - dhcp_server"}
it seems like the source job is trying to start a project update job first and then crashes ... the thing is:
- the source job container is never actually started ... this error is kinda imediate
- the source has been configured not to update the project on before run, so this should not happen
i could manage to start the job like 3 times by killing the awx-task container and syncing the project manually in different order, but i am not sure which order
AWX version
24.3.1
Select the relevant components
- UI
- UI (tech preview)
- API
- Docs
- Collection
- CLI
- Other
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
see above
Expected results
the dynamic inventory should sync
Actual results
see above
Additional information
No response