<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-05-04 11:07 GMT+02:00 Tomáš Golembiovský <span dir="ltr">&lt;<a href="mailto:tgolembi@redhat.com" target="_blank">tgolembi@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, 4 May 2018 09:33:11 +0200<br>
Sandro Bonazzola &lt;<a href="mailto:sbonazzo@redhat.com">sbonazzo@redhat.com</a>&gt; wrote:<br>
<br>
&gt; 2018-05-03 21:58 GMT+02:00 Tomáš Golembiovský &lt;<a href="mailto:tgolembi@redhat.com">tgolembi@redhat.com</a>&gt;:<br>
&gt; <br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m trying to reinstall a CentOS host (using master-snapshot) and I<br>
&gt; &gt; noticed otopi is trying to use python3 while the ovirt-host-deploy is<br>
&gt; &gt; not yet fully python3 compatible:<br>
&gt; &gt;  <br>
&gt; <br>
&gt; How did you got python 3 on CentOS?<br>
&gt; It&#39;s not in CentOS distribution.<br>
<br>
</span>From EPEL. We have &#39;python34*&#39; listed in our ovirt-*-epel repos.<br></blockquote><div><br></div><div><br></div><div>Dan, you asked for python34 packages from epel in <a href="https://gerrit.ovirt.org/#/c/55415/">https://gerrit.ovirt.org/#/c/55415/</a></div><div>Are they still needed? I don&#39;t see them required anywhere.</div><div>Can we drop them?</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
    Tomas<br>
<div><div class="gmail-h5"><br>
&gt; <br>
&gt; &gt;<br>
&gt; &gt;  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,855+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:39 SYSTEM INFORMATION - BEGIN  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,855+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:40 executable /bin/python3  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,855+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:41 python version 3.4.8 (default, Mar 23 2018, 10:04:27)  <br>
&gt; &gt; &gt; [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]<br>
&gt; &gt; &gt; 2018-05-03 21:35:56,855+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:42 python /bin/python3  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,856+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:43 platform linux  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,856+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:44 distribution (&#39;CentOS Linux&#39;, &#39;7.4.1708&#39;, &#39;Core&#39;)  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,856+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:45 host &#39;ovirt-host2&#39;  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,856+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:51 uid 0 euid 0 gid 0 egid 0  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,856+0200 DEBUG <a href="http://otopi.plugins.otopi.system.info" rel="noreferrer" target="_blank">otopi.plugins.otopi.system.<wbr>info</a>  <br>
&gt; &gt; info._init:53 SYSTEM INFORMATION - END<br>
&gt; &gt;<br>
&gt; &gt; and then later:<br>
&gt; &gt;  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,912+0200 DEBUG otopi.context  <br>
&gt; &gt; context._executeMethod:128 Stage init METHOD otopi.plugins.ovirt_host_<br>
&gt; &gt; deploy.node.detect.Plugin._<wbr>init  <br>
&gt; &gt; &gt; 2018-05-03 21:35:56,914+0200 DEBUG otopi.context  <br>
&gt; &gt; context._executeMethod:143 method exception  <br>
&gt; &gt; &gt; Traceback (most recent call last):<br>
&gt; &gt; &gt;   File &quot;/tmp/ovirt-a0GNITSwX9/<wbr>pythonlib/otopi/context.py&quot;, line 133, in  <br>
&gt; &gt; _executeMethod  <br>
&gt; &gt; &gt;     method[&#39;method&#39;]()<br>
&gt; &gt; &gt;   File &quot;/tmp/ovirt-a0GNITSwX9/otopi-<wbr>plugins/ovirt-host-deploy/<wbr>node/detect.py&quot;,  <br>
&gt; &gt; line 131, in _init  <br>
&gt; &gt; &gt;     odeploycons.FileLocations.<wbr>OVIRT_NODE_VARIANT_VAL)<br>
&gt; &gt; &gt;   File &quot;/tmp/ovirt-a0GNITSwX9/otopi-<wbr>plugins/ovirt-host-deploy/<wbr>node/detect.py&quot;,  <br>
&gt; &gt; line 69, in hasconf  <br>
&gt; &gt; &gt;     io.StringIO(&#39;[default]\n&#39; + f.read().decode(&#39;utf-8&#39;))<br>
&gt; &gt; &gt; AttributeError: &#39;str&#39; object has no attribute &#39;decode&#39;<br>
&gt; &gt; &gt; 2018-05-03 21:35:56,915+0200 ERROR otopi.context  <br>
&gt; &gt; context._executeMethod:152 Failed to execute stage &#39;Initializing&#39;: &#39;str&#39;<br>
&gt; &gt; object has no attribute &#39;decode&#39;<br>
&gt; &gt;<br>
&gt; &gt; There is definitely a bug (or at least weirdness) in host-deploy -- why<br>
&gt; &gt; use .decode() on object returned by codecs.open()?<br>
&gt; &gt;<br>
&gt; &gt; But also, should host-deploy be already python3 compatible and is this<br>
&gt; &gt; otopi behaviour expected?<br>
&gt; &gt;<br>
&gt; &gt;     Tomas<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Tomáš Golembiovský &lt;<a href="mailto:tgolembi@redhat.com">tgolembi@redhat.com</a>&gt;<br>
&gt; &gt; ______________________________<wbr>_________________<br>
&gt; &gt; Devel mailing list<br>
&gt; &gt; <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
&gt; &gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a>  <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; <br>
&gt; SANDRO BONAZZOLA<br>
&gt; <br>
&gt; ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&amp;D<br>
&gt; <br>
</div></div>&gt; Red Hat EMEA &lt;<a href="https://www.redhat.com/" rel="noreferrer" target="_blank">https://www.redhat.com/</a>&gt;<br>
&gt; <br>
&gt; <a href="mailto:sbonazzo@redhat.com">sbonazzo@redhat.com</a><br>
&gt; &lt;<a href="https://red.ht/sig" rel="noreferrer" target="_blank">https://red.ht/sig</a>&gt;<br>
&gt; &lt;<a href="https://redhat.com/summit" rel="noreferrer" target="_blank">https://redhat.com/summit</a>&gt;<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Tomáš Golembiovský &lt;<a href="mailto:tgolembi@redhat.com">tgolembi@redhat.com</a>&gt;<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>SANDRO</span> <span>BONAZZOLA</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&amp;D</span><span style="color:rgb(170,170,170);margin:0px"></span></p><p style="font-family:overpass,sans-serif;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat <span>EMEA</span></a></p><p style="font-family:overpass,sans-serif;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px"><a href="mailto:sbonazzo@redhat.com" style="color:rgb(0,136,206);margin:0px" target="_blank">sbonazzo@redhat.com</a>   </span></p><table border="0" style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a></td><td style="font-size:10px"><div><a href="https://redhat.com/summit" target="_blank"><img width="70px" height="auto" src="https://www.redhat.com/files/brand/email/sig-summit.png" style="outline: 0px;"></a></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>