Skip to content

CLVM enhancements and fixes - #12617

Merged
harikrishna-patnala merged 94 commits into
mainfrom
clvm-enhancements
Jun 16, 2026
Merged

CLVM enhancements and fixes#12617
harikrishna-patnala merged 94 commits into
mainfrom
clvm-enhancements

Conversation

@Pearl1594

@Pearl1594Pearl1594 commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR enhances the existing CLVM implementation which was based on the deprecated CLVM technology which was based on corosync/pacemaker. With RHEL 7 having reached EOL, CLVM seems to be broken. CLVM supports RAW volumes on LVM , where as CLVM_NG support QCOW2 on LVM.

Further details: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Modernized+CLVM%3A+Enhancements+and+CLVM_NG+support

NOTE: On testing - it was identified that incremental snapshots for clvm-ng do not work as expected. As of now it's been removed from scope. So, CLVM and CLVM_NG would only support full snapshots.

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?

@codecov

codecovBot commented Feb 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.68%. Comparing base (d3e1976) to head (df61d6f).
⚠️ Report is 15 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (d3e1976) and HEAD (df61d6f). Click for more details.

HEAD has 1 upload less than BASE
FlagBASE (d3e1976)HEAD (df61d6f)
unittests10
Additional details and impacted files
@@ Coverage Diff @@## main #12617 +/- ##
=============================================
- Coverage 17.90% 3.68% -14.23% 
=============================================
Files 5938 454 -5484 Lines 532864 38798 -494066 Branches 65192 7151 -58041 =============================================
- Hits 95392 1428 -93964 + Misses 426793 37183 -389610 + Partials 10679 187 -10492 
FlagCoverage Δ
uitests3.67% <ø> (+<0.01%)⬆️
unittests?

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.

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@harikrishna-patnalaharikrishna-patnala added this to the 4.23.0 milestone Feb 17, 2026
@codecov

codecovBot commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.50310% with 1392 lines in your changes missing coverage. Please review.
✅ Project coverage is 18.88%. Comparing base (6bc83a3) to head (04af974).
⚠️ Report is 5 commits behind head on main.

Files with missing linesPatch %Lines
...oud/hypervisor/kvm/storage/ClvmStorageAdaptor.java38.10%421 Missing and 16 partials ⚠️
...ervisor/kvm/resource/LibvirtComputingResource.java40.60%109 Missing and 8 partials ⚠️
...ud/hypervisor/kvm/storage/KVMStorageProcessor.java30.40%102 Missing and 1 partial ⚠️
...torage/motion/StorageSystemDataMotionStrategy.java13.20%92 Missing ⚠️
...stack/engine/orchestration/VolumeOrchestrator.java21.69%81 Missing and 2 partials ⚠️
...n/java/com/cloud/storage/VolumeApiServiceImpl.java28.57%61 Missing and 4 partials ⚠️
...wrapper/LibvirtClvmLockTransferCommandWrapper.java38.63%48 Missing and 6 partials ⚠️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java16.39%51 Missing ⚠️
...tack/storage/endpoint/DefaultEndPointSelector.java56.63%32 Missing and 17 partials ⚠️
...n/java/com/cloud/storage/clvm/ClvmPoolManager.java77.10%25 Missing and 24 partials ⚠️
... and 31 more
Additional details and impacted files
@@ Coverage Diff @@## main #12617 +/- ##
============================================
+ Coverage 18.75% 18.88% +0.12% - Complexity 17966 18223 +257 
============================================
Files 6160 6173 +13 Lines 552578 555086 +2508 Branches 67348 67754 +406 ============================================
+ Hits 103660 104850 +1190 - Misses 437512 438718 +1206 - Partials 11406 11518 +112 
FlagCoverage Δ
uitests3.53% <ø> (-0.01%)⬇️
unittests20.08% <42.50%> (+0.13%)⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

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

…ioning factor isnt used for clvm pools - so set it to 1 and prevented display of provisioning type for clvm
@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-16305)

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate FailedQuality Gate failed

Failed conditions
1 Security Hotspot
32.4% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube Cloud

@blueorangutan

Copy link
Copy Markdown

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

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@harikrishna-patnala
harikrishna-patnala marked this pull request as ready for review June 16, 2026 10:43
@harikrishna-patnala
harikrishna-patnala merged commit ce9793c into mainJun 16, 2026
66 of 68 checks passed
@harikrishna-patnala
harikrishna-patnala deleted the clvm-enhancements branch June 16, 2026 10:46
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.

11 participants

@Pearl1594@blueorangutan@sureshanaparti@Luskan777@RosiKyu@NuxRo@winterhazel@JoaoJandre@weizhouapache@harikrishna-patnala