If the properties of a host change, or the needs of an aggregate change, hosts can be removed from a host aggregate.
To remove a host from a host aggregate, you will need the following information:
The
openstack
command-line clientThe
openrc
file containing appropriate credentialsThe name or ID of the aggregate
The name or ID of the host
List hosts already in the aggregate with the following command:
openstack aggregate show cookbook-ssd-hosts
This will bring back an output like the following. Note that the
hosts
field shows the compute hosts that are currently associated with the host aggregate:To remove the compute host from this host aggregate, issue the following command:
openstack aggregate remove host cookbook-ssd-hosts compute-01
This will bring back the following. Note that in the
hosts
field,compute-01
is now missing: