[Openstack] nova evacuate error
Diop Samba
samba.diop at nagra.com
Sat Oct 12 12:52:50 UTC 2013
Hi,
I've just found the way to evacuate VMs from a compute to another.
Here is the procedure
1- Shutdown compute2
2- From controller node list VMs on compute2
# nova list --host compute2 --all-tenants
+--------------------------------------+-----------+--------+-----------------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+--------+-----------------------------+
| 17f1e573-ce5d-4a4a-90cc-1a9cd13d1d3c | vm-01 | ACTIVE | NET-111=10.225.33.72 |
+--------------------------------------+-----------+--------+-----------------------------+
3- From controller node move vm-01 from dead compute2 to compute1
isc-ctl-01 14:16:06 ~ # nova evacuate vm-01 compute1 --on-shared-storage
ERROR: No server with a name or ID of 'pts-vm-01' exists
isc-ctl-01 14:16:43 ~ # nova evacuate 17f1e573-ce5d-4a4a-90cc-1a9cd13d1d3c compute1 --on-shared-storage
4- Verify if vm-01 is now running on compute1
isc-ctl-01 14:17:02 ~ # nova list --host compute2 --all-tenants
isc-ctl-01 14:17:08 ~ # nova list --host compute1 --all-tenants
+--------------------------------------+---------------+--------+---------------------------------+
| ID | Name | Status | Networks |
+--------------------------------------+---------------+--------+---------------------------------+
| 79b599e9-85cd-45a0-a7ef-e3e2551f9077 | vm-00 | ACTIVE | NET-112=10.225.33.99 |
| 6db67ab6-04ac-4d8c-bc26-c43af1ab6d4d | vm-02 | ACTIVE | NET-111=10.225.33.71 |
| 17f1e573-ce5d-4a4a-90cc-1a9cd13d1d3c | vm-03 | ACTIVE | NET-111=10.225.33.72 |
+--------------------------------------+---------------+--------+---------------------------------+
That's it.
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...
Samba.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131012/ee25c2e2/attachment.html>
More information about the Openstack
mailing list