Recover/Reuse image from pending-delete/deleted state

Registered by Feilong Wang on 2013-10-08

Recover image from pending-delete state

    We claim that the image in pending-delete state is recoverable, but actually, we don't support that.
    See https://wiki.openstack.org/wiki/Glance-image-recover to get more details.
    And we're using https://etherpad.openstack.org/p/glance-v2-image-recovery to track the design discussion.

Blueprint information

Status:
Started
Approver:
Mark Washenberger
Priority:
High
Drafter:
Feilong Wang
Direction:
Needs approval
Assignee:
None
Definition:
Drafting
Series goal:
Accepted for future
Implementation:
Slow progress
Milestone target:
None
Started by
Feilong Wang on 2013-11-20

Related branches

Sprints

Whiteboard

flwang:
Before recover an image, user should be able to list the images which are in 'pending-delete' state. It's not supported by current code for both v1 and v2. So the question is should we allow user to list 'pending-delete' images.

markwash:
My understanding was that 'pending-delete' was just an internal state for the purposes of allowing emergency operational action to recover from an accidental delete. Thus its not really necessary to add api support for it. Does that make sense?

flwang:
After discussed with flaper87, we had an agreement on the 're-use' image id part. I will create a new bp/bug to improve the replication code and hold on the bug 1176978 to try to find a workable way for that scenario.

Gerrit topic: https://review.openstack.org/#q,topic:bp/image-recover,n,z

Addressed by: https://review.openstack.org/61680
    Enable recover operation for images in pending-delete

After discussion today, we decided it makes sense to plan on deferring this feature to Juno, pending several issues
  - should recovery be focused on images or locations?
  - how do admins list images/locations that are pending deletion?
  - can we isolate this change from the user-facing api? especially since pending-deletion is an optional deployer-facing feature.

Looks like we need a good bit more information about this change, to make the scope more clear and perhaps figure out how it might fit into other admin-facing efforts.

markwash more-info 2014-02-14

Haven't heard back, please reassign yourself if you still want to work on it!
rosmaita abandoned 2014-03-07

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.