Removing an AZ is a multistep process, and has some caveats. To remove an AZ, you must first remove the hosts from the host aggregate.
The following information is required to remove an AZ:
The
openstack
command line clientThe
openrc
file containing appropriate credentialsThe name or ID of the AZ
The following steps can be used to remove an AZ:
First, list the AZs available with the following command:
openstack availability zone list
This will bring back an output like the following:
Now list the hosts within the AZ that we want to delete:
openstack aggregate show cookbook-az
This will bring back an output like the following:
Now remove the hosts with following command (repeat as necessary for each host in the aggregate):
openstack aggregate remove host cookbook-az compute-01
This will bring back the following output:
Remove the AZ using the
aggregate delete
command:openstack aggregate delete cookbook-az