# need nss support with embedded libcurl 7.43 for ovirtsdk4 (ovirt4.py and RHV playbooks related jobs)

**URL:** <https://forum.ansible.com/t/need-nss-support-with-embedded-libcurl-7-43-for-ovirtsdk4-ovirt4-py-and-rhv-playbooks-related-jobs/29505>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [January 23, 2019, 4:15pm UTC](https://forum.ansible.com/t/need-nss-support-with-embedded-libcurl-7-43-for-ovirtsdk4-ovirt4-py-and-rhv-playbooks-related-jobs/29505 "2019-01-23T16:15:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathanael\_Blanchet](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Post date:** [January 23, 2019, 4:15pm UTC](https://forum.ansible.com/t/need-nss-support-with-embedded-libcurl-7-43-for-ovirtsdk4-ovirt4-py-and-rhv-playbooks-related-jobs/29505/1 "2019-01-23T16:15:40Z")

</div>

Hello,

When trying to add dynamic inventory from RHV, the job fails with this error:  
…

ERROR! No inventory was parsed, please check your configuration and options.

It is like ovirt4.py couldn’t generate the json exepcted file supposed to be read by ansible-inventory.

I successfully tested the command manually with awx-manage:

sudo -u awx /opt/awx/bin/awx-manage inventory\_import --inventory-name Infra --source ovirt\_source

cat ovirt\_source  
#!/bin/bash  
/var/lib/awx/venv/ovirt/bin/ansible-inventory -i ovirt4.py --list

so credentials and url are ok.

but earlier in the day, I wrote to the ovirt mailing list to a similar issue with /opt/awx/embedded/lib64/python2.7/site-packages/ovirtsdk4 which is broken due to 7.43 pycurl embedded version.

Two ways for fixing it:

- pycurl 7.19 in a venv resolve the issue
- also in the venv, compiling 7.43 with nss support:  
export PYCURL\_SSL\_LIBRARY=nss; pip install pycurl --compile --no-cache-dir  
Then, I rsynced the 7.43 pycurl from venv to /opt/embedded to check if the issue was the same… and this time ovirtsdk4 worked!

So obviously, /opt/awx/embedded/lib64/python2.7/site-packages/pycurl-7.43.0.1 sould be compiled with the nss support,

Thank you for your help

> **(attachments)**
>
> [inventory\_update\_98.txt](https://forum.ansible.com/uploads/short-url/3u3lkd5kexxRKy3DemecQcUcLT7.txt) (2.3 KB)
