Project

General

Profile

Bug #47397

mgr/dashboard: error when creating an NFS export with CephFS path `/`

Added by Kiefer Chang 4 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/nfs-ganesha
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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 "/"')

export_cephfs_root.png View (83.6 KB) Kiefer Chang, 09/11/2020 07:36 AM


Related issues

Copied to mgr - Backport #47832: octopus: mgr/dashboard: error when creating an NFS export with CephFS path `/` Resolved

History

#1 Updated by Kiefer Chang 4 months ago

  • Backport changed from octopus,nautilus to octopus
  • Affected Versions deleted (v14.2.9)

#2 Updated by Kiefer Chang 4 months ago

  • Status changed from New to In Progress
  • Assignee set to Kiefer Chang
  • Regression changed from No to Yes

#3 Updated by Kiefer Chang 4 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 37154

#4 Updated by Tatjana Dehler 3 months ago

  • Status changed from Fix Under Review to Pending Backport

#5 Updated by Tatjana Dehler 3 months ago

  • Copied to Backport #47832: octopus: mgr/dashboard: error when creating an NFS export with CephFS path `/` added

#6 Updated by Lenz Grimmer 3 months ago

  • Status changed from Pending Backport to Resolved
  • Target version set to v16.0.0

Also available in: Atom PDF