Project

General

Profile

Bug #45155

mgr/dashboard: Error listing orchestrator NFS daemons

Added by Ricardo Marques 4 months ago. Updated 22 days 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:

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"}']

nfs_2020-04-21_09-58-07.png View (31.1 KB) Ricardo Marques, 04/21/2020 10:13 AM

nfs_2020-04-21_10-09-28.png View (28.2 KB) Ricardo Marques, 04/21/2020 10:16 AM

History

#1 Updated by Sebastian Wagner 4 months 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'

#2 Updated by Sebastian Wagner 4 months ago

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

#3 Updated by Sebastian Wagner 4 months 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 (dashboard/nfs-ganesha)

#4 Updated by Sebastian Wagner 4 months 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

#5 Updated by Josh Durgin 3 months ago

  • Category set to dashboard/nfs-ganesha

#6 Updated by Kiefer Chang 2 months ago

  • Assignee set to Kiefer Chang

#7 Updated by Kiefer Chang about 2 months ago

  • Status changed from New to In Progress

#8 Updated by Kiefer Chang about 2 months 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>

#9 Updated by Kiefer Chang about 2 months ago

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

#10 Updated by Lenz Grimmer about 2 months ago

  • Status changed from Fix Under Review to Pending Backport

#11 Updated by Lenz Grimmer about 2 months 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

#13 Updated by Nathan Cutler about 1 month ago

  • Project changed from mgr to Orchestrator
  • Category deleted (dashboard/nfs-ganesha)

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

#14 Updated by Sebastian Wagner 22 days ago

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

Also available in: Atom PDF