[ceph-osd] Fix creating osd-id file logic for log-runner container
This is to fix the issue with osd-id file creation since current logic failing to create /tmp/osd-id file when we restart the pod/container. Change-Id: Ie9f810fa3a705eccaf625a3cbd91d3d8ee4e05d1
This commit is contained in:
parent
e42a628243
commit
6913435cc2
@ -76,10 +76,10 @@ fi
|
||||
mkdir -p /etc/forego/"${CLUSTER}"
|
||||
echo "" > /etc/forego/"${CLUSTER}"/Procfile
|
||||
|
||||
# NOTE(gagehugo): Writing the OSD_ID to tmp for logging
|
||||
echo "${OSD_ID}" > /tmp/osd-id
|
||||
|
||||
for OSD_ID in $(ls /var/lib/ceph/osd | sed 's/.*-//'); do
|
||||
# NOTE(gagehugo): Writing the OSD_ID to tmp for logging
|
||||
echo "${OSD_ID}" > /tmp/osd-id
|
||||
OSD_PATH="$OSD_PATH_BASE-$OSD_ID/"
|
||||
OSD_KEYRING="${OSD_PATH%/}/keyring"
|
||||
if [ -n "${JOURNAL_DIR}" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user