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 openstack command-line client
  • The openrc file containing appropriate credentials
  • A 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:

  1. First, we will list the current host aggregates:
    openstack aggregate list
    

    This gives an output like the following:

    How to do it…
  2. Next, we will ...

Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.