def __init__(self, *args, **kwargs): self.configuration = kwargs.get('configuration', None) if self.configuration: self.configuration.append_config_values(EMC_NAS_OPTS) self.backend_name = self.configuration.safe_get( 'emc_share_backend') else: self.backend_name = CONF.emc_share_backend self.backend_name = self.backend_name or 'EMC_NAS_Storage' self.plugin_manager = manager.EMCPluginManager( namespace='manila.share.drivers.dell_emc.plugins') self.plugin = self.plugin_manager.load_plugin( self.backend_name, configuration=self.configuration) super(EMCShareDriver, self).__init__( self.plugin.driver_handles_share_servers, *args, **kwargs) if hasattr(self.plugin, 'ipv6_implemented'): self.ipv6_implemented = self.plugin.ipv6_implemented if hasattr(self.plugin, 'revert_to_snap_support'): self.revert_to_snap_support = self.plugin.revert_to_snap_support else: self.revert_to_snap_support = False if hasattr(self.plugin, 'shrink_share_support'): self.shrink_share_support = self.plugin.shrink_share_support else: self.shrink_share_support = False
def __init__(self, *args, **kwargs): self.configuration = kwargs.get('configuration', None) if self.configuration: self.configuration.append_config_values(EMC_NAS_OPTS) self.backend_name = self.configuration.safe_get( 'emc_share_backend') else: self.backend_name = CONF.emc_share_backend self.backend_name = self.backend_name or 'EMC_NAS_Storage' self.plugin_manager = manager.EMCPluginManager( namespace='manila.share.drivers.dell_emc.plugins') if self.backend_name == 'vmax': LOG.warning("Configuration option 'emc_share_backend=vmax' will " "remain a valid option until the V release of " "OpenStack. After that, only " "'emc_share_backend=powermax' will be excepted.") self.backend_name = 'powermax' self.plugin = self.plugin_manager.load_plugin( self.backend_name, configuration=self.configuration) super(EMCShareDriver, self).__init__( self.plugin.driver_handles_share_servers, *args, **kwargs) if hasattr(self.plugin, 'ipv6_implemented'): self.ipv6_implemented = self.plugin.ipv6_implemented if hasattr(self.plugin, 'revert_to_snap_support'): self.revert_to_snap_support = self.plugin.revert_to_snap_support else: self.revert_to_snap_support = False if hasattr(self.plugin, 'shrink_share_support'): self.shrink_share_support = self.plugin.shrink_share_support else: self.shrink_share_support = False
def __init__(self, *args, **kwargs): self.configuration = kwargs.get('configuration', None) if self.configuration: self.configuration.append_config_values(EMC_NAS_OPTS) self.backend_name = self.configuration.safe_get( 'emc_share_backend') else: self.backend_name = CONF.emc_share_backend self.backend_name = self.backend_name or 'EMC_NAS_Storage' self.plugin_manager = manager.EMCPluginManager( namespace='manila.share.drivers.dell_emc.plugins') self.plugin = self.plugin_manager.load_plugin(self.backend_name, LOG) super(EMCShareDriver, self).__init__(self.plugin.driver_handles_share_servers, *args, **kwargs)