Snapshot delete: verify dependent glance images

Registered by Jordan Pittier

A volume snapshot can be tied to a Glance Image (for instance, if a user snapshots an instance which was booted from a volume). If the user deletes the volume snapshot afterward, it would break the Glance Image (the image would reference a non-existing snapshot).

This blueprint aims at adding a new boolean parameter to the delete snapshot method of Cinder API. This parameter would dictates whether Cinder should check if the snapshot is used as a base for a Glance Image. If the check is enabled and the snapshot is used by an image, then an exception is raised so that the client is warned.

The check should be disabled by default to preserve backward compatibility. Clients (Horizon, python-cinderclient) should enable or disable this check by default according to their needs.

Blueprint information

Status:
Complete
Approver:
John Griffith
Priority:
Low
Drafter:
Jordan Pittier
Direction:
Approved
Assignee:
Jordan Pittier
Definition:
Obsolete
Series goal:
None
Implementation:
Not started
Milestone target:
None
Completed by
Sean McGinnis

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/snap-delete-check-dependent-img,n,z

Addressed by: https://review.openstack.org/82789
    Snapshot delete: verify dependent glance image

Jordan Pittier (22/09/2014) : Abandoned in favor of a client side solution to avoid to query glance from cinder-api.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.