Creating a host aggregate
After we have enabled OpenStack to allow host aggregate filtering, we can then proceed to create our host aggregates. This recipe will show you how to create a host aggregate.
Getting ready
To create a host aggregate, you will need the following information:
The
openstackcommand-line clientThe
openrcfile containing appropriate credentialsA name for the aggregate
For our example, the host aggregate will be named cookbook-ssd-hosts.
How to do it…
To create a host aggregate, carry out the following steps:
First, we will list the current host aggregates:
openstack aggregate listThis gives an output like the following:

Next, we will create the aggregate:
openstack aggregate create cookbook-ssd-hostsThis will bring back an output like the following:

List the host aggregates:
openstack aggregate listThis gives an output like the following:

How it works…
In Nova, a host aggregate provides OpenStack administrators and operators a mechanism to group hosts based on arbitrary attributes...