Changing placement assignment

Limitations

  • After adding a node to a placement, VMs already hosted on the node will not be automatically assigned this placement.
  • A virtual machine that is assigned a placement can only be migrated between nodes in this placement. When adding nodes to placements, make sure to provide migration options for various scenarios, including high availability and maintenance. Avoid situations when VMs cannot migrate because of limitations imposed by placements. In this case, a VM placement can be edited, as described in Managing virtual machines in placements.

Prerequisites

To assign a placement to a node

Admin panel

  1. On the Compute > Nodes > Placements tab, click the required placement.
  2. Go to the Nodes tab, and then click Add.
  3. Select the nodes to assign the placement to, and then click Add.

To assign a placement to an image

Admin panel

  1. Open the Compute > Nodes > Placements tab, and then click the required placement.
  2. On the Properties tab, click Add in the Images section.
  3. Select one or more images to assign the placement to, and then click Add.

When you select this image while creating a VM, the corresponding placement will be selected automatically.

To assign a placement to a flavor

Use the following command:

vinfra service compute placement assign --flavors <flavors> <placement>
--flavors <flavors>
A comma-separated list of flavor IDs or names to assign a compute placement to
<placement>
Placement ID or name

For example, to assign the placement placement1 to the flavor 102, run:

# vinfra service compute placement assign --flavors 102 placement1

To remove placement assignments

Admin panel

  1. On the Compute > Nodes > Placements tab, click the required placement.
  2. On the Properties tab, click the bin icon next to an image to remove it.
  3. Go to the Nodes tab, and click the bin icon next to a node to remove it.