def _init_volume_driver(self, ctxt, driver): LOG.info(_LI("Starting volume driver %(driver_name)s (%(version)s)."), {'driver_name': driver.__class__.__name__, 'version': driver.get_version()}) try: driver.do_setup(ctxt) driver.check_for_setup_error() except Exception: LOG.exception(_LE("Error encountered during initialization of " "driver: %(name)s."), {'name': driver.__class__.__name__}) # we don't want to continue since we failed # to initialize the driver correctly. return driver.set_initialized()
def _init_volume_driver(self, ctxt, driver): LOG.info("Starting volume driver %(driver_name)s (%(version)s).", {'driver_name': driver.__class__.__name__, 'version': driver.get_version()}) try: driver.do_setup(ctxt) driver.check_for_setup_error() except Exception: LOG.exception("Error encountered during initialization of " "driver: %(name)s.", {'name': driver.__class__.__name__}) # we don't want to continue since we failed # to initialize the driver correctly. return driver.set_initialized()