Adding a compute host to a host aggregate
Before a host aggregate can be used by OpenStack Compute, you must first add hosts to the aggregate groups created.
Getting ready
To add a host to an 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
For the following example, the required values are as follows:
Host aggregate:
cookbook-ssd-hosts
Compute host:
compute-01
How to do it…
The following process is used to add a host to a host aggregate:
List hosts that are already in the aggregate:
openstack aggregate show cookbook-ssd-hosts
This will bring back an output like the following:
Now add the specified compute host to this aggregate as follows:
openstack aggregate add host cookbook-ssd-hosts compute-01
This will bring back an output like the following:
How it works…
The openstack aggregate host add
command associates a host with a host aggregate in the Nova database...