Removing a compute host from a host aggregate

If the properties of a host change, or the needs of an aggregate change, hosts can be removed from a host aggregate.

Getting ready

To remove a host from a host 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

How to do it…

  1. List hosts already in the aggregate with the following command:
    openstack aggregate show cookbook-ssd-hosts
    

    This will bring back an output like the following. Note that the hosts field shows the compute hosts that are currently associated with the host aggregate:

    How to do it…
  2. To remove the compute host from this host aggregate, issue the following command:
    openstack aggregate remove host cookbook-ssd-hosts compute-01
    

    This will bring back the following. Note that in the hosts field, compute-01 is now missing:

    How to do it…

How it works…

Removing a host from a host aggregate tells OpenStack Compute that the additional metadata filters no longer apply and the host can be scheduled as normal.

Tip

Currently, running instances are unaffected by this operation. Operations on host aggregates affect new instance requests only.

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

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