Bug #76731
closed[Reads Balancer] PGs not getting scaled down post removal of bulk flag on the cluster
0%
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.
LF Updated by Laura Flores 7 months ago
- Status changed from New to In Progress
- Assignee set to Laura Flores
LF Updated by Laura Flores 7 months ago
- 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
Bump up; fix will be ready soon.
RZ Updated by Radoslaw Zarzynski 6 months ago
Bump up.
LF Updated by Laura Flores 6 months ago
- 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
- Backport changed from tentacle,squid to umbrella,tentacle,squid
LF Updated by Laura Flores 5 months ago
Unit test is nearly ready.
LF Updated by Laura Flores 4 months ago
- Status changed from In Progress to Fix Under Review
RZ Updated by Radoslaw Zarzynski 4 months ago
Approved, in QA.
RZ Updated by Radoslaw Zarzynski 4 months ago
Still awaits for QA.
LF Updated by Laura Flores 4 months ago
PR sent to QA and is ready to be reviewed.
LF Updated by Laura Flores 4 months ago
- Status changed from Fix Under Review to Pending Backport
LF Updated by Laura Flores 4 months ago
- 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
- 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
- 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
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 4 months ago
- 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
- 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
- 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
- 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