yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #19311
[Bug 1359475] [NEW] AttributeError: 'module' object has no attribute 'VIR_MIGRATE_LIVE'
Public bug reported:
This commit added some new default flags for migration in the libvirt
driver:
https://github.com/openstack/nova/commit/26504d71ceaecf22f135d8321769db801290c405
However those new flags weren't added to
nova.tests.virt.libvirt.fakelibvirt, so if you're not running with a
real libvirt you're going to get this:
FAIL: nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_live_migration_uses_migrateToURI_without_dest_listen_addrs
tags: worker-1
----------------------------------------------------------------------
Empty attachments:
stderr
stdout
pythonlogging:'': {{{
INFO [nova.network.driver] Loading network driver 'nova.network.linux_net'
INFO [nova.virt.driver] Loading compute driver 'nova.virt.fake.FakeDriver'
WARNING [nova.virt.libvirt.firewall] Libvirt module could not be loaded. NWFilterFirewall will not work correctly.
ERROR [nova.virt.libvirt.driver] Live Migration failure: 'module' object has no attribute 'VIR_MIGRATE_LIVE'
}}}
traceback-1: {{{
Traceback (most recent call last):
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/fixtures/fixture.py", line 112, in cleanUp
return self._cleanups(raise_errors=raise_first)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/fixtures/callmany.py", line 88, in __call__
reraise(error[0], error[1], error[2])
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/fixtures/callmany.py", line 82, in __call__
cleanup(*args, **kwargs)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 286, in VerifyAll
mock_obj._Verify()
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 506, in _Verify
raise ExpectedMethodCallsError(self._expected_calls_queue)
ExpectedMethodCallsError: Verify: Expected methods never called:
0. Stub for Domain.migrateToURI() -> None.__call__('qemu+tcp://dest/system', <IgnoreArg>, None, 0) -> None
}}}
Traceback (most recent call last):
File "nova/tests/virt/libvirt/test_driver.py", line 4607, in test_live_migration_uses_migrateToURI_without_dest_listen_addrs
migrate_data=migrate_data)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 393, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 404, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 454, in _matchHelper
mismatch = matcher.match(matchee)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 385, in match
reraise(*matchee)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 902, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "nova/virt/libvirt/driver.py", line 4798, in _live_migration
recover_method(context, instance, dest, block_migration)
File "nova/openstack/common/excutils.py", line 82, in __exit__
six.reraise(self.type_, self.value, self.tb)
File "nova/virt/libvirt/driver.py", line 4764, in _live_migration
flagvals = [getattr(libvirt, x.strip()) for x in flaglist]
AttributeError: 'module' object has no attribute 'VIR_MIGRATE_LIVE'
That is in basically anything that goes through the _live_migrate
method.
** Affects: nova
Importance: Undecided
Status: New
** Tags: libvirt testing
--
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/1359475
Title:
AttributeError: 'module' object has no attribute 'VIR_MIGRATE_LIVE'
Status in OpenStack Compute (Nova):
New
Bug description:
This commit added some new default flags for migration in the libvirt
driver:
https://github.com/openstack/nova/commit/26504d71ceaecf22f135d8321769db801290c405
However those new flags weren't added to
nova.tests.virt.libvirt.fakelibvirt, so if you're not running with a
real libvirt you're going to get this:
FAIL: nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_live_migration_uses_migrateToURI_without_dest_listen_addrs
tags: worker-1
----------------------------------------------------------------------
Empty attachments:
stderr
stdout
pythonlogging:'': {{{
INFO [nova.network.driver] Loading network driver 'nova.network.linux_net'
INFO [nova.virt.driver] Loading compute driver 'nova.virt.fake.FakeDriver'
WARNING [nova.virt.libvirt.firewall] Libvirt module could not be loaded. NWFilterFirewall will not work correctly.
ERROR [nova.virt.libvirt.driver] Live Migration failure: 'module' object has no attribute 'VIR_MIGRATE_LIVE'
}}}
traceback-1: {{{
Traceback (most recent call last):
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/fixtures/fixture.py", line 112, in cleanUp
return self._cleanups(raise_errors=raise_first)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/fixtures/callmany.py", line 88, in __call__
reraise(error[0], error[1], error[2])
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/fixtures/callmany.py", line 82, in __call__
cleanup(*args, **kwargs)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 286, in VerifyAll
mock_obj._Verify()
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 506, in _Verify
raise ExpectedMethodCallsError(self._expected_calls_queue)
ExpectedMethodCallsError: Verify: Expected methods never called:
0. Stub for Domain.migrateToURI() -> None.__call__('qemu+tcp://dest/system', <IgnoreArg>, None, 0) -> None
}}}
Traceback (most recent call last):
File "nova/tests/virt/libvirt/test_driver.py", line 4607, in test_live_migration_uses_migrateToURI_without_dest_listen_addrs
migrate_data=migrate_data)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 393, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 404, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 454, in _matchHelper
mismatch = matcher.match(matchee)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 385, in match
reraise(*matchee)
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/home/jenkins/workspace/osee-nova-merge/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 902, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "nova/virt/libvirt/driver.py", line 4798, in _live_migration
recover_method(context, instance, dest, block_migration)
File "nova/openstack/common/excutils.py", line 82, in __exit__
six.reraise(self.type_, self.value, self.tb)
File "nova/virt/libvirt/driver.py", line 4764, in _live_migration
flagvals = [getattr(libvirt, x.strip()) for x in flaglist]
AttributeError: 'module' object has no attribute 'VIR_MIGRATE_LIVE'
That is in basically anything that goes through the _live_migrate
method.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1359475/+subscriptions
Follow ups
References