Project

General

Profile

Actions

Bug #63836

open

OSD:oldest_map/newest_map should be displayed directly in the ceph daemon osd.x status command

Added by jianwei zhang 5 months ago. Updated 5 months ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
reef,quincy
Regression:
No
Severity:
5 - suggestion
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Component(RADOS):
OSD
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Question:
- ceph daemon osd.x status

# ceph daemon osd.0 status
{
    "cluster_fsid": "6bcb6246-8477-4831-ad89-ce37fd398ef7",
    "osd_fsid": "cdf2eea5-936a-4086-8192-f49aa8225866",
    "whoami": 0,
    "state": "active",
    "maps": "[1263~525]", //1263 + 525 -1 = 1787
    "cluster_osdmap_trim_lower_bound": 1263,
    "num_pgs": 128
}

- When osd status is displayed, only superblock.maps (begin ~ len) can be seen.
- This requires analysts to process the maps data to obtain the oldest_map and newest_map held by the current osd.
- Moreover, it cannot be simply added. Pay attention to the boundaries。
- This is not very friendly

Desired display effect:

# ceph daemon osd.0 status
{
    "cluster_fsid": "6bcb6246-8477-4831-ad89-ce37fd398ef7",
    "osd_fsid": "cdf2eea5-936a-4086-8192-f49aa8225866",
    "whoami": 0,
    "state": "active",
    "maps": "[1263~531]", // 1263 + 531 - 1 = 1793
    "oldest_map": "1263",
    "newest_map": "1793",
    "cluster_osdmap_trim_lower_bound": 1263,
    "num_pgs": 128
}

Actions #2

Updated by Kefu Chai 5 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 54913
Actions #3

Updated by Radoslaw Zarzynski 5 months ago

  • Backport set to reef,quincy
Actions

Also available in: Atom PDF