<div dir="ltr"><div><div>Greetings,<br><br>I wanted to open a discussion on how Nova can prevent users and administrators from accidental instance deletion.<br><br><a href="https://blueprints.launchpad.net/nova/+spec/ability-to-set-disable-terminate">https://blueprints.launchpad.net/nova/+spec/ability-to-set-disable-terminate</a><br>
<br></div>Russell brought up a good point on this blueprint that there's already 'nova lock', but it looks like a locked instance can still be deleted by an administrator. <br><br>Compute's API already implements disable_terminate, but there's no way to set it via Nova API.<br>
<br><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1038">https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1038</a><br><br></div><div>There could be two ways to go about implementing disable_terminate:<br>
<br></div><div>- nova lock <uuid> --disable_terminate could set disable_terminate on the instance (admin only)<br clear="all"></div><div><div><div><div>- nova disable_terminate <uuid><br><br></div><div>Thoughts?</div>
<div><br></div><div>-- <br>Andy Hill
</div></div></div></div></div>