Merge "libvirt: Provide VIR_MIGRATE_PARAM_PERSIST_XML during live migration"
This commit is contained in:
commit
a77ace334c
|
@ -11600,6 +11600,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
|||
'migrate_disks': disk_paths,
|
||||
'bandwidth': _bandwidth,
|
||||
'destination_xml': target_xml,
|
||||
'persistent_xml': target_xml,
|
||||
}
|
||||
|
||||
# start test
|
||||
|
@ -11710,7 +11711,8 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
|||
'migrate_disks': disk_paths,
|
||||
'migrate_uri': 'tcp://127.0.0.2',
|
||||
'bandwidth': CONF.libvirt.live_migration_bandwidth,
|
||||
'destination_xml': target_xml
|
||||
'destination_xml': target_xml,
|
||||
'persistent_xml': target_xml,
|
||||
}
|
||||
|
||||
# Start test
|
||||
|
@ -11869,6 +11871,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
|||
'migrate_uri': 'tcp://127.0.0.2',
|
||||
'bandwidth': CONF.libvirt.live_migration_bandwidth,
|
||||
'destination_xml': target_xml,
|
||||
'persistent_xml': target_xml,
|
||||
}
|
||||
|
||||
# start test
|
||||
|
@ -12229,6 +12232,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
|||
'migrate_disks': ['vda', 'vdb'],
|
||||
'bandwidth': CONF.libvirt.live_migration_bandwidth,
|
||||
'destination_xml': target_xml,
|
||||
'persistent_xml': target_xml,
|
||||
}
|
||||
|
||||
# start test
|
||||
|
@ -12357,6 +12361,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
|||
'migrate_disks': device_names,
|
||||
'bandwidth': CONF.libvirt.live_migration_bandwidth,
|
||||
'destination_xml': '<xml/>',
|
||||
'persistent_xml': '<xml/>',
|
||||
}
|
||||
if not params['migrate_disks']:
|
||||
del params['migrate_disks']
|
||||
|
@ -12498,6 +12503,7 @@ class LibvirtConnTestCase(test.NoDBTestCase,
|
|||
'migrate_disks': disk_paths,
|
||||
'bandwidth': CONF.libvirt.live_migration_bandwidth,
|
||||
'destination_xml': '<xml/>',
|
||||
'persistent_xml': '<xml/>',
|
||||
}
|
||||
|
||||
# Prepare mocks
|
||||
|
|
|
@ -702,6 +702,7 @@ class GuestTestCase(test.NoDBTestCase):
|
|||
'an-uri', flags=1, params={'migrate_uri': 'dest-uri',
|
||||
'migrate_disks': 'disk1',
|
||||
'destination_xml': '</xml>',
|
||||
'persistent_xml': '</xml>',
|
||||
'bandwidth': 2})
|
||||
|
||||
def test_abort_job(self):
|
||||
|
|
|
@ -666,6 +666,7 @@ class Guest(object):
|
|||
|
||||
if destination_xml:
|
||||
params['destination_xml'] = destination_xml
|
||||
params['persistent_xml'] = destination_xml
|
||||
if migrate_disks:
|
||||
params['migrate_disks'] = migrate_disks
|
||||
if migrate_uri:
|
||||
|
|
Loading…
Reference in New Issue