ceph: mtc process management improvement
These commits were lost accidentally when StarlingX code was migrated from stx-ceph (ceph jewel version) repository to stx-integ: * keep Ceph up when locking a 1 node configuration On 1 node configration we need ceph to be operational when node is locked otherwise sysinv will give errors when trying to configure it. Implements: containerization-2002844-CEPH-persistent-storage-backend-for-Kubernetes Story: 2002844 Task: 26877 * enable MTC management of Ceph proceses on worker nodes Worker nodes may now have a ceph monitor enabled, so remove checks preventing it and make sure that ceph.sh is present in /etc/system.d/worker/. Origin patch: https://github.com/starlingx-staging/stx-ceph/ commit/4fa893a39b4025957f9725d3f75ea502d081ea76 Depends-On: Ibe104b32f568bb59a02b84c255983323d5d14757 Change-Id: Ifd7e6876b853f5629195451a0c4af240d40ebee8 Signed-off-by: Ovidiu Poncea <Ovidiu.Poncea@windriver.com> Signed-off-by: Daniel Badea <daniel.badea@windriver.com>
This commit is contained in:
parent
233698ac52
commit
d7dd9cf6a4
10
ceph/ceph/files/ceph.sh
Executable file → Normal file
10
ceph/ceph/files/ceph.sh
Executable file → Normal file
@ -22,7 +22,6 @@ logecho ()
|
|||||||
|
|
||||||
start ()
|
start ()
|
||||||
{
|
{
|
||||||
if [[ "$nodetype" == "controller" ]] || [[ "$nodetype" == "storage" ]]; then
|
|
||||||
logecho "Starting ceph services..."
|
logecho "Starting ceph services..."
|
||||||
${INITDIR}/ceph start >> ${LOGFILE} 2>&1
|
${INITDIR}/ceph start >> ${LOGFILE} 2>&1
|
||||||
RC=$?
|
RC=$?
|
||||||
@ -30,15 +29,10 @@ start ()
|
|||||||
if [ ! -f ${CEPH_FILE} ]; then
|
if [ ! -f ${CEPH_FILE} ]; then
|
||||||
touch ${CEPH_FILE}
|
touch ${CEPH_FILE}
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
logecho "No ceph services on ${nodetype} node"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop ()
|
stop ()
|
||||||
{
|
{
|
||||||
if [[ "$nodetype" == "controller" ]] || [[ "$nodetype" == "storage" ]]; then
|
|
||||||
if [[ "$system_type" == "All-in-one" ]] && [[ "$system_mode" == "simplex" ]]; then
|
if [[ "$system_type" == "All-in-one" ]] && [[ "$system_mode" == "simplex" ]]; then
|
||||||
logecho "Ceph services will continue to run on node"
|
logecho "Ceph services will continue to run on node"
|
||||||
exit 0
|
exit 0
|
||||||
@ -52,10 +46,6 @@ stop ()
|
|||||||
|
|
||||||
${INITDIR}/ceph stop >> ${LOGFILE} 2>&1
|
${INITDIR}/ceph stop >> ${LOGFILE} 2>&1
|
||||||
RC=$?
|
RC=$?
|
||||||
else
|
|
||||||
logecho "No ceph services on ${nodetype} node"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RC=0
|
RC=0
|
||||||
|
Loading…
Reference in New Issue
Block a user