<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">在 2014年12月18日 17:33, Chen CH Ji 写道:<br>
</div>
<blockquote
cite="mid:OFE06AB214.E57F2ED0-ON48257DB2.00346016-48257DB2.00347629@cn.ibm.com"
type="cite">
<p><font face="sans-serif" size="2">AFAIK, quota will expire in 24
hours </font><br>
<br>
<font face="sans-serif" size="2">cfg.IntOpt('reservation_expire',</font><br>
<font face="sans-serif" size="2"> default=86400,</font><br>
<font face="sans-serif" size="2"> help='Number of
seconds until a reservation expires'),</font><br>
<br>
<font face="sans-serif" size="2">Best Regards! <br>
</font></p>
</blockquote>
<font size="2">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.<br>
</font>
<blockquote
cite="mid:OFE06AB214.E57F2ED0-ON48257DB2.00346016-48257DB2.00347629@cn.ibm.com"
type="cite">
<p><font face="sans-serif" size="2">
<br>
Kevin (Chen) Ji 纪 晨<br>
<br>
Engineer, zVM Development, CSTL<br>
Notes: Chen CH Ji/China/IBM@IBMCN Internet:
<a class="moz-txt-link-abbreviated" href="mailto:jichenjc@cn.ibm.com">jichenjc@cn.ibm.com</a><br>
Phone: +86-10-82454158<br>
Address: 3/F Ring Building, ZhongGuanCun Software Park,
Haidian District, Beijing 100193, PRC </font><br>
<br>
<img src="cid:part1.03090404.06040908@linux.vnet.ibm.com"
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" border="0" height="16"
width="16"><font color="#424282" face="sans-serif" size="2">"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 color="#5F5F5F" face="sans-serif" size="1">From: </font><font
face="sans-serif" size="1">"Eli Qiao(Li Yong Qiao)"
<a class="moz-txt-link-rfc2396E" href="mailto:taget@linux.vnet.ibm.com"><taget@linux.vnet.ibm.com></a></font><br>
<font color="#5F5F5F" face="sans-serif" size="1">To: </font><font
face="sans-serif" size="1">"OpenStack Development Mailing List
(not for usage questions)"
<a class="moz-txt-link-rfc2396E" href="mailto:openstack-dev@lists.openstack.org"><openstack-dev@lists.openstack.org></a></font><br>
<font color="#5F5F5F" face="sans-serif" size="1">Date: </font><font
face="sans-serif" size="1">12/18/2014 04:34 PM</font><br>
<font color="#5F5F5F" face="sans-serif" size="1">Subject: </font><font
face="sans-serif" size="1">[openstack-dev] [nova][resend with
correct subject prefix] ask for usage of quota reserve</font><br>
</p>
<hr style="color:#8091A5; " align="left" noshade="noshade"
size="2" width="100%"><br>
<br>
<br>
<font face="sans-serif" size="3">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 face="sans-serif" size="2">1. </font><font
face="sans-serif" size="3">when doing resize, we call
quotas.reserve() to reservea a delta quota.(new_flavor -
old_flavor)</font><br>
<font face="sans-serif" size="2">2. </font><font
face="sans-serif" size="3">for some reasons, nova-compute
crashed, and not chance to call quotas.commit() or
quotas.rollback() </font><font face="sans-serif" size="3"><i>(called
by finish_resize in nova/compute/manager.py)</i></font><br>
<font face="sans-serif" size="2">3. </font><font
face="sans-serif" size="3">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 face="sans-serif" size="3">Thanks in advance<br>
-Eli.</font>
<p><font face="sans-serif" size="3">ps: this is related to patch :
Handle RESIZE_PREP status when nova compute do init_instance(</font><a
moz-do-not-send="true"
href="https://review.openstack.org/#/c/132827/"><font
color="#0000FF" face="sans-serif" size="3"><u>https://review.openstack.org/#/c/132827/)</u></font></a>
</p>
<p><tt><font size="3">-- <br>
Thanks Eli Qiao(</font></tt><a moz-do-not-send="true"
href="mailto:qiaoly@cn.ibm.com"><tt><font color="#0000FF"
size="3"><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>
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
</font></tt><tt><font size="2"><a moz-do-not-send="true"
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>
<p><br>
</p>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Thanks,
Eli (Li Yong) Qiao</pre>
</body>
</html>