Editing and deleting placements

Limitations

  • 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 the vinfra service compute server set and vinfra service compute volume set commands.

Prerequisites

To rename a placement

Admin panel

  1. On the Compute > Nodes > Placements tab, select the required placement, and then click Edit on its right pane.
  2. Enter a new name, and then click Save.

Command-line interface

Use the following command:

vinfra service compute placement update [--name <placement-name>] <placement>
--name <placement-name>
A new name for the placement

For example, to rename the placement placement1 to placement2, run:

# vinfra service compute placement update --name placement2 placement1

To delete a placement

Admin panel

  1. On the Compute > Nodes > Placements tab, select the required placement.
  2. On the placement right pane, click Delete.
  3. In the confirmation window, click Delete placement.

Command-line interface

Use the following command:

vinfra service compute placement delete <placement>
<placement>
Placement ID or name

For example, to delete the placement placement1, run:

# vinfra service compute placement delete placement1