<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div> </div>
<div>I’ve just found the way to evacuate VMs from a compute to another.</div>
<div>Here is the procedure</div>
<div> </div>
<ol style="margin:0;padding-left:36pt;">
<li>Shutdown compute2</li></ol>
<div style="padding-left:36pt;"> </div>
<ol start="2" style="margin:0;padding-left:36pt;">
<li>From controller node list VMs on compute2</li></ol>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;"># nova list --host compute2 --all-tenants</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">+--------------------------------------+-----------+--------+-----------------------------+</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">| ID                                   | Name      | Status | Networks                    |</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">+--------------------------------------+-----------+--------+-----------------------------+</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">| 17f1e573-ce5d-4a4a-90cc-1a9cd13d1d3c | vm-01      | ACTIVE | NET-111=10.225.33.72               |</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">+--------------------------------------+-----------+--------+-----------------------------+</span></font></div>
<ol start="3" style="margin:0;padding-left:36pt;">
<li>From controller node move vm-01 from dead compute2 to compute1</li></ol>
<div style="padding-left:36pt;"> </div>
<div style="padding-left:36pt;">isc-ctl-01 14:16:06 ~ # nova evacuate vm-01 compute1 --on-shared-storage</div>
<div style="padding-left:36pt;">ERROR: No server with a name or ID of 'pts-vm-01' exists</div>
<div style="padding-left:36pt;"> </div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">isc-ctl-01 14:16:43 ~ # nova evacuate 17f1e573-ce5d-4a4a-90cc-1a9cd13d1d3c  compute1 --on-shared-storage</span></font></div>
<div style="padding-left:36pt;"> </div>
<ol start="4" style="margin:0;padding-left:36pt;">
<li>Verify if vm-01 is now running on compute1</li></ol>
<div style="padding-left:36pt;"> </div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">isc-ctl-01 14:17:02 ~ # nova list --host compute2 --all-tenants</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;"> </span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">isc-ctl-01 14:17:08 ~ # nova list --host compute1 --all-tenants</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">+--------------------------------------+---------------+--------+---------------------------------+</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">| ID                                   | Name          | Status | Networks                        |</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">+--------------------------------------+---------------+--------+---------------------------------+</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">| 79b599e9-85cd-45a0-a7ef-e3e2551f9077 | vm-00         | ACTIVE | NET-112=10.225.33.99             |</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">| 6db67ab6-04ac-4d8c-bc26-c43af1ab6d4d | vm-02         | ACTIVE | NET-111=10.225.33.71            |</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">| 17f1e573-ce5d-4a4a-90cc-1a9cd13d1d3c | vm-03         | ACTIVE | NET-111=10.225.33.72            |</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">+--------------------------------------+---------------+--------+---------------------------------+</span></font></div>
<div> </div>
<div>That’s it.</div>
<div>Next step will be monitoring compute hosts with zabbix and trigger an evacuation if one of them is unavailable during a small period of time…</div>
<div> </div>
<div>Samba.</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>