yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06790
[Bug 1257876] [NEW] tests fail when libvirt not installed
Public bug reported:
======================================================================
FAIL: nova.tests.virt.libvirt.test_libvirt.LibvirtNonblockingTestCase.test_tpool_execute_calls_libvirt
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/nova-virtualenv-debian6/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)
If libvirt is not installed, nova/tests/virt/libvirt/fakelibvirt.py
defines libvirt.virConnect = fakelibvirt.Connection which does not have
default parameters like the actual libvirt.virConnect. There is no way
for tests to pass if libvirt is not installed.
** Affects: nova
Importance: Undecided
Assignee: Brian Lamar (blamar)
Status: In Progress
** Changed in: nova
Status: New => In Progress
** Changed in: nova
Assignee: (unassigned) => Brian Lamar (blamar)
--
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/1257876
Title:
tests fail when libvirt not installed
Status in OpenStack Compute (Nova):
In Progress
Bug description:
======================================================================
FAIL: nova.tests.virt.libvirt.test_libvirt.LibvirtNonblockingTestCase.test_tpool_execute_calls_libvirt
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/nova-virtualenv-debian6/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)
If libvirt is not installed, nova/tests/virt/libvirt/fakelibvirt.py
defines libvirt.virConnect = fakelibvirt.Connection which does not
have default parameters like the actual libvirt.virConnect. There is
no way for tests to pass if libvirt is not installed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1257876/+subscriptions
Follow ups
References