Limits in OpenStack Block Storage API v1 Reference  - API v1 and extensions

Bug #1358786 reported by Catherine Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Atsushi SAKAI

Bug Description

09:31 jclayton: hey cbs peeps...does anyone know if there is a way to obtain the gigabytes_SATA and gigabytes_SSD limits that are being set now via the API? hitting /limits only shows hte old "gigabytes" limit
09:36 cory: jclayton: it should be the same call
09:36 jclayton: hrm...it only reported gigabytes last i checked a day or two ago
09:36 jclayton: let me check now
09:36 cory: jclayton: let me see
09:37 cory: also, what call are you making?
09:37 jclayton: sec, i'll verify for you
09:38 cory: when I quota-show on my own account, I get this:
09:38 cory: +----------------+-------+
09:38 cory: | Property | Value |
09:38 cory: +----------------+-------+
09:38 cory: | gigabytes | 10240 |
09:38 cory: | gigabytes_SATA | -1 |
09:38 cory: | gigabytes_SSD | -1 |
09:38 cory: | snapshots | -1 |
09:38 cory: | snapshots_SATA | -1 |
09:38 cory: | snapshots_SSD | -1 |
09:38 cory: | volumes | 50 |
09:38 cory: | volumes_SATA | -1 |
09:38 cory: | volumes_SSD | -1 |
09:38 jclayton: https://gist.github.com/halfshellhero/1838ec6cad25954095a4
09:38 cory: +----------------+-------+
09:38 jclayton: direct calls to the api via curl don't show that...and i can't see it reported within pyrax (which i'm assuming is just hitting /limits
09:39 cory: yeah, don't hit limits
09:39 jclayton: fair enough
09:39 jclayton: what else can i hit?
09:39 cory: I don't even know why limits exists :)
09:39 cory: here:
09:39 jclayton: lol, good
09:39 cory: curl -i https://dfw.blockstorage.api.rackspacecloud.com/v1/681365/os-quota-sets/681365?usage=True -X GET -H "X-Auth-Project-Id: 681365" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: supersecret"
09:40 cory: if you leave off the usage=True, you'll get just the quota
09:40 cory: if you include it, you'll also get usage
09:40 cory: +----------------+--------+----------+-------+
09:40 cory: | Type | In_use | Reserved | Limit |
09:40 cory: +----------------+--------+----------+-------+
09:40 cory: | gigabytes | 200 | 0 | 10240 |
09:40 cory: | gigabytes_SATA | 200 | 0 | -1 |
09:40 cory: | gigabytes_SSD | 0 | 0 | -1 |
09:40 cory: | snapshots | 5 | 0 | -1 |
09:40 cory: | snapshots_SATA | 0 | 0 | -1 |
09:40 cory: | snapshots_SSD | 0 | 0 | -1 |
09:40 cory: | volumes | 2 | 0 | 50 |
09:40 cory: | volumes_SATA | 2 | 0 | -1 |
09:40 cory: | volumes_SSD | 0 | 0 | -1 |
09:40 cory: +----------------+--------+----------+-------+
09:42 jclayton: yeah that's helpful thank you
09:42 jclayton: why is that not documented!?
09:43 cory: it should be
09:44 cory: actually we just recently opened up the quota endpoint for users
09:44 jclayton: i'm not seeing it anywhere specifically in docs.rackspace.com
09:44 cory: gotcha
09:44 jclayton: but i might see it at api.rackspace.com
09:44 flemingo has joined (<email address hidden>)
09:44 cory: yeah, it's probably not there
09:44 cory: catherine: ^^^ :)
09:45 cory: the server's quota stuff isn't very fleshed out either
09:45 cory: ah, they still talk about the limits
09:45 jclayton: yeah that would be awesome to have in the docs; but very helpful for what i need immediately
09:45 cory: tsk tsk
09:45 jclayton: thank you!
09:45 jclayton: can i hit that os-quota-sets for other endpoints as well?
09:45 jclayton: ie servers lbaas monitors etc?
09:46 jclayton: could just start testing myself to find that answer as well =)
09:46 cory: jclayton: I don't know
09:46 jclayton: fair enough
09:46 jclayton: i think this should allow me to move forward with fixing my tool though; thanks again
09:47 cory: catherine: I see openstack docs for the client quota stuff, but I'm not sure about the api: http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
09:47 catherine: cory: Thanks! I'll see what I can do about this.
09:47 catherine: cory: Will send any questions/changes to you if that is OK.
09:48 cory: and this is the old limits api that has been wrong forever: http://docs.openstack.org/api/openstack-block-storage/1.0/content/Limits-d1e1208.html
09:48 cory: but even the docs there are basically empty
-----------------------------------
Built: 2014-08-18T19:38:09 00:00
git SHA: 6f7bb70ead2e484d312275a4c8fe899b05c0dd8f
URL: http://docs.openstack.org/api/openstack-block-storage/1.0/content/Limits-d1e1208.html
source File: file:/home/jenkins/workspace/volume-api-tox-doc-publishdocs/v1/bk_blockstorage_api_ref_v1.xml
xml:id: Limits-d1e1208

Tom Fifield (fifieldt)
affects: openstack-manuals → openstack-api-site
Changed in openstack-api-site:
status: New → Triaged
importance: Undecided → Medium
milestone: none → juno
Revision history for this message
Anne Gentle (annegentle) wrote :

The file docs.openstack.org/api/openstack-block-storage/1.0/content/Limits-d1e1208.html has been moved to the cinder-specs repo and is now output here: http://specs.openstack.org/openstack/cinder-specs/specs/api/v2/limits.html

Edit the source file in https://github.com/openstack/cinder-specs/blob/master/specs/api/v2/limits.rst

Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: juno → kilo
Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: kilo → liberty
Atsushi SAKAI (sakaia)
Changed in openstack-api-site:
assignee: nobody → Atsushi SAKAI (sakaia)
Revision history for this message
Atsushi SAKAI (sakaia) wrote :

I am looking around its source code.
it seems to be "usages" not "usage"
which is correct?

https://github.com/openstack/cinder/commit/a3af3f87f5ca95e9b400dc15e7593746d01bc43a

Revision history for this message
Atsushi SAKAI (sakaia) wrote :

I recognized two person uses different word one uses usages and one uses usage.

usages
https://github.com/openstack/cinder/commit/a3af3f87f5ca95e9b400dc15e7593746d01bc43a

usage
https://github.com/openstack/cinder/commit/775ca024659f8733bf498d0e6a5cf725321bdd29

and URL query uses usage
https://github.com/openstack/cinder/blob/stable/kilo/cinder/api/contrib/quotas.py#L88

I think it should be unify in source code.
I have not strong opinion usage or usages selection.

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/208330

Changed in openstack-api-site:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on api-site (master)

Change abandoned by Atsushi SAKAI (<email address hidden>) on branch: master
Review: https://review.openstack.org/208330
Reason: Failed to submission

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/208340

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

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

commit 6ce0b225641a492ff2d407f06959c412fb2a38e2
Author: Atsushi SAKAI <email address hidden>
Date: Mon Aug 3 15:44:19 2015 +0900

    Add 'usage' flag description for block storage

    Remove duplicate common.ent file in v1 and point
    to the common.ent file in v2

    Change-Id: I9ad5cf226934e892fc7369a89c1b4fc85d502b6c
    Closes-Bug: #1358786

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

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

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

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

commit d70b09600efef5e4a6a173b8192b63539afff7a9
Author: Atsushi SAKAI <email address hidden>
Date: Thu Aug 13 21:00:14 2015 +0900

    Add block storage v1 Quota sets extension (os-quota-sets)

    Update ch_blockstorage-api-v1.xml file to include WADL
    file for the os-quota-sets extension

    It should be fixed on #1358786

    Change-Id: I085d68ffa92f0e66e16ad35443bfb2a90c581521
    Related-Bug: #1358786

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.