Project

General

Profile

Actions

Bug #38495

closed

mgr/dashboard: API view is showing 'No API definition provided.'

Added by Tatjana Dehler about 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
General
Target version:
% Done:

0%

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

Description

When I go to Help -> API I receive the message 'No API definition provided.' instead of the API view. I also found 'Failed to load resource: the server responded with a status of 500 (Internal Server Error)' in the console.

Actions #1

Updated by Tatjana Dehler about 5 years ago

Also found

{  
  status:"500 Internal Server Error",
  detail:"The server encountered an unexpected condition which prevented it from fulfilling the request.",
    traceback:"Traceback (most recent call last):
      File "/usr/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 670, in respond response.body = self.handler()
      File "/usr/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 221, in __call__ self.body = self.oldhandler(*args, **kwargs)
      File "/usr/lib/python3.7/site-packages/cherrypy/_cptools.py", line 237, in wrap return self.newhandler(innerfunc, *args, **kwargs)
      File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 88, in dashboard_exception_handler return handler(*args, **kwargs)
      File "/usr/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__ return self.callable(*self.args, **self.kwargs)
      File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 545, in inner ret = func(*args, **kwargs)
      File "/ceph/src/pybind/mgr/dashboard/controllers/docs.py", line 220, in api_json return self._gen_spec(False, "/api"  )
      File "/ceph/src/pybind/mgr/dashboard/controllers/docs.py", line 183, in _gen_spec ssl = strtobool(mgr.get_localized_module_option('ssl', 'True'  ))
      File "/usr/lib64/python3.7/distutils/util.py", line 296, in strtobool val = val.lower() AttributeError:'bool'  object has no attribute 'lower' ",
  version:"10.2.1" 
}

in mgr log-file.

Actions #2

Updated by Volker Theile about 5 years ago

Use the str_to_bool function from the tools.py to fix the issue.

Actions #3

Updated by Lenz Grimmer about 5 years ago

  • Status changed from New to 12
  • Target version set to v14.0.0

Confirmed - this should be fixed for the initial Nautilus release.

Actions #4

Updated by Tatjana Dehler about 5 years ago

  • Assignee changed from Tatjana Dehler to Tina Kallio
  • Pull request ID set to 26227
Actions #5

Updated by Tatjana Dehler about 5 years ago

  • Status changed from 12 to In Progress
Actions #6

Updated by Lenz Grimmer about 5 years ago

  • Status changed from In Progress to Fix Under Review
Actions #7

Updated by Tatjana Dehler about 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions #8

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF