[KVM] Skip volumes on shared storage when live migrating VM with local volumes (root / datadisk) - #6509
[KVM] Skip volumes on shared storage when live migrating VM with local volumes (root / datadisk)#6509GabrielBrascher wants to merge 2 commits into
Conversation
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✖️ el8 ✔️ debian ✔️ suse15. SL-JID 3654 |
|
@GabrielBrascher can you have a look on the conflicts |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
a4162b1 to
ed0d27a
Compare
|
@DaanHoogland I was going to fix the branch conflict but then realise that it happens on main but not on 4.17. Do you guys feel like this would be fine to be added in 4.17.1? @harikrishna-patnala @rohityadavcloud @DaanHoogland @wido @nvazquez others It could be placed as bugfix (since cloudstack migrates disks that are not desired due to Libvirt-Java 0.5.2 limitations). |
|
I see some work recently done that allows multiple volumes on local storage. I will double-check these new PRs and see potential risks as I've considered 1 local volume (root) to be mapped in the new Libvirt migration flow. |
so should we move this to draft, @GabrielBrascher ? |
ed0d27a to
4bf10c8
Compare
This implementation uses virDomainMigrate3 in order to point which disk device should be migrated. Thus, avoid mapping shared volumes to libvirt when copying disks. This allows to save crucial time (can be even hours depending on all data-disks), bandwidth, and processing.
4bf10c8 to
80c3007
Compare
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
271ac8a to
a23c716
Compare
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 3760 |
|
@GabrielBrascher Can you the fix these audit errors. |
Signed-off-by: gabriel <gabriel@apache.org>
a23c716 to
55fd42d
Compare
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
SonarCloud Quality Gate failed. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
Hi @GabrielBrascher, should we consider this for 4.17.1.0? Currently, it has conflicts, can you please check |








Description
The new release Libvirt-Java v0.5.3 now supports
virDomainMigrate3[1],[2], a powerful and flexible domain migrate command in Libvirt. This command allows pointing just the Root volume to be migrated, saving a lot of compute resources, network bandwidth, and time.Likely, data disks hold TBs of data, while Root volumes hundreds of GBs. This allows saving crucial time, bandwidth, and processing.
It can easily save several hours to offload a KVM machine depending on the amount of VMs to be migrated and data disks attached to the respective VMs.
[1] Libvirt-Java
[2] commit that added
virtDomainMigrate3into the Libvirt-JavaFore reference, PR #6472 added
libvirt-java v0.5.3into CloudStack.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
Tested migration of VM with local Root (50GB) + data-disk (100GB)
Data total 150.004 GiB
Data total 50.000 GiB