From: Nizamudeen A Date: Tue, 27 Sep 2022 06:12:05 +0000 (+0530) Subject: mgr/dashboard: handle the cephfs permission issue in nfs exports X-Git-Tag: v18.1.0~1114^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F48267%2Fhead;p=ceph.git mgr/dashboard: handle the cephfs permission issue in nfs exports Fixes: https://tracker.ceph.com/issues/48686 Signed-off-by: Nizamudeen A --- diff --git a/src/pybind/mgr/dashboard/controllers/nfs.py b/src/pybind/mgr/dashboard/controllers/nfs.py index 3c177511c1da..5591a03c0ad7 100644 --- a/src/pybind/mgr/dashboard/controllers/nfs.py +++ b/src/pybind/mgr/dashboard/controllers/nfs.py @@ -12,7 +12,8 @@ from mgr_module import NFS_GANESHA_SUPPORTED_FSALS from .. import mgr from ..security import Scope from ..services.cephfs import CephFS -from ..services.exception import DashboardException, serialize_dashboard_exception +from ..services.exception import DashboardException, handle_cephfs_error, \ + serialize_dashboard_exception from . import APIDoc, APIRouter, BaseController, Endpoint, EndpointDoc, \ ReadPermission, RESTController, Task, UIRouter from ._version import APIVersion @@ -117,6 +118,7 @@ class NFSGaneshaExports(RESTController): return exports + @handle_cephfs_error() @NfsTask('create', {'path': '{path}', 'fsal': '{fsal.name}', 'cluster_id': '{cluster_id}'}, 2.0) @EndpointDoc("Creates a new NFS-Ganesha export",