[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vdsm-devel
Subject:    =?utf-8?q?=5Bovirt-devel=5D?= Re: Python SDK 4.4.15 problems
From:       Francesco Lorenzini via Devel <devel () ovirt ! org>
Date:       2021-08-27 10:48:33
Message-ID: 06e84f3a-7477-6311-8c70-59ea174d4bb7 () shellrent ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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/77CYNCUVZ2YJ2FQBLHIWPR632ORAUSM5/
>  <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 <tel:+390444321155> | Fax 04441492177


[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Martin,<br>
    <br>
      I didn't encounter the error anymore on any further deployed host
    so I guess it was an isolated problem with Python.<br>
    <br>
      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...<br>
    <br>
    rpm -qa | grep sdk<br>
      python3-ovirt-engine-sdk4-4.4.13-1.el8.x86_64<br>
      <br>
      pip3 list | grep sdk<br>
      ovirt-engine-sdk-python (4.4.14)<br>
    <br>
      Should I use only the RPM and remove the Python module?<br>
    <br>
      Thanks also to @Nir for your time.<br>
    <br>
      Regards,<br>
      Francesco<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Il 17/08/2021 10:21, Martin Perina ha
      scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAP5iht7rioEBsMXgUTcW1TT=SUCEmk5y-qBJLM5pvnj5KwXwtw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">Hi Francesco,</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">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?</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"><br>
          </div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">Thanks,</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">Martin<br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Mon, Aug 16, 2021 at
            12:27 PM Nir Soffer &lt;<a href="mailto:nsoffer@redhat.com"
              moz-do-not-send="true">nsoffer@redhat.com</a>&gt; wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">On Mon, Aug 16, 2021 at
            12:38 PM francesco--- via Devel &lt;<a
              href="mailto:devel@ovirt.org" target="_blank"
              moz-do-not-send="true">devel@ovirt.org</a>&gt; wrote:<br>
            &gt; 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:<br>
            <br>
            Which script?<br>
            What was the output of the script?<br>
            Most scripts log to example.log, do you have any clue there?<br>
            Some scripts support --debug option to log more info to the
            log. Did you use it?<br>
            <br>
            If you run strace, use:<br>
            <br>
                  strace -f -tt -T -o output.strace command ...<br>
            <br>
            And share the complete trace.<br>
            <br>
            This will show all threads/child processes and add
            timestamps and syscalls<br>
            elapsed times.<br>
            <br>
            Nir<br>
            _______________________________________________<br>
            Devel mailing list -- <a href="mailto:devel@ovirt.org"
              target="_blank" moz-do-not-send="true">devel@ovirt.org</a><br>
            To unsubscribe send an email to <a
              href="mailto:devel-leave@ovirt.org" target="_blank"
              moz-do-not-send="true">devel-leave@ovirt.org</a><br>
            Privacy Statement: <a
              href="https://www.ovirt.org/privacy-policy.html"
              rel="noreferrer" target="_blank" \
moz-do-not-send="true">https://www.ovirt.org/privacy-policy.html</a><br>  oVirt Code \
                of Conduct: <a
              href="https://www.ovirt.org/community/about/community-guidelines/"
              rel="noreferrer" target="_blank" \
moz-do-not-send="true">https://www.ovirt.org/community/about/community-guidelines/</a><br>
  List Archives: <a
href="https://lists.ovirt.org/archives/list/devel@ovirt.org/message/77CYNCUVZ2YJ2FQBLHIWPR632ORAUSM5/"
  rel="noreferrer" target="_blank" \
moz-do-not-send="true">https://lists.ovirt.org/archives/list/devel@ovirt.org/message/77CYNCUVZ2YJ2FQBLHIWPR632ORAUSM5/</a><br>
  </blockquote>
        </div>
        <br clear="all">
        <br>
        -- <br>
        <div dir="ltr" class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr"><font size="1">Martin Perina<br>
                  Manager, Software Engineering<br>
                  Red Hat Czech s.r.o.<br>
                </font></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" \
wrap="">_______________________________________________ Devel mailing list -- <a \
class="moz-txt-link-abbreviated" href="mailto:devel@ovirt.org">devel@ovirt.org</a> To \
unsubscribe send an email to <a class="moz-txt-link-abbreviated" \
href="mailto:devel-leave@ovirt.org">devel-leave@ovirt.org</a> Privacy Statement: <a \
class="moz-txt-link-freetext" \
href="https://www.ovirt.org/privacy-policy.html">https://www.ovirt.org/privacy-policy.html</a>
 oVirt Code of Conduct: <a class="moz-txt-link-freetext" \
href="https://www.ovirt.org/community/about/community-guidelines/">https://www.ovirt.org/community/about/community-guidelines/</a>
 List Archives: <a class="moz-txt-link-freetext" \
href="https://lists.ovirt.org/archives/list/devel@ovirt.org/message/E265FGHDX3NBOMY7N5 \
PEKXZMQP3FJNKH/">https://lists.ovirt.org/archives/list/devel@ovirt.org/message/E265FGHDX3NBOMY7N5PEKXZMQP3FJNKH/</a>
 </pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <div style="max-width:500px; direction: ltr; ">
        <div style="max-width: 370px;margin: 8px 8px 8px 0;">
          <table style="width: 420px;" width="420" cellspacing="0"
            cellpadding="0" border="0">
            <tbody>
              <tr valign="top">
                <td style="text-align:initial; font:12px
                  Arial;color:#333;padding:0 10px;line-height:14px;">--</td>
                <td style="border:none;">  </td>
                <td style="border:none;">  </td>
              </tr>
              <tr valign="top">
                <td style="padding-left:10px; width: 10px;
                  padding-right:10px; veritcal-align: middle;"
                  valign="middle"><img moz-do-not-send="true"
                    src="http://www.shellrent.com/images/logo_shellrent_2020.png"
                    alt="Shellrent - Il primo hosting italiano Security
                    First"
style="border-radius:0;moz-border-radius:0;khtml-border-radius:0;o-border-radius:0;webkit-border-radius:0;ms-border-radius:
 0;width:175px;max-width:175px;height:80px;max-height:
                    80px;vertical-align:middle;" width="175" height="80"></td>
                <td style="border-right: 1px solid #333;"><br>
                </td>
                <td style="text-align:initial; font:11px
                  Arial;color:#333;padding:0 10px;line-height:16px;">
                  <div><b class="text-color theme-font">Francesco
                      Lorenzini</b><br>
                    <i>System Administrator &amp; DevOps Engineer</i><br>
                    <span>Shellrent Srl</span></div>
                  <div style="color:#333;font-size:11px;padding:5px
                    0;line-height:14px;"><span style="color:#333;
                      display:inline-block;">Via dell'Edilizia, 19 -
                      36100 Vicenza</span><br>
                    Tel. <a href="tel:+390444321155"
                      style="color:#333;text-decoration: none;">0444321155</a>
                    <span style="color: #333;display:inline-block;">|</span>
                    <span style="display:inline-block;">Fax 04441492177</span></div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </body>
</html>


[Attachment #6 (text/plain)]

_______________________________________________
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/OC5RKEQ7XRV2DGOBF23L2VSBYI6SSUEC/




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic