Skip to content

Surface EnableCSI requirement for snapshot-move-data backups - #10355

Open
PranjalManhgaye wants to merge 3 commits into
velero-io:mainfrom
PranjalManhgaye:fix/snapshot-move-data-enablecsi-warning
Open

PranjalManhgaye wants to merge 3 commits into
velero-io:mainfrom
PranjalManhgaye:fix/snapshot-move-data-enablecsi-warning

Conversation

@PranjalManhgaye

Copy link
Copy Markdown
Contributor

Fixes #10299

Summary

  • When snapshot-move-data is used without EnableCSI, the backup now warns operators explicitly instead of showing a generic volumesnapshotter message
  • Skipped CSI backup item actions and CSI persistent volumes are tracked with a clear reason naming the EnableCSI flag
  • Non-snapshot-move-data backups keep the existing info-level CSI skip behavior

Test plan

  • Added test for CSI BIA skip with snapshot-move-data and EnableCSI off
  • Added test for CSI PV skip reason in snapshot path
  • go test ./pkg/backup -run 'TestBackupItemActionsForSkippedPV|TestBackupWithSnapshots'

When snapshot-move-data is requested but EnableCSI is off, warn operators
explicitly and record the skipped PV reason instead of reporting a generic
volumesnapshotter failure.

Fixes velero-io#10299

Signed-off-by: PranjalManhgaye <manhgayepranjal@gmail.com>
@PranjalManhgaye
PranjalManhgaye requested a review from a team as a code owner August 21, 2026 09:49
@netlify

netlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

👷 Deploy request for velero pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 58677a3

Signed-off-by: PranjalManhgaye <manhgayepranjal@gmail.com>
@codecov

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Cover the non-snapshot-move-data CSI BIA skip path and the
snapshot-move-data fallback path when EnableCSI is enabled.

Signed-off-by: PranjalManhgaye <manhgayepranjal@gmail.com>
@reasonerjt
reasonerjt requested a review from Lyndon-Li August 24, 2026 15:04

@kaovilai kaovilai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM on the code — clear improvement: when snapshot-move-data is requested but EnableCSI isn't set, this now logs a specific warning and tracks the PV as skipped with a clear reason, instead of a generic silent skip. Well covered with new test cases for the EnableCSI on/off x snapshot-move-data interaction. Has changelog and unit tests.

Note: PR currently shows mergeable=CONFLICTING — will need a rebase before it can land.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants