Skip to content

[VMware to KVM Migration] Fix for converted instance NPE issue when source VMware instance OVF is exported from management server - #11003

Merged
sureshanaparti merged 1 commit into
apache:4.20from
shapeblue:vmware-to-kvm-migration-converted-instance-npe-fix
Jul 4, 2025
Merged

[VMware to KVM Migration] Fix for converted instance NPE issue when source VMware instance OVF is exported from management server#11003
sureshanaparti merged 1 commit into
apache:4.20from
shapeblue:vmware-to-kvm-migration-converted-instance-npe-fix

Conversation

@sureshanaparti

@sureshanapartisureshanaparti commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Description

This PR fixes converted instance NPE issue in VMware to KVM Migration when source VMware instance OVF is exported from management server.

Fixes#10982

Some of the changes of the below PRs were missing in 4.20, resulting in NPE.

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)
  • 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 VMware instance migration to KVM, without ovftool installation on KVM hosts. OVF of source VMware instance is downloaded from Management Server.

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

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti 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.

@codecov

codecovBot commented Jun 11, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.

Project coverage is 16.15%. Comparing base (0b841fe) to head (6b1a220).
Report is 17 commits behind head on 4.20.

Files with missing linesPatch %Lines
.../wrapper/LibvirtConvertInstanceCommandWrapper.java50.00%3 Missing ⚠️
.../apache/cloudstack/vm/UnmanagedVMsManagerImpl.java33.33%2 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.20 #11003 +/- ##
==========================================
Coverage 16.14% 16.15% - Complexity 13256 13266 +10 
==========================================
Files 5657 5657 Lines 497903 497701 -202 Branches 60375 60349 -26 ==========================================
- Hits 80392 80388 -4 + Misses 408550 408369 -181 + Partials 8961 8944 -17 
FlagCoverage Δ
uitests4.00% <ø> (ø)
unittests17.00% <44.44%> (+<0.01%)⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@blueorangutan

Copy link
Copy Markdown

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

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One very nitpicking comment.

Is this ready for review yet @sureshanaparti ?

Comment threadapi/src/main/java/com/cloud/storage/VolumeApiService.java
…ource vmware instance ovf is exported from management server
@sureshanaparti
sureshanapartiforce-pushed the vmware-to-kvm-migration-converted-instance-npe-fix branch from b1447c6 to 6b1a220CompareJune 12, 2025 11:10
@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti 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

Copy link
Copy Markdown

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

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@sureshanaparti
sureshanaparti marked this pull request as ready for review June 17, 2025 07:49
@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_01_isolate_network_FW_PF_default_routes_egress_trueFailure114.48test_routers_network_ops.py

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@borisstoyanovborisstoyanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I didn't encounter any issues while testing it

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

Merging based on the review/tests.

@sureshanaparti
sureshanaparti merged commit 80f46ad into apache:4.20Jul 4, 2025
@sureshanapartisureshanaparti added this to the 4.20.2 milestone Jul 4, 2025
@DaanHoogland
DaanHoogland deleted the vmware-to-kvm-migration-converted-instance-npe-fix branch July 4, 2025 10:45
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jul 16, 2025
…ource vmware instance ovf is exported from management server (apache#11003)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VMware to KVM Migration] Issue on migration when ovftool is not installed on the conversion KVM hosts

4 participants

@sureshanaparti@blueorangutan@DaanHoogland@borisstoyanov