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
openstackcommand-line clientThe
openrcfile 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-hostsThis will bring back an output like the following. Note that the
hostsfield 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-01This will bring back the following. Note that in the
hostsfield,compute-01is now missing:
How it works…
Removing a host from a host aggregate tells OpenStack Compute that the additional...