yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17569
[Bug 1341729] Re: Nova Unit Testing with older libvirt versions fails
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => juno-2
--
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/1341729
Title:
Nova Unit Testing with older libvirt versions fails
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When packaging and running unit tests with older versions of libvirt <
0.9.13, the unit tests will fail even though there is nothing wrong
with the actual code. An example failure is:
14:01:03 pythonlogging:'': {{{
14:01:03 INFO [nova.network.driver] Loading network driver 'nova.network.linux_net'
14:01:03 INFO [nova.virt.libvirt.driver] Unable to use bulk domain list APIs, falling back to slow code path: 'module' object has no attribute 'VIR_CONNECT_LIST_DOMAINS_ACTIVE'
14:01:03 }}}
14:01:03
14:01:03 Traceback (most recent call last):
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/repositories//nova/tests/virt/libvirt/test_driver.py", line 2971, in test_list_instance_domains_filtering
14:01:03 doms = drvr._list_instance_domains()
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/repositories//nova/virt/libvirt/driver.py", line 872, in _list_instance_domains
14:01:03 alldoms = self._list_instance_domains_slow(only_running)
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/repositories//nova/virt/libvirt/driver.py", line 822, in _list_instance_domains_slow
14:01:03 if self._conn.numOfDomains() > 0:
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/virtualenv/lib/python2.6/site-packages/mox.py", line 1002, in __call__
14:01:03 expected_method = self._VerifyMethodCall()
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/virtualenv/lib/python2.6/site-packages/mox.py", line 1049, in _VerifyMethodCall
14:01:03 expected = self._PopNextMethod()
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/virtualenv/lib/python2.6/site-packages/mox.py", line 1035, in _PopNextMethod
14:01:03 raise UnexpectedMethodCallError(self, None)
14:01:03 UnexpectedMethodCallError: Unexpected method call Stub for <property object at 0x6a87208>.numOfDomains() -> None
14:01:03
14:01:03
14:01:03 ======================================================================
14:01:03 FAIL: nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_list_instance_domains_fast
14:01:03 ----------------------------------------------------------------------
14:01:03 _StringException: Empty attachments:
14:01:03 stderr
14:01:03 stdout
14:01:03
14:01:03 pythonlogging:'': {{{INFO [nova.network.driver] Loading network driver 'nova.network.linux_net'}}}
14:01:03
14:01:03 Traceback (most recent call last):
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/repositories//nova/tests/virt/libvirt/test_driver.py", line 2839, in test_list_instance_domains_fast
14:01:03 doms = drvr._list_instance_domains_fast()
14:01:03 File "/home/jenkins/workspace/test-nova-rax-patches-change/repositories//nova/virt/libvirt/driver.py", line 812, in _list_instance_domains_fast
14:01:03 flags = libvirt.VIR_CONNECT_LIST_DOMAINS_ACTIVE
14:01:03 AttributeError: 'module' object has no attribute 'VIR_CONNECT_LIST_DOMAINS_ACTIVE'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1341729/+subscriptions
References