Merge "Ceph: don't overwrite mon map"
This commit is contained in:
commit
799daefb83
@ -37,6 +37,15 @@ 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// }"":6789"
|
||||
if [ $? -eq 0 ]; then
|
||||
log "${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
|
||||
}
|
||||
|
@ -202,7 +202,8 @@ spec:
|
||||
name: ceph-etc
|
||||
defaultMode: 0444
|
||||
- name: pod-var-lib-ceph
|
||||
emptyDir: {}
|
||||
hostPath:
|
||||
path: {{ .Values.ceph.storage.mon_directory }}
|
||||
- name: pod-run
|
||||
emptyDir:
|
||||
medium: "Memory"
|
||||
|
Loading…
Reference in New Issue
Block a user