api to set disable terminate flag

Registered by Kaushik Chandrashekar

Protect an instance from Termination:

As a customer, I would like to safegaurd some of my VMs from being accidentally deleted.
As an administrator, I would like to spin up some instances and deploy openstack. I would like to ensure that these instances are not to be deleted at any cost.

This is not the same as the "lock" feature of the instances. Locking is used to disable all actions on an instance. For example, admins would lock a customers instance, so that any malicious activity from that instance can be analysed.

Disable terminate does not block any actions. It just ensure that the VM is not deleted at the compute layer. It's similar to the disable-api-termination flag in EC2

Blueprint information

Status:
Complete
Approver:
Russell Bryant
Priority:
Not
Drafter:
Kaushik Chandrashekar
Direction:
Needs approval
Assignee:
Kaushik Chandrashekar
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Russell Bryant

Related branches

Sprints

Whiteboard

We've discussed this a few times. I'm not convinced that this is something we should add. Feel free to ping me if you feel there has been discussion showing consensus around the feature. --russellb

As part of our stand up of our pubic cloud infrastructure we create instances in an internal cloud, and we set the disable_terminate to 1 for those instances. unfortunately this currently requires running direct mysql queries, at the cell where the instance exists (and the global for faster protection). This is difficult to automate, and easy to get wrong when doing it by hand. I think this is a useful enough feature (even if it won't widely be used) to support. --jlk

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.