Bug 1295576
Summary: | Cinder quota calls fail when encryption_auth_url is not set | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Joe Talerico <jtaleric> | ||||||
Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | ||||||
Status: | CLOSED ERRATA | QA Contact: | lkuchlan <lkuchlan> | ||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 8.0 (Liberty) | CC: | bkopilov, eharney, jschluet, jtaleric, mburns, mcornea, mlopes, mtanino, rhel-osp-director-maint, sasha, sgotliv, tbarron, yeylon | ||||||
Target Milestone: | ga | Keywords: | Triaged | ||||||
Target Release: | 8.0 (Liberty) | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | openstack-cinder-7.0.1-6.el7ost | Doc Type: | Bug Fix | ||||||
Doc Text: |
Previously, a bug in the cinder API server quota code used `encryption_auth_url` when it should have used `auth_uri`.
Consequently, cinder failed to talk to keystone when querying quota information, causing the client to receive HTTP 500 errors from cinder.
This issue has been resolved in 7.0.1.
Fix: Fixed in Cinder API service in 7.0.1, resulting in expected behavior of the cinder quota commands.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-04-07 21:16:51 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 1293391 | ||||||||
Bug Blocks: | 1295992 | ||||||||
Attachments: |
|
Description
Joe Talerico
2016-01-04 22:32:44 UTC
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 |