From d50bd2daad67e46e25b8faf4261907d35f8fbf14 Mon Sep 17 00:00:00 2001 From: Matthew Heler Date: Sat, 8 Dec 2018 12:45:07 -0600 Subject: [PATCH] Fix detection of failure domain type Small typo in the logic filtering of the failure domain type for an OSD pod. This wasn't initially found since it didn't break any expected behavior tests. Change-Id: I2b895bbc83c6c71fffe1a0db357b120b3ffb7f56 --- ceph-osd/templates/bin/osd/_block.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-osd/templates/bin/osd/_block.sh.tpl b/ceph-osd/templates/bin/osd/_block.sh.tpl index 3c19613f6..abe96c3da 100644 --- a/ceph-osd/templates/bin/osd/_block.sh.tpl +++ b/ceph-osd/templates/bin/osd/_block.sh.tpl @@ -148,7 +148,7 @@ function crush_add_and_move { osd crush move "${HOSTNAME}" "${crush_failure_domain_type}=${crush_failure_domain_name}" || true fi } -if [ "x${CRUSH_FAILURE_DOMAIN_TYPE}" != "host" ]; then +if [ "x${CRUSH_FAILURE_DOMAIN_TYPE}" != "xhost" ]; then if [ "x${CRUSH_FAILURE_DOMAIN_NAME}" != "xfalse" ]; then crush_add_and_move "${CRUSH_FAILURE_DOMAIN_TYPE}" "${CRUSH_FAILURE_DOMAIN_NAME}" elif [ "x${CRUSH_FAILURE_DOMAIN_BY_HOSTNAME}" != "xfalse" ]; then