Project

General

Profile

Actions

Bug #6894

closed

'ceph osd dump' produces malformed JSON if pool snapshots are present

Added by John Spray over 10 years ago. Updated over 10 years ago.

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

0%

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

Description

Example:

"pool_snaps": { "pool_snap_info": { "snapid": 1,
                  "stamp": "2013-11-25 18:27:34.152418",
                  "name": "test4.1"},
                "pool_snap_info": { "snapid": 2,
                  "stamp": "2013-11-25 18:27:36.370861",
                  "name": "test4.2"}},

Note that this is a dict with two identical keys. Most parsers will silently drop all but one of the entries in this situation, and that is what happens when using ceph-rest-api (see http://lists.ceph.com/pipermail/ceph-users-ceph.com/2013-November/006209.html)

Actions

Also available in: Atom PDF