Snapshot deletion could make Glance image unusable

Bug #1297222 reported by Jordan Pittier
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Incomplete
Medium
Unassigned

Bug Description

Hello,
When I boot an instance from a volume and then make a snapshot of this instance, I get a volume snapshot and a Glance Image that referenced this volume snapshot.

Now if I delete this volume snapshot, the Glance image reference a non existing snapshot and is unusable.

I think Cinder should warn the user that he is maybe doing something wrong, and that he would make the glance image unusable. There would be an option to force the snapshot delete.

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

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

Changed in cinder:
assignee: nobody → Jordan Pittier (jordan-pittier)
status: New → In Progress
Changed in cinder:
status: In Progress → Confirmed
importance: Undecided → Medium
Changed in cinder:
status: Confirmed → In Progress
Mike Perez (thingee)
Changed in cinder:
milestone: none → next
Revision history for this message
Mike Perez (thingee) wrote :

Hi Jordan, thanks for the contribution. I don't believe this is a bug, but rather a blueprint. Do you mind submitting this as a blueprint instead since it's exposing a new feature. Thanks. https://wiki.openstack.org/wiki/Blueprints

Changed in cinder:
status: In Progress → Invalid
Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

I will.

Changed in cinder:
status: Invalid → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Jordan Pittier (<email address hidden>) on branch: master
Review: https://review.openstack.org/82789
Reason: I will go, instead, in favor of a client side solution to avoid to query glance from cinder-api.

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Automatically unassigning due to inactivity.

Changed in cinder:
assignee: Jordan Pittier (jordan-pittier) → nobody
status: In Progress → Triaged
Changed in cinder:
assignee: nobody → Karthik Prabhu Vinod (karthik-prabhu-vinod)
Revision history for this message
Karthik Prabhu Vinod (karthik-prabhu-vinod) wrote :

Hi All,

If the snapshot is deleted, the

$glance image-show <snapshot-id>

gives

 404 Not Found: No image found with ID bootablsnp (HTTP 404)

Can i go ahead and work on this for now? Or this needs to be further discussed as a blueprint?

Looking forward to some suggestions

thanks

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Not sure if a blueprint was ever filed or if any follow up work was completed on this. Would be good if someone can try to reproduce to verify it is still an issue.

Changed in cinder:
status: Triaged → Incomplete
Revision history for this message
DavidPurcell (david-purcell) wrote :

This is definitely still an issue. I followed the following steps: Created a volume, launched an instance from that volume, created a snapshot of that instance, successfully launched a new instance off the snapshot image, deleted the resulting snapshot volume, attempted to launch an instance off of the same snapshot and got the following error message:

Block Device Mapping is Invalid: failed to get snapshot 0b826812-3371-4784-a759-a2dfa385c1ed. (HTTP 400) (Request-ID: req-b0480ce5-1ef1-45bf-b16f-72cbbf3b6e2d).

Changed in cinder:
assignee: Karthik Prabhu Vinod (karthik-prabhu-vinod) → nobody
Changed in cinder:
status: Incomplete → Opinion
status: Opinion → Incomplete
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.