Hello,
When trying to add dynamic inventory from RHV, the job fails with this error:
…
ERROR! No inventory was parsed, please check your configuration and options.
It is like ovirt4.py couldn’t generate the json exepcted file supposed to be read by ansible-inventory.
I successfully tested the command manually with awx-manage:
sudo -u awx /opt/awx/bin/awx-manage inventory_import --inventory-name Infra --source ovirt_source
cat ovirt_source
#!/bin/bash
/var/lib/awx/venv/ovirt/bin/ansible-inventory -i ovirt4.py --list
so credentials and url are ok.
but earlier in the day, I wrote to the ovirt mailing list to a similar issue with /opt/awx/embedded/lib64/python2.7/site-packages/ovirtsdk4 which is broken due to 7.43 pycurl embedded version.
Two ways for fixing it:
- pycurl 7.19 in a venv resolve the issue
- also in the venv, compiling 7.43 with nss support:
export PYCURL_SSL_LIBRARY=nss; pip install pycurl --compile --no-cache-dir
Then, I rsynced the 7.43 pycurl from venv to /opt/embedded to check if the issue was the same… and this time ovirtsdk4 worked!
So obviously, /opt/awx/embedded/lib64/python2.7/site-packages/pycurl-7.43.0.1 sould be compiled with the nss support,
Thank you for your help
(attachments)
inventory_update_98.txt (2.3 KB)