create snapshot failed with libvirt error which can pass

Bug #1570734 reported by Jinquan Ni on 2016-04-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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) on 2016-04-15
Changed in nova:
assignee: nobody → Jinquan Ni (ni-jinquan)
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
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.

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

Changed in nova:
status: Incomplete → In Progress
Jinquan Ni (ni-jinquan) on 2016-07-01
Changed in nova:
importance: Undecided → Low
assignee: Jinquan Ni (ni-jinquan) → nobody
assignee: nobody → Tina Kevin (song-ruixia)

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

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.

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) on 2016-10-29
Changed in nova:
assignee: Tina Kevin (song-ruixia) → nobody
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
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  Edit
Everyone can see this information.

Other bug subscribers