Project

General

Profile

Actions

Bug #66867

closed

pg_upmap_primary items are retained in OSD map for a pool which is already deleted

Added by MOHIT AGRAWAL over 1 year ago. Updated 5 months ago.

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

100%

Source:
Community (user)
Backport:
reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Monitor
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v19.3.0-3937-gda6a9b2175
Released In:
v20.2.0~2313
Upkeep Timestamp:
2025-11-01T01:33:01+00:00

Description

We are observing that the pg_upmap_primary items for a pool is retained and present in the OSDmap, even after the pool is deleted from the cluster.

These entries should be deleted once the pool related to the entries is deleted.

Steps to Reproduce:
1) Start vstart cluster
MON=1 MGR=1 OSD=3 ../src/vstart.sh -b -n --without-dashboard
2) ./bin/ceph osd pool create test 128 128
3) Generate some data
/nvme0/ceph/build/bin/rados -c /nvme0/ceph/build/ceph.conf -p test bench -b 4096 300 write --concurrent-ios 16 --no-cleanup
4) disable the balancer
./bin/ceph balancer off
5) Get th osdmap
./bin/ceph osd getmap -o om
6) Run the optimizer
osdmaptool om --read out.txt --read-pool test --vstart
7) Set compat client to reef
./bin/ceph osd set-require-min-compat-client reef
8) Apply the changes
source out.txt
9) osd dump is showing entries like below
pg_upmap_primary 4.0 2
pg_upmap_primary 4.2 2
pg_upmap_primary 4.3 2
pg_upmap_primary 4.4 2
pg_upmap_primary 4.5 2
pg_upmap_primary 4.6 2
pg_upmap_primary 4.7 2
pg_upmap_primary 4.8 0
10) Delete the pool(test id is 4)
./bin/ceph osd pool delete test test --yes-i-really-really-mean-it
11) osd dump is still showing similar pg primary upmap entries.
pg_upmap_primary 4.0 2
pg_upmap_primary 4.2 2
pg_upmap_primary 4.3 2
pg_upmap_primary 4.4 2
pg_upmap_primary 4.5 2
pg_upmap_primary 4.6 2
pg_upmap_primary 4.7 2
pg_upmap_primary 4.8 0


Related issues 4 (0 open4 closed)

Related to RADOS - Bug #67179: Make rm-pg-upmap-primary able to remove mappings by forceResolvedLaura Flores

Actions
Related to RADOS - Bug #69760: Monitors crash largely due to the structure of pg-upmap-primaryDuplicateLaura Flores

Actions
Copied to RADOS - Backport #67245: squid: pg_upmap_primary items are retained in OSD map for a pool which is already deletedResolvedLaura FloresActions
Copied to RADOS - Backport #67246: reef: pg_upmap_primary items are retained in OSD map for a pool which is already deletedResolvedKonstantin ShalyginActions
Actions #1

Updated by MOHIT AGRAWAL over 1 year ago

  • Assignee set to MOHIT AGRAWAL
  • Component(RADOS) Monitor added
Actions #2

Updated by MOHIT AGRAWAL over 1 year ago

  • Pull request ID set to 58470
Actions #3

Updated by MOHIT AGRAWAL over 1 year ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Laura Flores over 1 year ago

  • Backport set to reef,squid
Actions #5

Updated by Laura Flores over 1 year ago

Scrub note: In review

Actions #6

Updated by Laura Flores over 1 year ago

Approved; awaiting QA

Actions #7

Updated by Laura Flores over 1 year ago

  • Related to Bug #67179: Make rm-pg-upmap-primary able to remove mappings by force added
Actions #8

Updated by Laura Flores over 1 year ago

Awaiting QA

Actions #9

Updated by Laura Flores over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #10

Updated by Laura Flores over 1 year ago

  • Copied to Backport #67245: squid: pg_upmap_primary items are retained in OSD map for a pool which is already deleted added
Actions #11

Updated by Laura Flores over 1 year ago

  • Copied to Backport #67246: reef: pg_upmap_primary items are retained in OSD map for a pool which is already deleted added
Actions #12

Updated by Laura Flores over 1 year ago

  • Tags (freeform) set to backport_processed
Actions #13

Updated by Laura Flores over 1 year ago

  • Status changed from Pending Backport to Fix Under Review

Testing the squid backport in parallel to hopefully get that in for the squid RC1 deadline.

Actions #15

Updated by Radoslaw Zarzynski over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #16

Updated by Laura Flores over 1 year ago

  • Assignee changed from MOHIT AGRAWAL to Laura Flores
Actions #17

Updated by Konstantin Shalygin about 1 year ago

  • Status changed from Pending Backport to Resolved
  • Target version set to v20.0.0
  • % Done changed from 0 to 100
  • Source set to Community (user)
Actions #19

Updated by Laura Flores about 1 year ago

  • Related to Bug #69760: Monitors crash largely due to the structure of pg-upmap-primary added
Actions #20

Updated by Laura Flores about 1 year ago

This fix addresses existing and future pools. Please see https://tracker.ceph.com/issues/67179#note-21 for a solution for removing any leftover mappings from pools that have already been deleted.

Actions #21

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to da6a9b2175e565771d554c6e3c99a281c9a872c3
  • Fixed In set to v19.3.0-3937-gda6a9b2175e
  • Upkeep Timestamp set to 2025-07-10T19:37:09+00:00
Actions #22

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v19.3.0-3937-gda6a9b2175e to v19.3.0-3937-gda6a9b2175
  • Upkeep Timestamp changed from 2025-07-10T19:37:09+00:00 to 2025-07-14T22:42:20+00:00
Actions #23

Updated by Upkeep Bot 5 months ago

  • Released In set to v20.2.0~2313
  • Upkeep Timestamp changed from 2025-07-14T22:42:20+00:00 to 2025-11-01T01:33:01+00:00
Actions

Also available in: Atom PDF