Removing a compute host from a host aggregate
If the properties of a host change, or the needs of an aggregate change, hosts can be removed from a host aggregate.
Getting ready
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
How to do it…
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:
How it works…
Removing a host from a host aggregate tells OpenStack Compute that the additional...