yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06834
[Bug 1239898] Re: test_rescue_preserve_disk_on_failure unittest broken
** Changed in: oslo
Status: Fix Committed => Fix Released
** Changed in: oslo
Milestone: None => icehouse-1
--
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/1239898
Title:
test_rescue_preserve_disk_on_failure unittest broken
Status in OpenStack Compute (Nova):
Fix Released
Status in Oslo - a Library of Common OpenStack Code:
Fix Released
Bug description:
One of following commits broke unittests. I am not quite sure how it's
related, but they are broken ever since these changes were merged.
https://github.com/openstack/nova/commit/f99641f09965b8f5036a976e9a5f5f28a542d800
https://github.com/openstack/nova/commit/eaf5636544a9b2ae1e87f74d0cdb989f8a41b008
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests
======================================================================
FAIL: nova.tests.virt.xenapi.test_xenapi.XenAPIVMTestCase.test_instance_snapshot_fails_with_no_primary_vdi
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
stderr
stdout
pythonlogging:'': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
glance.upload_vhd attempt 1/1
}}}
Traceback (most recent call last):
File "nova/tests/virt/xenapi/test_xenapi.py", line 522, in test_instance_snapshot_fails_with_no_primary_vdi
lambda *args, **kwargs: None)
File "/home/jenkins/workspace/csi-nova-upstream/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 394, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/jenkins/workspace/csi-nova-upstream/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: <bound method XenAPIDriver.snapshot of <nova.virt.xenapi.driver.XenAPIDriver object at 0x19e61490>> returned None
======================================================================
FAIL: nova.tests.virt.xenapi.test_xenapi.XenAPIVMTestCase.test_rescue_preserve_disk_on_failure
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
stderr
stdout
pythonlogging:'': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
glance.download_vhd attempt 1/1
glance.download_vhd attempt 1/1
Failed to spawn, rolling back
Traceback (most recent call last):
File "nova/virt/xenapi/vmops.py", line 498, in _spawn
boot_instance_step(undo_mgr, vm_ref)
File "nova/virt/xenapi/vmops.py", line 152, in inner
rv = f(*args, **kwargs)
File "nova/virt/xenapi/vmops.py", line 461, in boot_instance_step
self._start(instance, vm_ref)
File "nova/tests/virt/xenapi/test_xenapi.py", line 1276, in fake_start
raise test.TestingException('Start Error')
TestingException: Start Error
VM already halted, skipping shutdown...
['HANDLE_INVALID', 'VDI', '8c985bc1-998b-4dd2-b797-cbe86bf2abb2']
Traceback (most recent call last):
File "nova/virt/xenapi/vm_utils.py", line 439, in destroy_vdi
session.call_xenapi('VDI.destroy', vdi_ref)
File "nova/virt/xenapi/driver.py", line 779, in call_xenapi
return session.xenapi_request(method, args)
File "nova/virt/xenapi/fake.py", line 756, in xenapi_request
return meth(*full_params)
File "nova/virt/xenapi/fake.py", line 801, in <lambda>
return lambda *params: self._destroy(name, params)
File "nova/virt/xenapi/fake.py", line 917, in _destroy
raise Failure(['HANDLE_INVALID', table, ref])
Failure: ['HANDLE_INVALID', 'VDI', '8c985bc1-998b-4dd2-b797-cbe86bf2abb2']
Unable to destroy VDI 8c985bc1-998b-4dd2-b797-cbe86bf2abb2
}}}
Traceback (most recent call last):
File "nova/tests/virt/xenapi/test_xenapi.py", line 1285, in test_rescue_preserve_disk_on_failure
self.assertEqual(vdi_ref, vdi_ref2)
File "/home/jenkins/workspace/csi-nova-upstream/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/jenkins/workspace/csi-nova-upstream/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: !=:
reference = '62ba4799-a2bf-4a47-aef6-9341b70a2ad1'
actual = '8a4dcae5-7a8f-49db-92af-775f80f935fc'
======================================================================
FAIL: process-returncode
tags: worker-0
----------------------------------------------------------------------
Binary content:
traceback (test/plain; charset="utf8")
Ran 19145 tests in 2223.014s
FAILED (id=0, failures=3, skips=12)
error: testr failed (1)
ERROR: InvocationError: '/home/jenkins/workspace/csi-nova-upstream/.tox/py26/bin/python setup.py test --slowest --testr-args='
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1239898/+subscriptions