Project

General

Profile

Actions

Bug #42366

open

reweight-subtree will not update weight for shadowed node

Added by Xiaoxi Chen over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

reweight subtree will only update osd weight in main tree, but those weight in shadow node (like myrack~hdd) will not be updated.

For those pool using crush rule with "class" selector, it will cause confusion in data distribution.

Even , explicitly reweight-subtree the shadow node(myrack~hdd) is forbidden as "~" considered a invalid name.

shadow node

-380   hdd    4.00000     rack MCC10-01-0710-3301-1~hdd
-372   hdd          0         host rnc05c-1eye~hdd
 579   hdd          0             osd.579
 582   hdd          0             osd.582
 585   hdd          0             osd.585
 588   hdd          0             osd.588
 589   hdd          0             osd.589
 590   hdd          0             osd.590
 591   hdd          0             osd.591
 593   hdd          0             osd.593
 595   hdd          0             osd.595
 597   hdd          0             osd.597
 599   hdd          0             osd.599
 601   hdd          0             osd.601
-364   hdd          0         host rnc05c-2dwn~hdd
 557   hdd          0             osd.557
 560   hdd          0             osd.560
 563   hdd          0             osd.563
 566   hdd          0             osd.566
 569   hdd          0             osd.569
 571   hdd          0             osd.571
 573   hdd          0             osd.573
 575   hdd          0             osd.575
 577   hdd          0             osd.577
 580   hdd          0             osd.580
 584   hdd          0             osd.584
 587   hdd          0             osd.587

-377        384.00000     rack MCC10-01-0710-3301-1
-369         48.00000         host rnc05c-1eye
 579   hdd    4.00000             osd.579
 582   hdd    4.00000             osd.582
 585   hdd    4.00000             osd.585
 588   hdd    4.00000             osd.588
 589   hdd    4.00000             osd.589
 590   hdd    4.00000             osd.590
 591   hdd    4.00000             osd.591
 593   hdd    4.00000             osd.593
 595   hdd    4.00000             osd.595
 597   hdd    4.00000             osd.597
 599   hdd    4.00000             osd.599
 601   hdd    4.00000             osd.601
-361         48.00000         host rnc05c-2dwn
 557   hdd    4.00000             osd.557
 560   hdd    4.00000             osd.560
 563   hdd    4.00000             osd.563
 566   hdd    4.00000             osd.566
 569   hdd    4.00000             osd.569
 571   hdd    4.00000             osd.571
 573   hdd    4.00000             osd.573
 575   hdd    4.00000             osd.575
 577   hdd    4.00000             osd.577
 580   hdd    4.00000             osd.580
 584   hdd    4.00000             osd.584
 587   hdd    4.00000             osd.587
Actions #1

Updated by Xiaoxi Chen over 4 years ago

  • Assignee set to Xiaoxi Chen
  • Source set to Community (dev)
Actions #2

Updated by Greg Farnum over 4 years ago

  • Project changed from Ceph to RADOS
  • Component(RADOS) CRUSH added
Actions

Also available in: Atom PDF