[ovirt-users] Re: AWX and error using ovirt as an inventory source

2020-01-09 Thread Gianluca Cecchi
On Tue, Jan 7, 2020 at 4:42 PM Gianluca Cecchi wrote: > On Wed, Dec 18, 2019 at 7:28 PM Nathanaël Blanchet > wrote: > >> Hello Ondra what do you think about this question? >> ovirt4.py may need some modifications to get required IPs/hostnames when >> multiple vm has multiple interfaces ? >> Pers

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2020-01-07 Thread Gianluca Cecchi
On Wed, Dec 18, 2019 at 7:28 PM Nathanaël Blanchet wrote: > Hello Ondra what do you think about this question? > ovirt4.py may need some modifications to get required IPs/hostnames when > multiple vm has multiple interfaces ? > Personalized hack works for me but I have to modify the file each tim

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-18 Thread Gianluca Cecchi
On Wed, Dec 18, 2019 at 5:21 PM Gianluca Cecchi wrote: > On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet > wrote: > >> Hello gianluca, >> > [snip] > >> PS: Something else that may help, try to hack the ovirt4.py with >> ansible_host if you want to call the hosts into playbook by the hostname

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-18 Thread Gianluca Cecchi
On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet wrote: > Hello gianluca, > [snip] > PS: Something else that may help, try to hack the ovirt4.py with > ansible_host if you want to call the hosts into playbook by the hostname > and not the first IP: > > vi > /opt/rh/rh-python36/root/usr/lib/pyt

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-16 Thread Gianluca Cecchi
On Fri, Dec 13, 2019 at 11:50 PM Nathanaël Blanchet wrote: > Okay I got it! > Thanks for your time ;-) > container version is slightly different from awx-rpm. All happen in > awx_web container. You must use persistent volume so as to use venv and > project data over ephemeral container. > You

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-13 Thread Nathanaël Blanchet
ot;Gianluca Cecchi" À: "Guillaume Pavese" Cc: "Nathanaël Blanchet" , "users" Envoyé: Vendredi 6 Décembre 2019 13:40:45 Objet: Re: [ovirt-users] Re: AWX and error using ovirt as an inventory source Actually it seems I was using the wrong container... so explaini

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-06 Thread Gianluca Cecchi
Actually it seems I was using the wrong container... so explaining why I got the not found error about /opt/my-envs/ovirt/lib ... ;-) I was working on ansible/awx_web:9.0.1 container, while it seems I have to work ansible/awx_task:9.0.1 After doing same steps on this container I get now this kind

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-06 Thread Gianluca Cecchi
On Wed, Dec 4, 2019 at 10:40 AM Guillaume Pavese < guillaume.pav...@interactiv-group.com> wrote: > Could it be a rights problem, ie your awx user can not access > to /opt/my-envs? > You could try to create the ovirt virtualenv in the default path : > /var/lib/awx/venv/ > > I don't know but it does

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-04 Thread Guillaume Pavese
Could it be a rights problem, ie your awx user can not access to /opt/my-envs? You could try to create the ovirt virtualenv in the default path : /var/lib/awx/venv/ Guillaume Pavese Ingénieur Système et Réseau Interactiv-Group On Wed, Dec 4, 2019 at 5:32 PM Gianluca Cecchi wrote: > On Tue, Dec

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-04 Thread Gianluca Cecchi
On Tue, Dec 3, 2019 at 3:02 PM Nathanaël Blanchet wrote: > Great, I hope Gianluca will be able to sync with the container version! > > Unfortunately not yet. When running with the new virtual env I get: 2.352 INFO Updating inventory 4: MYDC_OVIRT 2.825 INFO Reading Ansible invent

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-03 Thread Nathanaël Blanchet
Great, I hope Gianluca will be able to sync with the container version! De: "Guillaume Pavese" À: "Nathanaël Blanchet" Cc: "Gianluca Cecchi" , "users" Envoyé: Mardi 3 Décembre 2019 04:07:53 Objet: Re: [ovirt-users] Re: AWX and error using ovirt

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-12-02 Thread Guillaume Pavese
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 Blanche

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-30 Thread Gianluca Cecchi
On Thu, Nov 28, 2019 at 8:50 PM Nathanaël Blanchet wrote: > give a try to https://awx.wiki/ based on rpms and not docker if you want > to test this feature, it rocks. > > Thanks for the input. Interesting. I would like to still try a little with containers though. It seems I'm a bit closer. I use

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-29 Thread Nathanaël Blanchet
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 ovirt_username = admin@internal ovirt_password = pas

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-29 Thread Guillaume Pavese
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/m

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-28 Thread Nathanaël Blanchet
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" À: "Nathanaël Blanchet" Cc: "users" Envoyé: Jeudi 28 Novembre 2019 19:17:12 Objet: Re: [ovirt-users] AWX and error using ovirt as an inve

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-28 Thread Gianluca Cecchi
On Thu, Nov 28, 2019 at 5:33 PM Nathanaël Blanchet wrote: > > Le 28/11/2019 à 17:15, Gianluca Cecchi a écrit : > > On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet > wrote: > >> Hello gianluca, >> >> I reported this issue a long time ago (march of 19) in an unofficial rpm >> awx project >> >>

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-28 Thread Nathanaël Blanchet
Le 28/11/2019 à 17:15, Gianluca Cecchi a écrit : On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet > 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

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-28 Thread Nathanaël Blanchet
Le 28/11/2019 à 16:59, Nathanaël Blanchet a écrit : 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 All related RHV/ovirt stuff (not only dynamic inventory, but all ovirt* ansible module) fa

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-28 Thread Gianluca Cecchi
On Thu, Nov 28, 2019 at 4:59 PM Nathanaël Blanchet 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 > All related RHV/ovirt stuff (not

[ovirt-users] Re: AWX and error using ovirt as an inventory source

2019-11-28 Thread Nathanaël Blanchet
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 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