Closed Aglidic closed 5 years ago
to be more precise. create a new credentials for rhevm create a new inventory and create a new source for rhevm based on the rhevm credentials. run sync through webui or tower-cli and i got this error:
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: text/plain ;utf-8 Vary: Accept X-API-Node: rh754stdc0c.ceti.etat-ge.ch X-API-Time: 0.065s
1.485 INFO Updating inventory 3: inventory.DEV
1.501 DEBUG Using system install of ansible-inventory CLI: /bin/ansible-inventory
1.501 INFO Reading Ansible inventory source: /tmp/awx_inventory_H7AcE3/tmp4AdvjJ
Traceback (most recent call last):
File "/opt/awx/bin/awx-manage", line 11, in
stderr: [WARNING]: * Failed to parse /tmp/awx_inventory_H7AcE3/tmp4AdvjJ with script plugin: Inventory script (/tmp/awx_inventory_H7AcE3/tmp4AdvjJ) had an execution error:
[WARNING]: Unable to parse /tmp/awx_inventory_H7AcE3/tmp4AdvjJ as an inventory source
ERROR! No inventory was parsed, please check your configuration and options.
now if i give a bash access to the awx user. Su to the awx user and run the command /opt/awx/bin/awx-manage with the parameter i have found on the api for my failed sync job it will success.
So for me the issue is clearly due to python lib
so based on the list you furnished here: https://github.com/MrMEEE/awx-build/issues/15
i have remove all "unnecesary" python module. Now if i try to sync again i have the error: ovirt: inventory script require ovirt-engine-sdk-python >= 4.0.0
but this module should be in the embedded no?
Hi..
I'm installing the dependencies from the upstream awx project, so maybe the module is missing there?...
Have you tried installing the module manually?
module are in the embedded directory.
it's really weird
to install the module you mean pip install --target /opt/awx/embedded ?
ok i finally success with that. I don't know why but it doesn't take the module on embedded.
So i have create a virtualenv in /var/lib/awx/venv/awx and install module in there.
Don't forgot to change the user
Hmmm.. Haven't tested the ovirt connection stuff..
Will see if I can get the time to do it...
because of the build of teh embedded pycurl 7.43 without nss support. All jobs related to RHV authentications are impacted, included RHV playbooks. All details in this issue: https://github.com/MrMEEE/awx-build/issues/72
Ok.. we'll close this and move to #72
Hello i can't import inventory from UI. But it works when i use the awx-amange command (same parameter as the IU).
I think the issue is comming from the embedded python module