Ceph: Dont attempt to reuse monmap if it exists
This PS forces the monmap to be clobbered each time the container starts which is required to recover from ome senarios when using an emptydir to back /etc/ceph. Change-Id: I2cf271593591ce07435893336cff98a8b1c72166 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
@@ -63,15 +63,6 @@ function get_mon_config {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# if monmap exists and the mon is already there, don't overwrite monmap
|
||||
if [ -f "${MONMAP}" ]; then
|
||||
monmaptool --print "${MONMAP}" |grep -q "${MON_IP// }"":${MON_PORT}"
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "${MON_IP} already exists in monmap ${MONMAP}"
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create a monmap with the Pod Names and IP
|
||||
monmaptool --create ${MONMAP_ADD} --fsid ${fsid} ${MONMAP} --clobber
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user