yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06740
[Bug 1257813] [NEW] nova unit tests fail when run in a virtual environment
Public bug reported:
In a lot of cases we don't have access to libvirt inside a virtualenv
and so we fake this module. The virConnect object signiture is different
in our fake module compared to libvirt.
So after merging https://review.openstack.org/#/c/57000/ we found this
out. And we get the following error when running the tests:
======================================================================
FAIL: nova.tests.virt.libvirt.test_libvirt.LibvirtNonblockingTestCase.test_tpool_execute_calls_libvirt
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 7405, in test_tpool_execute_calls_libvirt
conn = libvirt.virConnect()
TypeError: __init__() takes at least 3 arguments (1 given)
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1257813
Title:
nova unit tests fail when run in a virtual environment
Status in OpenStack Compute (Nova):
New
Bug description:
In a lot of cases we don't have access to libvirt inside a virtualenv
and so we fake this module. The virConnect object signiture is
different in our fake module compared to libvirt.
So after merging https://review.openstack.org/#/c/57000/ we found this
out. And we get the following error when running the tests:
======================================================================
FAIL: nova.tests.virt.libvirt.test_libvirt.LibvirtNonblockingTestCase.test_tpool_execute_calls_libvirt
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 7405, in test_tpool_execute_calls_libvirt
conn = libvirt.virConnect()
TypeError: __init__() takes at least 3 arguments (1 given)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1257813/+subscriptions
Follow ups
References