Added missing OSD_WEIGHT variable for Ceph OSD chart

One variable was not defined so on generating the command,
crush map was not created.

Change-Id: I37be1803f783ea0cf34876c6f9ef3a0bb39ff2a1
This commit is contained in:
Daniel Pawlik 2019-10-17 13:18:59 +00:00 committed by Daniel Pawlik
parent 8314c53030
commit 081c618cf9

View File

@ -24,6 +24,7 @@ set -ex
: "${OSD_BOOTSTRAP_KEYRING:=/var/lib/ceph/bootstrap-osd/${CLUSTER}.keyring}"
: "${OSD_JOURNAL_UUID:=$(uuidgen)}"
: "${OSD_JOURNAL_SIZE:=$(awk '/^osd_journal_size/{print $3}' ${CEPH_CONF}.template)}"
: "${OSD_WEIGHT:=1.0}"
eval CRUSH_FAILURE_DOMAIN_TYPE=$(cat /etc/ceph/storage.json | python -c 'import sys, json; data = json.load(sys.stdin); print(json.dumps(data["failure_domain"]))')
eval CRUSH_FAILURE_DOMAIN_NAME=$(cat /etc/ceph/storage.json | python -c 'import sys, json; data = json.load(sys.stdin); print(json.dumps(data["failure_domain_name"]))')