[ovirt-devel] [vdsm] Another network test failing

Adam Litke alitke at redhat.com
Tue May 10 17:19:08 UTC 2016


On 10/05/16 18:08 +0300, Dan Kenigsberg wrote:
>On Mon, May 09, 2016 at 02:48:43PM -0400, Adam Litke wrote:
>> When running make check on my local system I often (but not always)
>> get the following error:
>
>Do you have any clue related to when this happens? (your pwd,
>pythonpath)

Maybe it's a side effect of the way nose loads and runs tests?

>Did it begin with the recent move of netinfo under vdsm.network?
>https://gerrit.ovirt.org/56713 (CommitDate: Thu May 5) or did you see it
>earlier?

That's possible.  It only started happening recently.  It seems to
fail only when run under 'make check' but not when run via
./run_tests_local.sh.

>
>
>>
>> $ rpm -qa | grep libvirt-python
>> libvirt-python-1.2.18-1.fc23.x86_64
>>
>> <snip>
>>
>> ======================================================================
>> ERROR: Failure: ImportError (No module named 'libvirt')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "/usr/lib/python3.4/site-packages/nose/failure.py", line 39, in
>> runTest
>>    raise self.exc_val.with_traceback(self.tb)
>>  File "/usr/lib/python3.4/site-packages/nose/loader.py", line 418, in
>> loadTestsFromName
>>    addr.filename, addr.module)
>>  File "/usr/lib/python3.4/site-packages/nose/importer.py", line 47,
>> in importFromPath
>>    return self.importFromDir(dir_path, fqname)
>>  File "/usr/lib/python3.4/site-packages/nose/importer.py", line 94,
>> in importFromDir
>>    mod = load_module(part_fqname, fh, filename, desc)
>>  File "/usr/lib64/python3.4/imp.py", line 235, in load_module
>>    return load_source(name, filename, file)
>>  File "/usr/lib64/python3.4/imp.py", line 171, in load_source
>>    module = methods.load()
>>  File "<frozen importlib._bootstrap>", line 1220, in load
>>  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
>>  File "<frozen importlib._bootstrap>", line 1129, in _exec
>>  File "<frozen importlib._bootstrap>", line 1471, in exec_module
>>  File "<frozen importlib._bootstrap>", line 321, in
>> _call_with_frames_removed
>>  File "/home/alitke/src/vdsm/tests/network/models_test.py", line 27,
>> in <module>
>>    from vdsm.network.netinfo import bonding, mtus
>>  File "/home/alitke/src/vdsm/lib/vdsm/network/netinfo/__init__.py",
>> line 26, in <module>
>>    from vdsm import libvirtconnection
>>  File "/home/alitke/src/vdsm/lib/vdsm/libvirtconnection.py", line 29,
>> in <module>
>>    import libvirt
>> ImportError: No module named 'libvirt'
>>
>> ----------------------------------------------------------------------
>> Ran 234 tests in 11.084s
>>
>> FAILED (SKIP=42, errors=1)

-- 
Adam Litke



More information about the Devel mailing list