unable to set/get cinder quota

asked 2016-08-15 05:18:08 -0500

itaiw gravatar image

updated 2016-08-16 01:01:05 -0500

Bipin gravatar image

running Liberty on Centos 7.2. I'm trying to create a volume larger than 1TB but failing due to exceeding quota limitation:

[root@cinder2 cinder]# cinder create 4096
ERROR: VolumeSizeExceedsAvailableQuota: Requested volume or snapshot exceeds allowed gigabytes quota. Requested 4096G, quota is 1000G and 4G has been consumed. (HTTP 413) (Request-ID: req-63361662-cb53-4b82-a984-c005ac64b16d)**
trying to configure quota using three methods I found, and I'm failing with all of them:
 - using cinder quota-* commands
 - configuring quotas on cinder.conf / cinder.quota file
 - using horizon

Using CLI trying to get and reset and quota using the instructions on http://docs.openstack.org/admin-guide... - it fails due to server error: [

root@cinder2 cinder]# cinder --debug quota-show babb319f540e4daa927002be95f90921
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneclient.session:RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Connection: Keep-Alive Date: Mon, 15 Aug 2016 09:47:53 GMT Content-Type: application/json x-openstack-request-id: req-9a9a49bd-0898-4e85-8bee-c25d8baab82b
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://controller:8776/v2/a4ff4e5d4310422dae78df323c3ec95a/os-quota-sets/babb319f540e4daa927002be95f90921?usage=False -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4654883ceebe014c5d5a3dd9d62a41d0736b969f"
DEBUG:keystoneclient.session:RESP: [500] Content-Length: 128 X-Compute-Request-Id: req-88311f82-07dc-437c-83ef-080c9f021c78 Connection: keep-alive Date: Mon, 15 Aug 2016 09:47:54 GMT Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-88311f82-07dc-437c-83ef-080c9f021c78
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-88311f82-07dc-437c-83ef-080c9f021c78)

got the same output from any cinder quota-* command. using the project id for admin as received from 'openstack project list' command and as described with the admin guide.

Using cinder.quota

following the instructions on http://docs.openstack.org/liberty/config-reference/content/section_cinder.conf.html
no matter if i'm using /etc/cinder/cinder.conf or /etc/cinder/cinder.quota (the later does not exist ; but referred on openstack admin guide on this page) - configuring these parameters and restarting openstack-cinder services (api and volume ) - does not make any change to quota - I'm still getting the error of exceeding 1TB volume on *cinder create* command

using horizon

when clicking Identity -> Projects -> <selecting any project> -> Actions -> modify quotas - 
nothing is being displayed. got no error message
I manage to do other actions (such as deleting volumes) via the dashboard...

any help will be appreciated Itai

edit retag flag offensive close merge delete