Skip to content

Conversation

@rp-
Copy link
Contributor

@rp- rp- commented Feb 21, 2025

Description

This PR deletes temporary Linstor -rst resources before trying to do the snapshot backup on non-hyperconverged setups.
If a -rst resource wasn't deleted because of a failed copy, a reoccurring snapshot attempt couldn't be done, because there was still the "old" -rst resource. To prevent this always try to remove the -rst resource before, if it doesn't exist it is a noop.

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?

Linstor cluster hyperconverged and non hyperconverged, doing snapshots.

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

If a -rst resource wasn't deleted because of a failed copy,
a reoccurring snapshot attempt couldn't be done, because there
was still the "old" -rst resource. To prevent this always
try to remove the -rst resource before, if it doesn't exist it is a noop.
@codecov
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 15.15%. Comparing base (e196275) to head (9756201).
Report is 16 commits behind head on 4.19.

Files with missing lines Patch % Lines
...tore/driver/LinstorPrimaryDataStoreDriverImpl.java 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19   #10443      +/-   ##
============================================
- Coverage     15.15%   15.15%   -0.01%     
+ Complexity    11314    11311       -3     
============================================
  Files          5413     5413              
  Lines        474704   474706       +2     
  Branches      57893    57893              
============================================
- Hits          71942    71923      -19     
- Misses       394717   394740      +23     
+ Partials       8045     8043       -2     
Flag Coverage Δ
uitests 4.29% <ø> (ø)
unittests 15.87% <0.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.

@DaanHoogland DaanHoogland requested a review from Pearl1594 March 3, 2025 15:37
Copy link
Contributor

@Pearl1594 Pearl1594 left a comment

Choose a reason for hiding this comment

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

Code LGTM. Left a very small comment.

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

@DaanHoogland
Copy link
Contributor

@Pearl1594 , i don't think we need further verification of this one. (gha+packaging+3rd party support)

@DaanHoogland DaanHoogland merged commit 95c2481 into apache:4.19 Mar 10, 2025
24 of 25 checks passed
@rp- rp- deleted the linstor-4.19-improve-disintegrated-snapshot-backup branch March 11, 2025 07:29
DaanHoogland added a commit that referenced this pull request Mar 12, 2025
* 4.19:
  linstor: try to delete -rst resource before snapshot backup (#10443)
DaanHoogland added a commit that referenced this pull request Mar 12, 2025
* 4.20:
  Fix Stats Collector to not divide by zero (#10492)
  linstor: try to delete -rst resource before snapshot backup (#10443)
@Pearl1594 Pearl1594 moved this to Done in ACS 4.20.1 Mar 17, 2025
phsm pushed a commit to phsm/cloudstack that referenced this pull request Mar 19, 2025
…0443)

If a -rst resource wasn't deleted because of a failed copy,
a reoccurring snapshot attempt couldn't be done, because there
was still the "old" -rst resource. To prevent this always
try to remove the -rst resource before, if it doesn't exist it is a noop.
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
…0443)

If a -rst resource wasn't deleted because of a failed copy,
a reoccurring snapshot attempt couldn't be done, because there
was still the "old" -rst resource. To prevent this always
try to remove the -rst resource before, if it doesn't exist it is a noop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants