<div dir="ltr">Hi Alex,<div><br></div><div style>I would like to have REST API in the end, which I can make this by clicking on a web. </div><div style><br></div><div style>But in short term, a nova-manage script sounds good. Because the REST API may be harder to debug. And by using nova-manage we can prove these action (put-into-<font face="arial, sans-serif">maintenance, evacuate, migrate, etc.) really work in host-failed situation. And make these action more robust. Then we can think up some helpful REST API to combine all these steps to recover an VM.</font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">What do you think?</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/21 Endre Karlson <span dir="ltr"><<a href="mailto:endre.karlson@gmail.com" target="_blank">endre.karlson@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would say that having worked in a enterprise environment before sometimes we would get calls from a tech wanting to do it asap or you just have the need to do it "now". It would be very nice to have a option to the command like "nova maintenance --evacuate <host>" or something similar which would basically put it into maintenance mode and evac it.<span class="HOEnZb"><font color="#888888"><div>

<br></div><div>Endre.</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/19 Alex Glikson <span dir="ltr"><<a href="mailto:GLIKSON@il.ibm.com" target="_blank">GLIKSON@il.ibm.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Was great to see many stackers at the summit!<br>
<br>
Following-up on one of the design discussions, the consensus seemed to be<br>
that the operation which puts a host in maintenance mode should probably<br>
only disable further provisioning requests to that host, while the<br>
orchestration of migrating the individual instances from that host should<br>
be done separately, potentially even outside of Nova. One possible approach<br>
could be to use the admin API to list all the instances on a particular<br>
host, and then to migrate each of them (potentially using the option not to<br>
specify the target host, in which case the new placement will be selected<br>
by the scheduler). Similar approach may apply to recovery of instances from<br>
a failed host, using 'evacuate' API.<br>
<br>
It would be great to understand how people might want to have this<br>
capability surfaced and consumed by the administrator. A script (somehow<br>
shared with the community)? REST API? (provided by which component?) part<br>
of nova-manage? something else?<br>
<br>
Would appreciate your feedback (especially if you manage OpenStack clouds<br>
and is interested in this capability).<br>
<br>
Thanks,<br>
Alex<br>
<br>
P.S. one additional item on our todo list is to enable usage of scheduler<br>
hints when applying the individual migration operations<br>
P.P.S. similar scenarios might be also implemented for Cinder storage<br>
nodes, ones the new volume migration feature gets implemented<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">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" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>