]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD: reply pg_created when pg is peered 55239/head
authorzhangjianwei2 <zhangjianwei2_yewu@cmss.chinamobile.com>
Thu, 4 Jan 2024 09:28:29 +0000 (17:28 +0800)
committerzhangjianwei2 <zhangjianwei2_yewu@cmss.chinamobile.com>
Mon, 15 Jan 2024 12:54:12 +0000 (20:54 +0800)
commitb0e6ce3967b3e59c4ae77f1a1eff50b22c6f12de
tree722e14c34327f973dedc0dd90800ab4461d4f13c
parent9bb8ee487169b08ed9bb1fad8359b4ee366ae021
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 <zhangjianwei2@cmss.chinamobile.com>
src/osd/OSD.cc
src/osd/PGPeeringEvent.h
src/osd/PeeringState.cc
src/osd/PeeringState.h