From 46eafdabde57736d2a8b63f55cab94461885a957 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 9 May 2018 12:37:22 -0400 Subject: [PATCH] rbd: don't load config overrides from monitor initially The overrides will be loaded when we connect to the cluster via librados and the current approach prevents running 'rbd help' without a running cluster. Signed-off-by: Jason Dillaman --- src/tools/rbd/Shell.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/rbd/Shell.cc b/src/tools/rbd/Shell.cc index cbe21b11737..ee724f1a3f7 100644 --- a/src/tools/rbd/Shell.cc +++ b/src/tools/rbd/Shell.cc @@ -32,7 +32,8 @@ boost::intrusive_ptr global_init( argv_to_vec(argc, argv, cmd_args); std::vector args(cmd_args); auto cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, - CODE_ENVIRONMENT_UTILITY, 0); + CODE_ENVIRONMENT_UTILITY, + CINIT_FLAG_NO_MON_CONFIG); *command_args = {args.begin(), args.end()}; -- 2.39.5