From 081c618cf929a3ab714724f3626823bac882e037 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Thu, 17 Oct 2019 13:18:59 +0000 Subject: [PATCH] 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 --- ceph-osd/templates/bin/osd/_common.sh.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/ceph-osd/templates/bin/osd/_common.sh.tpl b/ceph-osd/templates/bin/osd/_common.sh.tpl index bf095ebf4..5ff3109ab 100644 --- a/ceph-osd/templates/bin/osd/_common.sh.tpl +++ b/ceph-osd/templates/bin/osd/_common.sh.tpl @@ -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"]))')