can't delete a error instance(boot from volume )

Bug #1552265 reported by Rongze Zhu
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

The Reproduce steps:

I create a volume from image(the cinder backend is HDS FC Storage).

Then I boot a instance from the volume, the call path is "nova-api => nova-compute => cinder-api => cinder-volume".
Because the HDS Driver in cinder-volume is slow in my env, so nova-compute will timeout and set the status of instance as "error".

Then I try to delete the instance, because the value of 'os-extended-volumes:volumes_attached' in the instance is the volume id, so nova-compute will call detach-volume API in cinder-api. Because the status of volume in cinder database is 'available', so the cinder-api will raise a 'VolumeAttachmentNotFound' exception. Finally, I failed to delete the error instance.

Solution:

nova-compute need to check the status of volume before call detach-volume api to cinder-api.

Tags: compute
Rongze Zhu (zrzhit)
description: updated
Rongze Zhu (zrzhit)
Changed in nova:
assignee: nobody → Rongze Zhu (zrzhit)
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/287253

Changed in nova:
status: New → In Progress
tags: added: compute
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/287253
Reason: This patch is quite old, so I am abandoning it to keep the review queue manageable. Feel free to restore the change if you're still interested in working on it.

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 → New
assignee: Rongze Zhu (zrzhit) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

This change was abandoned over a year ago, can we get confirmation that it's still an issue?

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