Improve messaging on keystone connection issue
When connection could not be establish to keystone, it mostly caused by misconfiguration. Updating the error message to make it easier to troubleshooting. Change-Id: I292838e57474f524f9b2910e6c22648d41006207 Closes-Bug: #1452955
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user