summaryrefslogtreecommitdiff
path: root/ironic/conductor/base_manager.py
diff options
context:
space:
mode:
authorRuby Loo <ruby.loo@intel.com>2017-01-31 20:13:45 +0000
committerRuby Loo <ruby.loo@intel.com>2017-01-31 20:13:45 +0000
commit94bd464ce88fdbd43aa46d61ad625aa06e1b5278 (patch)
treef6829b8fff92a6b1577a3935ad58b87935b88eb1 /ironic/conductor/base_manager.py
parent7dff244a3be921500e0f02a9dd4a47885e363498 (diff)
downloadironic-94bd464ce88fdbd43aa46d61ad625aa06e1b5278.tar.gz
Log reason for hardware type registration failure
The log string 'Failed to register hardware types' doesn't provide much help as to what went wrong. This adds the reason (exception message) to the log. Change-Id: I941e35473f48c636134d5df31087d0ddbcacf44a Partial-Bug: #1524745
Diffstat (limited to 'ironic/conductor/base_manager.py')
-rw-r--r--ironic/conductor/base_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/conductor/base_manager.py b/ironic/conductor/base_manager.py
index 0957923b2..30b9f2dc0 100644
--- a/ironic/conductor/base_manager.py
+++ b/ironic/conductor/base_manager.py
@@ -154,9 +154,9 @@ class BaseConductorManager(object):
self._register_and_validate_hardware_interfaces()
except (exception.DriverLoadError, exception.DriverNotFound,
exception.ConductorHardwareInterfacesAlreadyRegistered,
- exception.InterfaceNotFoundInEntrypoint):
+ exception.InterfaceNotFoundInEntrypoint) as e:
with excutils.save_and_reraise_exception():
- LOG.error(_LE('Failed to register hardware types'))
+ LOG.error(_LE('Failed to register hardware types. %s'), e)
self.del_host()
# TODO(jroll) validate here that at least one driver OR