Description of problem: cinder.conf is missing the configuration for keystone. When I run: [stack@lorenzo ~]$ cinder quota-defaults usage: cinder quota-defaults <tenant_id> error: too few arguments Try 'cinder help quota-defaults' for more information. [stack@lorenzo ~]$ cinder quota-usage e7deeeae1d9546d7974b4248e59b2267 ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-e364038b-8235-4a7c-956d-c473cc469545) [stack@lorenzo ~]$ cinder quota-defaults admin ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-37d619d9-c3ab-43ca-b138-4333ed8cec13) Looking in the cinder-api log: 2016-01-04 16:13:25.824 49472 ERROR cinder.api.middleware.fault [req-bc8fbc8d-0b1b-4e8d-8c63-6b7a1f6b1070 - - - - -] Caught error: Authorization failed: Unable to establish connection to http://localhost:5000/v3/auth/tokens Then, in cinder.conf [keystone_authtoken] ^ is blank.
adding the following to cinder.conf fixed the problem : [keymgr] encryption_auth_url=http://172.21.33.10:5000/v3
Created attachment 1118037 [details] logs
Tested using: python-cinder-7.0.1-5.el7ost.noarch openstack-cinder-7.0.1-5.el7ost.noarch python-cinderclient-1.4.0-1.el7ost.noarch Results: [stack@instack ~]$ cinder quota-defaults admin ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-f60b6596-67d8-46f3-b35d-e8704b7151de) [stack@instack ~]$ cinder quota-defaults 3a85e4a722e64171be1f495f3c47ccc8 ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-4ca2c204-2921-4421-aceb-a1b0037759d1) From cinder-api.log: 2016-01-25 08:54:34.939 2527 ERROR cinder.api.middleware.fault [req-4ca2c204-2921-4421-aceb-a1b0037759d1 895a2cab60e449939bc1764458f305a3 3a85e4a722e64171be1f495f3c47ccc8 - - -] Caught error: Not enough information to determine URL. Provide either auth_url or endpoint 2016-01-25 08:54:34.941 2527 INFO cinder.api.middleware.fault [req-4ca2c204-2921-4421-aceb-a1b0037759d1 895a2cab60e449939bc1764458f305a3 3a85e4a722e64171be1f495f3c47ccc8 - - -] http://192.0.2.6:8776/v2/3a85e4a722e64171be1f495f3c47ccc8/os-quota-sets/3a85e4a722e64171be1f495f3c47ccc8/defaults returned with HTTP 500
Created attachment 1122447 [details] log excerpt from python-cinder-7.0.1-5.el7ost.noarch modified to fix logging After modifying cinder/api/middleware/fault.py FaultWrapper _error to use LOG.exception for "Caught error", I see this error: # cinder quota-defaults admin ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-3c9e8a28-ffa2-4019-9968-f30fefac8097) # rpm -q python-cinder python-cinder-7.0.1-5.el7ost.noarch
The current issue, fixed by the upstream patch 262162, is that Cinder only works w/ keystoneclient v3. Will backport this additional fix to remedy that problem.
*** Bug 1305926 has been marked as a duplicate of this bug. ***
Tested using: python-cinderclient-1.5.0-1.el7ost.noarch openstack-cinder-7.0.1-6.el7ost.noarch python-cinder-7.0.1-6.el7ost.noarch Results: [stack@instack ~]$ cinder quota-defaults bb5b83f3957140dab90527540e28f07a +----------------------+-------+ | Property | Value | +----------------------+-------+ | backup_gigabytes | 1000 | | backups | 10 | | gigabytes | 1000 | | per_volume_gigabytes | -1 | | snapshots | 10 | | volumes | 10 | +----------------------+-------+
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-0603.html