Cannot update subnetpool quota

Bug #1655445 reported by Julian Sy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Invalid
Undecided
Unassigned
python-openstackclient
Fix Released
Undecided
Unassigned

Bug Description

Using the client, I'm unable to set the subnetpool quota.

$ neutron quota-update --subnetpool 1
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Must specify a valid resource with new quota value

Revision history for this message
Victor Morales (electrocucaracha) wrote :

Given that python-neutronclient is going to be deprecated and this is supported by "$ openstack quota set" command this bug can be invalidated.

Changed in python-neutronclient:
status: New → Invalid
Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

This issue exists in OpenstackClient.
Neutron API doesnt need the project ID while setting quota.

With neutron quota-update --subnet 2000

DEBUG: keystoneauth.session REQ: curl -g -i -X PUT http://10.0.4.186:9696/v2.0/quotas/0dd3213dd9ed42659d474bc7cba793d5.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ae7062eb8dda3ffe1a9685cd6fda5ca454851798" -d '{"quota": {"subnet": 2000}}'

With neutron quota set --subnet 2000
REQ: curl -g -i -X PUT http://10.0.4.186:9696/v2.0/quotas/0dd3213dd9ed42659d474bc7cba793d5 -H "User-Agent: openstacksdk/0.9.12 keystoneauth1/2.16.0 python-requests/2.12.4 CPython/2.7.5" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}8290d3e99d88d624eae01bf4bd80f328bc84965e" -d '{"quota": {"subnetpool": 1, "id": "0dd3213dd9ed42659d474bc7cba793d5"}}'

Changed in python-openstackclient:
assignee: nobody → Reedip (reedip-banerjee)
Changed in python-openstackclient:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

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

commit 0340275fa9b48cda5a5f4015534ca8cbca23b3d2
Author: Huanxuan Ao <email address hidden>
Date: Sun Jan 15 14:37:49 2017 +0800

    Fix quota set command error for SDK > 0.9.10

    A bug in OpenStack SDK 0.9.11 and 0.9.12 that causes
    quota set command to fail. This can be removed when
    the proposed SDK fix (https://review.openstack.org/#/c/419911/)
    is released and in the minimum SDK version in global requirements.

    Closes-Bug: #1655445
    Change-Id: I63132f5f762f0120282f8b92e72512763063e3c6

Changed in python-openstackclient:
status: Confirmed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.8.0

This issue was fixed in the openstack/python-openstackclient 3.8.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.