XenAPIVMTestCase.test_instance_snapshot_fails_with_no_primary_vdi sometimes fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Sometimes XenAPIVMTestCas
=======
FAIL: nova.tests.
tags: worker-3
-------
Empty attachments:
stderr
stdout
pythonlogging:'': {{{
Loading network driver 'nova.network.
Loading network driver 'nova.network.
Fast cloning is only supported on default local SR of type ext. SR on this system was found to be of type lvm. Ignoring the cow flag.
No agent build found for xen/linux/x86-64
Instance agent version: 1.0
}}}
Traceback (most recent call last):
File "nova/tests/
lambda *args, **kwargs: None)
MismatchError: <bound method XenAPIDriver.
=======
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
I sent this email to John Garbutt last night about this issue:
Hey John,
I'm working on this review:
https:/ /review. openstack. org/#/c/ 29005/
Which started failing today after rebasing my topic branch onto master once this commit was merged:
https:/ /github. com/openstack/ nova/commit/ 72e75dbcea66e6e 4e2b0f5a931dcd6 47b2032ad6
This is the failure:
mriedem@ ubuntu: /opt/stack/ nova$ python -m unittest nova.tests. test_xenapi ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ......F. ....... ....... ....... ....... ....... ..... ======= ======= ======= ======= ======= ======= ======= ======= ======= snapshot_ fails_with_ no_primary_ vdi (nova.tests. test_xenapi. XenAPIVMTestCas e) test_xenapi. XenAPIVMTestCas e.test_ instance_ snapshot_ fails_with_ no_primary_ vdi ------- ------- ------- ------- ------- ------- ------- ------- ------- linux_net' linux_net'
.......
=======
FAIL: test_instance_
nova.tests.
-------
_StringException: pythonlogging:'': {{{
Loading network driver 'nova.network.
Loading network driver 'nova.network.
Fast cloning is only supported on default local SR of type ext. SR on this system was found to be of type lvm. Ignoring the cow flag.
No agent build found for xen/linux/x86-64
Instance agent version: 1.0
}}}
Traceback (most recent call last): test_xenapi. py", line 501, in test_instance_ snapshot_ fails_with_ no_primary_ vdi snapshot of <nova.virt. xenapi. driver. XenAPIDriver object at 0xaf61fcc>> returned None
File "nova/tests/
lambda *args, **kwargs: None)
MismatchError: <bound method XenAPIDriver.
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 174 tests in 19.900s
FAILED (failures=1)
Looking at history, I see the test_instance_ snapshot_ fails_with_ no_primary_ vdi test case was changed to pass in the None function with this commit:
https:/ /github. com/openstack/ nova/commit/ 0df60e98790c722 aef59d0015c209e a0944e62c0
Looking at the code, vm_utils. snapshot_ attached_ here checks if the passed in function is None and opts out of using it so I'm not sure how the test case ever passed (by raising an exception). This is the assertion that fails:
When I change it to this, it passes but seems to defeat the purpose of the test:
In IRC it was pointed out that there was another unrelated change with the same failure:
http:// logs.openstack. org/29257/ 3/check/ gate-nova- python26/ 21604/console. html
I'm wondering if you know what's going on here since you were the last to touch the xenapi driver code?
Thanks,
Matt Riedemann