<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 10, 2012, at 6:24 AM, Patrick Petit <<a href="mailto:patrick.michel.petit@gmail.com">patrick.michel.petit@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div>So, if I paraphrase correctly what is meant out of the stacker jargon.</div><div><br></div><div>min_count and max_count doc will go in the API doc as an extension item once the DisableServerExtension cleanup is done. Right?</div></blockquote><div><br></div><div><br></div>Correct.</div><div><br><blockquote type="cite">
<div><br></div><div>However, the original question was about the <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px"><b><i>num_instances</i></b></span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px"> property of the RPC request spec</span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px">. I do not see a direct relationship with min_count and max_count. </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px">So, is num_instances another undocumented API extension parameter or something else?</span></div></blockquote><div><br></div><div>The RPC code is internal and undocumented at the moment. The num_instances parameter is generated from min_count and max_count based on quota:</div><div><br></div><div><div>399         num_instances, quota_reservations = self._check_num_instances_quota(</div><div>400                 context, instance_type, min_count, max_count)</div><div><br></div><div>so if you have min_count = 3, max_count = 9:</div><div>whith a quota of 10 you num_instances = 5</div><div>with a quota of 10, num_instances = 9</div><div>with a quota of 2, you will get a QuotaExceeded exception.</div><div><br></div><div>I hope that clarifies things.</div></div><br><blockquote type="cite">
<div><br></div><div><font color="#222222" face="arial, sans-serif">I can see also that DisableServerExtensions proposal mentions a <i><b>reservation_id </b></i>parameter... Can someone explain what it is ? Is it to support server reservation like in AWS EC2? And so, would a user be able to create a reservation (that is, not to actually create the reserve servers but to reserve the) with say additional min_count max_count parameters in the request. The reservation would fail if min_count cannot be honored by OpenStack. If the reservation can be honored, would return a reservation_id along with a value between min_count and max_count. Is this a correct understanding of the behavior or complete speculation?</font></div></blockquote><div><br></div><div>return_reservation_id will tell the server create request to return reservation_ids instead of a single server instance, it will be part of the os-multiple-instances extension along with min_count and max_count:</div><div><br></div><div><a href="https://review.openstack.org/#/c/11090/">https://review.openstack.org/#/c/11090/</a></div><br></div><div>Vish</div><br></body></html>