Bug #12210
register_new_pgs() should check ruleno instead of its index
0%
Description
after a rule is removed, and pg num is increased, "ceph -s" fails to update the pg num accordingly. in other words, the monitor is not updated.
Related issues
Associated revisions
mon/PGMonitor: bug fix pg monitor get crush rule
when some rules have been deleted before, the index in array of crush->rules
is not always equals to crush_ruleset of pool.
Fixes: #12210
Reported-by: Ning Yao <zay11022@gmail.com>
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
mon/PGMonitor: bug fix pg monitor get crush rule
when some rules have been deleted before, the index in array of crush->rules
is not always equals to crush_ruleset of pool.
Fixes: #12210
Reported-by: Ning Yao <zay11022@gmail.com>
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
(cherry picked from commit 498793393c81c0a8e37911237969fba495a3a183)
mon/PGMonitor: bug fix pg monitor get crush rule
when some rules have been deleted before, the index in array of crush->rules
is not always equals to crush_ruleset of pool.
Fixes: #12210
Reported-by: Ning Yao <zay11022@gmail.com>
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
(cherry picked from commit 498793393c81c0a8e37911237969fba495a3a183)
History
#1 Updated by Kefu Chai over 3 years ago
#2 Updated by Kefu Chai over 3 years ago
- Priority changed from Normal to Urgent
#3 Updated by Kefu Chai over 3 years ago
- Description updated (diff)
#4 Updated by Sage Weil over 3 years ago
- Status changed from Need Review to Pending Backport
#5 Updated by Nathan Cutler over 3 years ago
- Status changed from Pending Backport to Resolved