Skip to content

tentacle: osd: add pg-upmap-primary to clean_pg_upmaps - #67407

Merged
batrick merged 1 commit into
ceph:tentaclefrom
ljflores:wip-74949-tentacle
Apr 6, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
ljflores:wip-74949-tentacle

Conversation

@ljflores

Copy link
Copy Markdown
Member

This commit adds handling of pg_upmap_primary to `clean_pg_upmaps`
so invalid mappings are properly removed. Invalid mappings occur
when pools are deleted, the PG size is decreased, or an OSD is
marked down/out.

Test cases cover cases where:
1. PG num is reduced (all pg_upmap_primary mappings should be canceled)
2. An OSD outside of the up set has been mapped as the primary
3. An OSD is marked "out"
4. A mapping is redundant
5. A pool is deleted

Run the unit test with:
$ ninja unittest_osdmap
$ ./bin/unittest_osdmap --gtest_filter=*CleanPGUpmapPrimaries* --debug_osd=10

Fixes: https://tracker.ceph.com/issues/67265
Signed-off-by: Laura Flores <[email protected]>
(cherry picked from commit e37d02a)
@ljflores ljflores added this to the tentacle milestone Feb 18, 2026
@ljflores ljflores added the core label Feb 18, 2026
@rzarzynski

Copy link
Copy Markdown
Contributor

jenkins test make check

@amathuria

Copy link
Copy Markdown
Contributor

@batrick
batrick merged commit 284964a into ceph:tentacle Apr 6, 2026
8 checks passed
@batrick batrick modified the milestones: tentacle, v20.2.2 Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants