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 about 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 #1

Updated by Mykola Golub over 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Mykola Golub
Actions #2

Updated by Mykola Golub over 7 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Mykola Golub over 7 years ago

  • Backport set to kraken,jewel
Actions #4

Updated by Jason Dillaman over 7 years ago

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

Updated by Jason Dillaman over 7 years ago

  • Project changed from Ceph to rbd
  • Category deleted (ceph cli)
Actions #6

Updated by Achim Ledermüller over 7 years ago

Ok,thank you for the fast help!

Actions #7

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #18319: kraken: rbd status: json format has duplicated/overwritten key added
Actions #8

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #18320: jewel: rbd status: json format has duplicated/overwritten key added
Actions #9

Updated by Jason Dillaman over 7 years ago

  • Backport changed from kraken,jewel to jewel
Actions #10

Updated by Nathan Cutler over 7 years ago

  • Backport changed from jewel to jewel,kraken
Actions #11

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF