Remove images and nodes from a compute placement:
usage: vinfra service compute placement delete-assign (--image <images> | --node <nodes> | --flavor <flavors>) <placement>
- An image ID or name to remove from a compute placement
- A compute node ID or hostname to remove from a compute placement
- A flavor ID or name to remove from a compute placement
- Placement ID or name
A virtual machine is assigned a placement when it is created from an image with the placement assigned. A VM can also inherit a placement from a volume created with an assigned image (refer to "Creating, editing, and removing volumes" in the Self-Service Guide). However, a VM does not inherit the placement and changes to it from the node. For example, if you add a node with existing VMs to a placement, only the node will have the placement. The VMs will not inherit the same placement. Likewise, if you have a node and VMs on it assigned to the same placement, and you delete such a node from a placement, only the node will change the placement. The VMs on it will still keep the original placement.
If you need to edit the VM placement, use the vinfra service compute server set command. Make sure that the node and its VMs have the same placement configuration.
# vinfra service compute placement delete-assign \ --image b23e23e8-7338-4a09-a827-3c9c509cf35c placement1 Operation successful.
This command removes the image with the ID
b23e23e8-7338-4a09-a827-3c9c509cf35c from the placement