Ejemplo n.º 1
0
 def __init__(self):
     self._diskutils = utilsfactory.get_diskutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = pathutils.PathUtils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vmops = vmops.VMOps()
     self._api = api.API()
Ejemplo n.º 2
0
 def __init__(self):
     self._diskutils = utilsfactory.get_diskutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = pathutils.PathUtils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vmops = vmops.VMOps()
     self._api = api.API()
Ejemplo n.º 3
0
    def __init__(self, root_helper=None, *args, **kwargs):
        super(BaseWindowsConnector, self).__init__(root_helper,
                                                   *args, **kwargs)
        self.device_scan_interval = kwargs.pop(
            'device_scan_interval', self.DEFAULT_DEVICE_SCAN_INTERVAL)

        self._diskutils = utilsfactory.get_diskutils()
Ejemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        super(WindowsSMBFSConnector, self).__init__(*args, **kwargs)
        # If this flag is set, we use the local paths in case of local
        # shares. This is in fact mandatory in some cases, for example
        # for the Hyper-C scenario.
        self._local_path_for_loopback = kwargs.get('local_path_for_loopback',
                                                   True)

        self._expect_raw_disk = kwargs.get('expect_raw_disk', False)
        self._remotefsclient = remotefs.WindowsRemoteFsClient(
            mount_type='smbfs', *args, **kwargs)
        self._smbutils = utilsfactory.get_smbutils()
        self._vhdutils = utilsfactory.get_vhdutils()
        self._diskutils = utilsfactory.get_diskutils()
Ejemplo n.º 5
0
    def __init__(self, *args, **kwargs):
        self._remotefsclient = None
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)

        self.configuration.append_config_values(volume_opts)

        self.base = getattr(self.configuration,
                            'smbfs_mount_point_base')
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs', root_helper=None, smbfs_mount_point_base=self.base,
            local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
        self._diskutils = utilsfactory.get_diskutils()
Ejemplo n.º 6
0
    def __init__(self, *args, **kwargs):
        self._remotefsclient = None
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)

        self.configuration.append_config_values(volume_opts)

        self.base = getattr(self.configuration, 'smbfs_mount_point_base')
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs',
            root_helper=None,
            smbfs_mount_point_base=self.base,
            local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
        self._diskutils = utilsfactory.get_diskutils()
Ejemplo n.º 7
0
    def __init__(self, *args, **kwargs):
        self._remotefsclient = None
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)

        self.configuration.append_config_values(volume_opts)

        self.base = getattr(self.configuration, 'smbfs_mount_point_base')
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs',
            root_helper=None,
            smbfs_mount_point_base=self.base,
            local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
        self._diskutils = utilsfactory.get_diskutils()

        thin_enabled = (CONF.backend_defaults.nas_volume_prov_type == 'thin')
        self._thin_provisioning_support = thin_enabled
        self._thick_provisioning_support = not thin_enabled
Ejemplo n.º 8
0
 def __init__(self):
     self._diskutils = utilsfactory.get_diskutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = pathutils.PathUtils()
Ejemplo n.º 9
0
 def __init__(self):
     self._diskutils = utilsfactory.get_diskutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = pathutils.PathUtils()
Ejemplo n.º 10
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._diskutils = utilsfactory.get_diskutils()
Ejemplo n.º 11
0
 def __init__(self):
     self._conn = None
     self._diskutils = utilsfactory.get_diskutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._migrutils = utilsfactory.get_migrationutils()
Ejemplo n.º 12
0
 def __init__(self, root_helper=None, *args, **kwargs):
     super(BaseWindowsConnector, self).__init__(root_helper, *args,
                                                **kwargs)
     self._diskutils = utilsfactory.get_diskutils()
Ejemplo n.º 13
0
 def __init__(self):
     self._conn = None
     self._diskutils = utilsfactory.get_diskutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._migrutils = utilsfactory.get_migrationutils()
Ejemplo n.º 14
0
 def _get_win32_phys_disk_size(self, disk_path):
     win32_diskutils = os_win_utilsfactory.get_diskutils()
     disk_number = win32_diskutils.get_device_number_from_device_name(
         disk_path)
     return win32_diskutils.get_disk_size(disk_number)
Ejemplo n.º 15
0
 def setUp(self):
     super(VhdUtilsTestCase, self).setUp()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._diskutils = utilsfactory.get_diskutils()
     self._pathutils = utilsfactory.get_pathutils()
Ejemplo n.º 16
0
 def _get_win32_phys_disk_size(self, disk_path):
     win32_diskutils = os_win_utilsfactory.get_diskutils()
     disk_number = win32_diskutils.get_device_number_from_device_name(
         disk_path)
     return win32_diskutils.get_disk_size(disk_number)
Ejemplo n.º 17
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._diskutils = utilsfactory.get_diskutils()