Availability zone is not shown when aggregate does not contain any host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
I'm using openstack yoga. The API responce for get availability zones is not consistent. When host aggregate with availability zone is present but does not contain any hosts the availability zone will not be shown at API.
heat@keystone-
+----+-
| ID | Name | Availability Zone |
+----+-
| 8 | test_nova_
+----+-
heat@keystone-
+------
| Field | Value |
+------
| availability_zone | test_nova_
| created_at | 2023-12-
| deleted_at | None |
| hosts | |
| id | 8 |
| is_deleted | False |
| name | test_nova_
| properties | |
| updated_at | None |
| uuid | 889d7afb-
+------
heat@keystone-
+------
| Zone Name | Zone Status |
+------
| internal | available |
| nova | available |
| nova | available |
| nova | available |
| nova | available |
+------
heat@keystone-
+------
| ID | Hypervisor Hostname | Hypervisor Type | Host IP | State |
+------
| 08a4272e-
| bd70cb01-
+------
heat@keystone-
+------
| Field | Value |
+------
| availability_zone | test_nova_
| created_at | 2023-12-
| deleted_at | None |
| hosts | vs-ps-cyyidx2qd
| id | 8 |
| is_deleted | False |
| name | test_nova_
| properties | availability_
| updated_at | None |
| uuid | None |
+------
heat@keystone-
+------
| Zone Name | Zone Status |
+------
| internal | available |
| nova | available |
| test_nova_
| nova | available |
| nova | available |
| nova | available |
+------
Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /902875
Review: https:/