Skip to content

Conversation

@rp-
Copy link
Contributor

@rp- rp- commented Nov 11, 2025

Description

Before it was possible that a Host was picked for the primary storage
that was not even part of cluster, now we only consider hosts
from either the same cluster or same zone depending on primary storage
settings.

Also improve cleanup code on copyAsync operations.

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?

Hyperconverge and non hyperconverge Linstor cluster tested.

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

Seems instead of returning a unsuccessful answer it is better
to throw a CloudRuntimeException for error handling.
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

❌ Patch coverage is 0% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.23%. Comparing base (d26122b) to head (150be1c).
⚠️ Report is 39 commits behind head on 4.20.

Files with missing lines Patch % Lines
...tore/driver/LinstorPrimaryDataStoreDriverImpl.java 0.00% 45 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #12047      +/-   ##
============================================
+ Coverage     16.18%   16.23%   +0.05%     
- Complexity    13305    13379      +74     
============================================
  Files          5657     5657              
  Lines        498459   498958     +499     
  Branches      60492    60557      +65     
============================================
+ Hits          80694    81025     +331     
- Misses       408783   408900     +117     
- Partials       8982     9033      +51     
Flag Coverage Δ
uitests 4.00% <ø> (-0.01%) ⬇️
unittests 17.09% <0.00%> (+0.05%) ⬆️

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.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

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

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@rp- rp- requested a review from abh1sar January 7, 2026 06:47
Copy link
Collaborator

@abh1sar abh1sar left a comment

Choose a reason for hiding this comment

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

LGTM

Before it was possible that a Host was picked for the primary storage
that was not even part of cluster, now we only consider hosts
from either the same cluster or same zone depending on primary storage
settings.
@rp- rp- force-pushed the linstor-4.20-fix-host-picking branch from 1e9040f to 150be1c Compare January 12, 2026 10:15
@DaanHoogland DaanHoogland merged commit 8dcfc7c into apache:4.20 Jan 12, 2026
25 of 26 checks passed
@rp- rp- deleted the linstor-4.20-fix-host-picking branch January 12, 2026 10:30
Sign up for free to 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.

4 participants