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 <noreply@anthropic.com>
Signed-off-by: Rakshith R <rar@redhat.com>
@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
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