Actions
Bug #61587
closed
ID
AM
"counter dump" asok command emits invalid JSON (labeled perf counters)
Bug #61587:
"counter dump" asok command emits invalid JSON (labeled perf counters)
Due date:
% Done:
0%
Source:
Backport:
reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Merge Commit:
Fixed In:
v18.0.0-4961-gc57faa651d1
Released In:
v19.2.0~2002
Upkeep Timestamp:
2025-07-12T10:09:26+00:00
Description
{
...
"rbd_mirror_snapshot_image": {
"labels": {
"image": "b1",
"namespace": "",
"pool": "data"
},
"counters": {
"snapshots": 1,
"sync_time": {
"avgcount": 1,
"sum": 0.394751259,
"avgtime": 0.394751259
},
"sync_bytes": 3203072,
"remote_timestamp": 1685658580.065694857,
"local_timestamp": 1685658580.065694857,
"last_sync_time": 0.394751259,
"last_sync_bytes": 3203072
}
},
"rbd_mirror_snapshot_image": {
"labels": {
"image": "b2",
"namespace": "",
"pool": "data"
},
"counters": {
"snapshots": 1,
"sync_time": {
"avgcount": 1,
"sum": 0.383831520,
"avgtime": 0.383831520
},
"sync_bytes": 4182016,
"remote_timestamp": 1685659196.821769027,
"local_timestamp": 1685659196.821769027,
"last_sync_time": 0.383831520,
"last_sync_bytes": 4182016
}
},
...
}
needs to become
{
...
"rbd_mirror_snapshot_image": [
{
"labels": {
"image": "b1",
"namespace": "",
"pool": "data"
},
"counters": {
"snapshots": 1,
"sync_time": {
"avgcount": 1,
"sum": 0.394751259,
"avgtime": 0.394751259
},
"sync_bytes": 3203072,
"remote_timestamp": 1685658580.065694857,
"local_timestamp": 1685658580.065694857,
"last_sync_time": 0.394751259,
"last_sync_bytes": 3203072
}
},
{
"labels": {
"image": "b2",
"namespace": "",
"pool": "data"
},
"counters": {
"snapshots": 1,
"sync_time": {
"avgcount": 1,
"sum": 0.383831520,
"avgtime": 0.383831520
},
"sync_bytes": 4182016,
"remote_timestamp": 1685659196.821769027,
"local_timestamp": 1685659196.821769027,
"last_sync_time": 0.383831520,
"last_sync_bytes": 4182016
}
},
],
...
}
Otherwise a compliant JSON parser is free to pick up only one of the mirrored images, at random, since they are dumped in the same dictionary under the same "rbd_mirror_snapshot_image" key.
This was missed in https://github.com/ceph/ceph/pull/48657 (mentioned but lost in backwards compatibility discussions). The exporter daemon would need be adjusted accordingly.
ID Updated by Ilya Dryomov over 3 years ago
- Description updated (diff)
AM Updated by Ali Maredia over 3 years ago
- Pull request ID set to 51947
ID Updated by Ilya Dryomov over 3 years ago
- Status changed from In Progress to Fix Under Review
ID Updated by Ilya Dryomov over 3 years ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot over 3 years ago
- Copied to Backport #62024: reef: "counter dump" asok command emits invalid JSON (labeled perf counters) added
AM Updated by Ali Maredia about 3 years ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to c57faa651d1151db8531f9acffb07597d7c44368
- Fixed In set to v18.0.0-4961-gc57faa651d1
- Released In set to v19.2.0~2002
- Upkeep Timestamp set to 2025-07-12T10:09:26+00:00
Actions