Example #1
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._volutils = utilsfactory.get_volumeutils()
     self._initiator = None
     self._default_root_device = 'vda'
     self.volume_drivers = {'smbfs': SMBFSVolumeDriver(),
                            'iscsi': ISCSIVolumeDriver()}
Example #2
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._volutils = utilsfactory.get_volumeutils()
     self._initiator = None
     self._default_root_device = 'vda'
     self.volume_drivers = {'smbfs': SMBFSVolumeDriver(),
                            'iscsi': ISCSIVolumeDriver()}
Example #3
0
 def __init__(self):
     self._hostutils = utilsfactory.get_hostutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._volumeops = volumeops.VolumeOps()
     self._vmops = vmops.VMOps()
     self._imagecache = imagecache.ImageCache()
Example #4
0
 def __init__(self):
     self._hostutils = utilsfactory.get_hostutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._volumeops = volumeops.VolumeOps()
     self._vmops = vmops.VMOps()
     self._imagecache = imagecache.ImageCache()
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._vif_driver_cache = {}
 def __init__(self):
     self._hostutils = utilsfactory.get_hostutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._volumeops = volumeops.VolumeOps()
     self._vmops = vmops.VMOps()
     self._imagecache = imagecache.ImageCache()
     self._block_dev_manager = block_device_manager.BlockDeviceInfoManager()
Example #7
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._vif_driver_cache = {}
Example #8
0
    def __init__(self, state_change_callback=None):
        self._vmutils = utilsfactory.get_vmutils()
        self._listener = self._vmutils.get_vm_power_state_change_listener(
            timeframe=CONF.hyperv.power_state_check_timeframe,
            filtered_states=self._TRANSITION_MAP.keys())

        self._serial_console_ops = serialconsoleops.SerialConsoleOps()

        self._polling_interval = CONF.hyperv.power_state_event_polling_interval
        self._state_change_callback = state_change_callback
    def __init__(self, state_change_callback=None):
        self._vmutils = utilsfactory.get_vmutils()
        self._listener = self._vmutils.get_vm_power_state_change_listener(
            timeframe=CONF.hyperv.power_state_check_timeframe, filtered_states=list(self._TRANSITION_MAP.keys())
        )

        self._serial_console_ops = serialconsoleops.SerialConsoleOps()

        self._polling_interval = CONF.hyperv.power_state_event_polling_interval
        self._state_change_callback = state_change_callback
Example #10
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._vif_driver_cache = {}
     self._block_device_manager = (
         block_device_manager.BlockDeviceInfoManager())
    def _test_returned_class(self, expected_class, force_v1, os_supports_v2):
        CONF.set_override('force_hyperv_utils_v1', force_v1, 'hyperv')
        with mock.patch.object(
            hostutils.HostUtils,
            'check_min_windows_version') as mock_check_min_windows_version:
            mock_check_min_windows_version.return_value = os_supports_v2

            if os_supports_v2 and force_v1:
                self.assertRaises(vmutils.HyperVException,
                                  utilsfactory.get_vmutils)
            else:
                actual_class = type(utilsfactory.get_vmutils())
                self.assertEqual(actual_class, expected_class)
    def __init__(self, instance_name):
        self._vmutils = utilsfactory.get_vmutils()
        self._pathutils = utilsfactory.get_pathutils()

        self._instance_name = instance_name
        self._log_path = self._pathutils.get_vm_console_log_paths(
            self._instance_name)[0]

        self._client_connected = None
        self._input_queue = None
        self._output_queue = None

        self._serial_proxy = None
        self._workers = []
    def __init__(self, instance_name):
        self._vmutils = utilsfactory.get_vmutils()
        self._pathutils = utilsfactory.get_pathutils()

        self._instance_name = instance_name
        self._log_path = self._pathutils.get_vm_console_log_paths(
            self._instance_name)[0]

        self._client_connected = None
        self._input_queue = None
        self._output_queue = None

        self._serial_proxy = None
        self._workers = []
Example #14
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._volutils = utilsfactory.get_volumeutils()
Example #15
0
 def __init__(self):
     self._pathutils = utilsfactory.get_pathutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
Example #16
0
 def __init__(self):
     self._pathutils = utilsfactory.get_pathutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._volutils = utilsfactory.get_volumeutils()
     self._username_regex = re.compile(r'user(?:name)?=([^, ]+)')
     self._password_regex = re.compile(r'pass(?:word)?=([^, ]+)')
Example #17
0
 def __init__(self):
     self._hostops = hostops.HostOps()
     self._vmutils = utilsfactory.get_vmutils()
     self._rdpconsoleutils = utilsfactory.get_rdpconsoleutils()
 def __init__(self):
     self._hostops = hostops.HostOps()
     self._vmutils = utilsfactory.get_vmutils()
     self._rdpconsoleutils = utilsfactory.get_rdpconsoleutils()
Example #19
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._volutils = utilsfactory.get_volumeutils()
Example #20
0
 def __init__(self):
     self._pathutils = utilsfactory.get_pathutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._volutils = utilsfactory.get_volumeutils()
     self._username_regex = re.compile(r'user(?:name)?=([^, ]+)')
     self._password_regex = re.compile(r'pass(?:word)?=([^, ]+)')
Example #21
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._netutils = utilsfactory.get_networkutils()
Example #22
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._pathutils = utilsfactory.get_pathutils()
Example #23
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._netutils = utilsfactory.get_networkutils()
Example #24
0
 def __init__(self):
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vmops = vmops.VMOps()
     self._api = api.API()