You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
panic: pg 18.48: conflicting mapping(s) found when trying to map from 72 to 527 #10
drained osd
waited all active+clean
did norebalance, nobackfill flags
stopped this osd
did ceph osd purge for this osd
I got remapped pgs
When I tried to do a cancell-backfill I got a panic:
./pgremapper cancel-backfill --verbose
'--yes' is not provided, running in report mode
** executing: ceph osd dump -f json
** executing: ceph pg dump pgs_brief -f json
** executing: ceph osd dump -f json
** executing: ceph pg dump pgs_brief -f json
** executing: ceph osd dump -f json
** executing: ceph osd dump -f json
panic: pg 18.48: conflicting mapping(s) found when trying to map from 72 to 527
goroutine 82 [running]:
main.(*mappingState).remap(0xc0000123f0, 0xc000e5d605, 0x5, 0x48, 0x20f)
/pgremapper/mappingstate.go:76 +0x7a5
main.calcPgMappingsToUndoBackfill.func3(0xc00094a000, 0xc000012300, 0xc0000126c0, 0xc000182cc0, 0xc000948000, 0xc000948010, 0xc001240040)
/pgremapper/main.go:703 +0x3d3
created by main.calcPgMappingsToUndoBackfill
/pgremapper/main.go:646 +0x1a5
That existing mapping is stale (72->606 is obviously ignored given that both are in the up set). pgremapper will need to learn how to automatically clean up stale upmap items (something that Ceph should probably be doing itself, but alas).
To work around this, you can ceph osd rm-pg-upmap-items 18.48 for now.
@baergj any plan to fix this in code? The problem occurs too often for pgremapper satisfaction, I think to add handler in script, like panic: pg ${pgid}: conflicting mapping(s) found ; do rm-pg-upmap-items...
Activity
baergj commentedon Aug 13, 2021
Thanks for your report! I just got back from some time off and am looking at this now.
Here's the current upmap entry for the given PG:
{ "pgid": "18.48", "mappings": [ { "from": 72, "to": 606 } ] },And the current PG state:
{ "pgid": "18.48", "state": "active+remapped+backfilling", "up": [ 72, 165, 606 ], "acting": [ 165, 606, 527 ], "up_primary": 72, "acting_primary": 165 },That existing mapping is stale (72->606 is obviously ignored given that both are in the up set). pgremapper will need to learn how to automatically clean up stale upmap items (something that Ceph should probably be doing itself, but alas).
To work around this, you can
ceph osd rm-pg-upmap-items 18.48for now.timureh commentedon Aug 16, 2021
yes it solved the problem.
Thank you!
please clarify whether you plan to teach the pgremapper to detect such a situation and delete it automatically?
baergj commentedon Aug 16, 2021
We definitely plan to fix this!
k0ste commentedon Sep 1, 2021
Hope this fixable... Because sometimes this upmaps blocks pgremapper work not only 1-2 times 🥺
k0ste commentedon Oct 14, 2021
@baergj any plan to fix this in code? The problem occurs too often for
pgremappersatisfaction, I think to add handler in script, likepanic: pg ${pgid}: conflicting mapping(s) found ; do rm-pg-upmap-items...baergj commentedon Oct 14, 2021
Yeah, sorry for the delay. We'll get to it, but not sure when yet; maybe someone in the community will beat us to it. :)
k0ste commentedon Oct 18, 2021
@baergj thanks, make a hack for this issue for us 🙂
baergj commentedon Oct 28, 2021
This issue should be addressed by #17. Please let us know (probably with a new issue and dump) if you see future issues of this kind. Thanks!