def __init__(self):

        self._pathutils = pathutils.PathUtils()
        self._vmutils = vmutils.VMUtils()
        self._livemigrutils = livemigrationutils.LiveMigrationUtils()
        self._volumeops = volumeops.VolumeOps()
        self._imagecache = imagecache.ImageCache()
Esempio n. 2
0
 def __init__(self, volumeops):
     self._vmutils = vmutils.VMUtils()
     self._vhdutils = vhdutils.VHDUtils()
     self._pathutils = pathutils.PathUtils()
     self._volumeops = volumeops
     self._vif_driver = None
     self._load_vif_driver_class()
Esempio n. 3
0
    def live_migrate_vm(self, vm_name, dest_host):
        self.check_live_migration_config()

        conn_v2_local = self._get_conn_v2()
        conn_v2_remote = self._get_conn_v2(dest_host)

        vm = self._get_vm(conn_v2_local, vm_name)
        self._check_existing_planned_vm(conn_v2_remote, vm)

        rmt_ip_addr_list = self._get_remote_ip_address_list(
            conn_v2_remote, dest_host)

        iscsi_targets = []
        planned_vm = None
        disk_paths = self._get_physical_disk_paths(vm_name)
        if disk_paths:
            vmutils_remote = vmutils.VMUtils(dest_host)
            (disk_paths_remote, iscsi_targets) = self._get_remote_disk_data(
                vmutils_remote, disk_paths, dest_host)

            planned_vm = self._create_remote_planned_vm(
                conn_v2_local, conn_v2_remote, vm, rmt_ip_addr_list, dest_host)

            self._update_planned_vm_disk_resources(vmutils_remote,
                                                   conn_v2_remote, planned_vm,
                                                   vm_name, disk_paths_remote)

        new_resource_setting_data = self._get_vhd_setting_data(vm)
        self._live_migrate_vm(conn_v2_local, vm, planned_vm, rmt_ip_addr_list,
                              new_resource_setting_data, dest_host)

        # In case the caller wants to log off the targets after migration
        return iscsi_targets
Esempio n. 4
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._vmops = vmops.VMOps()
     self._imagecache = imagecache.ImageCache()
Esempio n. 5
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()
Esempio n. 6
0
    def __init__(self):
        super(VolumeOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._driver = driver
        self._block_device = block_device
        self._time = time
        self._initiator = None
        self._default_root_device = 'vda'
        self._attaching_volume_retry_count = \
            CONF.hyperv_attaching_volume_retry_count
        self._wait_between_attach_retry = \
            CONF.hyperv_wait_between_attach_retry
        self._volutils = self._get_volume_utils()
Esempio n. 7
0
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     self._volutils = volumeutilsv2.VolumeUtilsV2()
Esempio n. 8
0
File: vmops.py Progetto: ameade/nova
    def __init__(self, volumeops):
        super(VMOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._volumeops = volumeops
Esempio n. 9
0
def get_vmutils(host='.'):
    return vmutils.VMUtils(host)
Esempio n. 10
0
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     if sys.platform == 'win32':
         self._conn = wmi.WMI(moniker='//./root/virtualization')
Esempio n. 11
0
 def __init__(self):
     self._hostutils = hostutils.HostUtils()
     self._vmutils = vmutils.VMUtils()
     self._volutils = self._get_volume_utils()
     self._initiator = None
     self._default_root_device = 'vda'
Esempio n. 12
0
    def __init__(self, volumeops):
        super(LiveMigrationOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._volumeops = volumeops
Esempio n. 13
0
    def __init__(self, volumeops):
        super(VMOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._volumeops = volumeops
        self._load_vif_driver_class()
Esempio n. 14
0
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
Esempio n. 15
0
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     self._netutils = networkutils.NetworkUtils()
Esempio n. 16
0
 def __init__(self):
     self._pathutils = pathutils.PathUtils()
     self._vmutils = vmutils.VMUtils()
     self._vhdutils = vhdutils.VHDUtils()
Esempio n. 17
0
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     self._conn = wmi.WMI(moniker='//./root/virtualization')
Esempio n. 18
0
 def __init__(self):
     super(SnapshotOps, self).__init__()
     self._vmutils = vmutils.VMUtils()
Esempio n. 19
0
    def setUp(self):
        self._vmutils = vmutils.VMUtils()
        self._vmutils._conn = mock.MagicMock()

        super(VMUtilsTestCase, self).setUp()
Esempio n. 20
0
    def __init__(self, volumeops):

        self._pathutils = pathutils.PathUtils()
        self._vmutils = vmutils.VMUtils()
        self._livemigrutils = livemigrationutils.LiveMigrationUtils()
        self._volumeops = volumeops