<div dir="ltr"><p class="" align="left"><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif">+1</span></p>

<p class="" align="left"><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif">Actually, we have implemented an 'Intance R</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(51,51,51)">ecycle Bin'
in our customized dashboard via soft-delete. All intances being deleted would
be put into the '</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif">R</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(51,51,51)">ecycle Bin'
to give a chance that it could be restored later if needed. Instances which
stay in '</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif">R</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(51,51,51)">ecycle Bin' for more than 24 hours would be safely deleted. Also,
instances in '</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif">R</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(51,51,51)">ecycle Bin'
could be force-deleted at any time admin would like to.</span></p>

<p class="" align="left"><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif">One problem for this </span><span lang="EN-US" style="font-family:Arial,sans-serif;color:rgb(51,51,51)">function is how
to display instances in the </span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(51,51,51)">'</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif">R</span><span lang="EN-US" style="font-size:12pt;font-family:Verdana,sans-serif;color:rgb(51,51,51)">ecycle Bin'. They are instances in the 'soft-delete' status, but we cannot
filter them out by status via nova-api, as 'deleted' and 'soft-deleted' are
mapping to the same status. So it really makes sense to sperate out the two status
in nova-api level.</span><span lang="EN-US" style="font-size:12pt;font-family:Arial,sans-serif"></span></p>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/17 Day, Phil <span dir="ltr"><<a href="mailto:philip.day@hp.com" target="_blank">philip.day@hp.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> > -----Original Message-----<br>
> > From: David Ripton [mailto:<a href="mailto:dripton@redhat.com">dripton@redhat.com</a>]<br>
> > Sent: 16 July 2013 15:39<br>
> > To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
> > Subject: Re: [openstack-dev] [Nova] Seperate out 'soft-deleted' instances from<br>
> > 'deleted' ones?<br>
> ><br>
</div><div class="im">> > On 07/15/2013 10:03 AM, Matt Riedemann wrote:<br>
> > > I have a patch up for review on this:<br>
> > ><br>
> > > _<a href="https://review.openstack.org/#/c/35061/_" target="_blank">https://review.openstack.org/#/c/35061/_</a><br>
> > ><br>
> > > However, this doesn't fix the vm_states.SOFT_DELETED mapping in<br>
> > > nova.api.openstack.common so if you show an instance with<br>
> > > vm_states.SOFT_DELETED, the response status will be 'DELETED'.<br>
> > ><br>
> > > I'd like to see if there are any opinions on if this should come back<br>
> > > as 'SOFT_DELETED' or if everyone is OK with mapping soft-delete to<br>
> > > 'DELETED' in the v3 API?<br>
> ><br>
> > I would like to see them merged.  Having multiple kinds of deleted records is<br>
> > really confusing, and leads to bugs.  The more public we make this, the harder<br>
> > it will be to fix it in the future.<br>
> ><br>
<br>
</div>The only place I can see it would be confusing is if an admin is using "deleted" in the search options, in which case I think they would need some way to distinguish between soft and hard deleted instances.<br>

<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>