
Hi, 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: .... futex(0x7fc03e47a9e8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1629103636, tv_nsec=938478000}, FUTEX_BITSET_MATCH_ANY) = -1 ETIMEDOUT (Connection timed out) futex(0x7fc03e47aa40, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7fc03e47a9e8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1629103636, tv_nsec=943557000}, FUTEX_BITSET_MATCH_ANY) = -1 ETIMEDOUT (Connection timed out) futex(0x7fc03e47aa40, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7fc03e47a9e8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1629103636, tv_nsec=948631000}, FUTEX_BITSET_MATCH_ANY) = -1 ETIMEDOUT (Connection timed out) futex(0x7fc03e47aa40, FUTEX_WAKE_PRIVATE, 1) = 0 ... API via a simple curl worked fine, in another host (still Centos8, oVirt 4.4) with the module version 4.4.14 everything works fine. Downgrading the python module from 4.4.15 to 4.4.14 via pip3 fixed the problem. What could be the problem and it could be related to the recent branches split (I doubt but...). Regards, Francesco

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

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:
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
On Mon, Aug 16, 2021 at 12:38 PM francesco--- via Devel <devel@ovirt.org> wrote: 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/77CYNCUVZ2YJ2F...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

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 <mailto:nsoffer@redhat.com>> wrote:
On Mon, Aug 16, 2021 at 12:38 PM francesco--- via Devel <devel@ovirt.org <mailto: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 <mailto:devel@ovirt.org> To unsubscribe send an email to devel-leave@ovirt.org <mailto:devel-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/privacy-policy.html <https://www.ovirt.org/privacy-policy.html> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ <https://www.ovirt.org/community/about/community-guidelines/> List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/77CYNCUVZ2YJ2F... <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/E265FGHDX3NBOM...
-- -- Shellrent - Il primo hosting italiano Security First *Francesco Lorenzini* /System Administrator & DevOps Engineer/ Shellrent Srl Via dell'Edilizia, 19 - 36100 Vicenza Tel. 0444321155 <tel:+390444321155> | Fax 04441492177
participants (4)
-
Francesco Lorenzini
-
francesco@shellrent.com
-
Martin Perina
-
Nir Soffer