<div dir="ltr">I agree.<div><br></div><div>Just a thought: I think there should be some sort of scheduling intelligence involved with a command like this. Right now, all of the migration and evacuation commands work on individual instances being moved to a specified compute node. IMO, automating this should involve the evacuation going to the scheduler to figure out what other compute nodes are appropriate as destinations.</div>
<div><br></div><div>Without this feature, if you were to do something like:</div><div><br></div><div>for i in $instance_list</div><div>do</div><div>  nova live-migration $i c01</div><div>end</div><div><br></div><div>c01 might already be at capacity or would be well-over capacity by the time the loop finishes.</div>
<div><br></div><div>Individual sites might make their own variation of this (such as choosing a compute node based on the nth instance being migrated) but that might not be the most "professional" solution :)</div>
<div><br></div><div>Or does this intelligence already exist in OpenStack and I'm just falling behind?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 14, 2014 at 1:47 PM, Tim Bell <span dir="ltr"><<a href="mailto:Tim.Bell@cern.ch" target="_blank">Tim.Bell@cern.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">At minimum, getting something into stackforge would be good.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Recovering as best you can from a dead hypervisor situation is another process that we need to define best-of-breed scripts.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Tim<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Robert van Leeuwen [mailto:<a href="mailto:Robert.vanLeeuwen@spilgames.com" target="_blank">Robert.vanLeeuwen@spilgames.com</a>]
<br>
<b>Sent:</b> 14 February 2014 12:50<br>
<b>To:</b> Tim Bell<br>
<b>Cc:</b> <a href="mailto:openstack-operators@lists.openstack.org" target="_blank">openstack-operators@lists.openstack.org</a><br>
<b>Subject:</b> RE: [Openstack-operators] Putting a hypervisor into maintenance / how to get a list of all instance IDs on a host<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">> How about sharing the script if you can get it to a generic state ? This would seem to be an activity that many<br>

> operators would like to be able to do.<br>
> Tim</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<u></u><u></u></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span style><u></u><u></u></span></p>
<p class="MsoNormal"><span style>I *think* it should become part of the Openstack tools just like the evacuate command.<br>
<br>
I'm currently hacking something together in bash for a quick fix.<br>
If it will ever get into a share-able state I'll make sure to do so :)<br>
<br>
Hopefully I will have some time to create a proper python version.<br>
When that happens I'll try to get it into the nova project.<br>
<br>
Cheers,<br>
Robert van Leeuwen<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br></div>