[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:
parent
016b56e586
commit
61419dd305
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user