cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

[Vmware to KVM Migration] Display virt-v2v and ovftool versions for supported hosts for migration

Open nvazquez opened this issue 6 months ago • 20 comments

Description

This PR extends the VMware to KVM Migration tool by displaying the virt-v2v and ovftool versions (when available) on the UI and storing them as host details.

  • Display versions on the host details view: image

  • Display versions on the VMware to KVM Migration tool conversion host selection: Screenshot 2025-06-12 at 16 38 57

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?

Tested on KVM env with 2 Ubuntu 24.04 hosts:

  • Installed virt-v2v in one host -> Verified only virt-v2v version is listed when selecting a host for migration
  • Installed ovftool on the same host -> Verify also ovftool is displayed when selecting a host for migration

Also tested on Oracle Linux 8.6 hosts to verify different versions

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

nvazquez avatar Jun 12 '25 19:06 nvazquez

@blueorangutan package

nvazquez avatar Jun 12 '25 19:06 nvazquez

@nvazquez 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 Jun 12 '25 19:06 blueorangutan

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

blueorangutan avatar Jun 12 '25 20:06 blueorangutan

Codecov Report

Attention: Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.

Project coverage is 16.15%. Comparing base (8f2735a) to head (9d5cff2). Report is 2 commits behind head on 4.20.

Files with missing lines Patch % Lines
...ervisor/kvm/resource/LibvirtComputingResource.java 0.00% 19 Missing :warning:
...java/com/cloud/agent/manager/AgentManagerImpl.java 0.00% 12 Missing :warning:
...m/resource/wrapper/LibvirtReadyCommandWrapper.java 0.00% 2 Missing and 2 partials :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #11019      +/-   ##
============================================
- Coverage     16.15%   16.15%   -0.01%     
+ Complexity    13273    13271       -2     
============================================
  Files          5657     5657              
  Lines        497898   497934      +36     
  Branches      60374    60384      +10     
============================================
  Hits          80435    80435              
- Misses       408505   408540      +35     
- Partials       8958     8959       +1     
Flag Coverage Δ
uitests 4.00% <ø> (-0.01%) :arrow_down:
unittests 17.00% <0.00%> (-0.01%) :arrow_down:

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 13 '25 10:06 codecov[bot]

@blueorangutan package

nvazquez avatar Jun 16 '25 12:06 nvazquez

@nvazquez 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 Jun 16 '25 12:06 blueorangutan

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

blueorangutan avatar Jun 16 '25 14:06 blueorangutan

@blueorangutan package

nvazquez avatar Jun 18 '25 02:06 nvazquez

@blueorangutan package

kiranchavala avatar Jun 18 '25 06:06 kiranchavala

@blueorangutan package

nvazquez avatar Jun 18 '25 10:06 nvazquez

@nvazquez 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 Jun 18 '25 10:06 blueorangutan

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

blueorangutan avatar Jun 18 '25 11:06 blueorangutan

@blueorangutan test

kiranchavala avatar Jun 19 '25 05:06 kiranchavala

@kiranchavala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Jun 19 '25 05:06 blueorangutan

[SF] Trillian Build Failed (tid-13560)

blueorangutan avatar Jun 19 '25 05:06 blueorangutan

@blueorangutan test

sureshanaparti avatar Jun 19 '25 06:06 sureshanaparti

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Jun 19 '25 06:06 blueorangutan

[SF] Trillian Build Failed (tid-13561)

blueorangutan avatar Jun 19 '25 06:06 blueorangutan

@blueorangutan test

kiranchavala avatar Jun 20 '25 04:06 kiranchavala

@kiranchavala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Jun 20 '25 04:06 blueorangutan

[SF] Trillian test result (tid-13577) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 59327 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11019-t13577-kvm-ol8.zip Smoke tests completed. 141 look OK, 0 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File

blueorangutan avatar Jun 20 '25 21:06 blueorangutan