Editing and deleting placements
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.
- You cannot delete a placement that has nodes, images, or flavors.
- After deleting a placement, it is not automatically unassigned from virtual machines and volumes. To clean up placements from VMs and volumes, use the
--no-placements
option for thevinfra service compute server set
andvinfra service compute volume set
commands described in the Administrator Command Line Guide.
Prerequisites
- Placements for compute nodes are created, as described in Creating placements.
To assign a placement to a node
- On the Compute > Nodes > Placements tab, click the required placement.
- Go to the Nodes tab, and then click Add.
- Select the nodes to assign the placement to, and then click Add.
To assign a placement to an image
- Open the Compute > Nodes > Placements tab, and then click the required placement.
- On the Properties tab, click Add in the Images section.
- 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
Refer to the vinfra service compute placement assign
command in the Administrator Command Line Guide.
To rename a placement
- On the Compute > Nodes > Placements tab, select the required placement, and then click Edit on its right pane.
- Enter a new name, and then click Save.
To delete a placement
- On the Compute > Nodes > Placements tab, select the required placement.
- On the Properties tab, remove assigned images, if any.
- Go to the Nodes tab and remove assigned nodes, if any.
- On the placement right pane, click Delete.
- In the confirmation window, click Delete placement.