<html><body bgcolor="#FFFFFF">
<p><font size="2" face="sans-serif">AFAIK, quota will expire in 24 hours </font><br>
<br>
<font size="2" face="sans-serif">cfg.IntOpt('reservation_expire',</font><br>
<font size="2" face="sans-serif"> default=86400,</font><br>
<font size="2" face="sans-serif"> help='Number of seconds until a reservation expires'),</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__=C7BBF721DFA7E6868f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for "Eli Qiao(Li Yong Qiao)" ---12/18/2014 04:34:32 PM---hi all, can anyone tell if we call quotas.reserv"><font size="2" color="#424282" face="sans-serif">"Eli Qiao(Li Yong Qiao)" ---12/18/2014 04:34:32 PM---hi all, can anyone tell if we call quotas.reserve() but never call</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">"Eli Qiao(Li Yong Qiao)" <taget@linux.vnet.ibm.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">12/18/2014 04:34 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">[openstack-dev] [nova][resend with correct subject prefix] ask for usage of quota reserve</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="3" face="sans-serif">hi all,<br>
can anyone tell if we call quotas.reserve() but never call quotas.commit() or quotas.rollback().<br>
what will happen?<br>
<br>
for example:<br>
</font>
<ul style="padding-left: 18pt"><font size="2" face="sans-serif">1. </font><font size="3" face="sans-serif">when doing resize, we call quotas.reserve() to reservea a delta quota.(new_flavor - old_flavor)</font><br>
<font size="2" face="sans-serif">2. </font><font size="3" face="sans-serif">for some reasons, nova-compute crashed, and not chance to call quotas.commit() or quotas.rollback() </font><font size="3" face="sans-serif"><i>(called by finish_resize in nova/compute/manager.py)</i></font><br>
<font size="2" face="sans-serif">3. </font><font size="3" face="sans-serif">next time restart nova-compute server, is the delta quota still reserved , or do we need any other operation on quotas?</font></ul>
<br>
<font size="3" face="sans-serif">Thanks in advance<br>
-Eli.</font>
<p><font size="3" face="sans-serif">ps: this is related to patch : Handle RESIZE_PREP status when nova compute do init_instance(</font><a href="https://review.openstack.org/#/c/132827/"><font size="3" color="#0000FF" face="sans-serif"><u>https://review.openstack.org/#/c/132827/)</u></font></a>
<p><tt><font size="3">-- <br>
Thanks Eli Qiao(</font></tt><a href="mailto:qiaoly@cn.ibm.com"><tt><font size="3" color="#0000FF"><u>qiaoly@cn.ibm.com</u></font></tt></a><tt><font size="3">)</font></tt><tt><font size="2">_______________________________________________<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>
</font></tt>
<p></body></html>