On AIO-DX only start Ceph MON and MDS via MTC
Defer start of Ceph ODSs to SM in order to avoid a race condition between MTC and SM when starting OSDs. This is only required for AIO-DX where SM manages the floating monitor and OSDs. Closes-Bug: 1932351 Signed-off-by: Pedro Henrique Linhares <PedroHenriqueLinhares.Silva@windriver.com> Change-Id: Ia718ae696d8158e63660ee54d226271a6bcb476e
This commit is contained in:
parent
8e84309624
commit
12d564b37d
@ -22,8 +22,18 @@ logecho ()
|
||||
|
||||
start ()
|
||||
{
|
||||
logecho "Starting ceph services..."
|
||||
${INITDIR}/ceph start >> ${LOGFILE} 2>&1
|
||||
SERVICES=""
|
||||
if [[ "$system_type" == "All-in-one" ]] && [[ "$system_mode" == "duplex" ]]; then
|
||||
# In an AIO-DX configuration SM manages the floating MON and OSDs. Here
|
||||
# we defer starting OSDs directly via the init script to allow SM to
|
||||
# start them at the appropriate time. This will eliminate a race between
|
||||
# MTC and SM starting OSDs simultaneously. Continue to start MON/MDS
|
||||
# service here so that MDS is operational after the monitor is up.
|
||||
SERVICES="mon mds"
|
||||
fi
|
||||
|
||||
logecho "Starting ceph ${SERVICES} services..."
|
||||
${INITDIR}/ceph start ${SERVICES} >> ${LOGFILE} 2>&1
|
||||
RC=$?
|
||||
|
||||
if [ ! -f ${CEPH_FILE} ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user