Actions
Bug #58228
openmgr/nfs: disallow non-existent paths when creating export
Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
Administration/Usability
Target version:
% Done:
0%
Source:
Tags:
backport_processed
Backport:
reef,quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/nfs
Labels (FS):
NFS-cluster
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Right now the path isn't validated, so one can:
# ceph nfs export create cephfs cephfs testnfs /cephfs/d6 /non_existed_dir { "bind": "/cephfs/d6", "fs": "cephfs", "path": "/non_existed_dir", "cluster": "testnfs", "mode": "RW" }
and the export will be happily created. Mounting the export would fail obviously, however, this can be checked when creating the export and informing the operator.
Actions