From c01b5bb4ac67f960a250ea19d39922444fe593c6 Mon Sep 17 00:00:00 2001 From: Marc Koderer Date: Wed, 23 Mar 2016 11:35:14 +0100 Subject: [PATCH] Increase logging for driver initialization Many drivers rely on a restful api which can cause a TCP timeout/hang during manila-share startup. Trivial-fix Change-Id: Ie1a26c88957d6e723998bd6b62d2f62c9adb3f7d --- manila/share/manager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manila/share/manager.py b/manila/share/manager.py index efba6806..dab9daf4 100644 --- a/manila/share/manager.py +++ b/manila/share/manager.py @@ -244,6 +244,10 @@ class ShareManager(manager.SchedulerDependentManager): """Initialization for a standalone service.""" ctxt = context.get_admin_context() + LOG.debug("Start initialization of driver: '%(driver)s" + "@%(host)s'", + {"driver": self.driver.__class__.__name__, + "host": self.host}) try: self.driver.do_setup(ctxt) self.driver.check_for_setup_error() @@ -320,6 +324,10 @@ class ShareManager(manager.SchedulerDependentManager): ) self.publish_service_capabilities(ctxt) + LOG.info(_LI("Finished initialization of driver: '%(driver)s" + "@%(host)s'"), + {"driver": self.driver.__class__.__name__, + "host": self.host}) def _provide_share_server_for_share(self, context, share_network_id, share_instance, snapshot=None,