7.8. Migrating VMs from an Overcloud Compute Node
novauser with access to other Compute nodes during the migration process. The director creates this key automatically.
openstack-tripleo-heat-templates-0.8.6-135.el7ostpackage and later versions.
openstack-tripleo-heat-templates-0.8.6-135.el7ostpackage or later versions.
Procedure 7.1. Migrating Virtual Machines from the Compute Node
- From the director, source the
overcloudrcand obtain a list of the current Nova services:
$ source ~/stack/overcloudrc $ nova service-list
- Disable the
nova-computeservice on the node to migrate.
$ nova service-disable [hostname] nova-computeThis prevents new VMs from being scheduled on it.
- Begin the process of migrating VMs off the node:
$ nova host-servers-migrate [hostname]
- The current status of the migration process can be retrieved with the command:
$ nova migration-list
- When migration of each VM completes, its state in Nova will change to
VERIFY_RESIZE. This gives you an opportunity to confirm that the migration completed successfully, or to roll it back. To confirm the migration, use the command:
$ nova resize-confirm [server-name]
$ nova service-enable [hostname] nova-compute