You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [email protected] instead.)
Bug Summary
While using Netbox dynamic inventory script, which outputs inventory just for 1 host, it works fine. But if using more then 1 host awx-dispatcher gets an error:
awx-dispatcher stderr | 2024-02-26 14:52:49,591 ERROR [ac98e042] awx.main.tasks.jobs inventory_update 4882 (running) Post run hook errored.
awx-dispatcher stderr | Traceback (most recent call last):
awx-dispatcher stderr | File "/awx_devel/awx/main/tasks/jobs.py", line 636, in run
awx-dispatcher stderr | self.post_run_hook(self.instance, status)
awx-dispatcher stderr | File "/awx_devel/awx/main/tasks/jobs.py", line 1645, in post_run_hook
awx-dispatcher stderr | with open(expected_output) as f:
awx-dispatcher stderr | FileNotFoundError: [Errno 2] No such file or directory: '/tmp/awx_4882_5jqtcokc/artifacts/4882/output.json'
AWX version
22.3.0
Select the relevant components
UI
UI (tech preview)
API
Docs
Collection
CLI
Other
Installation method
docker development environment
Modifications
no
Ansible version
No response
Operating system
Ubuntu 18.04.5 LTS
Web browser
Chrome
Steps to reproduce
I use such Netbox inventory script for getting all active virtual machines and group it for their role:
hey @proletariandrift this might be a good question for the forum but one follow up question, using the docker dev environment is not supported. Are you able to reproduce on a kube install?
Please confirm the following
[email protected]
instead.)Bug Summary
While using Netbox dynamic inventory script, which outputs inventory just for 1 host, it works fine. But if using more then 1 host awx-dispatcher gets an error:
AWX version
22.3.0
Select the relevant components
Installation method
docker development environment
Modifications
no
Ansible version
No response
Operating system
Ubuntu 18.04.5 LTS
Web browser
Chrome
Steps to reproduce
I use such Netbox inventory script for getting all active virtual machines and group it for their role:
If use it localy with ansible, it outputs 1 group with 2 host in each:
And if using it in AWX while syncing:
But if I use inventory which get only 1 server, it works ok:
Expected results
While using dynamic inventory with large output, every host and group should be handled.
Actual results
If dynamic inventory outputs more then 1 host, sync job crushes with error.
Additional information
No response
The text was updated successfully, but these errors were encountered: