Merge "Log reason for hardware type registration failure"

This commit is contained in:
Jenkins
2017-02-01 14:17:27 +00:00
committed by Gerrit Code Review

View File

@@ -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