cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

server: allow migration of vm with snapshots for vmware

Open shwstppr opened this issue 1 year ago • 11 comments

Description

Fixes #9061

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] Enhancement (improves an existing feature and functionality)
  • [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
  • [ ] build/CI
  • [ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [ ] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [ ] Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

shwstppr avatar Jun 26 '24 09:06 shwstppr

Codecov Report

:x: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 16.16%. Comparing base (82396b6) to head (55f5cc2). :warning: Report is 72 commits behind head on 4.20.

Files with missing lines Patch % Lines
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 0.00% 2 Missing :warning:
Additional details and impacted files
@@            Coverage Diff            @@
##               4.20    #9305   +/-   ##
=========================================
  Coverage     16.16%   16.16%           
- Complexity    13277    13278    +1     
=========================================
  Files          5656     5656           
  Lines        497880   497882    +2     
  Branches      60378    60379    +1     
=========================================
+ Hits          80462    80463    +1     
- Misses       408463   408464    +1     
  Partials       8955     8955           
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.01% <60.00%> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 26 '24 09:06 codecov[bot]

@blueorangutan package

shwstppr avatar Jul 22 '24 06:07 shwstppr

@shwstppr a [SL] 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.

blueorangutan avatar Jul 22 '24 06:07 blueorangutan

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10427

blueorangutan avatar Jul 22 '24 08:07 blueorangutan

@blueorangutan package

shwstppr avatar Jul 22 '24 10:07 shwstppr

@shwstppr a [SL] 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.

blueorangutan avatar Jul 22 '24 10:07 blueorangutan

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10434

blueorangutan avatar Jul 22 '24 11:07 blueorangutan

@blueorangutan help

shwstppr avatar Aug 29 '24 12:08 shwstppr

@shwstppr [SL] I understand these words: "help", "hello", "thanks", "package", "test" Test command usage: test [mgmt os] [hypervisor] [keepEnv] [qemuEv] [basicZone|securityGroups] Mgmt OS options: ['ol8', 'ol9', 'alma8', 'alma9', 'suse15', 'centos7', 'centos6', 'rocky8', 'ubuntu18', 'ubuntu22', 'ubuntu20', 'ubuntu24'] Hypervisor options: ['kvm-centos6', 'kvm-centos7', 'kvm-rocky8', 'kvm-ol8', 'kvm-ol9', 'kvm-alma8', 'kvm-alma9', 'kvm-ubuntu18', 'kvm-ubuntu20', 'kvm-ubuntu22', 'kvm-ubuntu24', 'kvm-suse15', 'vmware-55u3', 'vmware-60u2', 'vmware-65u2', 'vmware-67u3', 'vmware-70u1', 'vmware-70u2', 'vmware-70u3', 'vmware-80', 'vmware-80u1', 'xenserver-65sp1', 'xenserver-71', 'xenserver-74', 'xcpng74', 'xcpng76', 'xcpng80', 'xcpng81', 'xcpng82'] Note: when keepEnv is passed, you need to specify mgmt server os and hypervisor or use the matrix command. when qemuEv is passed, it will deploy KVM hyperviosr hosts with qemu-kvm-ev, else it will default to stock qemu. When basicZone and/or securityGroups are passed it will create a zone of the last type specified (default is Advanced) Package command usage: package [all(default value),kvm,xen,vmware,hyperv,ovm] - a comma separated list can be passed with package command to bundle the required hypervisor's systemVM templates. Not passing any argument will bundle all - kvm,xen and vmware templates.

Blessed contributors for kicking Trillian test jobs: ['rohityadavcloud', 'shwstppr', 'vishesh92', 'Pearl1594', 'harikrishna-patnala', 'nvazquez', 'DaanHoogland', 'weizhouapache', 'borisstoyanov', 'vladimirpetrov', 'kiranchavala', 'andrijapanicsb', 'NuxRo', 'rajujith', 'alexandremattioli', 'sureshanaparti', 'abh1sar']

blueorangutan avatar Aug 29 '24 12:08 blueorangutan

@blueorangutan test ol8 vmware-70u3

shwstppr avatar Aug 29 '24 12:08 shwstppr

@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-70u3) has been kicked to run smoke tests

blueorangutan avatar Aug 29 '24 12:08 blueorangutan

[SF] Trillian test result (tid-11237) Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 50717 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9305-t11237-vmware-70u3.zip Smoke tests completed. 135 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_06_purge_expunged_vm_background_task Failure 344.84 test_purge_expunged_vms.py
test_02_restore_vm_with_disk_offering Error 62.56 test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_size Error 63.63 test_restore_vm.py

blueorangutan avatar Aug 30 '24 02:08 blueorangutan

@blueorangutan package

shwstppr avatar Aug 30 '24 10:08 shwstppr

@shwstppr a [SL] 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.

blueorangutan avatar Aug 30 '24 10:08 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10882

blueorangutan avatar Aug 30 '24 11:08 blueorangutan

@blueorangutan test ol8 vmware-70u3

shwstppr avatar Sep 02 '24 06:09 shwstppr

@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-70u3) has been kicked to run smoke tests

blueorangutan avatar Sep 02 '24 06:09 blueorangutan

[SF] Trillian test result (tid-11278) Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 55622 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9305-t11278-vmware-70u3.zip Smoke tests completed. 137 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_deployVMInSharedNetwork Error 135.04 test_network.py
test_02_restore_vm_with_disk_offering Error 56.21 test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_size Error 62.42 test_restore_vm.py

blueorangutan avatar Sep 02 '24 22:09 blueorangutan

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Dec 03 '24 08:12 github-actions[bot]

@blueorangutan pacakge

shwstppr avatar Dec 03 '24 11:12 shwstppr

@blueorangutan package

shwstppr avatar Dec 04 '24 07:12 shwstppr

@shwstppr a [SL] 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.

blueorangutan avatar Dec 04 '24 07:12 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11704

blueorangutan avatar Dec 04 '24 08:12 blueorangutan

@blueorangutan test ol8 vmware-70u3

DaanHoogland avatar Dec 04 '24 09:12 DaanHoogland

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-70u3) has been kicked to run smoke tests

blueorangutan avatar Dec 04 '24 09:12 blueorangutan

[SF] Trillian test result (tid-11845) Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 92330 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9305-t11845-vmware-70u3.zip Smoke tests completed. 136 look OK, 5 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_arping_in_ssvm Failure 5.20 test_diagnostics.py
test_01_deployVMInSharedNetwork Error 151.08 test_network.py
test_create_pvlan_network Error 0.12 test_pvlan.py
test_02_restore_vm_with_disk_offering Error 63.17 test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_size Error 53.92 test_restore_vm.py
test_01_migrate_vm_strict_tags_success Error 3605.02 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 3.69 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 13.92 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 3604.11 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 21.12 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 3607.31 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 17.95 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 3606.39 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 3.74 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 5.74 test_vm_strict_host_tags.py

blueorangutan avatar Dec 05 '24 11:12 blueorangutan

@blueorangutan test ol8 vmware-70u3

shwstppr avatar Dec 28 '24 07:12 shwstppr

@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-70u3) has been kicked to run smoke tests

blueorangutan avatar Dec 28 '24 07:12 blueorangutan

[SF] Trillian test result (tid-12000) Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 62510 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9305-t12000-vmware-70u3.zip Smoke tests completed. 139 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_deployVMInSharedNetwork Failure 3605.89 test_network.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:teardown Error 3607.15 test_network.py
test_02_restore_vm_with_disk_offering Error 59.09 test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_size Error 63.26 test_restore_vm.py

blueorangutan avatar Dec 29 '24 01:12 blueorangutan

@blueorangutan package

Pearl1594 avatar Feb 14 '25 14:02 Pearl1594