Add a 'service' column to the openstack availability zone list output to avoid confusion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Opinion
|
Undecided
|
Unassigned |
Bug Description
The default 'nova' AZ shouldn't be requested by regular users when creating a server, and according to the compute API reference, it's not shown for non-admins:
https:/
"You can list the available availability zones by calling the os-availability
However, the OSC CLI behavior is different than the nova CLI behavior in this respect:
stack@rocky:~$ source devstack/openrc demo
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
stack@rocky:~$ nova availability-
+------
| Name | Status |
+------
| az2 | available |
+------
stack@rocky:~$ openstack availability zone list
+------
| Zone Name | Zone Status |
+------
| az2 | available |
| nova | available |
| nova | available |
| nova | available |
+------
stack@rocky:~$
That is for non-admin. If I'm an admin, I see this:
stack@rocky:~$ openstack aggregate list
+----+-
| ID | Name | Availability Zone |
+----+-
| 1 | az2 | az2 |
+----+-
stack@rocky:~$ nova availability-
+------
| Name | Status |
+------
| internal | available |
| |- rocky | |
| | |- nova-conductor | enabled :-) 2018-04-
| | |- nova-scheduler | enabled :-) 2018-04-
| | |- nova-consoleauth | enabled :-) 2018-04-
| az2 | available |
| |- rocky | |
| | |- nova-compute | enabled :-) 2018-04-
+------
stack@rocky:~$ openstack availability zone list
+------
| Zone Name | Zone Status |
+------
| internal | available |
| az2 | available |
| nova | available |
| nova | available |
| nova | available |
+------
stack@rocky:~$
stack@rocky:~$ pip show python-
Name: python-
Version: 3.15.0
This was from a devstack (rocky) created today:
stack@rocky: ~/devstack$ git log -1 71ece56b2e51cd7 9ab713625d
commit 935a89801b838ab
Merge: 22855eb a62ede7
Author: Zuul <email address hidden>
Date: Sun Apr 8 14:05:16 2018 +0000
Merge "Use NOVA_BIN_DIR / SWIFT_BIN_DIR for binaries" ~/devstack$
stack@rocky: