| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report❌ Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #13263 +/- ##
=========================================
Coverage 20.39% 20.40%
- Complexity 21283 21284 +1
=========================================
Files 6481 6481
Lines 588040 588049 +9
Branches 72021 72021
=========================================
+ Hits 119957 119978 +21
+ Misses 455052 455042 -10
+ Partials 13031 13029 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
There was a problem hiding this comment.
This PR prevents secondary NullPointerExceptions from masking the original VM import/conversion failure during VMware-to-KVM migration, so the UI/API can surface the real error (e.g., missing virt-v2v / nbdkit-vddk) as described in issue #13007.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java | Avoids triggering a secondary NPE while handling a CloudRuntimeException during import. |
| server/src/main/java/org/apache/cloudstack/vm/ImportVmTasksManagerImpl.java | Makes task error-state updates resilient to null task objects. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
|
@nvazquez , @DaanHoogland could you approve workflow and review pull request |
Sorry, something went wrong.
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Sorry, something went wrong.
|
Hi @nvazquez , I've resolved the merge conflicts and updated this PR with the latest main. The CI has been rerun. I'd appreciate a review whenever you have time. Thank you! |
Sorry, something went wrong.
|
@borisstoyanov a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19217 |
Sorry, something went wrong.
|
@borisstoyanov a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-16974) |
Sorry, something went wrong.
|
@saurabhkushwaha438 thanks for taking care of the conflicts. Could you answer the co-pilot's remaining remarks, please? |
Sorry, something went wrong.
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19630 |
Sorry, something went wrong.
|
@DaanHoogland i have resolved the remaining conversation . also do i need to add unit tests for ImportVmTasksManagerImpl so that will fix codecov/patch and Sonar JaCoCo Coverage |
Sorry, something went wrong.
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-17235)
|
Sorry, something went wrong.
There was a problem hiding this comment.
Code LGTM
Sorry, something went wrong.
|
@RosiKyu a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 20020 |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Tested on a KVM env (mgmt + 2 EL9 KVM hosts), baseline on current main build first, then the PR build (24.0.0-shapeblue22166).
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Implemented defensive null checks to prevent secondary NullPointerExceptions from masking the original VM import failure reason during VMware-to-KVM migration. for issue #13007
Changes made:
UnmanagedVMsManagerImpl.java
ImportVmTasksManagerImpl.java
These changes ensure that the original import/conversion failure (for example missing virt-v2v or nbdkit-vddk on the target KVM host) is preserved and propagated correctly to the UI instead of being hidden by a secondary NPE during task error handling.