Project

General

Profile

Actions

Bug #47397

closed

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

Added by Kiefer Chang over 3 years ago. Updated about 3 years ago.

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

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

Related issues 2 (0 open2 closed)

Has duplicate Dashboard - Bug #47837: ERROR: test_create_export_for_cephfs_root (tasks.mgr.dashboard.test_ganesha.GaneshaTest)Duplicate

Actions
Copied to Dashboard - Backport #47832: octopus: mgr/dashboard: error when creating an NFS export with CephFS path `/` ResolvedKiefer ChangActions
Actions #1

Updated by Kiefer Chang over 3 years ago

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

Updated by Kiefer Chang over 3 years ago

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

Updated by Kiefer Chang over 3 years ago

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

Updated by Tatjana Dehler over 3 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Tatjana Dehler over 3 years ago

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

Updated by Lenz Grimmer over 3 years ago

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

Updated by Ernesto Puerta about 3 years ago

  • Has duplicate Bug #47837: ERROR: test_create_export_for_cephfs_root (tasks.mgr.dashboard.test_ganesha.GaneshaTest) added
Actions #8

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 144 to Component - NFS
Actions

Also available in: Atom PDF