Project

General

Profile

Actions

Bug #45155

closed

mgr/dashboard: Error listing orchestrator NFS daemons

Added by Ricardo Marques about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I've used orchestrator to add an NFS gateway:

node1:~ # ceph orch apply nfs mynfs --pool rbd --placement node1

node1:~ # ceph orch ps --daemon_type nfs
NAME             HOST   STATUS         REFRESHED  AGE  VERSION  IMAGE NAME                                                               IMAGE ID      CONTAINER ID  
nfs.mynfs.node1  node1  running (15m)  5m ago     15m  3.2      registry.suse.de/devel/storage/7.0/cr/containers/ses/7/ceph/ceph:latest  148c249bd323  cabd6c88ffd0 

When I access the Dashboard NFS page, I've noticed that NFS was not automatically configured:

So I've configured Dashboard using the following command (Can't we automate this?):

node1:~ # ceph dashboard set-ganesha-clusters-rados-pool-namespace rbd
Option GANESHA_CLUSTERS_RADOS_POOL_NAMESPACE updated

After that I see the following error on Dashboard:

Apr 21 11:09:43 node1 bash[13619]: debug 2020-04-21T09:09:43.417+0000 7f5b59fcd700  0 [dashboard ERROR request] [::ffff:192.168.121.1:50698] [GET] [500] [0.002s] [admin] [513.0B] /api/nfs-ganesha/daemon
Apr 21 11:09:43 node1 bash[13619]: debug 2020-04-21T09:09:43.417+0000 7f5b59fcd700  0 [dashboard ERROR request] [b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "eed93d14-86a5-455b-9759-29733c879622"} 
                                                                                                                                                                                                                                                                                                                       ']
Apr 21 11:20:26 node1 bash[13619]: debug 2020-04-21T09:20:26.634+0000 7f5b5cfd3700  0 [dashboard ERROR request] [b'{"status": "500 Internal Server Error", "detail": "The server 
encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "c7c3a62e-6d37-4c54-aeed-704f029c1f49", "traceback": "Traceback (most recent 
call last):\\n  File \\"/usr/lib/python3.6/site-packages/cherrypy/_cprequest.py\\", line 638, in respond\\n    self._do_respond(path_info)\\n  File \\"/usr/lib/python3.6/site-pa
ckages/cherrypy/_cprequest.py\\", line 697, in _do_respond\\n    response.body = self.handler()\\n  File \\"/usr/lib/python3.6/site-packages/cherrypy/lib/encoding.py\\", line 21
9, in __call__\\n    self.body = self.oldhandler(*args, **kwargs)\\n  File \\"/usr/lib/python3.6/site-packages/cherrypy/_cptools.py\\", line 230, in wrap\\n    return self.newha
ndler(innerfunc, *args, **kwargs)\\n  File \\"/usr/share/ceph/mgr/dashboard/services/exception.py\\", line 94, in dashboard_exception_handler\\n    return handler(*args, **kwarg
s)\\n  File \\"/usr/lib/python3.6/site-packages/cherrypy/_cpdispatch.py\\", line 54, in __call__\\n    return self.callable(*self.args, **self.kwargs)\\n  File \\"/usr/share/cep
h/mgr/dashboard/controllers/__init__.py\\", line 665, in inner\\n    ret = func(*args, **kwargs)\\n  File \\"/usr/share/ceph/mgr/dashboard/controllers/__init__.py\\", line 858, 
in wrapper\\n    return func(*vpath, **params)\\n  File \\"/usr/share/ceph/mgr/dashboard/controllers/nfsganesha.py\\", line 251, in list\\n    status_dict = Ganesha.get_daemons_
status()\\n  File \\"/usr/share/ceph/mgr/dashboard/services/ganesha.py\\", line 89, in get_daemons_status\\n    if instance.service is None:\\nAttributeError: \'ServiceDescripti
on\' object has no attribute \'service\'\\n", "version": "18.3.0"}']

Files

nfs_2020-04-21_09-58-07.png (31.1 KB) nfs_2020-04-21_09-58-07.png Ricardo Marques, 04/21/2020 10:13 AM
nfs_2020-04-21_10-09-28.png (28.2 KB) nfs_2020-04-21_10-09-28.png Ricardo Marques, 04/21/2020 10:16 AM
Actions #1

Updated by Sebastian Wagner about 4 years ago

the traceback is:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 638, in respond
    self._do_respond(path_info)
  File "/usr/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
    response.body = self.handler()
  File "/usr/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/cherrypy/_cptools.py", line 230, in wrap
    return self.newhandler(innerfunc, *args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 94, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 665, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 858, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/nfsganesha.py", line 251, in list
    status_dict = Ganesha.get_daemons_status()
  File "/usr/share/ceph/mgr/dashboard/services/ganesha.py", line 89, in get_daemons_status
    if instance.service is None:
AttributeError: 'ServiceDescription' object has no attribute 'service'
Actions #2

Updated by Sebastian Wagner about 4 years ago

  • Assignee set to Michael Fritch
  • Target version changed from v16.0.0 to v15.2.2
Actions #3

Updated by Sebastian Wagner about 4 years ago

  • Project changed from mgr to Orchestrator
  • Subject changed from mgr/dashboard: Error listing orchestrator NFS daemons to cephadm: Error listing orchestrator NFS daemons
  • Category deleted (144)
Actions #4

Updated by Sebastian Wagner about 4 years ago

  • Project changed from Orchestrator to mgr
  • Subject changed from cephadm: Error listing orchestrator NFS daemons to mgr/dahboard: Error listing orchestrator NFS daemons
  • Assignee deleted (Michael Fritch)

sorry for the noise, mike

Actions #5

Updated by Josh Durgin almost 4 years ago

  • Category set to 144
Actions #6

Updated by Kiefer Chang almost 4 years ago

  • Assignee set to Kiefer Chang
Actions #7

Updated by Kiefer Chang almost 4 years ago

  • Status changed from New to In Progress
Actions #8

Updated by Kiefer Chang almost 4 years ago

The exception in the description was already fixed.

Thest rest of work is to set pool and namespace within cephadm:

ceph dashboard set-ganesha-clusters-rados-pool-namespace <value>

Actions #9

Updated by Kiefer Chang almost 4 years ago

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

Updated by Lenz Grimmer almost 4 years ago

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

Updated by Lenz Grimmer almost 4 years ago

  • Subject changed from mgr/dahboard: Error listing orchestrator NFS daemons to mgr/dashboard: Error listing orchestrator NFS daemons
  • Target version changed from v15.2.2 to v16.0.0
Actions #13

Updated by Nathan Cutler almost 4 years ago

  • Project changed from mgr to Orchestrator
  • Category deleted (144)

This is a "cephadm/orchestrator" issue, and the backport is being handled as such, so moving it to that project.

Actions #14

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Pending Backport to Closed
  • Target version changed from v16.0.0 to v15.2.5
Actions

Also available in: Atom PDF