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