<html><body bgcolor="#FFFFFF">
<p><font size="2" face="sans-serif">I used to submit a patch and retrieve the reservation of quota, got a -2 because it can expire :)</font><br>
<br>
<font size="2" face="sans-serif">so, I guess expire do no harm unless the uncommitted / unrollbacked reservation may occupy the quota</font><br>
<font size="2" face="sans-serif">and lead to side effect on upcoming actions...</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__=C7BBF725DFB54D7F8f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Eli Qiao ---12/22/2014 11:37:34 AM---在 2014年12月18日 17:33, Chen CH Ji 写道: >"><font size="2" color="#424282" face="sans-serif">Eli Qiao ---12/22/2014 11:37:34 AM---在 2014年12月18日 17:33, Chen CH Ji 写道: ></font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">Eli 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/22/2014 11:37 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">Re: [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>
<br>
<font size="3" face="serif">在 2014年12月18日 17:33, Chen CH Ji 写道:</font>
<ul style="padding-left: 36pt"><br>
<font size="2" face="sans-serif">AFAIK, quota will expire in 24 hours </font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
cfg.IntOpt('reservation_expire',<br>
default=86400,<br>
help='Number of seconds until a reservation expires'),</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Best Regards! </font></ul>
<br>
<font size="2" face="serif">hi Kevin, <br>
but that is not reliable, user/op can change the default value.<br>
shall we just leave as the quota reservation there can do not commit/rollback ?<br>
I don't think there will be much more we can do.</font>
<ul style="padding-left: 36pt"><br>
<font size="2" face="sans-serif"><br>
Kevin (Chen) Ji 纪 晨<br>
<br>
Engineer, zVM Development, CSTL<br>
Notes: Chen CH Ji/China/IBM@IBMCN Internet: </font><a href="mailto:jichenjc@cn.ibm.com"><font size="2" color="#0000FF" face="sans-serif"><u>jichenjc@cn.ibm.com</u></font></a><font size="2" face="sans-serif"><br>
Phone: +86-10-82454158<br>
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><font size="3" face="serif"><br>
<br>
</font><img src="cid:1__=C7BBF725DFB54D7F8f9e8a93df938@cn.ibm.com" width="16" height="16" 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><font size="3" face="serif"><br>
</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
From: </font><font size="1" face="sans-serif">"Eli Qiao(Li Yong Qiao)" </font><a href="mailto:taget@linux.vnet.ibm.com"><font size="1" color="#0000FF" face="sans-serif"><u><taget@linux.vnet.ibm.com></u></font></a><font size="1" color="#5F5F5F" face="sans-serif"><br>
To: </font><font size="1" face="sans-serif">"OpenStack Development Mailing List (not for usage questions)" </font><a href="mailto:openstack-dev@lists.openstack.org"><font size="1" color="#0000FF" face="sans-serif"><u><openstack-dev@lists.openstack.org></u></font></a><font size="1" color="#5F5F5F" face="sans-serif"><br>
Date: </font><font size="1" face="sans-serif">12/18/2014 04:34 PM</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Subject: </font><font size="1" face="sans-serif">[openstack-dev] [nova][resend with correct subject prefix] ask for usage of quota reserve</font>
<p><hr width="100%" size="2" align="left" noshade><font size="3" face="serif"><br>
<br>
</font><font size="3" face="sans-serif"><br>
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:</font>
<ul style="padding-left: 36pt"><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><font size="2" face="sans-serif"><br>
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><font size="2" face="sans-serif"><br>
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><font size="3" face="serif"> </font></ul>
<font size="3" face="sans-serif"><br>
Thanks in advance<br>
-Eli.</font><font size="3" face="serif"> </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><font size="3" face="serif"> </font>
<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</font></tt><tt><font size="2" color="#0000FF"><u><br>
</u></font></tt><a href="mailto:OpenStack-dev@lists.openstack.org"><tt><font size="2" color="#0000FF"><u>OpenStack-dev@lists.openstack.org</u></font></tt></a><tt><font size="2" color="#0000FF"><u><br>
</u></font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="2" color="#0000FF"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></tt></a>
<p>
<p><br>
<tt><font size="3">_______________________________________________<br>
OpenStack-dev mailing list<br>
</font></tt><a href="mailto:OpenStack-dev@lists.openstack.org"><tt><font size="3" color="#0000FF"><u>OpenStack-dev@lists.openstack.org</u></font></tt></a><tt><font size="3"><br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="3" color="#0000FF"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></tt></a><tt><font size="3"><br>
</font></tt></ul>
<br>
<tt><font size="3">-- <br>
Thanks,<br>
Eli (Li Yong) Qiao</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><br>
</body></html>