diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-03 19:57:14 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-03 19:57:14 +0000 |
commit | 42da97575d2d93669808b659a72a171647493fbe (patch) | |
tree | 8c7c496c42171bb855c19929bd3ddd7a4539c6a0 /ironic | |
parent | 1b81e4ed02c9fd27b5527ac8927981d705cbac6a (diff) | |
parent | 04d8552721f1c68f0364ce16a1b1e341f560daf2 (diff) | |
download | ironic-42da97575d2d93669808b659a72a171647493fbe.tar.gz |
Merge "Log an actual error message when failed to load new style credentials"
Diffstat (limited to 'ironic')
-rw-r--r-- | ironic/conf/auth.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ironic/conf/auth.py b/ironic/conf/auth.py index 26dcdac1e..8b3f1503d 100644 --- a/ironic/conf/auth.py +++ b/ironic/conf/auth.py @@ -17,8 +17,10 @@ import copy from keystoneauth1 import exceptions as kaexception from keystoneauth1 import loading as kaloading from oslo_config import cfg +from oslo_log import log +LOG = log.getLogger(__name__) LEGACY_SECTION = 'keystone_authtoken' OLD_SESSION_OPTS = { 'certfile': [cfg.DeprecatedOpt('certfile', LEGACY_SECTION)], @@ -35,7 +37,9 @@ cfg.CONF.import_group(LEGACY_SECTION, 'keystonemiddleware.auth_token') def load_auth(conf, group): try: auth = kaloading.load_auth_from_conf_options(conf, group) - except kaexception.MissingRequiredOptions: + except kaexception.MissingRequiredOptions as exc: + LOG.debug('Failed to load credentials from group %(grp)s: %(err)s', + {'grp': group, 'err': exc}) auth = None return auth |