Project

General

Profile

Actions

Bug #18261

closed

rbd status: json format has duplicated/overwritten key

Added by Achim Ledermüller over 7 years ago. Updated over 7 years ago.

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

0%

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

Description

Hi,

`rbd status <name> --format json` duplicates the watcher key if there are serveral watchers on a RBD. For example:

{
  "watchers": {
    "watcher": {
      "address": "10.10.1.2:0\/1363000917",
      "client": 148717211,
      "cookie": 267
    },
    "watcher": {
      "address": "10.10.1.2:0\/1363000607",
      "client": 134617411,
      "cookie": 268
    }
  }
}

Maybe `watchers` should be array with hashes?

Kind regards,
Achim


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #18319: kraken: rbd status: json format has duplicated/overwritten keyClosedActions
Copied to rbd - Backport #18320: jewel: rbd status: json format has duplicated/overwritten keyResolvedNathan CutlerActions
Actions

Also available in: Atom PDF