summaryrefslogtreecommitdiff
path: root/nova/virt/libvirt/guest.py
diff options
context:
space:
mode:
authorzhu.boxiang <zhu.boxiang@99cloud.net>2019-04-09 10:11:45 +0800
committerzhu.boxiang <zhu.boxiang@99cloud.net>2019-04-09 10:11:45 +0800
commit3412595a3506514d6a4f5da7877d93a273be30b5 (patch)
tree08c35631dcf27bd0849ba3f48864b89d62f74099 /nova/virt/libvirt/guest.py
parenta7773846974e66ac9bd9e5343a02d6e805d2ecaa (diff)
downloadnova-3412595a3506514d6a4f5da7877d93a273be30b5.tar.gz
Cleanup migrate flags
From the libvirt doc, you can get all the flags of domain migrate. The link is here. https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateFlags Here we just removed the non-used flags and added the used flags but not listed in migrate description. Removed flags: VIR_MIGRATE_PAUSED VIR_MIGRATE_NON_SHARED_DISK VIR_MIGRATE_CHANGE_PROTECTION VIR_MIGRATE_UNSAFE VIR_MIGRATE_OFFLINE Added flags: VIR_MIGRATE_AUTO_CONVERGE VIR_MIGRATE_POSTCOPY Change-Id: I6a9615b636b3394a65ac4c972199c068fda6de14
Diffstat (limited to 'nova/virt/libvirt/guest.py')
-rw-r--r--nova/virt/libvirt/guest.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/nova/virt/libvirt/guest.py b/nova/virt/libvirt/guest.py
index 80380e0af5..f938a7cd8b 100644
--- a/nova/virt/libvirt/guest.py
+++ b/nova/virt/libvirt/guest.py
@@ -625,21 +625,14 @@ class Guest(object):
VIR_MIGRATE_UNDEFINE_SOURCE If the migration is successful,
undefine the domain on the
source host.
- VIR_MIGRATE_PAUSED Leave the domain suspended on the remote
- side.
- VIR_MIGRATE_NON_SHARED_DISK Migration with non-shared
- storage with full disk copy
VIR_MIGRATE_NON_SHARED_INC Migration with non-shared
storage with incremental disk
copy
- VIR_MIGRATE_CHANGE_PROTECTION Protect against domain
- configuration changes during
- the migration process (set
- automatically when
- supported).
- VIR_MIGRATE_UNSAFE Force migration even if it is considered
- unsafe.
- VIR_MIGRATE_OFFLINE Migrate offline
+ VIR_MIGRATE_AUTO_CONVERGE Slow down domain to make sure it does
+ not change its memory faster than a
+ hypervisor can transfer the changed
+ memory to the destination host
+ VIR_MIGRATE_POSTCOPY Tell libvirt to enable post-copy migration
VIR_MIGRATE_TLS Use QEMU-native TLS
:param bandwidth: The maximum bandwidth in MiB/s
"""