Project

General

Profile

Bug #38495

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

Added by Tatjana Dehler 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/general
Target version:
Start date:
02/27/2019
Due date:
% Done:

0%

Source:
Development
Tags:
dashboard
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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.

History

#1 Updated by Tatjana Dehler 6 months 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.

#2 Updated by Volker Theile 6 months ago

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

#3 Updated by Lenz Grimmer 6 months ago

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

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

#4 Updated by Tatjana Dehler 6 months ago

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

#5 Updated by Tatjana Dehler 6 months ago

  • Status changed from Verified to In Progress

#6 Updated by Lenz Grimmer 6 months ago

  • Status changed from In Progress to Need Review

#7 Updated by Tatjana Dehler 6 months ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF