]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Update quota_utils with import for keystone_auth
authorRyan McNair <rdmcnair@us.ibm.com>
Wed, 2 Mar 2016 00:07:14 +0000 (00:07 +0000)
committerRyan McNair <rdmcnair@us.ibm.com>
Thu, 3 Mar 2016 19:37:32 +0000 (19:37 +0000)
Currently, keystone_auth config group is only getting defined in
the cinder-api service. In order to be able to use the quota_utils
helper from both the c-api and c-vol, we need to make sure that
the CONF.keystone_authtoken always gets imported. This is needed
to properly handle nested quota deletes which occur in the c-vol
service.

Change-Id: I3ebb9979d37f62db161e2929fe2cff5a8ba2bf96

cinder/quota_utils.py

index d7cd82a4754c4b224d3a1cbc16a9bc5c4fb8cd71..d99507ba4ca3ba5bb48066d2ba053bfdd22a97c9 100644 (file)
@@ -27,7 +27,8 @@ from cinder import exception
 from cinder.i18n import _, _LW
 
 CONF = cfg.CONF
-
+CONF.import_opt('auth_uri', 'keystonemiddleware.auth_token.__init__',
+                'keystone_authtoken')
 
 LOG = logging.getLogger(__name__)