[ceph-client] force to set ceph-mgr module configs

This is to force setting the config values for all moduels since nautilus
version will not let us set them  before mgr starts.

Change-Id: I0e370b525b628fce040b33ab2e403b8b71e948cb
This commit is contained in:
Chinasubbareddy Mallavarapu 2019-12-06 18:18:41 -06:00 committed by chinasubbareddy mallavarapu
parent 016b56e586
commit 61419dd305

View File

@ -54,7 +54,11 @@ for module in ${ENABLED_MODULES}; do
option=${option/${module}_/}
key=`echo $option | cut -d= -f1`
value=`echo $option | cut -d= -f2`
ceph --cluster "${CLUSTER}" config set mgr mgr/$module/$key $value
if [[ $(ceph -v | egrep -q "nautilus"; echo $?) -eq 0 ]]; then
ceph --cluster "${CLUSTER}" config set mgr mgr/$module/$key $value --force
else
ceph --cluster "${CLUSTER}" config set mgr mgr/$module/$key $value
fi
done
ceph --cluster "${CLUSTER}" mgr module enable ${module} --force
done