Project

General

Profile

Actions

Bug #43416

closed

test-restful.sh fails

Added by Kefu Chai over 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
restful module
Target version:
-
% Done:

0%

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

Description

2019-12-23T17:19:07.591+0000 7efda1ace700  0 [restful] [INFO] [werkzeug] ::ffff:172.21.15.139 - - [23/Dec/2019 17:19:07] "POST /osd/0/command HTTP/1.1" 500 -
2019-12-23T17:19:07.592+0000 7efda1ace700  0 [restful] [ERROR] [werkzeug] Error on request:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 209, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 197, in execute
    application_iter = app(environ, start_response)
  File "/usr/lib/python3.6/site-packages/pecan/middleware/recursive.py", line 56, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 840, in __call__
    return super(Pecan, self).__call__(environ, start_response)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 683, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 604, in invoke_controller
    result = self.render(template, result)
  File "/usr/lib/python3.6/site-packages/pecan/core.py", line 425, in render
    return renderer.render(template, namespace)
  File "/usr/lib/python3.6/site-packages/pecan/templating.py", line 23, in render
    return encode(namespace)
  File "/usr/lib/python3.6/site-packages/pecan/jsonify.py", line 133, in encode
    return _instance.encode(obj)
  File "/usr/lib64/python3.6/json/encoder.py", line 201, in encode
    chunks = list(chunks)
  File "/usr/lib64/python3.6/json/encoder.py", line 438, in _iterencode
    yield from _iterencode(o, _current_indent_level)
  File "/usr/lib64/python3.6/json/encoder.py", line 430, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib64/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/lib64/python3.6/json/encoder.py", line 437, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.6/site-packages/pecan/jsonify.py", line 108, in default
    return JSONEncoder.default(self, obj)
  File "/usr/lib64/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'map' is not JSON serializable
/a//kchai-2019-12-23_16:20:31-rados-wip-kefu-testing-2019-12-21-0133-distro-basic-smithi/4628408
Actions #1

Updated by Kefu Chai over 4 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Kefu Chai
  • Pull request ID set to 32421
Actions #2

Updated by Kefu Chai over 4 years ago

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

Updated by Boris Ranto about 3 years ago

  • Backport set to nautilus
Actions #4

Updated by Boris Ranto about 3 years ago

Octopus already has the commit in it, we also need to back-port it to nautilus.

Actions

Also available in: Atom PDF