Skip to content

merge conflict fixes - #13046

Merged
sureshanaparti merged 4 commits into
4.22from
UnmanagedAndSnapshotFixes
Apr 23, 2026
Merged

merge conflict fixes#13046
sureshanaparti merged 4 commits into
4.22from
UnmanagedAndSnapshotFixes

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

Description

This PR fixes some merge conflicts

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?

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

CopilotAI 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.

Pull request overview

Resolves merge-conflict fallout across VM import and VM snapshot revert code paths.

Changes:

  • Adjusts VM import flows in UnmanagedVMsManagerImpl by removing the outer CheckedReservation try-with-resources wrappers.
  • Updates snapshot revert validation in VMSnapshotManagerImpl.
  • Updates the unmanaged VM manager unit test imports.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

FileDescription
server/src/test/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImplTest.javaImport list adjusted (currently introduces an unused import).
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.javaRemoves outer reservation wrappers around import flows.
server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.javaAdds/adjusts revert validation logic (currently duplicated).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecovBot commented Apr 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.68%. Comparing base (be89e6f) to head (d24beb0).
⚠️ Report is 1 commits behind head on 4.22.

Additional details and impacted files
@@ Coverage Diff @@## 4.22 #13046 +/- ##
============================================
- Coverage 17.68% 17.68% -0.01% 
Complexity 15793 15793 ============================================
Files 5922 5922 Lines 533096 533090 -6 Branches 65209 65209 ============================================
- Hits 94275 94269 -6 
Misses 428181 428181 Partials 10640 10640 
FlagCoverage Δ
uitests3.69% <ø> (ø)
unittests18.76% <100.00%> (-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.

DaanHooglandand others added 2 commits April 20, 2026 10:56
…gerImplTest.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sureshanaparti

Copy link
Copy Markdown
Contributor

@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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17565

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan test

@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-15928)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 64236 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr13046-t15928-kvm-ol8.zip
Smoke tests completed. 141 look OK, 8 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestClusterDRS>:setupError0.00test_cluster_drs.py
test_list_system_vms_metrics_historyFailure0.26test_metrics_api.py
test_06_download_detached_volumeError303.01test_volumes.py
ContextSuite context=TestVolumes>:teardownError122.02test_volumes.py
ContextSuite context=TestIpv6Vpc>:setupError0.00test_vpc_ipv6.py
ContextSuite context=TestVPCRedundancy>:setupError0.00test_vpc_redundant.py
ContextSuite context=TestVPCNics>:setupError0.00test_vpc_router_nics.py
ContextSuite context=TestRVPCSite2SiteVpn>:setupError0.00test_vpc_vpn.py
ContextSuite context=TestVPCSite2SiteVPNMultipleOptions>:setupError0.00test_vpc_vpn.py
ContextSuite context=TestVpcRemoteAccessVpn>:setupError0.00test_vpc_vpn.py
ContextSuite context=TestVpcSite2SiteVpn>:setupError0.00test_vpc_vpn.py
test_disable_oobm_ha_state_ineligibleError1515.98test_hostha_kvm.py

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@sureshanaparti

Copy link
Copy Markdown
Contributor

@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

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/13046 (QA-JID-912)

@blueorangutan

Copy link
Copy Markdown

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

@sonarqubecloud

Copy link
Copy Markdown

@sureshanaparti
sureshanaparti merged commit 64ac082 into 4.22Apr 23, 2026
84 of 113 checks passed
@sureshanaparti
sureshanaparti deleted the UnmanagedAndSnapshotFixes branch April 23, 2026 18:17
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.

6 participants

@DaanHoogland@sureshanaparti@blueorangutan@winterhazel@abh1sar