Project

General

Profile

Actions

Bug #55322

closed

test-restful.sh: mon metadata unable to be retrieved

Added by Laura Flores about 2 years ago. Updated over 1 year ago.

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

100%

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

Description

/a/nojha-2022-04-13_16:47:41-rados-wip-yuri2-testing-2022-04-13-0703-distro-basic-smithi/6790445/teuthology.log

2022-04-13T17:15:21.666 INFO:tasks.ceph.mgr.x.smithi026.stderr:2022-04-13T17:15:21.658+0000 7f245d9cd700 -1 mgr get_metadata_python Requested missing service mon.a
2022-04-13T17:15:21.693 INFO:tasks.workunit.client.a.smithi026.stdout:{
2022-04-13T17:15:21.693 INFO:tasks.workunit.client.a.smithi026.stdout:    "failed": [],
2022-04-13T17:15:21.693 INFO:tasks.workunit.client.a.smithi026.stdout:    "finished": [
2022-04-13T17:15:21.694 INFO:tasks.workunit.client.a.smithi026.stdout:        {
2022-04-13T17:15:21.694 INFO:tasks.workunit.client.a.smithi026.stdout:            "command": "osd pool create pool=supertestfriends pg_num=128",
2022-04-13T17:15:21.694 INFO:tasks.workunit.client.a.smithi026.stdout:            "outb": "",
2022-04-13T17:15:21.694 INFO:tasks.workunit.client.a.smithi026.stdout:            "outs": "pool 'supertestfriends' created" 
2022-04-13T17:15:21.695 INFO:tasks.workunit.client.a.smithi026.stdout:        }
2022-04-13T17:15:21.695 INFO:tasks.workunit.client.a.smithi026.stdout:    ],
2022-04-13T17:15:21.695 INFO:tasks.workunit.client.a.smithi026.stdout:    "has_failed": false,
2022-04-13T17:15:21.695 INFO:tasks.workunit.client.a.smithi026.stdout:    "id": "139794436317136",
2022-04-13T17:15:21.696 INFO:tasks.workunit.client.a.smithi026.stdout:    "is_finished": true,
2022-04-13T17:15:21.696 INFO:tasks.workunit.client.a.smithi026.stdout:    "is_waiting": false,
2022-04-13T17:15:21.696 INFO:tasks.workunit.client.a.smithi026.stdout:    "running": [],
2022-04-13T17:15:21.696 INFO:tasks.workunit.client.a.smithi026.stdout:    "state": "success",
2022-04-13T17:15:21.696 INFO:tasks.workunit.client.a.smithi026.stdout:    "waiting": []
2022-04-13T17:15:21.697 INFO:tasks.workunit.client.a.smithi026.stdout:}
2022-04-13T17:15:21.700 INFO:tasks.workunit.client.a.smithi026.stderr:Traceback (most recent call last):
2022-04-13T17:15:21.701 INFO:tasks.workunit.client.a.smithi026.stderr:  File "/home/ubuntu/cephtest/clone.client.a/qa/workunits/rest/test_mgr_rest_api.py", line 40, in <module>
2022-04-13T17:15:21.701 INFO:tasks.workunit.client.a.smithi026.stderr:    firstmon = request.json()[0]['name']
2022-04-13T17:15:21.701 INFO:tasks.workunit.client.a.smithi026.stderr:  File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json
2022-04-13T17:15:21.701 INFO:tasks.workunit.client.a.smithi026.stderr:    return complexjson.loads(self.text, **kwargs)
2022-04-13T17:15:21.702 INFO:tasks.workunit.client.a.smithi026.stderr:  File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
2022-04-13T17:15:21.702 INFO:tasks.workunit.client.a.smithi026.stderr:    return _default_decoder.decode(s)
2022-04-13T17:15:21.703 INFO:tasks.workunit.client.a.smithi026.stderr:  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
2022-04-13T17:15:21.703 INFO:tasks.workunit.client.a.smithi026.stderr:    obj, end = self.raw_decode(s)
2022-04-13T17:15:21.703 INFO:tasks.workunit.client.a.smithi026.stderr:  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
2022-04-13T17:15:21.703 INFO:tasks.workunit.client.a.smithi026.stderr:    return self.scan_once(s, idx=_w(s, idx).end())
2022-04-13T17:15:21.703 INFO:tasks.workunit.client.a.smithi026.stderr:simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

/a/nojha-2022-04-13_16:47:41-rados-wip-yuri2-testing-2022-04-13-0703-distro-basic-smithi/6790445/remote/smithi026/log/ceph-mgr.x.log.gz

2022-04-13T17:15:21.622+0000 7f245d9cd700  0 [restful INFO werkzeug] ::ffff:172.21.15.26 - - [13/Apr/2022 17:15:21] "POST /pool?wait=yes HTTP/1.1" 200 -
2022-04-13T17:15:21.638+0000 7f245d9cd700  0 [restful INFO werkzeug] ::ffff:172.21.15.26 - - [13/Apr/2022 17:15:21] "GET /pool HTTP/1.1" 200 -
2022-04-13T17:15:21.658+0000 7f245d9cd700 -1 mgr get_metadata_python Requested missing service mon.a
2022-04-13T17:15:21.658+0000 7f245d9cd700  0 [restful ERROR root] Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pecan/core.py", line 683, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/usr/lib/python3/dist-packages/pecan/core.py", line 574, in invoke_controller
    result = controller(*args, **kwargs)
  File "/usr/share/ceph/mgr/restful/decorators.py", line 37, in decorated
    return f(*args, **kwargs)
  File "/usr/share/ceph/mgr/restful/api/mon.py", line 35, in get
    return context.instance.get_mons()
  File "/usr/share/ceph/mgr/restful/module.py", line 510, in get_mons
    mon['server'] = self.get_metadata("mon", mon['name'])['hostname']
TypeError: 'NoneType' object is not subscriptable


Related issues 3 (0 open3 closed)

Has duplicate Dashboard - Bug #56072: mgr/dashboard: TelemetryTest.test_get_report failedDuplicate

Actions
Copied to mgr - Backport #57188: pacific: test-restful.sh: mon metadata unable to be retrievedResolvedPrashant DActions
Copied to mgr - Backport #57189: quincy: test-restful.sh: mon metadata unable to be retrievedResolvedPrashant DActions
Actions

Also available in: Atom PDF