[Openstack] cleanup hypervisor after nova evacuate

yang sheng forsaks.30 at gmail.com
Mon May 23 21:08:15 UTC 2016


Hi

I am running openstack liberty on Centos 7 using KVM and ceph backend and
testing the nova evacuation function.

After booting vms with bootable volume, I shutdown the hypervisor A.

With "Nova evacuate" command, instances were moved to hypervisor B
successfully.

Then I booted the hypervisor A again.

when I do "virsh list --all" on hypervisor A, the instances were still
there (in shut off status) and the instances state files are also in
/var/lib/nova/instances.

I checked openstack wiki (https://wiki.openstack.org/wiki/Evacuate), it is
said that "When/if the failed node is back online, further self cleanup is
performed".

I think the "cleanup" will also undefine the vm from hypervisor and delete
the xml files, doesn't it?

in the nova-compute.log,  nova realized the inconsistency (vms has been
moved to other nodes). However, it seems like trying to resize the
instance???

here is the nova-compute.log:
2016-05-23 16:46:05.661 1360 WARNING nova.compute.manager
[req-58c84fea-43f8-4249-ba0d-6e1568570a89 - - - - -] While synchronizing
instance power states, found 0 instances in the database and 3 instances on
the hypervisor.
2016-05-23 16:46:53.088 1360 INFO nova.compute.resource_tracker
[req-58c84fea-43f8-4249-ba0d-6e1568570a89 - - - - -] Auditing locally
available compute resources for node compute2
2016-05-23 16:46:54.551 1360 WARNING nova.compute.resource_tracker
[req-58c84fea-43f8-4249-ba0d-6e1568570a89 - - - - -] [instance:
8b2cf5da-8286-460f-86cf-7a8f3c00b934] Instance not resizing, skipping
migration.
2016-05-23 16:46:54.581 1360 WARNING nova.compute.resource_tracker
[req-58c84fea-43f8-4249-ba0d-6e1568570a89 - - - - -] [instance:
c2ac3308-27e8-4b6e-b014-2c7e110a95af] Instance not resizing, skipping
migration.
2016-05-23 16:46:54.613 1360 WARNING nova.compute.resource_tracker
[req-58c84fea-43f8-4249-ba0d-6e1568570a89 - - - - -] [instance:
9b77ccbf-f120-49e3-b6c3-3593a4fb444b] Instance not resizing, skipping
migration.
2016-05-23 16:46:54.614 1360 INFO nova.compute.resource_tracker
[req-58c84fea-43f8-4249-ba0d-6e1568570a89 - - - - -] Total usable vcpus: 4,
total allocated vcpus: 0

thanks for any advice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160523/4f6ccf79/attachment.html>


More information about the Openstack mailing list