Commit 6e9e203
Laura Flores
mon, osd: add command to remove invalid pg-upmap-primary entries
The current rm-pg-upmap-primary command checks that the pgid exists
in the pgmap before continuing to remove it. Due to https://tracker.ceph.com/issues/66867,
some invalid pg-upmap-primary entires may exist for pools that have been removed.
Currently, these mappings are impossible to remove since the pgids no longer
exist in the pgmap.
This new command, rm-pg-upmap-primary-all, allows users the ability to remove
any and all pg-upmap-primary mappings in the osdmap at once, which includes
valid and invalid entries.
This command may also be helpful when upgrading from versions where users
are plagued by https://tracker.ceph.com/issues/61948. Users may use an upgraded
mon to remove all pg-upmap-primray entries (valid and invalid) so they continue
to upgrade to a safe version.
See manual testing for this patch here: https://tracker.ceph.com/issues/67179#note-12
Fixes: https://tracker.ceph.com/issues/67179
Fixes: https://tracker.ceph.com/issues/69760
Signed-off-by: Laura Flores <[email protected]>1 parent f5f9af4 commit 6e9e203
4 files changed
+62
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1038 | 1041 | | |
1039 | 1042 | | |
1040 | 1043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12417 | 12417 | | |
12418 | 12418 | | |
12419 | 12419 | | |
12420 | | - | |
| 12420 | + | |
| 12421 | + | |
12421 | 12422 | | |
12422 | 12423 | | |
12423 | 12424 | | |
12424 | 12425 | | |
12425 | 12426 | | |
12426 | 12427 | | |
12427 | 12428 | | |
| 12429 | + | |
12428 | 12430 | | |
12429 | 12431 | | |
12430 | 12432 | | |
| |||
12439 | 12441 | | |
12440 | 12442 | | |
12441 | 12443 | | |
| 12444 | + | |
| 12445 | + | |
12442 | 12446 | | |
12443 | 12447 | | |
12444 | 12448 | | |
| |||
12458 | 12462 | | |
12459 | 12463 | | |
12460 | 12464 | | |
| 12465 | + | |
12461 | 12466 | | |
12462 | 12467 | | |
12463 | 12468 | | |
| |||
12483 | 12488 | | |
12484 | 12489 | | |
12485 | 12490 | | |
| 12491 | + | |
12486 | 12492 | | |
12487 | | - | |
12488 | | - | |
12489 | | - | |
12490 | | - | |
12491 | | - | |
12492 | | - | |
12493 | | - | |
12494 | | - | |
12495 | | - | |
12496 | | - | |
| 12493 | + | |
| 12494 | + | |
| 12495 | + | |
| 12496 | + | |
| 12497 | + | |
| 12498 | + | |
| 12499 | + | |
| 12500 | + | |
| 12501 | + | |
| 12502 | + | |
| 12503 | + | |
| 12504 | + | |
| 12505 | + | |
| 12506 | + | |
| 12507 | + | |
| 12508 | + | |
| 12509 | + | |
| 12510 | + | |
| 12511 | + | |
| 12512 | + | |
| 12513 | + | |
| 12514 | + | |
| 12515 | + | |
| 12516 | + | |
| 12517 | + | |
12497 | 12518 | | |
12498 | 12519 | | |
12499 | 12520 | | |
| |||
12528 | 12549 | | |
12529 | 12550 | | |
12530 | 12551 | | |
| 12552 | + | |
| 12553 | + | |
12531 | 12554 | | |
12532 | 12555 | | |
12533 | 12556 | | |
| |||
12733 | 12756 | | |
12734 | 12757 | | |
12735 | 12758 | | |
| 12759 | + | |
| 12760 | + | |
| 12761 | + | |
| 12762 | + | |
| 12763 | + | |
| 12764 | + | |
| 12765 | + | |
12736 | 12766 | | |
12737 | 12767 | | |
12738 | 12768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5216 | 5216 | | |
5217 | 5217 | | |
5218 | 5218 | | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
| 5227 | + | |
| 5228 | + | |
| 5229 | + | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
5219 | 5233 | | |
5220 | 5234 | | |
5221 | 5235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
1495 | | - | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1496 | 1499 | | |
1497 | 1500 | | |
1498 | 1501 | | |
| |||
0 commit comments