Project

General

Profile

Bug #18261

rbd status: json format has duplicated/overwritten key

Added by Achim Ledermüller 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/15/2016
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
jewel,kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
jewel
Needs Doc:
No

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

Copied to rbd - Backport #18319: kraken: rbd status: json format has duplicated/overwritten key Closed
Copied to rbd - Backport #18320: jewel: rbd status: json format has duplicated/overwritten key Resolved

History

#1 Updated by Mykola Golub 10 months ago

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

#2 Updated by Mykola Golub 10 months ago

  • Status changed from In Progress to Need Review

#3 Updated by Mykola Golub 10 months ago

  • Backport set to kraken,jewel

#4 Updated by Jason Dillaman 10 months ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Jason Dillaman 10 months ago

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

#6 Updated by Achim Ledermüller 10 months ago

Ok,thank you for the fast help!

#7 Updated by Nathan Cutler 10 months ago

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

#8 Updated by Nathan Cutler 10 months ago

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

#9 Updated by Jason Dillaman 10 months ago

  • Backport changed from kraken,jewel to jewel

#10 Updated by Nathan Cutler 10 months ago

  • Backport changed from jewel to jewel,kraken

#11 Updated by Nathan Cutler 9 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF