Allow deletes to occur in any state

Registered by Johannes Erdfelt

Deletes are allowed in most states right now, but because of various failure scenarios, there are situations where an instance cannot be fully deleted. Users will want to delete an instance at anytime, for management and billing reasons. If an instance is not in a state that does not safely allow for deletes, then the instance should be hidden from the user (effectively deleted from their perspective) by either moving to another tenant, masking through the database or another means.

Blueprint information

Status:
Complete
Approver:
Vish Ishaya
Priority:
High
Drafter:
Johannes Erdfelt
Direction:
Approved
Assignee:
Sina Web Service Dev
Definition:
Approved
Series goal:
Accepted for folsom
Implementation:
Implemented
Milestone target:
milestone icon 2012.2
Started by
Hui Cheng
Completed by
Vish Ishaya

Related branches

Sprints

Whiteboard

Agreed. It seems like we should have an extra write once boolean in the db for terminated instead of relying on the overloaded state flag. This represents that the user has terminated the instance, and if it is set we should never bill or return it to the user. The actual termination/deletion of the instance can happen asynchronously --Vish.

This should be addressed in this commit: https://review.openstack.org/#/c/8254/ -Yun

Gerrit topic: https://review.openstack.org/#q,topic:bp/delete-in-any-state,n,z

Addressed by: https://review.openstack.org/11265
    Deletes instance in any state

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.