Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linstor: Fix ZFS snapshot backup #10219

Merged

Conversation

rp-
Copy link
Contributor

@rp- rp- commented Jan 20, 2025

Description

Linstor plugin used the wrong zfs dataset path to hide/unhide the snapshot device.
Also don't use the full path to the zfs binary.

Fixes: #9360

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 with zfs storage backend.

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

@rp- rp- self-assigned this Jan 20, 2025
@rp- rp- linked an issue Jan 20, 2025 that may be closed by this pull request
@DaanHoogland DaanHoogland added this to the 4.19.2 milestone Jan 20, 2025
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

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

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

Project coverage is 15.13%. Comparing base (00c659b) to head (0c6b3fc).
Report is 3 commits behind head on 4.19.

Files with missing lines Patch % Lines
...e/wrapper/LinstorBackupSnapshotCommandWrapper.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.19   #10219   +/-   ##
=========================================
  Coverage     15.13%   15.13%           
- Complexity    11275    11279    +4     
=========================================
  Files          5408     5408           
  Lines        474003   474006    +3     
  Branches      57821    57822    +1     
=========================================
+ Hits          71729    71743   +14     
+ Misses       394256   394242   -14     
- Partials       8018     8021    +3     
Flag Coverage Δ
uitests 4.30% <ø> (ø)
unittests 15.85% <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.

Linstor plugin used the wrong zfs dataset path to hide/unhide
the snapshot device.
Also don't use the full path to the zfs binary.
@rp- rp- force-pushed the linstor-4.19-fix-zfs-volume-snapshots branch from 05e1dd0 to 0c6b3fc Compare January 21, 2025 08:08
@rp-
Copy link
Contributor Author

rp- commented Jan 21, 2025

noticed on some zfs distribution, the direct /dev/zpool/volume path is not always created, the safer variant is to use /dev/zvol/zpool/...

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

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala 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

@harikrishna-patnala harikrishna-patnala merged commit 1ff68cf into apache:4.19 Jan 21, 2025
25 of 26 checks passed
@rp- rp- deleted the linstor-4.19-fix-zfs-volume-snapshots branch January 21, 2025 10:20
DaanHoogland added a commit that referenced this pull request Jan 21, 2025
* 4.20:
  linstor: Fix ZFS snapshot backup (#10219)
  fix listing of VMs by network (#10204)
  Configure org.eclipse.jetty.server.Request.maxFormKeys from server.properties and increase the default value (#10214)
  api: fix access for listSystemVmUsageHistory (#10032)
  Fix NPE issues during host rolling maintenance, due to host tags and custom constrained/unconstrained service offering (#9844)
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.

Linstor VM/Volume snapshots
4 participants