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 thevinfra service compute server set
andvinfra service compute volume set
commands.
Prerequisites
- Placements for compute nodes are created, as described in Creating placements.
- Before deleting a placement, ensure that its assignments are removed by following instructions in Changing placement assignment.
To edit a placement
Admin panel
- On the Compute > Nodes > Placements tab, select the required placement, and then click Edit on its right pane.
-
Enter a new name or change the description, and then click Save.
A description should not contain any personally identifiable information or sensitive business data.
Command-line interface
Use the following command:
vinfra service compute placement update [--name <name>] [--description <description>] [--non-isolated | --isolated] <placement>
--name <placement-name>
- A new name for the placement
--description <placement-description>
-
A new description for the placement
A description should not contain any personally identifiable information or sensitive business data.
--non-isolated
- Make the placement non-isolated (soft policy)
--isolated
- Make the placement isolated (hard policy)
For example, to rename the placement placement1
to placement2
, run:
# vinfra service compute placement update --name placement2 placement1
To delete a placement
Admin panel
- On the Compute > Nodes > Placements tab, select the required placement.
- On the placement right pane, click Delete.
- 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