Comment 2 for bug 1655445

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"}}'