API reference "Get customer limits" should be corrected

Bug #1477014 reported by Takahiro Kojima
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Takahiro Kojima

Bug Description

In "Compute API v2 extensions (SUPPORTED)",
"Get customer limits" API is described as "GET /v2/{tenant_id}/limits/{tenant_id}"
but it should be corrected to "GET /v2/{tenant_id}/limits?tenant_id={tenant_id}"

http://developer.openstack.org/api-ref-compute-v2-ext.html#getCustomerLimits

[Representation]
$ source openrc
$ export TOKEN=`keystone token-get | grep ' id ' | awk '{print $4}'`
$ export TENANTID=`keystone tenant-list | grep ' admin ' | awk '{print $2}'`
$ curl -i -X GET -H "x-auth-token:${TOKEN}" -H "content-type:application/json" http://10.124.243.23:8774/v2/${TENANTID}/limits/${TENANTID}
HTTP/1.1 501 Not Implemented
Content-Length: 130
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-5a23dcab-c259-40a7-a1fd-8a96337d4540
Date: Wed, 22 Jul 2015 08:17:35 GMT

$ curl -i -X GET -H "x-auth-token:${TOKEN}" -H "content-type:application/json" http://10.124.243.23:8774/v2/${TENANTID}/limits?tenant_id=${TENANTID}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 511
X-Compute-Request-Id: req-37fca18d-2f78-48c3-b782-a6bf52d55849
Date: Wed, 22 Jul 2015 08:18:17 GMT

{"limits": {"rate": [], "absolute": {"maxServerMeta": 128, "maxPersonality": 5, "totalServerGroupsUsed": 0, "maxImageMeta": 128, "maxPersonalitySize": 10240, "maxServerGroups": 10, "maxSecurityGroupRules": 20, "maxTotalKeypairs": 100, "totalCoresUsed": 0, "totalRAMUsed": 0, "totalInstancesUsed": 0, "maxSecurityGroups": 10, "totalFloatingIpsUsed": 0, "maxTotalCores": 20, "totalSecurityGroupsUsed": 0, "maxTotalFloatingIps": 10, "maxTotalInstances": 10, "maxTotalRAMSize": 51200, "maxServerGroupMembers": 10}}}

Changed in openstack-api-site:
assignee: nobody → Takahiro Kojima (kojima-takahiro)
Anne Gentle (annegentle)
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Changed in openstack-api-site:
status: Confirmed → In Progress
Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: none → liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/205488
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=c88eda41058a7c37c65d0ebf7a71d3c742349577
Submitter: Jenkins
Branch: master

commit c88eda41058a7c37c65d0ebf7a71d3c742349577
Author: Takahiro Kojima <email address hidden>
Date: Fri Jul 24 19:31:43 2015 +0900

    Fix API reference "Limits with project usage for administrators (limits)"

    In the API, the tenant ID should be specified in the form of
    not "/{tenant_id}" but "?tenant_id={tenant_id}"

    Closes-Bug: #1477014

    Change-Id: I2e2674ebadd6044f7c0db7cbd9c6b0e957e09f79

Changed in openstack-api-site:
status: In Progress → Fix Released
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.