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 create the aggregate:
    openstack aggregate create cookbook-ssd-hosts
    

    This will bring back an output like the following:

    How to do it…
  3. List the host aggregates:
    openstack aggregate list
    

    This gives an output like the following:

    How to do it…

How it works…

In Nova, a host aggregate provides OpenStack administrators and operators a mechanism to group hosts based on arbitrary attributes that are later used for controlling what compute hosts service a user's request. Creating a host aggregate is done with the openstack aggregate create name command.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.56.216