Project

General

Profile

Actions

Bug #22431

closed

balancer: calc_pg_upmaps not upmapping the correct pool

Added by Dan van der Ster over 6 years ago. Updated almost 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
balancer module
Target version:
-
% Done:

0%

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

Description

On this cluster, only the first pool "test" was ever upmapped:

POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
test 2 0 0 105T 0
cephfs_data 3 0 0 105T 0
cephfs_metadata 4 3558 0 105T 39

Here is a log from the balancer, where it should have upmapped pool 3, but chose 2 instead:

2017-12-13 16:50:35.201425 7fd6f2063700  4 mgr[balancer] pools ['cephfs_data', 'cephfs_metadata', 'test']
2017-12-13 16:50:36.450845 7fd6f2063700  4 mgr[balancer] prepared 10/10 changes
2017-12-13 16:50:36.451232 7fd6f2063700  4 mgr[balancer] Executing plan auto_2017-12-13_15:50:33
2017-12-13 16:50:36.453830 7fd6f2063700  4 mgr[balancer] ceph osd rm-pg-upmap-items 2.b7
2017-12-13 16:50:36.454020 7fd6f2063700  4 mgr[balancer] ceph osd rm-pg-upmap-items 2.2aa
2017-12-13 16:50:36.454150 7fd6f2063700  4 mgr[balancer] ceph osd rm-pg-upmap-items 2.2ef
2017-12-13 16:50:36.454263 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.73 mappings [{'to': 307L, 'from': 292L}]
2017-12-13 16:50:36.454396 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.b7 mappings [{'to': 0L, 'from': 426L}]
2017-12-13 16:50:36.454584 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.2aa mappings [{'to': 294L, 'from': 519L},
{'to': 39L, 'from': 89L}, {'to': 180L, 'from': 240L}]
2017-12-13 16:50:36.454697 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.334 mappings [{'to': 47L, 'from': 198L}, {
'to': 13L, 'from': 298L}]
2017-12-13 16:50:36.454796 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.719 mappings [{'to': 0L, 'from': 287L}]
2017-12-13 16:50:36.454894 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.90b mappings [{'to': 0L, 'from': 221L}]
2017-12-13 16:50:36.454991 7fd6f2063700  4 mgr[balancer] ceph osd pg-upmap-items 2.970 mappings [{'to': 2L, 'from': 280L}]
Actions

Also available in: Atom PDF