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:
openstack
command line clientopenrc
file containing appropriate credentialsThe following steps can be used to remove an AZ:
openstack availability zone list
This will bring back an output like the following:
openstack aggregate show cookbook-az
This will bring back an output like the following:
openstack aggregate remove host cookbook-az compute-01
This will bring back the following output:
aggregate delete
command:openstack aggregate delete cookbook-az
openstack availability zone list
This will bring back an output like the following, showing that our AZ has been removed:
In order to remove an AZ, it must first have no active hosts. Because AZs are a special case of host aggregates, the commands for identifying and removing hosts from an AZ are the same. Once you have removed the hosts, the openstack aggregate delete [name]
command is used to complete the removal of the AZ.
3.143.5.15