summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2014-10-08 20:15:54 -0500
committerAngus Salkeld <asalkeld@mirantis.com>2014-10-10 18:52:34 +1000
commit1e9b2cdd9004c5e1fa3bb1a27830d75ebaebe20c (patch)
tree83f884464b00bd4990afaf4f22f4149e9921e96a
parent170069d540342ced4dc3fdb3df6619395dd56c6f (diff)
downloadheat-1e9b2cdd9004c5e1fa3bb1a27830d75ebaebe20c.tar.gz
Update references to auth_token middleware
There's references to the auth_token middleware in keystoncelient. The auth_token middleware has been moved to keystonemiddleware and the version in keystoneclient shouldn't be used anymore. If these references aren't updated, then when options are changed in keystonemiddleware.auth_token the heat-api will fail to start because there's duplicate options in keystoneclient.middleware.auth_token. Change-Id: I04573aa5ff967afe3e00329f797fcc71b779e7b3 Closes-Bug: #1379082
-rw-r--r--contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py2
-rw-r--r--contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py2
-rw-r--r--etc/heat/heat.conf.sample28
-rw-r--r--heat/api/aws/ec2token.py2
-rw-r--r--heat/common/auth_url.py2
-rw-r--r--heat/common/heat_keystoneclient.py4
-rw-r--r--heat/tests/test_api_ec2token.py2
-rw-r--r--heat/tests/test_heatclient.py2
-rw-r--r--tools/config/oslo.config.generator.rc2
9 files changed, 36 insertions, 10 deletions
diff --git a/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py b/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
index 95938a6be..6fd189522 100644
--- a/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
+++ b/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
@@ -119,7 +119,7 @@ class KeystoneClientV2(object):
@staticmethod
def _service_admin_creds():
# Import auth_token to have keystone_authtoken settings setup.
- importutils.import_module('keystoneclient.middleware.auth_token')
+ importutils.import_module('keystonemiddleware.auth_token')
creds = {
'username': cfg.CONF.keystone_authtoken.admin_user,
diff --git a/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py b/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py
index 8fd056749..3bdeea9be 100644
--- a/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py
+++ b/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py
@@ -33,7 +33,7 @@ class KeystoneClientTest(HeatTestCase):
self.ctx = utils.dummy_context()
# Import auth_token to have keystone_authtoken settings setup.
- importutils.import_module('keystoneclient.middleware.auth_token')
+ importutils.import_module('keystonemiddleware.auth_token')
dummy_url = 'http://server.test:5000/v2.0'
cfg.CONF.set_override('auth_uri', dummy_url,
diff --git a/etc/heat/heat.conf.sample b/etc/heat/heat.conf.sample
index cce268340..8917857e6 100644
--- a/etc/heat/heat.conf.sample
+++ b/etc/heat/heat.conf.sample
@@ -1078,7 +1078,7 @@
[keystone_authtoken]
#
-# Options defined in keystoneclient.middleware.auth_token
+# Options defined in keystonemiddleware.auth_token
#
# Prefix to prepend at the beginning of the path. Deprecated,
@@ -1195,6 +1195,32 @@
# value)
#memcache_secret_key=<None>
+# (optional) number of seconds memcached server is considered
+# dead before it is tried again. (integer value)
+#memcache_pool_dead_retry=300
+
+# (optional) max total number of open connections to every
+# memcached server. (integer value)
+#memcache_pool_maxsize=10
+
+# (optional) socket timeout in seconds for communicating with
+# a memcache server. (integer value)
+#memcache_pool_socket_timeout=3
+
+# (optional) number of seconds a connection to memcached is
+# held unused in the pool before it is closed. (integer value)
+#memcache_pool_unused_timeout=60
+
+# (optional) number of seconds that an operation will wait to
+# get a memcache client connection from the pool. (integer
+# value)
+#memcache_pool_conn_get_timeout=10
+
+# (optional) use the advanced (eventlet safe) memcache client
+# pool. The advanced pool will only work under python 2.x.
+# (boolean value)
+#memcache_use_advanced_pool=false
+
# (optional) indicate whether to set the X-Service-Catalog
# header. If False, middleware will not ask for service
# catalog on token validation and will not set the X-Service-
diff --git a/heat/api/aws/ec2token.py b/heat/api/aws/ec2token.py
index 921720068..b332edd97 100644
--- a/heat/api/aws/ec2token.py
+++ b/heat/api/aws/ec2token.py
@@ -66,7 +66,7 @@ class EC2Token(wsgi.Middleware):
else:
# Import auth_token to have keystone_authtoken settings setup.
# We can use the auth_uri from the keystone_authtoken section
- importutils.import_module('keystoneclient.middleware.auth_token')
+ importutils.import_module('keystonemiddleware.auth_token')
return cfg.CONF.keystone_authtoken['auth_uri']
@staticmethod
diff --git a/heat/common/auth_url.py b/heat/common/auth_url.py
index d80b10350..24e562280 100644
--- a/heat/common/auth_url.py
+++ b/heat/common/auth_url.py
@@ -34,7 +34,7 @@ class AuthUrlFilter(wsgi.Middleware):
return self.conf['auth_uri']
else:
# Import auth_token to have keystone_authtoken settings setup.
- auth_token_module = 'keystoneclient.middleware.auth_token'
+ auth_token_module = 'keystonemiddleware.auth_token'
importutils.import_module(auth_token_module)
return cfg.CONF.keystone_authtoken.auth_uri
diff --git a/heat/common/heat_keystoneclient.py b/heat/common/heat_keystoneclient.py
index c2aecc3c3..378cf7b48 100644
--- a/heat/common/heat_keystoneclient.py
+++ b/heat/common/heat_keystoneclient.py
@@ -79,7 +79,7 @@ class KeystoneClientV3(object):
self.v3_endpoint = self.context.auth_url.replace('v2.0', 'v3')
else:
# Import auth_token to have keystone_authtoken settings setup.
- importutils.import_module('keystoneclient.middleware.auth_token')
+ importutils.import_module('keystonemiddleware.auth_token')
self.v3_endpoint = cfg.CONF.keystone_authtoken.auth_uri.replace(
'v2.0', 'v3')
@@ -219,7 +219,7 @@ class KeystoneClientV3(object):
def _service_admin_creds(self):
# Import auth_token to have keystone_authtoken settings setup.
- importutils.import_module('keystoneclient.middleware.auth_token')
+ importutils.import_module('keystonemiddleware.auth_token')
creds = {
'username': cfg.CONF.keystone_authtoken.admin_user,
'password': cfg.CONF.keystone_authtoken.admin_password,
diff --git a/heat/tests/test_api_ec2token.py b/heat/tests/test_api_ec2token.py
index 47d6e20b3..98635d0ab 100644
--- a/heat/tests/test_api_ec2token.py
+++ b/heat/tests/test_api_ec2token.py
@@ -499,7 +499,7 @@ class Ec2TokenTest(HeatTestCase):
def test_call_ok_auth_uri_ks_authtoken(self):
# Import auth_token to have keystone_authtoken settings setup.
- importutils.import_module('keystoneclient.middleware.auth_token')
+ importutils.import_module('keystonemiddleware.auth_token')
dummy_url = 'http://123:5000/v2.0'
cfg.CONF.set_override('auth_uri', dummy_url,
group='keystone_authtoken')
diff --git a/heat/tests/test_heatclient.py b/heat/tests/test_heatclient.py
index 008b63d64..282052e6c 100644
--- a/heat/tests/test_heatclient.py
+++ b/heat/tests/test_heatclient.py
@@ -30,7 +30,7 @@ from heat.tests import utils
cfg.CONF.import_opt('region_name_for_services', 'heat.common.config')
cfg.CONF.import_group('keystone_authtoken',
- 'keystoneclient.middleware.auth_token')
+ 'keystonemiddleware.auth_token')
class KeystoneClientTest(HeatTestCase):
diff --git a/tools/config/oslo.config.generator.rc b/tools/config/oslo.config.generator.rc
index f13aa773f..67249c454 100644
--- a/tools/config/oslo.config.generator.rc
+++ b/tools/config/oslo.config.generator.rc
@@ -1,3 +1,3 @@
-export HEAT_CONFIG_GENERATOR_EXTRA_MODULES=keystoneclient.middleware.auth_token
+export HEAT_CONFIG_GENERATOR_EXTRA_MODULES=keystonemiddleware.auth_token
export HEAT_CONFIG_GENERATOR_EXTRA_LIBRARIES="heat.common.config heat.common.wsgi oslo.messaging oslo.db"
export HEAT_CONFIG_GENERATOR_EXCLUDED_FILES="heat/common/config.py heat/common/wsgi.py heat/openstack/common/sslutils.py"