<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:Calibri,sans-serif;font-size:14px">So after a reservation lease for a VM is made by Climate, who acts on it to finally instantiate the VM ? Is it Climate or Nova should act on the lease to finally provision the VM. </span></blockquote>
<div><br></div><div>Now to take resources for VM it's actually created and then immediately shelved, not to be in active state and not to actually work while it's not needed. Climate then uses Keystone trusts to unshelve it the time lease actually starts.</div>
<div><br></div><div>Thanks,</div><div>Dina</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 9:28 PM, Yathiraj Udupi (yudupi) <span dir="ltr"><<a href="mailto:yudupi@cisco.com" target="_blank">yudupi@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>hi Sylvain and Dina, </div>
<div><br>
</div>
<div>Thanks for your pointers about Climate.  I will take a closer look at it and try it out.  So after a reservation lease for a VM is made by Climate, who acts on it to finally instantiate the VM ? Is it Climate or Nova should act on the lease to finally
 provision the VM. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Yathi. </div><div><div class="h5">
<div><br>
</div>
<span>
<div>
<div>On 2/11/14, 8:42 AM, "Sylvain Bauza" <<a href="mailto:sylvain.bauza@bull.net" target="_blank">sylvain.bauza@bull.net</a>> wrote:</div>
</div>
<div><br>
</div>
<blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5">
<div>
<div text="#000000" bgcolor="#FFFFFF">
<div>Le 11/02/2014 17:23, Yathiraj Udupi (yudupi) a écrit :<br>
</div>
<blockquote type="cite">
<div>Hi Dina, </div>
<div><br>
</div>
<div>Thanks for note about Climate logic.  This is something that will be very useful, when we will have to schedule from Nova multiple instances (of potentially different flavors) as a single request.  If the Solver Scheduler, can make a request to the Climate
 service to reserve the resources soon after the placement decision has been made, then the nova provisioning logic can handle the resource provisioning using the climate reserved leases.  Regarding Solver Scheduler for your reference, just sent another email
 about this with some pointers about it.  Otherwise this is the blueprint - <a href="https://blueprints.launchpad.net/nova/+spec/solver-scheduler" target="_blank">https://blueprints.launchpad.net/nova/+spec/solver-scheduler</a> </div>

<div>I guess this is something to explore more and see how Nova provisioning logic to work with Climate leases. Or this is something that already works.  I need to find out more about Climate. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Yathi. </div>
<br>
</blockquote>
<br>
<br>
There are possibly 2 ways for creating a lease : either thru the CLI or by the python binding.<br>
<br>
We implemented these 2 possibilities within the current Climate 0.1 release : <br>
 - a Nova extension plugin is responsible for creating the lease if a VM should be reserved (using the Climate pythonclient binding)<br>
 - an user can request for reserving a compute host using the Climate python client directly<br>
<br>
Both logics (VM and compute host) are actually referring to 2 distinct plugins in the Climate manager, so the actions are completely different.
<br>
<br>
Based on your use-case, you could imagine a call from the SolverScheduler to Climate for creating a lease containing multiple VM reservations, and either you would use the Climate VM plugin or you would use a dedicated plugin if your need is different.<br>

<br>
I don't think that's a huge volume of work, as Climate already defines and implements the main features that you need.<br>
<br>
-Sylvain<br>
</div>
</div>
</blockquote>
</span>
</div></div></div>

<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><p style="font-size:small;margin:0px;font-family:Helvetica">
Best regards,</p><p style="font-size:small;margin:0px;font-family:Helvetica">Dina Belova</p><p style="font-size:small;margin:0px;font-family:Helvetica">Software Engineer</p><p style="font-size:small;margin:0px;font-family:Helvetica">
Mirantis Inc.</p></div></div>
</div>