[ceph-osd] Add disk zap to OSD init forced repair case

There exists a case for bluestore OSDs where the OSD init process
detects that an OSD has already been initialized in the deployed
Ceph cluster, but the cluster osdmap does not have an entry for it.
This change corrects this case to zap and reinitialize the disk
when OSD_FORCE_REPAIR is set to 1. It also clarifies a log message
in this case when OSD_FORCE_REPAIR is 0 to state that a manual
repair is necessary.

Change-Id: I2f00fa655bf5359dcc80c36d6c2ce33e3ce33166
This commit is contained in:
Stephen Taylor 2023-08-31 07:51:43 -06:00
parent 6df0925b25
commit d29efccdbb
3 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Ceph OSD
name: ceph-osd
version: 0.1.46
version: 0.1.47
home: https://github.com/ceph/ceph
...

View File

@ -84,8 +84,9 @@ function determine_what_needs_zapping {
CEPH_LVM_PREPARE=0
elif [[ ${OSD_FORCE_REPAIR} -eq 1 ]]; then
echo "OSD initialized for this cluster, but OSD ID not found in the cluster, reinitializing"
ZAP_DEVICE=1
else
echo "OSD initialized for this cluster, but OSD ID not found in the cluster"
echo "OSD initialized for this cluster, but OSD ID not found in the cluster, repair manually"
fi
fi
else

View File

@ -47,4 +47,5 @@ ceph-osd:
- 0.1.44 Update Ceph to 17.2.6
- 0.1.45 Extend the ceph-osd post-apply job PG wait
- 0.1.46 Use Helm toolkit functions for Ceph probes
- 0.1.47 Add disk zap to OSD init forced repair case
...