From: Joao Eduardo Luis Date: Wed, 2 Jul 2014 19:19:19 +0000 (+0100) Subject: mon: OSDMonitor: be scary about inconsistent pool tier ids X-Git-Tag: v0.80.6~103^2~2^2~59 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aacf67d13f81fcc88881091d175fee9ecb0f8954;p=ceph.git mon: OSDMonitor: be scary about inconsistent pool tier ids We may not crash your cluster, but you'll know that this is not something that should have happened. Big letters makes it obvious. We'd make them red too if we bothered to look for the ANSI code. Signed-off-by: Joao Eduardo Luis (cherry picked from commit 8e5a8daf98052954f3880d2d3516841b5062466b) --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 3c414c16f28d..93b5f7372ddd 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -5080,7 +5080,10 @@ done: goto reply; } if (tp->tier_of != pool_id) { - ss << "tier pool '" << tierpoolstr << "' is a tier of '" << tp->tier_of << "'"; + ss << "tier pool '" << tierpoolstr << "' is a tier of '" + << osdmap.get_pool_name(tp->tier_of) << "': " + // be scary about it; this is an inconsistency and bells must go off + << "THIS SHOULD NOT HAVE HAPPENED AT ALL"; err = -EINVAL; goto reply; }