Skip to content

Commit

Permalink
[ceph-client] force to set ceph-mgr module configs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chinasubbareddym committed Dec 17, 2019
1 parent 016b56e commit 61419dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ceph-client/templates/bin/mgr/_start.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61419dd

Please sign in to comment.