Merge "Improve messaging on keystone connection issue"

This commit is contained in:
Jenkins 2015-05-12 09:27:28 +00:00 committed by Gerrit Code Review
commit 9f301cfa2a

View File

@ -107,6 +107,10 @@ class KeystoneBackend(object):
try:
unscoped_auth_ref = unscoped_auth.get_access(session)
except keystone_exceptions.ConnectionRefused as exc:
LOG.error(str(exc))
msg = _('Unable to establish connection to keystone endpoint.')
raise exceptions.KeystoneAuthException(msg)
except (keystone_exceptions.Unauthorized,
keystone_exceptions.Forbidden,
keystone_exceptions.NotFound) as exc: