Failed to show network quotas for a project

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

Bug Description

With the move to the SDK for the network client, showing network quotas for a project now fails. The 'openstack quota show' command needs to be updated to use the SDK to get the network quotas.

$ openstack quota show admin
'Proxy' object has no attribute 'show_quota'

In order to fix this problem in the OpenStackClient, the SDK must be
updated to support getting quotas for a project.

Richard Theis (rtheis)
Changed in python-openstackclient:
assignee: nobody → Richard Theis (rtheis)
Richard Theis (rtheis)
Changed in python-openstacksdk:
assignee: nobody → Richard Theis (rtheis)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstacksdk (master)

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

Changed in python-openstacksdk:
status: New → In Progress
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/260232

Changed in python-openstackclient:
status: New → In Progress
Changed in python-openstackclient:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/260133
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=6d8113cf2c548e394c60fc31da5265b986ac0237
Submitter: Jenkins
Branch: master

commit 6d8113cf2c548e394c60fc31da5265b986ac0237
Author: Richard Theis <email address hidden>
Date: Mon Dec 21 11:52:40 2015 -0600

    Add Quota RUD and missing properties

    Update the Quoto object to support read, update and delete. In
    addition, explicitly parse the subnet_pools, security_group_rules,
    security_groups and rbac_policies properties for the Quota object.
    These changes are based on the networking v2 API [1].

    [1] http://developer.openstack.org/api-ref-networking-v2-ext.html

    Change-Id: I93a6969e271521595c8a109e22bce0b6486196fa
    Closes-Bug: #1528249

Changed in python-openstacksdk:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-openstacksdk (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/265975

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/265975
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=6b9414c219ac6c866b19765772376caf2c4cf98c
Submitter: Jenkins
Branch: master

commit 6b9414c219ac6c866b19765772376caf2c4cf98c
Author: Richard Theis <email address hidden>
Date: Mon Jan 11 12:04:23 2016 -0600

    Update Quota documentation and properties

    Update the network proxy documentation for the Quota resource to
    note that a quota ID is the same as its project ID. Also rename
    the following Quota resource properties per review comment in [1]:
      - floating_ip -> floating_ips
      - network -> networks
      - port -> ports
      - router -> routers
      - subnet -> subnets

    [1] https://review.openstack.org/#/c/260133/2

    Change-Id: I9533d4c0abbdedf9f7fdfdae454c594a01477ccf
    Related-Bug: #1528249

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

Related fix proposed to branch: master
Review: https://review.openstack.org/272616

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

Change abandoned by Richard Theis (<email address hidden>) on branch: master
Review: https://review.openstack.org/272616

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

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

commit 5d1a93362da1109a9f49c32c142a8a4df0a97a9e
Author: Richard Theis <email address hidden>
Date: Mon Dec 21 16:17:34 2015 -0600

    Fix showing network quotas for a project

    The OpenStack SDK is now used for the network client. However,
    the 'openstack quota show' command wasn't updated for the
    client change. As a result, the command will fail to show
    network quotas when a project name is specified. For example:

      $ openstack quota show admin
      'Proxy' object has no attribute 'show_quota'

    This patch set fixes the command by using the OpenStack SDK
    to get network quotas for a project.

    Change-Id: I59a7b6780a7b80cd09e79d40d214751b25d3016e
    Related-To: blueprint neutron-client
    Closes-Bug: #1528249

Changed in python-openstackclient:
status: In Progress → Fix Released
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.

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

Related fix proposed to branch: master
Review: https://review.openstack.org/279722

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

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

commit ea0b8f91627f5ef4a89f23e391a5733032bccc0e
Author: Richard Theis <email address hidden>
Date: Fri Feb 12 12:48:33 2016 -0600

    Add quota functional tests

    Add functional tests for "os quota" commands.

    Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409
    Related-Bug: #1528249
    Partially-Implements: blueprint neutron-client

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

Other bug subscribers

Related blueprints

Remote bug watches

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