Actions
Bug #45155
closedmgr/dashboard: Error listing orchestrator NFS daemons
% Done:
0%
Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
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
Actions