create snapshot failed with libvirt error which can pass

Bug #1570734 reported by Jinquan Ni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Low
Unassigned

Bug Description

Create instance’s snapshot failed with libvirt error.

 The error msg as follow:

libvirtError (\'virDomainBlockJobAbort() failed\', dom=self)\n'
libvirtError: Requested operation is not valid: No active operation on device: drive-virtio-disk0\n'

“virDomainBlockJobAbort” used to abort block job, the error will be raise if device has no block job.

Pass this exception is the correct way to handling. However, the current process did not do.

Jinquan Ni (ni-jinquan)
Changed in nova:
assignee: nobody → Jinquan Ni (ni-jinquan)
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Not sure it's a Nova error, rather a libvirt one. Could you please provide us your nova version and your libvirt one ?

Changed in nova:
status: New → Incomplete
Revision history for this message
Jinquan Ni (ni-jinquan) wrote :

dear Sylvain Bauza:

   My nova version is kilo 2015.1.0, libvirt version is 1.2.21.
   And this proplem should exist in Mitaka by reading the code in driver.py.

   I am not very sure that the bug belongs nova or the libvirt at first. But i report this bug to here finally , it‘s base on follow point:
   libvirt think abort job on device which has no job should raise error. libvirt provide a method that check whether the device has job.
   The view is reasonable considering the error will also be raise when we pop a non-exist key from some dict.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/307808

Changed in nova:
status: Incomplete → In Progress
Jinquan Ni (ni-jinquan)
Changed in nova:
importance: Undecided → Low
assignee: Jinquan Ni (ni-jinquan) → nobody
assignee: nobody → Tina Kevin (song-ruixia)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/337226

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Jinquan Ni (<email address hidden>) on branch: master
Review: https://review.openstack.org/307808
Reason: My colleague already post a new patch set for this bug.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/337226
Reason: This patch has been sitting unchanged for more than 12 weeks. I am therefore going to abandon it to keep the nova review queue sane. Please feel free to restore the change if you're still working on it.

Tina Kevin (song-ruixia)
Changed in nova:
assignee: Tina Kevin (song-ruixia) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in nova:
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
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.