<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't solve the issue.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I'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'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"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>></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 <<a href="mailto:sleviim@redhat.com" target="_blank">sleviim@redhat.com</a>> 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'm trying to run make check, and I have ~13 tests on vdsm/tests which failes due to the following:<br><br> File "/home/sleviim/git/vdsm/lib/<wbr>vdsm/api/vdsmapi.py", line 212, in __init__<br> loaded_schema = pickle.load(f)<br> File "/usr/lib64/python3.6/<wbr>encodings/ascii.py", line 26, in decode<br> return codecs.ascii_decode(input, self.errors)[0]<br>UnicodeDecodeError: 'ascii' codec can'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 "/home/sleviim/git/vdsm/tests/<wbr>vdsmapi_test.py", line 96, in test_ok_response<br> _schema.schema().verify_<wbr>retval(<br> File "/home/sleviim/git/vdsm/tests/<wbr>vdsmapi_test.py", line 67, in schema<br> self._schema = vdsmapi.Schema(paths, True)<br> File "/home/sleviim/git/vdsm/lib/<wbr>vdsm/api/vdsmapi.py", line 212, in __init__<br> loaded_schema = pickle.load(f)<br> File "/usr/lib64/python3.6/<wbr>encodings/ascii.py", line 26, in decode<br> return codecs.ascii_decode(input, self.errors)[0]<br>UnicodeDecodeError: 'ascii' codec can'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've also tried to git clean -dxf && ./autogen.sh --system but it didn'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>