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:
lin-hua-cheng
2015-05-11 10:48:57 -07:00
parent c27ead4414
commit e30c1c586e

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: