Project

General

Profile

Actions

Bug #63860

open

[pg-autoscaler] Discrepancy in the "osd pool autoscale-status" command between normal vs json formatted outputs

Added by Kamoltat (Junior) Sirivadhna 5 months ago. Updated 6 days ago.

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

0%

Source:
Tags:
Backport:
squid, reef, quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Description of problem:
We observe a discrepancy between the outputs of regular vs JSON formatted outputs for "ceph osd pool autoscale-status" command.

[ceph]# ceph osd pool autoscale-status
POOL SIZE TARGET SIZE RATE RAW CAPACITY RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW PG_NUM AUTOSCALE BULK
.mgr 448.5k 3.0 374.9G 0.0000 1.0 1 off False
cephfs.cephfs.meta 20348 3.0 374.9G 0.0000 4.0 16 off False
cephfs.cephfs.data 0 3.0 374.9G 0.0000 1.0 32 off False
.rgw.root 2724 3.0 374.9G 0.0000 1.0 32 off False
default.rgw.log 3702 3.0 374.9G 0.0000 1.0 32 off False
default.rgw.control 0 3.0 374.9G 0.0000 1.0 32 off False
default.rgw.meta 382 3.0 374.9G 0.0000 4.0 32 off False
test_pool_1 639.5M 3.0 374.9G 0.0050 1.0 16 off False
[ceph]# ceph osd pool autoscale-status -f plain
POOL SIZE TARGET SIZE RATE RAW CAPACITY RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW PG_NUM AUTOSCALE BULK
.mgr 448.5k 3.0 374.9G 0.0000 1.0 1 off False
cephfs.cephfs.meta 20348 3.0 374.9G 0.0000 4.0 16 off False
cephfs.cephfs.data 0 3.0 374.9G 0.0000 1.0 32 off False
.rgw.root 2724 3.0 374.9G 0.0000 1.0 32 off False
default.rgw.log 3702 3.0 374.9G 0.0000 1.0 32 off False
default.rgw.control 0 3.0 374.9G 0.0000 1.0 32 off False
default.rgw.meta 382 3.0 374.9G 0.0000 4.0 32 off False
test_pool_1 639.5M 3.0 374.9G 0.0050 1.0 16 off False
[ceph]# ceph osd pool autoscale-status -f json

[ {
"actual_capacity_ratio": 3.4224374124008632e-06,
"actual_raw_used": 1377840.0,
"bias": 1.0,
"bulk": false,
"capacity_ratio": 3.4224374124008632e-06,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 459280,
"pg_autoscale_mode": "on",
"pg_num_final": 1,
"pg_num_ideal": 0,
"pg_num_target": 1,
"pool_id": 1,
"pool_name": ".mgr",
"raw_used": 1377840.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 1.5162810587774946e-07,
"actual_raw_used": 61044.0,
"bias": 4.0,
"bulk": false,
"capacity_ratio": 1.5162810587774946e-07,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 20348,
"pg_autoscale_mode": "on",
"pg_num_final": 16,
"pg_num_ideal": 0,
"pg_num_target": 16,
"pool_id": 2,
"pool_name": "cephfs.cephfs.meta",
"raw_used": 61044.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 0.0,
"actual_raw_used": 0.0,
"bias": 1.0,
"bulk": false,
"capacity_ratio": 0.0,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 0,
"pg_autoscale_mode": "on",
"pg_num_final": 32,
"pg_num_ideal": 0,
"pg_num_target": 32,
"pool_id": 3,
"pool_name": "cephfs.cephfs.data",
"raw_used": 0.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 2.029855319495722e-08,
"actual_raw_used": 8172.0,
"bias": 1.0,
"bulk": false,
"capacity_ratio": 2.029855319495722e-08,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 2724,
"pg_autoscale_mode": "on",
"pg_num_final": 32,
"pg_num_ideal": 0,
"pg_num_target": 32,
"pool_id": 4,
"pool_name": ".rgw.root",
"raw_used": 8172.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 2.7586359738521156e-08,
"actual_raw_used": 11106.0,
"bias": 1.0,
"bulk": false,
"capacity_ratio": 2.7586359738521156e-08,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 3702,
"pg_autoscale_mode": "on",
"pg_num_final": 32,
"pg_num_ideal": 0,
"pg_num_target": 32,
"pool_id": 5,
"pool_name": "default.rgw.log",
"raw_used": 11106.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 0.0,
"actual_raw_used": 0.0,
"bias": 1.0,
"bulk": false,
"capacity_ratio": 0.0,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 0,
"pg_autoscale_mode": "on",
"pg_num_final": 32,
"pg_num_ideal": 0,
"pg_num_target": 32,
"pool_id": 6,
"pool_name": "default.rgw.control",
"raw_used": 0.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 2.846566564050535e-09,
"actual_raw_used": 1146.0,
"bias": 4.0,
"bulk": false,
"capacity_ratio": 2.846566564050535e-09,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 382,
"pg_autoscale_mode": "on",
"pg_num_final": 32,
"pg_num_ideal": 0,
"pg_num_target": 32,
"pool_id": 7,
"pool_name": "default.rgw.meta",
"raw_used": 1146.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}, {
"actual_capacity_ratio": 0.004996936033248603,
"actual_raw_used": 2011717824.0,
"bias": 1.0,
"bulk": false,
"capacity_ratio": 0.004996936033248603,
"crush_root_id": -1,
"effective_target_ratio": 0.0,
"logical_used": 670572608,
"pg_autoscale_mode": "on",
"pg_num_final": 32,
"pg_num_ideal": 3,
"pg_num_target": 16,
"pool_id": 8,
"pool_name": "test_pool_1",
"raw_used": 2011717824.0,
"raw_used_rate": 3.0,
"subtree_capacity": 402590269440,
"target_bytes": 0,
"target_ratio": 0.0,
"would_adjust": false
}
]

Actions #1

Updated by Kamoltat (Junior) Sirivadhna 5 months ago

  • Pull request ID set to 54968
Actions #2

Updated by Kamoltat (Junior) Sirivadhna 5 months ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Kamoltat (Junior) Sirivadhna 6 days ago

  • Backport set to squid, reef, quincy
Actions

Also available in: Atom PDF