コード例 #1
0
    def __init__(self):

        self._pathutils = pathutils.PathUtils()
        self._vmutils = vmutils.VMUtils()
        self._livemigrutils = livemigrationutils.LiveMigrationUtils()
        self._volumeops = volumeops.VolumeOps()
        self._imagecache = imagecache.ImageCache()
コード例 #2
0
ファイル: vmops.py プロジェクト: blahRus/nova
 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()
コード例 #3
0
ファイル: livemigrationutils.py プロジェクト: wingo1990/nova
    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
コード例 #4
0
ファイル: migrationops.py プロジェクト: zestrada/nova-cs498cc
 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()
コード例 #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()
コード例 #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()
コード例 #7
0
ファイル: livemigrationutils.py プロジェクト: wingo1990/nova
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     self._volutils = volumeutilsv2.VolumeUtilsV2()
コード例 #8
0
ファイル: vmops.py プロジェクト: ameade/nova
    def __init__(self, volumeops):
        super(VMOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._volumeops = volumeops
コード例 #9
0
ファイル: utilsfactory.py プロジェクト: wingo1990/nova
def get_vmutils(host='.'):
    return vmutils.VMUtils(host)
コード例 #10
0
ファイル: vhdutils.py プロジェクト: BigFire/nova-1
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     if sys.platform == 'win32':
         self._conn = wmi.WMI(moniker='//./root/virtualization')
コード例 #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'
コード例 #12
0
    def __init__(self, volumeops):
        super(LiveMigrationOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._volumeops = volumeops
コード例 #13
0
    def __init__(self, volumeops):
        super(VMOps, self).__init__()

        self._vmutils = vmutils.VMUtils()
        self._volumeops = volumeops
        self._load_vif_driver_class()
コード例 #14
0
ファイル: livemigrationutils.py プロジェクト: blahRus/nova
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
コード例 #15
0
ファイル: vif.py プロジェクト: zestrada/nova-cs498cc
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     self._netutils = networkutils.NetworkUtils()
コード例 #16
0
 def __init__(self):
     self._pathutils = pathutils.PathUtils()
     self._vmutils = vmutils.VMUtils()
     self._vhdutils = vhdutils.VHDUtils()
コード例 #17
0
 def __init__(self):
     self._vmutils = vmutils.VMUtils()
     self._conn = wmi.WMI(moniker='//./root/virtualization')
コード例 #18
0
 def __init__(self):
     super(SnapshotOps, self).__init__()
     self._vmutils = vmutils.VMUtils()
コード例 #19
0
    def setUp(self):
        self._vmutils = vmutils.VMUtils()
        self._vmutils._conn = mock.MagicMock()

        super(VMUtilsTestCase, self).setUp()
コード例 #20
0
ファイル: livemigrationops.py プロジェクト: blahRus/nova
    def __init__(self, volumeops):

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