<div dir="ltr">Hi Mauro,<div><br></div><div>Thanks for the info. It worked but here are a few of the things that found in the process. I am using Havana not devstack.</div><div><br></div><div>1. It appears there is no way to list instances that are in SOFT_DELETE state using the nova command.</div>
<div> a. The command "nova list --deleted" does not work; -The --deleted option in "nova list --deleted" is not recognized</div><div> error: unrecognized arguments: --deleted</div><div> b. The command "nova list --status SOFT_DELETED" does not show the instance in the status.</div>
<div><br></div><div>2. Even though the soft deleted instance can't be displayed, it can be restored using nova command. However, UUID not name must be used to restore. </div><div><br></div><div>Sekhar </div><div><br>
</div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 6, 2014 at 3:56 PM, Mauro S M Rodrigues <span dir="ltr"><<a href="mailto:maurosr@linux.vnet.ibm.com" target="_blank">maurosr@linux.vnet.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>You will have to set
reclaim_instance_interval > 0 on your nova.conf and all delete
actions will be soft by default (unless you force delete it).<br>
<br>
--<br>
mauro(sr)<div><div><br>
<br>
<br>
<br>
On 05/06/2014 03:36 PM, Sekhar Vajjhala wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>
<div dir="ltr">
<div>The following VM state are documented in <a href="https://wiki.openstack.org/wiki/VMState" target="_blank">https://wiki.openstack.org/wiki/VMState</a>
. <br>
</div>
<div><br>
</div>
<div>SOFT_DELETED: VM is no longer running on compute, but the
disk image remains and can be brought back.</div>
<div>HARD_DELETED: From quota and billing’s perspective, the VM
no longer exists. VM will eventually be destroyed running on
compute, disk images too.</div>
<div><br>
</div>
<div>But how do you do soft delete through API or the nova
command ? </div>
<div>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 ). </div>
<div>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.</div>
<div><br>
</div>
-- <br>
<div dir="ltr">Sekhar Vajjhala</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><span><font color="#888888">
</font></span></pre><span><font color="#888888">
</font></span></blockquote><span><font color="#888888">
<br>
<br>
<pre cols="72">--
-- mauro(sr)</pre>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Sekhar Vajjhala | m : <a href="tel:603-785-8993" value="+16037858993" target="_blank">603-785-8993</a></div>
</div></div></div>