Merge "Fix Ceph processes start race condition"
This commit is contained in:
commit
d03fd2ebaa
@ -26,17 +26,10 @@ logecho ()
|
|||||||
|
|
||||||
start ()
|
start ()
|
||||||
{
|
{
|
||||||
if [[ "$system_type" != "All-in-one" ]] || [[ "$system_mode" != "duplex" ]]; then
|
# Defer ceph initialization to avoid race conditions. Let SM and Pmon to start the
|
||||||
logecho "Starting ceph services..."
|
# processes in the appropriate time.
|
||||||
${INITDIR}/ceph start >> ${LOGFILE} 2>&1
|
# Set the flag to let ceph start later.
|
||||||
RC=$?
|
logecho "Setting flag to enable ceph processes to start."
|
||||||
else
|
|
||||||
# In an AIO-DX configuration SM manages the floating MON and OSDs and pmon manages
|
|
||||||
# the ceph-mds process. Here we defer starting all ceph process to allow SM and pmon
|
|
||||||
# to start them at the appropriate time.
|
|
||||||
RC=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${CEPH_FILE} ]; then
|
if [ ! -f ${CEPH_FILE} ]; then
|
||||||
touch ${CEPH_FILE}
|
touch ${CEPH_FILE}
|
||||||
fi
|
fi
|
||||||
@ -55,7 +48,7 @@ stop ()
|
|||||||
rm -f ${CEPH_FILE}
|
rm -f ${CEPH_FILE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${INITDIR}/ceph stop >> ${LOGFILE} 2>&1
|
${INITDIR}/ceph-init-wrapper stop >> ${LOGFILE} 2>&1
|
||||||
RC=$?
|
RC=$?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user