cloudstack/plugins
Nicolas Vazquez 0fbf5006b8 kvm: live storage migration intra cluster from NFS source and destination (#2983)
Feature Specification: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=95653548

Live storage migration on KVM under these conditions:

From source and destination hosts within the same cluster
From NFS primary storage to NFS cluster-wide primary storage
Source NFS and destination NFS storage mounted on hosts
In order to enable this functionality, database should be updated in order to enable live storage capacibilty for KVM, if previous conditions are met. This is due to existing conflicts between qemu and libvirt versions. This has been tested on CentOS 6 hosts.

Additional notes:

To use this feature set the storage_motion_supported=1 in the hypervisor_capability table for KVM. This is done by default as the feature may not work in some environments, read below.
This feature of online storage+VM migration for KVM will only work with CentOS6 and possible Ubuntu as KVM hosts but not with CentOS7 due to:
https://bugs.centos.org/view.php?id=14026
https://bugzilla.redhat.com/show_bug.cgi?id=1219541
On CentOS7 the error we see is: " error: unable to execute QEMU command 'migrate': this feature or command is not currently supported" (reference https://ask.openstack.org/en/question/94186/live-migration-unable-to-execute-qemu-command-migrate/). Reading through various lists looks like the migrate feature with qemu may be available with paid versions of RHEL-EV but not centos7 however this works with CentOS6.
Fix for CentOS 7:

Create repo file on /etc/yum.repos.d/:
[qemu-kvm-rhev]
name=oVirt rebuilds of qemu-kvm-rhev
baseurl=http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/
mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-3.5-el7Server
enabled=1
skip_if_unavailable=1
gpgcheck=0
yum install qemu-kvm-common-ev-2.3.0-29.1.el7.x86_64 qemu-kvm-ev-2.3.0-29.1.el7.x86_64 qemu-img-ev-2.3.0-29.1.el7.x86_64
Reboot host

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-06-10 15:35:26 +05:30
..
acl Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
affinity-group-processors Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
alert-handlers Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
api Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
ca/root-ca Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
database Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
dedicated-resources Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
deployment-planners Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
event-bus Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
host-allocators/random Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
hypervisors kvm: live storage migration intra cluster from NFS source and destination (#2983) 2019-06-10 15:35:26 +05:30
integrations Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
metrics Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
network-elements Merge remote-tracking branch 'origin/4.12' 2019-06-03 17:17:51 +05:30
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
storage Fix slow vm creation when large sf snapshot count (#3282) 2019-05-11 16:02:52 +02:00
storage-allocators/random Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
user-authenticators Updating pom.xml version numbers for release 4.13.0.0-SNAPSHOT 2019-03-20 18:47:35 -03:00
pom.xml RIP Nuage Cloudstack Plugin (#3146) 2019-05-14 10:58:24 +02:00