示例#1
0
 def __init__(self):
     self._livemigrutils = utilsfactory.get_livemigrationutils()
     self._pathutils = pathutils.PathUtils()
     self._vmops = vmops.VMOps()
     self._volumeops = volumeops.VolumeOps()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._imagecache = imagecache.ImageCache()
     self._vmutils = utilsfactory.get_vmutils()
示例#2
0
 def __init__(self):
     self._livemigrutils = utilsfactory.get_livemigrationutils()
     self._pathutils = pathutils.PathUtils()
     self._vmops = vmops.VMOps()
     self._volumeops = volumeops.VolumeOps()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._imagecache = imagecache.ImageCache()
     self._vmutils = utilsfactory.get_vmutils()
     self._block_dev_man = block_device_manager.BlockDeviceInfoManager()
示例#3
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,
            event_timeout=CONF.hyperv.power_state_event_polling_interval,
            filtered_states=list(self._TRANSITION_MAP.keys()),
            get_handler=True)

        self._serial_console_ops = serialconsoleops.SerialConsoleOps()
        self._state_change_callback = state_change_callback
示例#4
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._metricsutils = utilsfactory.get_metricsutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = pathutils.PathUtils()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._vif_driver = None
     self._load_vif_driver_class()
示例#5
0
 def __init__(self, virtapi=None):
     self._virtapi = virtapi
     self._vmutils = utilsfactory.get_vmutils()
     self._metricsutils = utilsfactory.get_metricsutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._hostutils = utilsfactory.get_hostutils()
     self._pathutils = pathutils.PathUtils()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._serial_console_ops = serialconsoleops.SerialConsoleOps()
     self._block_dev_man = (block_device_manager.BlockDeviceInfoManager())
     self._vif_driver = vif_utils.HyperVVIFDriver()
示例#6
0
    def __init__(self, virtapi):
        # check if the current version of Windows is supported before any
        # further driver initialisation.
        self._check_minimum_windows_version()

        super(HyperVDriver, self).__init__(virtapi)

        self._hostops = hostops.HostOps()
        self._volumeops = volumeops.VolumeOps()
        self._vmops = vmops.VMOps()
        self._snapshotops = snapshotops.SnapshotOps()
        self._livemigrationops = livemigrationops.LiveMigrationOps()
        self._migrationops = migrationops.MigrationOps()
        self._rdpconsoleops = rdpconsoleops.RDPConsoleOps()
        self._serialconsoleops = serialconsoleops.SerialConsoleOps()
 def setUp(self):
     super(SerialConsoleOpsTestCase, self).setUp()
     serialconsoleops._console_handlers = {}
     self._serialops = serialconsoleops.SerialConsoleOps()
     self._serialops._pathutils = mock.MagicMock()