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 <joao.luis@inktank.com>
(cherry picked from commit
8e5a8daf98052954f3880d2d3516841b5062466b)
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;
}