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

  1. List hosts that are already in the aggregate:
    openstack aggregate show cookbook-ssd-hosts
    

    This will bring back an output like the following:

  2. Now add the specified compute host ...

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.