Comment 8 for bug 1610309

Revision history for this message
Alexander Zatserklyany (zatserklyany) wrote :

Verified

root@node-1:~# nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
+----+------+-------------------+
root@node-1:~# nova aggregate-create test_zone
+----+-----------+-------------------+-------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-----------+-------------------+-------+----------+
| 1 | test_zone | - | | |
+----+-----------+-------------------+-------+----------+
root@node-1:~# nova aggregate-list
+----+-----------+-------------------+
| Id | Name | Availability Zone |
+----+-----------+-------------------+
| 1 | test_zone | - |
+----+-----------+-------------------+
root@node-1:~# nova aggregate-details 1
+----+-----------+-------------------+-------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-----------+-------------------+-------+----------+
| 1 | test_zone | - | | |
+----+-----------+-------------------+-------+----------+
root@node-1:~# nova aggregate-add-host 1 node-4.test.domain.local
Host node-4.test.domain.local has been successfully added for aggregate 1
+----+-----------+-------------------+----------------------------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-----------+-------------------+----------------------------+----------+
| 1 | test_zone | - | 'node-4.test.domain.local' | |
+----+-----------+-------------------+----------------------------+----------+
root@node-1:~# nova aggregate-details test_zone
+----+-----------+-------------------+----------------------------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-----------+-------------------+----------------------------+----------+
| 1 | test_zone | - | 'node-4.test.domain.local' | |
+----+-----------+-------------------+----------------------------+----------+
root@node-1:~# nova aggregate-list
+----+-----------+-------------------+
| Id | Name | Availability Zone |
+----+-----------+-------------------+
| 1 | test_zone | - |
+----+-----------+-------------------+
root@node-1:~# nova aggregate-remove-host 1 node-4.test.domain.local
Host node-4.test.domain.local has been successfully removed from aggregate 1
+----+-----------+-------------------+-------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+-----------+-------------------+-------+----------+
| 1 | test_zone | - | | |
+----+-----------+-------------------+-------+----------+
root@node-1:~# nova aggregate-list
+----+-----------+-------------------+
| Id | Name | Availability Zone |
+----+-----------+-------------------+
| 1 | test_zone | - |
+----+-----------+-------------------+
root@node-1:~# nova aggregate-delete 1
Aggregate 1 has been successfully deleted.
root@node-1:~# nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
+----+------+-------------------+