Managing placements
Most high-level operations on placements (“traits” in OpenStack terminology) involve multiple requests to multiple endpoints. This section lists steps required to perform each operation on a placement. Examples of each step are provided in linked subsections.
Create a placement:
- Create a trait. Refer to Creating traits.
- Create a host aggregate named after the trait. Refer to Creating host aggregates.
- Add the trait to host aggregate’s metadata. Refer to Updating aggregate metadata.
Add a host to a placement:
- List resource providers and identify the one you need. Refer to Listing resource providers.
- Associate the trait with the resource provider. Refer to Updating resource provider traits.
- Add the host to the host aggregate associated with the trait. Refer to Adding hosts to aggregates.
Remove a host from a placement:
- Remove the host from the host aggregate associated with the trait. Refer to Removing hosts from aggregates.
- Disassociate the trait from the resource provider. Refer to Updating resource provider traits.
Add an image to or remove an image from a placement:
- Update the image details. Refer to Updating images.
List placements:
- List custom traits to identify the one you need. Refer to Listing traits.
- List host aggregates and find the one associated with the trait. Refer to Listing host aggregates.
- List images associated with the trait. Refer to Listing images.
Delete a placement:
- Remove all hosts from the host aggregate associated with the trait. Refer to Removing hosts from aggregates.
- Delete the host aggregate. Refer to Deleting host aggregates.
- Remove the trait from details of images. Refer to Updating images.
- Remove the trait from resource providers. Refer to Updating resource provider traits.
- Delete the trait. Refer to Deleting traits.