Ejemplo n.º 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()
     self._block_dev_man = block_device_manager.BlockDeviceInfoManager()
Ejemplo n.º 2
0
 def __init__(self):
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = utilsfactory.get_pathutils()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._vif_driver = None
     self._load_vif_driver_class()
     self._vm_log_writers = {}
Ejemplo n.º 3
0
 def __init__(self):
     self._hostutils = hostutils.HostUtils()
     self._vmutils = vmutils.VMUtils()
     self._vhdutils = vhdutils.VHDUtils()
     self._pathutils = pathutils.PathUtils()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()
     self._vif_driver = None
     self._load_vif_driver_class()
Ejemplo n.º 4
0
    def __init__(self, virtapi):
        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()
Ejemplo n.º 5
0
 def __init__(self):
     self._hostutils = utilsfactory.get_hostutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._vhdutils = utilsfactory.get_vhdutils()
     self._pathutils = pathutils.PathUtils()
     self._volumeops = volumeops.VolumeOps()
     self._vmops = vmops.VMOps()
     self._imagecache = imagecache.ImageCache()
     self._block_dev_man = block_device_manager.BlockDeviceInfoManager()
Ejemplo n.º 6
0
    def __init__(self):
        # Live migration is supported starting from Hyper-V Server 2012
        if utilsfactory.get_hostutils().check_min_windows_version(6, 2):
            self._livemigrutils = utilsfactory.get_livemigrationutils()
        else:
            self._livemigrutils = None

        self._pathutils = utilsfactory.get_pathutils()
        self._volumeops = volumeops.VolumeOps()
        self._imagecache = imagecache.ImageCache()
Ejemplo n.º 7
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()
Ejemplo n.º 8
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()
Ejemplo n.º 9
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()
Ejemplo n.º 10
0
    def __init__(self, virtapi):
        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()

        # check if the current version is older than kernel version 6.2
        # (Windows Server 2012)
        if not hostutils.HostUtils().check_min_windows_version(6, 2):
            # the version is Windows Server 2008 R2. Log a warning, letting
            # users know that this version is deprecated in Liberty.
            LOG.warning(
                _LW('You are running nova-compute on Windows / Hyper-V Server '
                    '2008 R2. This version of Windows is deprecated in the '
                    'current version of OpenStack and the support for it will '
                    'be removed in the next cycle.'))
Ejemplo n.º 11
0
 def setUp(self):
     super(VolumeOpsTestCase, self).setUp()
     self._volumeops = volumeops.VolumeOps()
     self._volumeops._volutils = mock.MagicMock()
     self._volumeops._vmutils = mock.Mock()
Ejemplo n.º 12
0
 def __init__(self):
     self._volops = volumeops.VolumeOps()
Ejemplo n.º 13
0
 def setUp(self):
     super(VolumeOpsTestCase, self).setUp()
     self._volumeops = volumeops.VolumeOps()
Ejemplo n.º 14
0
 def __init__(self):
     self._pathutils = pathutils.PathUtils()
     self._livemigrutils = livemigrationutils.LiveMigrationUtils()
     self._volumeops = volumeops.VolumeOps()
     self._imagecache = imagecache.ImageCache()