Deleting volumes with snapshots should be allowed for some backends

Bug #970409 reported by Vish Ishaya
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Won't Fix
Low
John Griffith
OpenStack Compute (nova)
Won't Fix
Low
Unassigned

Bug Description

Right now, nova-volumes does not allow volumes to be deleted that have snapshots attached. Some backends may support this so it should be configurable by the administrator whether to allow volumes with snapshots to be deleted.

Changed in nova:
status: New → Triaged
importance: Undecided → Low
Changed in cinder:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
John Griffith (john-griffith) wrote :

Can't this be handled implicitly by the driver for those back-ends that support it? For example the base LVM driver currently will raise VolumeIsBusy if a snapshot exists. Other drivers could simply choose to check/not-check depending on what they support?

If there's some other reason that admins may want to have this behavior configurable (independent of backend device's support) then we can add the flag.

Revision history for this message
Fergal Mc Carthy (fergal-mccarthy) wrote :

Bug #1023768 may not truly be a duplicate of this issue.

Let's see if I can summarise my understanding of things:

This bug appears to be about making it a configurable option as to whether it is permitted to attempt to delete a volume that has associated snapshots.
And the subsequent discussion here seems to suggest that it is not necessarily needed as a configurable but instead should be left to the underlying back ends to gracefully decline the deletion of a volume if they don't support doing so when there are associated snapshots

One the other hand bug #1023768 appears to be about whether it is possible for a snapshot to exist independently of the volume it originates from, and as things stand that doesn't appear to be possible because some of the information needed to access a snapshot exists only in the originating volume's entry in the volumes table.

Fergal.

Revision history for this message
John Griffith (john-griffith) wrote :

So really bug #1023768 isn't a bug but more of a question and this explains the answer and how it may change IMO. I'll change it from duplicate back to invalid or question and reference this bug in the comments instead of directly linking them together.

Revision history for this message
John Griffith (john-griffith) wrote :

Another Grizzly topic

Revision history for this message
Avishay Traeger (avishay-il) wrote :

My feeling is that behavior should be consistent regardless of which driver is being used. I would rather add this check higher up, outside the driver, and maybe add a "force" flag to the Cinder API to cover this case.
This seems like one case of a more general "problem"; the API seems to be at the lowest common denominator of the back-end drivers and some back-ends support other features. For example, should the API differentiate between space-efficient snapshots and full copies?

Changed in cinder:
milestone: none → grizzly-2
Changed in cinder:
assignee: nobody → John Griffith (john-griffith)
Revision history for this message
John Griffith (john-griffith) wrote :

Deferring this to G3, what I'd like to do is get "report capabilities" implemented and then use that for the manager to determine whether or not to issue the request just as we do currently. The other option is to do some special handling and move the checks further down in to the drivers but this seems like it will be an ideal case for the capabilities changes.

Changed in cinder:
milestone: grizzly-2 → grizzly-3
Changed in cinder:
milestone: grizzly-3 → none
status: Triaged → Won't Fix
Revision history for this message
Joe Gordon (jogo) wrote :

nova volumes does not exist anymore

Changed in nova:
status: Triaged → Won't Fix
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.