Adding metadata to a host aggregate
The power of host aggregates comes from the ability to use them to logically group hosts based on their properties. This can be used, for example, to enable load balancing, enforce physical separation, or keep instances that are insecure from being scheduled into a secured environment. We will show this by matching the metadata of a host aggregate with that of an instance flavor.
Getting ready
To add metadata to a host aggregate, you will need the following information:
The
openstackcommand-line clientThe
openrcfile containing appropriate credentialsThe name or ID of the aggregate
The metadata property to add
In our example, these values will be the following:
Host aggregate:
cookbook-ssd-hostsMetadata:
ssd=true
How to do it…
To add metadata to host aggregate, use the following process:
Show the existing metadata associated with an aggregate:
openstack aggregate show cookbook-ssd-hostsThis will bring back an output like the following. Note that the
properties...