Hi Martin,

 I didn't encounter the error anymore on any further deployed host so I guess it was an isolated problem with Python.

 Anyway, not any "real" reason, both RPM and python module are installed on the host. The install is performed via Ansible, a lot of hands writing the code so...

rpm -qa | grep sdk
 python3-ovirt-engine-sdk4-4.4.13-1.el8.x86_64
 
 pip3 list | grep sdk
 ovirt-engine-sdk-python (4.4.14)

 Should I use only the RPM and remove the Python module?

 Thanks also to @Nir for your time.

 Regards,
 Francesco


Il 17/08/2021 10:21, Martin Perina ha scritto:
Hi Francesco,

any reason why you are installing Python SDK on the host from pip when there is an RPM available? Could you please try to remove pip installed version and use RPM installed and retest?

Thanks,
Martin

On Mon, Aug 16, 2021 at 12:27 PM Nir Soffer <nsoffer@redhat.com> wrote:
On Mon, Aug 16, 2021 at 12:38 PM francesco--- via Devel <devel@ovirt.org> wrote:
> in a new deployed host (Centos8, oVirt 4.4) with python module ovirt-engine-sdk-python 4.4.15 I was unable to use the Python SDK API. The script hanged in the connection test, with the following strace:

Which script?
What was the output of the script?
Most scripts log to example.log, do you have any clue there?
Some scripts support --debug option to log more info to the log. Did you use it?

If you run strace, use:

    strace -f -tt -T -o output.strace command ...

And share the complete trace.

This will show all threads/child processes and add timestamps and syscalls
elapsed times.

Nir
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/77CYNCUVZ2YJ2FQBLHIWPR632ORAUSM5/


--
Martin Perina
Manager, Software Engineering
Red Hat Czech s.r.o.

_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/E265FGHDX3NBOMY7N5PEKXZMQP3FJNKH/

--
--    
Shellrent - Il primo hosting italiano Security
                    First
Francesco Lorenzini
System Administrator & DevOps Engineer
Shellrent Srl
Via dell'Edilizia, 19 - 36100 Vicenza
Tel. 0444321155 | Fax 04441492177