Project

General

Profile

Actions

Bug #76731

closed
LF LF

[Reads Balancer] PGs not getting scaled down post removal of bulk flag on the cluster

Bug #76731: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the cluster

Added by Laura Flores 7 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella,tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-2002-g86edcbec48
Released In:
Upkeep Timestamp:
2026-09-30T13:14:10+00:00

Description

I originally posted a fix for this in https://tracker.ceph.com/issues/67265, but we found that this patch did not fully fix the issue.

The fix in https://tracker.ceph.com/issues/67265 removes pg_upmap_primary mappings for PGs that are actively involved in a merge via the OSDMap code, but it does not address PGs that are marked as merge targets in the DaemonServer code.

"Merge targets" are a concept related to the pg autoscaler. When the "bulk" flag is removed from a pool, the pool's pg_num starts to down through a process called pg merging. In this process, PGs are identified as "merge targets" for which other PGs that are "merge sources" will merge into. Any upmaps associated with these merge targets must be removed before the merge process begins, as it is a requirement that the acting set of the PG merge target matches the PG merge source.

The fix for this ticket will be a followup to the fix in https://tracker.ceph.com/issues/67265.


Related issues 5 (0 open — 5 closed)

Related to Ceph - Bug #67265: Make sure *pgupmap* entries are removed when changing number of pgs per poolResolvedLaura Flores

Actions
Related to Ceph - Bug #74248: [Squid] MGR crash loop (Assertion Failure) in OSDMap::balance_primaries when enabling upmap_read with existing stale pg_upmap_primary entriesResolvedLaura Flores

Actions
Copied to RADOS - Backport #79485: tentacle: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the clusterResolvedLaura Flores

Actions
Copied to RADOS - Backport #79486: umbrella: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the clusterResolvedLaura Flores

Actions
Copied to RADOS - Backport #79487: squid: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the clusterResolvedLaura Flores

Actions

LF Updated by Laura Flores 7 months ago Actions #1

  • Status changed from New to In Progress
  • Assignee set to Laura Flores

LF Updated by Laura Flores 7 months ago Actions #2

  • Related to Bug #67265: Make sure *pgupmap* entries are removed when changing number of pgs per pool added

LF Updated by Laura Flores 6 months ago Actions #3

Bump up; fix will be ready soon.

RZ Updated by Radoslaw Zarzynski 6 months ago Actions #4

Bump up.

LF Updated by Laura Flores 6 months ago Actions #5

  • Pull request ID set to 69272

Adding the draft PR. The main fix is ready; currently working on adding a bit of documentation and a unit test.

YH Updated by Yaarit Hatuka 5 months ago Actions #6

  • Backport changed from tentacle,squid to umbrella,tentacle,squid

LF Updated by Laura Flores 5 months ago Actions #7

Unit test is nearly ready.

LF Updated by Laura Flores 4 months ago Actions #8

  • Status changed from In Progress to Fix Under Review

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #9

Approved, in QA.

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #10

Still awaits for QA.

LF Updated by Laura Flores 4 months ago Actions #11

PR sent to QA and is ready to be reviewed.

LF Updated by Laura Flores 4 months ago Actions #12

  • Status changed from Fix Under Review to Pending Backport

LF Updated by Laura Flores 4 months ago Actions #13

  • Copied to Backport #79485: tentacle: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the cluster added

LF Updated by Laura Flores 4 months ago Actions #14

  • Copied to Backport #79486: umbrella: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the cluster added

LF Updated by Laura Flores 4 months ago Actions #15

  • Copied to Backport #79487: squid: [Reads Balancer] PGs not getting scaled down post removal of bulk flag on the cluster added

LF Updated by Laura Flores 4 months ago Actions #16

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 4 months ago Actions #17

  • Merge Commit set to 86edcbec48b02629521092eb74403f2fbb266c03
  • Fixed In set to v21.3.0-2002-g86edcbec48
  • Upkeep Timestamp set to 2026-08-13T20:38:29+00:00

UB Updated by Upkeep Bot 3 months ago Actions #18

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-08-13T20:38:29+00:00 to 2026-08-27T18:45:45+00:00

LF Updated by Laura Flores 3 months ago Actions #19

  • Related to Bug #74248: [Squid] MGR crash loop (Assertion Failure) in OSDMap::balance_primaries when enabling upmap_read with existing stale pg_upmap_primary entries added

UB Updated by Upkeep Bot 2 months ago Actions #20

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-08-27T18:45:45+00:00 to 2026-09-30T13:14:10+00:00
Actions

Also available in: PDF Atom