You can live-migrate an OpenStack instance to a different compute node.

Note: Instances managed by VMware Integrated OpenStack must be migrated by using OpenStack commands. Do not use vCenter Server or other methods to migrate OpenStack instances.

Prerequisites

  • The source and target compute nodes must both be located within the same vCenter Server instance.
  • The source and target compute nodes must have at least one distributed switch in common. If two distributed switches are attached to the source compute node but only one distributed switch is attached to the target compute node, live migration will succeed but the OpenStack instance will be connected only to the port group of the distributed switch common to both compute nodes.
  • Instances with a CD-ROM drive attached cannot be live-migrated.

Procedure

  1. Log in to the OpenStack Management Server as viouser.
  2. Log in to the controller node as viouser.
  3. Switch to the root user and load the cloud administrator credentials file.
    sudo su -
    source ~/cloudadmin.rc
  4. If a volume is attached to the instance, prepare the volume for migration.
    viocli ds-migrate-prep datacenter-name datastore-name

    Specify the name of the vSphere data center and datastore that contain the volume attached to the instance.

  5. Migrate the instance to the desired compute node.
    openstack server migrate compute-name instance-uuid --live
    • To find the name of a compute node, run the openstack host list command and view the Host Name column.
    • To find the UUID of the instance, run the openstack server list command and view the ID column.

What to do next

You can run the openstack server show instance-uuid command to confirm that the instance has been migrated to the desired compute node.