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
This commit is contained in:
parent
7dff244a3b
commit
94bd464ce8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue