Bug #66867
closedpg_upmap_primary items are retained in OSD map for a pool which is already deleted
100%
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
Updated by MOHIT AGRAWAL over 1 year ago
- Assignee set to MOHIT AGRAWAL
- Component(RADOS) Monitor added
Updated by MOHIT AGRAWAL over 1 year ago
- Status changed from New to Fix Under Review
Updated by Laura Flores over 1 year ago
- Related to Bug #67179: Make rm-pg-upmap-primary able to remove mappings by force added
Updated by Laura Flores over 1 year ago
- Status changed from Fix Under Review to Pending Backport
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
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
Updated by Laura Flores over 1 year ago
- Tags (freeform) set to backport_processed
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.
Updated by Yuri Weinstein over 1 year ago
Updated by Radoslaw Zarzynski over 1 year ago
- Status changed from Fix Under Review to Pending Backport
Updated by Laura Flores over 1 year ago
- Assignee changed from MOHIT AGRAWAL to Laura Flores
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)
Updated by Yuri Weinstein about 1 year ago
Updated by Laura Flores about 1 year ago
- Related to Bug #69760: Monitors crash largely due to the structure of pg-upmap-primary added
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.
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
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
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