<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>The idea I like is to unify the migrate and live-migrate APIs. Currently the migrate is scheduled and live-migrate is direct to the host.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>A single migrate call could be scheduled by default, accepting hints for a specific host or zone, with the option to be live or not-live and with or without block migration.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>While resize is very related to migrate, it seems best to keep the more user focused operation separate, but ensuring you can do the scheduler hint would seem reasonable.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Does anyone have any plans to start work on this?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></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"'> openstack-bounces+john.garbutt=citrix.com@lists.launchpad.net [mailto:openstack-bounces+john.garbutt=citrix.com@lists.launchpad.net] <b>On Behalf Of </b>Razique Mahroua<br><b>Sent:</b> 08 January 2013 10:06<br><b>To:</b> Stephen Gran<br><b>Cc:</b> openstack@lists.launchpad.net (openstack@lists.launchpad.net)<br><b>Subject:</b> Re: [Openstack] [Openstack-operators] A concept feature named 'scheduling live migration'<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Nice approach Stephen, thanks for the hint.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><span class=apple-style-span><b><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:#13708A'>Razique Mahroua - Nuage & Co</span></b></span><span class=apple-style-span><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></span></p><div><p class=MsoNormal><a href="mailto:razique.mahroua@gmail.com"><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>razique.mahroua@gmail.com</span></a><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:#13708A'>Tel : +33 9 72 37 94 15</span><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'><br><img border=0 width=125 height=125 id="_x0030_f898be1-f41c-498b-84a9-7845d09c4ae3" src="cid:image001.jpg@01CDED9B.9866F350" alt="cid:image001.jpg@01CDED9B.9866F350"></span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Le 8 janv. 2013 à 11:03, Stephen Gran <<a href="mailto:stephen.gran@guardian.co.uk">stephen.gran@guardian.co.uk</a>> a écrit :<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hi,<br><br>Yes, this is in my mind.  I see it as being in two parts:<br><br>First, there needs to be a scheduler hint and filter so that the<br>scheduler knows not to schedule more VMs for the host in maintenance<br>mode.<br><br>Second, there needs to be a way to ask the scheduler 'where would you<br>put this VM if you were asked to do so' without making the scheduler<br>actually schedule a VM creation, then use that information for live<br>migration destination selection.<br><br>Both of these look relatively straightforward, but they both need<br>doing :)<br><br>Cheers,<br><br>On Tue, 2013-01-08 at 10:49 +0100, Razique Mahroua wrote:<br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hey, <br>this is not a feature I'm aware of at the moment. But I think you can<br>do that by iterating on the instance. The command <br>nova show $instance_id will give you the host the instance is running<br>on. You can use it to loop on a migration process. You can also use a<br>mysql request in order to retrieve all the instances running on that<br>node<br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>OS-EXT-SRV-ATTR:host   X<o:p></o:p></p></blockquote><p class=MsoNormal>Razique Mahroua - Nuage & Co<br><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a><br>Tel : +33 9 72 37 94 15<br><br><br><br>Le 8 janv. 2013 à 03:56, "Yuan, Ye A" <<a href="mailto:ye.a.yuan@intel.com">ye.a.yuan@intel.com</a>> a écrit :<br><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Yep, it seems that our purposes are maintenance/test both.<br>BTW, if one admin/oprator want to maintenance a host, he/she may<br>want to relocate  all instance to another health node.<br>If there is a command just like  ‘nova live-migrate --all’ and<br>he/she need not care about selecting which node as destination, all<br>works will be done by nova-scheduler.<br><br>Best wishes,<br>Yale Yuan<br><br>From: Razique Mahroua [<a href="mailto:razique.mahroua@gmail.com">mailto:razique.mahroua@gmail.com</a>] <br>Sent: Monday, January 07, 2013 4:56 PM<br>To: Yuan, Ye A<br>Cc: <a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a><br>Subject: Re: [Openstack-operators] A concept feature named<br>'scheduling live migration'<br><br>Hi Yuan ,<br>would it be similar somehow to the feature which allows you to<br>disable a service via keystone on a server?<br>see : <a href="https://bugs.launchpad.net/keystone/+bug/1048662">https://bugs.launchpad.net/keystone/+bug/1048662</a><br><br>Razique Mahroua - Nuage & Co<br><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a><br>Tel : +33 9 72 37 94 15<br><br><image001.jpg><br><br>Le 7 janv. 2013 à 09:01, "Yuan, Ye A" <<a href="mailto:ye.a.yuan@intel.com">ye.a.yuan@intel.com</a>> a<br>écrit :<br><br><br><br>Hi all,<br>There is a feature in my mind just as below:<br>In VMware, admin can use maintenance mode to set a host to entering<br>maintenance mode, in which the host does not allow you to deploy or<br>power on a virtual machine until all running virtual machines are<br>powered down or migrated to different hosts.<br>So, if there is a feature that enable scheduler while live migration<br>rather than use destination hostname argument in shell command ‘nova<br>live-migration <instance-uuid> <hostname>’, OpenStack can implement<br>maintenance mode too. In other words, operator can migrate instance<br>without specific destination hostname.<br>If anyone has some suggestions, please feel free to let me know.<br><br>Best wishes,<br>Yale Yuan<br><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">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><o:p></o:p></p></blockquote><p class=MsoNormal><br><br>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><o:p></o:p></p></blockquote><p class=MsoNormal style='margin-bottom:12.0pt'><br>-- <br>Stephen Gran<br>Senior Systems Integrator - <a href="http://guardian.co.uk">guardian.co.uk</a><br><br>Please consider the environment before printing this email.<br>------------------------------------------------------------------<br>Visit <a href="http://guardian.co.uk">guardian.co.uk</a> - website of the year<br><br><a href="http://www.guardian.co.uk">www.guardian.co.uk</a>    <a href="http://www.observer.co.uk">www.observer.co.uk</a>     <a href="http://www.guardiannews.com">www.guardiannews.com</a> <br><br>On your mobile, visit <a href="http://m.guardian.co.uk">m.guardian.co.uk</a> or download the Guardian<br>iPhone app <a href="http://www.guardian.co.uk/iphone">www.guardian.co.uk/iphone</a> and iPad edition <a href="http://www.guardian.co.uk/iPad">www.guardian.co.uk/iPad</a> <br><br>Save up to 37% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. <br>Visit <a href="http://guardian.co.uk/subscribe">guardian.co.uk/subscribe</a><br><br>---------------------------------------------------------------------<br>This e-mail and all attachments are confidential and may also<br>be privileged. If you are not the named recipient, please notify<br>the sender and delete the e-mail and all attachments immediately.<br>Do not disclose the contents to another person. You may not use<br>the information for any purpose, or store, or copy, it in any way.<br><br>Guardian News & Media Limited is not liable for any computer<br>viruses or other material transmitted with or as part of this<br>e-mail. You should employ virus checking software.<br><br>Guardian News & Media Limited<br><br>A member of Guardian Media Group plc<br>Registered Office<br>PO Box 68164<br>Kings Place<br>90 York Way<br>London<br>N1P 2AP<br><br>Registered in England Number 908396<o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>