Support listing volume availability zones

Bug #1532945 reported by Richard Theis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Richard Theis

Bug Description

Bug #1400795 (https://bugs.launchpad.net/python-openstackclient/+bug/1400795) added support to list compute availability zones. However, availability zones are also supported for volumes.

The "os volume create" command supports creating a volume in a specific availability zone but a user is unable to use the "os availability zone list" command to get a list of volume availability zones.

Richard Theis (rtheis)
summary: - Support listing block storage availability zones
+ Support listing volume availability zones
description: updated
Changed in python-openstackclient:
assignee: nobody → Richard Theis (rtheis)
Revision history for this message
Steve Martinelli (stevemar) wrote :

sounds like`os availability zone list` should also list volume zones too?

Revision history for this message
Richard Theis (rtheis) wrote :

I agree Steve. I was thinking that "os availability zone list" would list compute and volume availability zones with maybe a field noting the zone type (compute versus volume). Then build on this support to add in network availability zones which are recently available in Mitaka.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/267061

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/267598

Revision history for this message
Richard Theis (rtheis) wrote :

Example output listing both compute and volume availability zones:

$ openstack availability zone list
+-----------+-------------+
| Zone Name | Zone Status |
+-----------+-------------+
| internal | available |
| nova | available |
| nova | available |
+-----------+-------------+
$ openstack availability zone list --long
+-----------+-------------+-----------+------------------+--------...-+
| Zone Name | Zone Status | Host Name | Service Name | Service... |
+-----------+-------------+-----------+------------------+--------...-+
| internal | available | myhost | nova-conductor | enabled... |
| internal | available | myhost | nova-consoleauth | enabled... |
| internal | available | myhost | nova-scheduler | enabled... |
| internal | available | myhost | nova-cert | enabled... |
| nova | available | myhost | nova-compute | enabled... |
| nova | available | | | |
+-----------+-------------+-----------+------------------+------------+

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/267061
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=84174440fc9fd4679f3a72d24ed50f0b1927b91d
Submitter: Jenkins
Branch: master

commit 84174440fc9fd4679f3a72d24ed50f0b1927b91d
Author: Richard Theis <email address hidden>
Date: Wed Jan 13 11:36:49 2016 -0600

    Refactor "os availability zone list"

    Refactor the "os availability zone list" command to make it a common
    command instead of a compute-only command. Since availability zones
    are common to compute, volume and network (new), this refactoring
    allows availability zone support to be added for volume and network.

    In addition to the refactor, unit and functional tests were added.

    Change-Id: I63e9d41d229b21cd38e5a083493042c096d65e05
    Partial-Bug: #1532945

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/267598
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=a8ec2ac49475c60c8e72a0fc3db6df778918bb49
Submitter: Jenkins
Branch: master

commit a8ec2ac49475c60c8e72a0fc3db6df778918bb49
Author: Richard Theis <email address hidden>
Date: Thu Jan 14 08:22:09 2016 -0600

    Support listing volume availability zones

    Update the "os availability zone list" command to support listing
    volume availability zones along with the currently listed compute
    availability zones. This adds a --compute and --volume option to
    the command in order to select the availability zones to list. By
    default, all availability zones are listed.

    If the Block Storage API does not support listing availability
    zones then an warning message will be issued.

    Change-Id: I8159509a41bd1fb1b4e77fdbb512cf64a5ac11a9
    Closes-Bug: #1532945

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-openstackclient 2.1.0

This issue was fixed in the openstack/python-openstackclient 2.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.