[Openstack] How to soft-delete an instance ?

Sekhar Vajjhala sekharv01 at gmail.com
Tue May 6 18:36:25 UTC 2014


The following VM state are documented in
https://wiki.openstack.org/wiki/VMState .

SOFT_DELETED: VM is no longer running on compute, but the disk image
remains and can be brought back.
HARD_DELETED: From quota and billing’s perspective, the VM no longer
exists. VM will eventually be destroyed running on compute, disk images too.

But how do you do soft delete through API or the nova command ?
1. nova restore <server> - "Restore a soft-deleted server " . But I don't
see a nova command to do a soft delete ( only a nova force-delete ).
2. From API , POST  /v2/​{tenant_id}​/servers/​{server_id}​/action with
action = forceDelete will delete the server. Again, no way to soft delete
the instance.

-- 
Sekhar Vajjhala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140506/53c6ff22/attachment.html>


More information about the Openstack mailing list