To resolve this issue, remove the compute-clusters from the aggregate before attempting to delete.
To remove from the Horizon dashboard
- Log in to Horizon dashboard as an admin from the VIO public API IP.
- Navigate to Admin > System > Host Aggregates section.
- From the Host Aggregate dropdown, click Manage Hosts.
- Click the minus (-) symbol for each of the associated compute hosts (Also known as compute-clusters).
- Save changes and attempt to delete the Host Aggregate again.
To remove from OpenStack Client
- Download and install the OpenStack client. For more information, see Install the OpenStack client.
Disclaimer: VMware is not responsible for the reliability of any data, opinions, advice, or statements made on third-party websites. Inclusion of such links does not imply that VMware endorses, recommends, or accepts any responsibility for the content of such sites.
- Set the environment variables for easier use. This can be done by sourcing a pre-made RC file or by exporting each variable entering the needed information as shown.
export OS_PROJECT_ID=<Project_ID_Value>
export OS_REGION_NAME=nova
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=<project_Name_The_User_Is_Admin_In>
export OS_PASSWORD=<password>
export OS_AUTH_URL=https://<VIO_Public_API_IP>:5000/v3
export OS_USERNAME=<UserName>
- List out the Host Aggregates.
Example:
~# openstack aggregate list
+----+-----------------+-------------------+
| ID | Name | Availability Zone |
+----+-----------------+-------------------+
| 7 | Lab Aggregate01 | Isolated_Zone |
+----+-----------------+-------------------+
- Show the details of the aggregate to get the host names.
~# openstack aggregate show 7
+-------------------+----------------------------+
| Field | Value |
+-------------------+----------------------------+
| availability_zone | Isolated_Zone |
| created_at | 2017-03-28T21:44:26.000000 |
| deleted | False |
| deleted_at | None |
| hosts | [u'compute01'] |
| id | 7 |
| name | Lab Aggregate01 |
| properties | |
| updated_at | None |
+-------------------+----------------------------+
- Remove the hosts from the aggregate.
~# openstack aggregate remove host 7 compute01
+-------------------+------------------------------------------+
| Field | Value |
+-------------------+------------------------------------------+
| availability_zone | Isolated_Zone |
| created_at | 2017-03-28T21:44:26.000000 |
| deleted | False |
| deleted_at | None |
| hosts | [] |
| id | 7 |
| metadata | {u'availability_zone': u'Isolated_Zone'} |
| name | Lab Aggregate01 |
| updated_at | None |
+-------------------+------------------------------------------+
- Attempt to delete the aggregate again. There is no return output on success.
~# openstack aggregate delete 7
The delete can be confirmed by listing the aggregates a second time.
Note: If there are no remaining host aggregates, the returned output will be empty as shown in the example. Else, the remaining aggregates will be listed without the deleted aggregate.
~# openstack aggregate list