Project

General

Profile

Actions

Bug #39303

closed

mgr/dashboard/controllers/summary.py: 500 server error when no daemons running

Added by Noah Watkins about 5 years ago. Updated about 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
General - Back-end
Target version:
-
% Done:

0%

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

Description

This dashboard error was reported by a Rook user. They reported that it occurred early on when there can be a delay before OSDs are up and running but the dashboard is functional. When the OSDs were running the error went away:

https://github.com/rook/rook/issues/2954

[09/Apr/2019:22:49:14] HTTP Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/jsontools.py", line 61, in json_handler
    value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/lib64/ceph/mgr/dashboard/controllers/summary.py", line 68, in __call__
    'rbd_mirroring': self._rbd_mirroring(),
  File "/usr/lib64/ceph/mgr/dashboard/controllers/summary.py", line 43, in _rbd_mirroring
    daemons = data.get('daemons', [])
AttributeError: 'NoneType' object has no attribute 'get'

[09/Apr/2019:22:49:14] HTTP
Request Headers:
  REFERER: https://internal.domain/ceph/
  X-FORWARDED-HOST: internal.domain
  Remote-Addr: 172.18.4.152
  X-REAL-IP: x.x.x.x
  USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
  COOKIE: csrftoken=U2XP5w7EXypGzEoEU2c27RaMZDS4sM0d9UY7gfyaUSLxfZgJWJ4jBzAcjlHolktb; session_id=8d9d350ab455355749c0ec87953c25dcd6219670
  ACCEPT: application/json, text/plain, */*
  X-FORWARDED-PROTO: https
  X-ORIGINAL-URI: /ceph/api/summary
  DNT: 1
  HOST: internal.domain
  X-SCHEME: https
  ACCEPT-LANGUAGE: en-US,en;q=0.9,fr;q=0.8
  X-FORWARDED-FOR: x.x.x.x
  X-FORWARDED-PORT: 443
  X-REQUEST-ID: 0e745f36f820f930f15d8ebb1c44b075
  ACCEPT-ENCODING: gzip, deflate, br
debug 2019-04-09 22:49:14.373 7ff9dfe34700  0 mgr[dashboard] [172.18.4.152:48554] [GET] [500] [5.003s] [admin] [1.1K] /ceph/api/summary
debug 2019-04-09 22:49:14.373 7ff9dfe34700  0 mgr[dashboard] ['{"status": "500 Internal Server Error", "version": "3.2.2", "detail": "The server encountered an unexpected condition
172.18.4.152 - - [09/Apr/2019:22:49:14] "GET /ceph/api/summary HTTP/1.1" 500 1127 "https://internal.domain/ceph/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36
Actions #1

Updated by Sebastian Wagner almost 5 years ago

  • Subject changed from mgr/dashboard: 500 server error when no daemons running to mgr/dashboard/controllers/summary.py: 500 server error when no daemons running
  • Category set to 146
Actions #2

Updated by Lenz Grimmer about 4 years ago

  • Status changed from New to Can't reproduce

Just tested this on a local cluster and was not able to reproduce it. Please re-open if this issue is still reproducible for you.

Actions #3

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 146 to General - Back-end
Actions

Also available in: Atom PDF