Great, I hope Gianluca will be able to sync with the container version!
De: "Guillaume Pavese" <guillaume.pav...@interactiv-group.com> À: "Nathanaël Blanchet" <blanc...@abes.fr> Cc: "Gianluca Cecchi" <gianluca.cec...@gmail.com>, "users" <users@ovirt.org> Envoyé: Mardi 3 Décembre 2019 04:07:53 Objet: Re: [ovirt-users] Re: AWX and error using ovirt as an inventory source My problem was that I did not fully follow your directions, and had not pip installed ovirt-engine-sdk-python in the virtualenv. Inventory is syncing now in awx. Thanks for the help! Guillaume Pavese Ingénieur Système et Réseau Interactiv-Group On Fri, Nov 29, 2019 at 8:07 PM Nathanaël Blanchet < [ mailto:blanc...@abes.fr | blanc...@abes.fr ] > wrote: try if you can get a result with plain ovirt4.py execution: cd /tmp rsync -av /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/awx/plugins/inventory/ovirt4.py . cat ovirt.ini [ovirt] ovirt_url = [ https://engine_fqdn/ovirt-engine/api | https://engine_fqdn/ovirt-engine/api ] ovirt_username = admin@internal ovirt_password = passwd ./ovirt4.py Le 29/11/2019 à 09:57, Guillaume Pavese a écrit : BQ_BEGIN Hi, I use awx rpm from awx.wiki and followed your directions to create a python2 venv with ansible 2.9.1 and built pycurl with nss, however syncing the inventory still fails : stderr: ansible-inventory 2.9.1 config file = None configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /var/lib/awx/venv/ovirt-p2/lib/python2.7/site-packages/ansible executable location = /var/lib/awx/venv/ovirt-p2/bin/ansible-inventory python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] No config file found; using defaults setting up inventory plugins [WARNING]: * Failed to parse /opt/rh/rh-python36/root/usr/lib/python3.6/site- packages/awx/plugins/inventory/ovirt4.py with script plugin: Inventory script (/opt/rh/rh-python36/root/usr/lib/python3.6/site- packages/awx/plugins/inventory/ovirt4.py) had an execution error: File "/var/lib/awx/venv/ovirt-p2/lib/python2.7/site-packages/ansible/inventory/manager.py", line 280, in parse_source plugin.parse(self._inventory, self._loader, source, cache=cache) File "/var/lib/awx/venv/ovirt-p2/lib/python2.7/site-packages/ansible/plugins/inventory/script.py", line 161, in parse raise AnsibleParserError(to_native(e)) [WARNING]: Unable to parse /opt/rh/rh-python36/root/usr/lib/python3.6/site- packages/awx/plugins/inventory/ovirt4.py as an inventory source Guillaume Pavese Ingénieur Système et Réseau Interactiv-Group On Fri, Nov 29, 2019 at 4:51 AM Nathanaël Blanchet < [ mailto:blanc...@abes.fr | blanc...@abes.fr ] > wrote: BQ_BEGIN give a try to [ https://awx.wiki/ | https://awx.wiki/ ] based on rpms and not docker if you want to test this feature, it rocks. De: "Gianluca Cecchi" < [ mailto:gianluca.cec...@gmail.com | gianluca.cec...@gmail.com ] > À: "Nathanaël Blanchet" < [ mailto:blanc...@abes.fr | blanc...@abes.fr ] > Cc: "users" < [ mailto:users@ovirt.org | users@ovirt.org ] > Envoyé: Jeudi 28 Novembre 2019 19:17:12 Objet: Re: [ovirt-users] AWX and error using ovirt as an inventory source On Thu, Nov 28, 2019 at 5:33 PM Nathanaël Blanchet < [ mailto:blanc...@abes.fr | blanc...@abes.fr ] > wrote: BQ_BEGIN Le 28/11/2019 à 17:15, Gianluca Cecchi a écrit : BQ_BEGIN On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet < [ mailto:blanc...@abes.fr | blanc...@abes.fr ] > wrote: BQ_BEGIN Hello gianluca, I reported this issue a long time ago (march of 19) in an unofficial rpm awx project [ https://github.com/MrMEEE/awx-build/issues/72 | https://github.com/MrMEEE/awx-build/issues/72 ] But I see that it is marked as closed.... BQ_END It's marked as closed for the unofficial RPM project only, not with the regular container deployment. BQ_BEGIN BQ_BEGIN All related RHV/ovirt stuff (not only dynamic inventory, but all ovirt* ansible module) fail because of the version of pycurl (worked before 7.19) BQ_END You mean inside awx container, correct? See below my comments, as I know almost nothing about venv concepts... sorry BQ_BEGIN What you need to do is create a py2.x venv then recompile latest pycurl with nss support like this: * # /opt/rh/rh-python36/root/usr/bin/awx-create-venv (-e /var/lib/awx/venv/) -n ovirt BQ_END I have to run this inside awx container as user root? Can you explain the syntax? I get error because of the parenthesis... BQ_END sure inside the container, parenthesis are the default parameters so you can use an other path: /opt/rh/rh-python36/root/usr/bin/awx-create-venv -n ovirt -p 2 BQ_BEGIN BQ_END BQ_END In my awx container I don't have /opt/rh/rh-python36/root/usr/bin/awx-create-venv and don't have awx-create-venv at all in any path. Not in container based on image ansible/awx_task:9.0.1 nor in container based on image ansible/awx_web:9.0.1 Gianluca _______________________________________________ Users mailing list -- [ mailto:users@ovirt.org | users@ovirt.org ] To unsubscribe send an email to [ mailto:users-le...@ovirt.org | users-le...@ovirt.org ] Privacy Statement: [ https://www.ovirt.org/site/privacy-policy/ | https://www.ovirt.org/site/privacy-policy/ ] oVirt Code of Conduct: [ https://www.ovirt.org/community/about/community-guidelines/ | https://www.ovirt.org/community/about/community-guidelines/ ] List Archives: [ https://lists.ovirt.org/archives/list/users@ovirt.org/message/4MSEW7LVC4QOTANHO7ZVTBSJ7V2DQP4U/ | https://lists.ovirt.org/archives/list/users@ovirt.org/message/4MSEW7LVC4QOTANHO7ZVTBSJ7V2DQP4U/ ] BQ_END Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d’en avertir immédiatement l’expéditeur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L’internet ne permettant pas d’assurer l’intégrité de ce message . Interactiv-group (et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans l’hypothèse ou il aurait été modifié. [ https://interactiv-group.com/disclaimer.html | IT, ES, UK. ] BQ_END -- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 [ mailto:blanc...@abes.fr | blanc...@abes.fr ] BQ_END Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d’en avertir immédiatement l’expéditeur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L’internet ne permettant pas d’assurer l’intégrité de ce message . Interactiv-group (et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans l’hypothèse ou il aurait été modifié. [ https://interactiv-group.com/disclaimer.html | IT, ES, UK. ]
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/NGNMO6FACA757ZRVB7IIJ35RMAZLJ2TR/