Before a host aggregate can be used by OpenStack Compute, you must first add hosts to the aggregate groups created.
To add a host to an aggregate, you will need the following information:
openstack
command-line clientopenrc
file containing appropriate credentialsFor the following example, the required values are as follows:
cookbook-ssd-hosts
compute-01
The following process is used to add a host to a host aggregate:
openstack aggregate show cookbook-ssd-hosts
This will bring back an output like the following:
openstack aggregate add host cookbook-ssd-hosts compute-01
This will bring back an output like the following:
The openstack aggregate host add
command associates a host with a host aggregate in the Nova database. This information is then used by the Nova Scheduler to make decisions about where to place an instance. If the metadata of the host aggregate matches that of the flavor or a particular project a user is in, an instance can be scheduled to a host within the aggregate.
3.149.244.101