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 <[email protected]>
wrote:

> On Tue, Dec 3, 2019 at 3:02 PM Nathanaël Blanchet <[email protected]>
> 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 inventory source: /var/lib/awx/venv/awx
> /lib64/python3.6/site-packages/awx/plugins/inventory/ovirt4.py
> Traceback (most recent call last):
>   File "/var/lib/awx/venv/awx/bin/awx-manage", line 11, in <module>
>     load_entry_point('awx==9.0.1.0', 'console_scripts', 'awx-manage')()
> ...
>   File 
> "/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/main/management/commands/inventory_import.py",
> line 101, in build_env
>     for version in os.listdir(venv_libdir):
> FileNotFoundError: [Errno 2] No such file or directory:
> '/opt/my-envs/ovirt/lib'
>
> But I have this:
>
> bash-4.4# ls -l /opt/my-envs/ovirt/
> total 4
> drwxr-xr-x 2 root root 4096 Nov 30 11:20 bin
> drwxr-xr-x 2 root root   23 Nov 30 10:56 include
> drwxr-xr-x 3 root root   23 Nov 30 10:56 lib
> lrwxrwxrwx 1 root root    3 Nov 30 10:56 lib64 -> lib
> drwxr-xr-x 3 root root   17 Nov 30 11:07 share
> bash-4.4# ls -l /opt/my-envs/ovirt/lib
> total 4
> drwxr-xr-x 4 root root 4096 Nov 30 10:56 python2.7
> bash-4.4#
>
> What I'm missing in your opinion?
> I don't understand the FileNotFoundError....
> Thanks in advance,
> Gianluca
>

-- 


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>
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]/message/NFGVTUF3I2BT6TCDUI4XENQZADNOCYQN/

Reply via email to