New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory Script parsed but job status is error #13396
Comments
I found out what was causing the problem and was able to successfully implement a solution. With the fix in ansible/receptor#683 I was able to fix the problem and the inventory script is now parsing correctly. I just had to redeploy the AWX operator with these options:
If I understood correctly, the problem should be solved with Kubernetes version 1.26, but an update is not possible for me due to the use of AWS EKS. |
Hello, I have the same issue, but the workaround does not work for me. I can see the variable in the awx-ee container. I can run the script inside the container directly or via ansible-inventory - everything is OK. But inventory sync job fails: |
How do I set RECEPTOR_KUBE_SUPPORT_RECONNECT to disabled for a custom pod spec? |
Please confirm the following
Bug Summary
I have created a Python script that acts as an inventory script.
For this a normal Inventory was created and a Source "Sourced from a Project", also a new Execution Environment was created, but this is completely standard and contains only additionally the Python "requests" Package.
When I now start a sync of the inventory source, the script runs and I get at the end the message
Parsed /runner/project/[Scriptname].py inventory source with script plugin
but the status of the job is Error and no hosts were added to the inventory.I have already tested the script locally with the
ansible-inventory
command, also it works on an old AWX environment (14.1.0) without problems.I have also already checked if the script delivers any output at all and display it, it generates a JSON, only the operator can't do anything with it or doesn't process it further.
The script was written to accept the parameters
--list
and--host
and generate a JSON output.The script includes about 1200 hosts and 63 groups.
Does anyone know where the problem is? Is it the number of hosts?
The AWX Operator environment is running on AWS EKS.
AWX Operator version
1.1.3
AWX version
21.10.3
Kubernetes platform
kubernetes
Kubernetes/Platform version
1.24
Modifications
no
Steps to reproduce
Unfortunately it is a bit complicated to recreate the whole thing, because it is a self-written Python script.
To reproduce it you have to create a new inventory, with a source "Sourced from a project", here I put a Python script, which takes the parameters
--list
and--host
.The whole thing is executed on a new execution environment, based on the default image including the Python package "requests".
At the end the script outputs a JSON file with about 1200 hosts and 63 groups. Each of these hosts has about 8-10 hostvars set.
Expected results
The expected result would be that all groups and hosts with the corresponding hostvars are stored in the inventory.
Actual results
The job displays the message
Parsed /runner/project/[Scriptname].py inventory source with script plugin
, but the job itself has the status "Error" without further description and no hosts are added to the inventory.Additional information
No response
Operator Logs
No response
The text was updated successfully, but these errors were encountered: