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 <blanchet(a)abes.fr> wrote:
give a try to
https://awx.wiki/ based on rpms and not docker if you
want
to test this feature, it rocks.
------------------------------
*De: *"Gianluca Cecchi" <gianluca.cecchi(a)gmail.com>
*À: *"Nathanaël Blanchet" <blanchet(a)abes.fr>
*Cc: *"users" <users(a)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 <blanchet(a)abes.fr>
wrote:
>
> Le 28/11/2019 à 17:15, Gianluca Cecchi a écrit :
>
> On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet <blanchet(a)abes.fr>
> wrote:
>
>> 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
>>
>
> But I see that it is marked as closed....
>
> It's marked as closed for the unofficial RPM project only, not with the
> regular container deployment.
>
> 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)
>>
> You mean inside awx container, correct?
> See below my comments, as I know almost nothing about venv concepts...
> sorry
>
>> 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
>>
>> I have to run this inside awx container as user root? Can you explain
> the syntax? I get error because of the parenthesis...
>
> 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
>
>
> 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 -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)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/4MSEW7LVC4Q...
--
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é. IT, ES, UK.
<
https://interactiv-group.com/disclaimer.html>