Project

General

Profile

Actions

Bug #42565

closed

mgr/dashboard: "TypeError: Object of Type LazyUUID4 is not JSON serializable"

Added by Ernesto Puerta over 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
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

After Debug mode PR was added, now when an exception is triggered, the error responses from the back-end include a UUID of the request (in order to better match HTTP responses and log traces). In older versions of Cherrypy (like the ones most distros come with), this UUID is not yet implemented, so Debug mode had to provide a work-around for this. That's why there are 2 different implementations for the UUID: the work-around one works, while the native one doesn't. It triggers another exception because of an error when JSON serializing the response.

In order to avoid different code paths for older-newer versions, I'll basically include the same implementation for both.


Files

uuid.png (391 KB) uuid.png Ernesto Puerta, 10/30/2019 12:23 PM
Actions #1

Updated by Ernesto Puerta over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Ernesto Puerta over 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 31266
Actions #3

Updated by Ernesto Puerta over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Nathan Cutler over 4 years ago

  • Status changed from Pending Backport to Resolved

backport to nautilus is being handled via #38378 and #41990

Actions #5

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