<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nice approach Stephen, thanks for the hint.<div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Razique Mahroua</b></span><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; color: rgb(19, 112, 138); "><b> - </b></span><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Nuage & Co</b></span><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="font-weight: normal; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; "><font class="Apple-style-span" color="#13708a"><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; "><font class="Apple-style-span" color="#13708a">Tel : +33 9 72 37 94 15</font></div></span><br class="Apple-interchange-newline"><span></span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; "></span><span style="color: rgb(0, 0, 0); font-weight: normal; "></span></span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span><span><span><img height="125" width="125" id="0f898be1-f41c-498b-84a9-7845d09c4ae3" apple-width="yes" apple-height="yes" src="cid:00E07450-433E-43E6-9005-48B8FD5C669F@la.fabrique"></span>
</span></span></span></span></span></span></div>
<br><div><div>Le 8 janv. 2013 à 11:03, Stephen Gran <<a href="mailto:stephen.gran@guardian.co.uk">stephen.gran@guardian.co.uk</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">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><blockquote type="cite">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><blockquote type="cite">OS-EXT-SRV-ATTR:host   X<br></blockquote>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" <ye.a.yuan@intel.com> a écrit :<br><br><blockquote type="cite">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 [mailto:razique.mahroua@gmail.com] <br>Sent: Monday, January 07, 2013 4:56 PM<br>To: Yuan, Ye A<br>Cc: openstack-operators@lists.openstack.org<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 : https://bugs.launchpad.net/keystone/+bug/1048662<br><br>Razique Mahroua - Nuage & Co<br>razique.mahroua@gmail.com<br>Tel : +33 9 72 37 94 15<br><br><image001.jpg><br><br>Le 7 janv. 2013 à 09:01, "Yuan, Ye A" <ye.a.yuan@intel.com> 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>OpenStack-operators@lists.openstack.org<br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators<br></blockquote><br><br>_______________________________________________<br>Mailing list: https://launchpad.net/~openstack<br>Post to     : openstack@lists.launchpad.net<br>Unsubscribe : https://launchpad.net/~openstack<br>More help   : https://help.launchpad.net/ListHelp<br></blockquote><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<br><br></blockquote></div><br></div></body></html>