<html><body>
<p><font size="2" face="sans-serif">do a code review and found a function _reclaim_queued_deletes will do the soft_delete reclaim </font><br>
<br>
<font size="2" face="sans-serif">if you set reclaim_instance_interval > 0 , then delete will be soft_delete and it will be reclaimed if it's old enough</font><br>
<font size="2" face="sans-serif">by default reclaim_instance_interval is 0, so delete will be hard delete , user can trigger a force_delete action should delete the instance right now</font><br>
<br>
<font size="2" face="sans-serif">Best Regards! <br>
<br>
Kevin (Chen) Ji ¼Í ³¿<br>
<br>
Engineer, zVM Development, CSTL<br>
Notes: Chen CH Ji/China/IBM@IBMCN   Internet: jichenjc@cn.ibm.com<br>
Phone: +86-10-82454158<br>
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><br>
<br>
<img width="16" height="16" src="cid:1__=C7BBF607DFAB71E58f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for "zhangyu (AI)" ---03/07/2014 09:09:14 AM---After looking into Nova code base, I found there is surely"><font size="2" color="#424282" face="sans-serif">"zhangyu (AI)" ---03/07/2014 09:09:14 AM---After looking into Nova code base, I found there is surely a soft_delete() method in the ComputeDriv</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">"zhangyu (AI)" <zhangyu11@huawei.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org>, </font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">03/07/2014 09:09 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [openstack-dev] [Nova][Cinder] Feature about volume delete  protection</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">After looking into Nova code base, I found there is surely a soft_delete() method in the ComputeDriver() class. Furthermore,<br>
Xenapi (and only Xenapi) has implemented this method, which finally applies a hard_shutdown_vm() operation to the instance to be deleted.<br>
If I understand it correctly, it means the instance is in fact shutdown, instead of being deleted. Later, the user can decide whether to restore it or not.<br>
<br>
My question is that, when and how is the soft_deleted instance truly deleted? A user needs to trigger a real delete operation on it explicitly, doesn't he?<br>
<br>
Not for sure why other drivers, especially libvirt, did not implement such a feature...<br>
<br>
Thanks~<br>
<br>
-----Original Message-----<br>
From: John Garbutt [</font></tt><tt><font size="2"><a href="mailto:john@johngarbutt.com">mailto:john@johngarbutt.com</a></font></tt><tt><font size="2">] <br>
Sent: Thursday, March 06, 2014 8:13 PM<br>
To: OpenStack Development Mailing List (not for usage questions)<br>
Subject: Re: [openstack-dev] [Nova][Cinder] Feature about volume delete protection<br>
<br>
On 6 March 2014 08:50, zhangyu (AI) <zhangyu11@huawei.com> wrote:<br>
> It seems to be an interesting idea. In fact, a China-based public <br>
> IaaS, QingCloud, has provided a similar feature to their virtual <br>
> servers. Within 2 hours after a virtual server is deleted, the server owner can decide whether or not to cancel this deletion and re-cycle that "deleted" virtual server.<br>
><br>
> People make mistakes, while such a feature helps in urgent cases. Any idea here?<br>
<br>
Nova has soft_delete and restore for servers. That sounds similar?<br>
<br>
John<br>
<br>
><br>
> -----Original Message-----<br>
> From: Zhangleiqiang [</font></tt><tt><font size="2"><a href="mailto:zhangleiqiang@huawei.com">mailto:zhangleiqiang@huawei.com</a></font></tt><tt><font size="2">]<br>
> Sent: Thursday, March 06, 2014 2:19 PM<br>
> To: OpenStack Development Mailing List (not for usage questions)<br>
> Subject: [openstack-dev] [Nova][Cinder] Feature about volume delete <br>
> protection<br>
><br>
> Hi all,<br>
><br>
> Current openstack provide the delete volume function to the user.<br>
> But it seems there is no any protection for user's delete operation miss.<br>
><br>
> As we know the data in the volume maybe very important and valuable.<br>
> So it's better to provide a method to the user to avoid the volume delete miss.<br>
><br>
> Such as:<br>
> We can provide a safe delete for the volume.<br>
> User can specify how long the volume will be delay deleted(actually deleted) when he deletes the volume.<br>
> Before the volume is actually deleted, user can cancel the delete operation and find back the volume.<br>
> After the specified time, the volume will be actually deleted by the system.<br>
><br>
> Any thoughts? Welcome any advices.<br>
><br>
> Best regards to you.<br>
><br>
><br>
> ----------<br>
> zhangleiqiang<br>
><br>
> Best Regards<br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
<br>
</font></tt><br>
</body></html>