libvirt test_snapshot failure

Bug #851889 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Dan Prince

Bug Description

As of bzr 1578 I'm getting the following virt test failure on my laptop:

======================================================================
ERROR: test_snapshot (nova.tests.test_libvirt.LibvirtConnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dan.prince/projects/nova/log_all_stack_traces/nova/tests/test_libvirt.py", line 291, in test_snapshot
    conn.snapshot(self.context, instance_ref, recv_meta['id'])
  File "/home/dan.prince/projects/nova/log_all_stack_traces/nova/exception.py", line 98, in wrapped
    return f(*args, **kw)
  File "/home/dan.prince/projects/nova/log_all_stack_traces/nova/virt/libvirt/connection.py", line 468, in snapshot
    snapshot_ptr.delete(0)
AttributeError: 'NoneType' object has no attribute 'delete'

======================================================================
ERROR: test_snapshot_no_image_architecture (nova.tests.test_libvirt.LibvirtConnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dan.prince/projects/nova/log_all_stack_traces/nova/tests/test_libvirt.py", line 331, in test_snapshot_no_image_architecture
    conn.snapshot(self.context, instance_ref, recv_meta['id'])
  File "/home/dan.prince/projects/nova/log_all_stack_traces/nova/exception.py", line 98, in wrapped
    return f(*args, **kw)
  File "/home/dan.prince/projects/nova/log_all_stack_traces/nova/virt/libvirt/connection.py", line 468, in snapshot
    snapshot_ptr.delete(0)
AttributeError: 'NoneType' object has no attribute 'delete'

----------------------------------------------------------------------

---

Odd that Jenkins isn't catching these. Perhaps we have a bad version of mox out there in Ubuntu or something?

Related branches

Dan Prince (dan-prince)
Changed in nova:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Dan Prince (dan-prince)
Revision history for this message
Dan Prince (dan-prince) wrote :

Note to Soren:

I tried using your lp:~soren/nova/virt-test-improvements as a possible solution to this but I got 4 or 5 tests failing when merging with trunk. Not trying to give you conflicts in libvirt test land but I would like these to pass today!

If you get those working today however and resolve this issue I can un-merge-prop this branch.

Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Dan Prince (dan-prince) wrote :
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.