summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-02-02 16:32:19 +0000
committerGerrit Code Review <review@openstack.org>2017-02-02 16:32:19 +0000
commit0c195604f6e0bc214309193eb0de0a46677626a5 (patch)
treeb4555e2ec338a3ea752263db0828ea5a2ee3b0e9
parent87f39581eb5afdb00c8fa752fdaf6c6e18c436f2 (diff)
parent57b1f948187730716ff2bec4acb4cffb78e9a22c (diff)
downloaddjango_openstack_auth-ocata-em.tar.gz
Merge "Add info logs to plugin scoping"ocata-em3.1.1
-rw-r--r--openstack_auth/plugin/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openstack_auth/plugin/base.py b/openstack_auth/plugin/base.py
index 4b520b4..f1aff52 100644
--- a/openstack_auth/plugin/base.py
+++ b/openstack_auth/plugin/base.py
@@ -181,6 +181,8 @@ class BasePlugin(object):
scoped_auth_ref = scoped_auth.get_access(session)
except (keystone_exceptions.ClientException,
keystone_exceptions.AuthorizationFailure):
+ LOG.info('Attempted scope to project %s failed, will attempt'
+ 'to scope to another project.' % project.name)
pass
else:
break
@@ -227,6 +229,8 @@ class BasePlugin(object):
domain_auth_ref = domain_auth.get_access(session)
except (keystone_exceptions.ClientException,
keystone_exceptions.AuthorizationFailure):
+ LOG.info('Attempted scope to domain %s failed, will attempt'
+ 'to scope to another domain.' % domain_name)
pass
else:
if len(domains) > 1: