Project

General

Profile

Bug #38997

dashboard: NFS: failed to disable NFSv3 in export create

Added by Ricardo Dias 11 months ago. Updated 10 months ago.

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

0%

Source:
Tags:
dashboard nfs-ganesha
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

When creating an NFS export in ceph-dashboard, if we unselect the NFSv3 checkbox (selected by default) and then save the export we get the following frontend error message:

Failed to create NFS '_default_:/'
create() got an unexpected keyword argument 'protocolNfsv3'

and in the backend log we get:

2019-03-28 09:22:10.772 7f210ff91700  0 mgr[dashboard] Error while calling Task(ns=nfs/create, md={'path': '/', 'fsal': 'CEPH', 'cluster_id': '_default_'})
Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/tools.py", line 540, in _run
    val = self.task.fn(*self.task.fn_args, **self.task.fn_kwargs)
TypeError: create() got an unexpected keyword argument 'protocolNfsv3'

The json input that is sent in the POST http request is this:

{
  "cluster_id":"_default_",
  "daemons":["node2"],
  "fsal": {
    "name":"CEPH",
    "user_id":"admin",
    "fs_name":"cephfs",
    "sec_label_xattr":null
  },
  "path":"/",
  "protocolNfsv3":false,
  "tag":null,
  "pseudo":"/cephfs",
  "access_type":"RW",
  "squash":"no_root_squash",
  "clients":[],
  "security_label":false,
  "protocols":[4],
  "transports":["TCP","UDP"]
}

Related issues

Copied to mgr - Backport #39104: nautilus: dashboard: NFS: failed to disable NFSv3 in export create Resolved

History

#1 Updated by Tiago Melo 11 months ago

  • Status changed from New to In Progress
  • Assignee set to Tiago Melo

#2 Updated by Tiago Melo 11 months ago

  • Status changed from In Progress to Fix Under Review

#3 Updated by Tiago Melo 11 months ago

  • Pull request ID set to 27244

#4 Updated by Ricardo Marques 11 months ago

  • Status changed from Fix Under Review to Resolved

#5 Updated by Ricardo Marques 11 months ago

  • Status changed from Resolved to Pending Backport

#6 Updated by Ricardo Marques 11 months ago

  • Backport set to nautilus

#7 Updated by Ricardo Marques 11 months ago

  • Copied to Backport #39104: nautilus: dashboard: NFS: failed to disable NFSv3 in export create added

#8 Updated by Tatjana Dehler 10 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF