Skip to content

nfs: add snapshot-backed (shallow) read-only volume support#6193

Draft
Rakshith-R wants to merge 1 commit intoceph:develfrom
Rakshith-R:nfs-shallow
Draft

nfs: add snapshot-backed (shallow) read-only volume support#6193
Rakshith-R wants to merge 1 commit intoceph:develfrom
Rakshith-R:nfs-shallow

Conversation

@Rakshith-R
Copy link
Copy Markdown
Contributor

Describe what this PR does

Remove the hardcoded backingSnapshot = "false" override in the NFS controller, enabling NFS volumes to use CephFS snapshot-backed (shallow) read-only volumes. This avoids expensive data cloning when read-only access to snapshot contents is needed.

Changes:

  • Expose backingSnapshotRoot in CephFS volume context so the NFS controller can construct the correct export path pointing to the snapshot data directory.
  • Remove the backingSnapshot blocker in NFS CreateVolume and adjust the NFS export path to include the backing snapshot root for snapshot-backed volumes.
  • Add three NFS e2e tests: snapshot-backed volume, backing snapshot as false, and RWX clone from ROX PVC.

@mergify mergify Bot added the component/nfs Issues related to NFS label Mar 23, 2026
Remove the hardcoded `backingSnapshot = "false"` override in the
NFS controller, enabling NFS volumes to use CephFS snapshot-backed
(shallow) read-only volumes. This avoids expensive data cloning
when read-only access to snapshot contents is needed.

Changes:
- Expose `backingSnapshotRoot` in CephFS volume context so the
  NFS controller can construct the correct export path pointing
  to the snapshot data directory.
- Remove the `backingSnapshot` blocker in NFS CreateVolume and
  adjust the NFS export path to include the backing snapshot
  root for snapshot-backed volumes.
- Add three NFS e2e tests: snapshot-backed volume, backing
  snapshot as false, and RWX clone from ROX PVC.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Rakshith R <[email protected]>
@Rakshith-R
Copy link
Copy Markdown
Contributor Author

/test ci/centos/mini-e2e/k8s-1.35

@Rakshith-R Rakshith-R marked this pull request as draft March 24, 2026 09:59
@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Apr 23, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 23, 2026

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

@github-actions github-actions Bot removed the stale label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/nfs Issues related to NFS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant