Actions
Bug #47397
closedmgr/dashboard: error when creating an NFS export with CephFS path `/`
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - NFS
Target version:
% Done:
0%
Source:
Tags:
Backport:
octopus
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
There is an error when submitting an NFS export by specifying "/" in the path.
Backend log:
2020-09-11T07:34:29.435+0000 7f02210d3700 0 [dashboard ERROR taskexec] Error while calling Task(ns=nfs/create, md={'path': '/', 'fsal': 'CEPH', 'cluster_id': 'bar'}) Traceback (most recent call last): File "/ceph/src/pybind/mgr/dashboard/tools.py", line 553, in _run val = self.task.fn(*self.task.fn_args, **self.task.fn_kwargs) # type: ignore File "/ceph/src/pybind/mgr/dashboard/controllers/nfsganesha.py", line 140, in create ex_id = ganesha_conf.create_export({ File "/ceph/src/pybind/mgr/dashboard/services/ganesha.py", line 971, in create_export self._save_export(export) File "/ceph/src/pybind/mgr/dashboard/services/ganesha.py", line 951, in _save_export export.fsal.create_path(export.path) File "/ceph/src/pybind/mgr/dashboard/services/ganesha.py", line 490, in create_path cfs.mk_dirs(path) File "/ceph/src/pybind/mgr/dashboard/services/cephfs.py", line 147, in mk_dirs raise Exception('Cannot create root directory "/"')
Files
Actions