Commit b0e6ce3
zhangjianwei2
osd/OSD: reply pg_created when pg is peered
Problem:
when PG is active+clean
ceph osd force-create-pg 1.0 --yes-i-really-mean-it
because osd is not reply pg_created to mon.
Affects:
pool remains creating flags,
mon creating_pgs.pg is not empty,
lead to mon cannot trim OSDMaps
Solution:
add PgCreateEvt for pg create
if pg Active and is_peered,
reply pg_created to mon.
Fixes: https://tracker.ceph.com/issues/63912
Signed-off-by: zhangjianwei2 <[email protected]>1 parent 9bb8ee4 commit b0e6ce3
File tree
4 files changed
+26
-2
lines changed- src/osd
4 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| 1268 | + | |
1268 | 1269 | | |
1269 | 1270 | | |
1270 | 1271 | | |
| |||
1276 | 1277 | | |
1277 | 1278 | | |
1278 | 1279 | | |
| 1280 | + | |
1279 | 1281 | | |
1280 | 1282 | | |
1281 | 1283 | | |
| |||
9222 | 9224 | | |
9223 | 9225 | | |
9224 | 9226 | | |
9225 | | - | |
| 9227 | + | |
9226 | 9228 | | |
9227 | 9229 | | |
9228 | 9230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6332 | 6332 | | |
6333 | 6333 | | |
6334 | 6334 | | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
| 6343 | + | |
| 6344 | + | |
| 6345 | + | |
| 6346 | + | |
| 6347 | + | |
| 6348 | + | |
| 6349 | + | |
| 6350 | + | |
6335 | 6351 | | |
6336 | 6352 | | |
6337 | 6353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| 693 | + | |
693 | 694 | | |
694 | 695 | | |
695 | 696 | | |
| |||
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| 715 | + | |
714 | 716 | | |
715 | 717 | | |
716 | 718 | | |
| |||
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| 742 | + | |
740 | 743 | | |
741 | 744 | | |
742 | 745 | | |
| |||
867 | 870 | | |
868 | 871 | | |
869 | 872 | | |
870 | | - | |
| 873 | + | |
| 874 | + | |
871 | 875 | | |
872 | 876 | | |
873 | 877 | | |
| |||
906 | 910 | | |
907 | 911 | | |
908 | 912 | | |
| 913 | + | |
909 | 914 | | |
910 | 915 | | |
911 | 916 | | |
| |||
0 commit comments