<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Yes, I did clean the root directory but it didn&#39;t solve the issue.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I&#39;m currently running the tests on fedora27, using python version 2.1.14.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Thanks to Dan&#39;s help, it seems that we found the root cause:<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br>I had 2 pickle files under /var/cache/vdsm/schema: vdsm-api.pickle and vdsm-events.pickle.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Removing them and re-running the tests using make check was successfully completed.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">It was probably derived from a different encoding for python 2 and 3 while loading the schema file.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"> <br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif"><b>Regards,<br></b></span></div><span style="font-family:tahoma,sans-serif"><b>Shani Leviim<br></b></span></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Apr 10, 2018 at 4:19 PM, Nir Soffer <span dir="ltr">&lt;<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span class=""><div dir="ltr">On Tue, Apr 10, 2018 at 2:52 PM Shani Leviim &lt;<a href="mailto:sleviim@redhat.com" target="_blank">sleviim@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi there,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I&#39;m trying to run make check, and I have ~13 tests on vdsm/tests which failes due to the following:<br><br>  File &quot;/home/sleviim/git/vdsm/lib/<wbr>vdsm/api/vdsmapi.py&quot;, line 212, in __init__<br>    loaded_schema = pickle.load(f)<br>  File &quot;/usr/lib64/python3.6/<wbr>encodings/ascii.py&quot;, line 26, in decode<br>    return codecs.ascii_decode(input, self.errors)[0]<br>UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0x80 in position 0: ordinal not in range(128)<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">(Those lines are common to all failures)<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Here is an example:<br><br>==============================<wbr>==============================<wbr>==========<br>ERROR: test_ok_response (vdsmapi_test.<wbr>DataVerificationTests)<br>------------------------------<wbr>------------------------------<wbr>----------<br>Traceback (most recent call last):<br>  File &quot;/home/sleviim/git/vdsm/tests/<wbr>vdsmapi_test.py&quot;, line 96, in test_ok_response<br>    _schema.schema().verify_<wbr>retval(<br>  File &quot;/home/sleviim/git/vdsm/tests/<wbr>vdsmapi_test.py&quot;, line 67, in schema<br>    self._schema = vdsmapi.Schema(paths, True)<br>  File &quot;/home/sleviim/git/vdsm/lib/<wbr>vdsm/api/vdsmapi.py&quot;, line 212, in __init__<br>    loaded_schema = pickle.load(f)<br>  File &quot;/usr/lib64/python3.6/<wbr>encodings/ascii.py&quot;, line 26, in decode<br>    return codecs.ascii_decode(input, self.errors)[0]<br>UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0x80 in position 0: ordinal not in range(128)<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I&#39;ve also tried to git clean -dxf &amp;&amp; ./autogen.sh --system but it didn&#39;t help.<br></div></div></div></blockquote><div><br></div></span><div>Did you clean in the root directory?</div><div><br></div><div>cd vdsm-checkout-dir</div><div>git clean -dxf</div><div>./autogen.sh --system</div><div>make</div><div>make check</div><div><br></div><div>Also, on which system do you run the tests? Fedora 27? CentOS? RHEL?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Nir</div><div><br></div><div> </div></font></span></div></div>
</blockquote></div><br></div>