diff options
author | Dan Mick <dan.mick@inktank.com> | 2013-07-16 18:45:25 -0700 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2013-07-16 23:00:06 -0700 |
commit | c9297e35b1aad7e650532b420e460392bfb1aa15 (patch) | |
tree | 07c70f6fe5bcab9df77c60f2425f61c74cb8f3f6 /src/global/global_init.cc | |
parent | d45429b81ab9817284d6dca98077cb77b5e8280f (diff) | |
download | ceph-wip-5634.tar.gz |
ceph, config, auth: better messages on failure to open keyring/ceph.confwip-5634
If something as simple as file ownership is wrong, Ceph commands
and daemons can fail to run, and the diagnostics are not great.
Improve that for at least the specific cases of unopenable keyring and
ceph.conf files.
Fixes: #5634
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Diffstat (limited to 'src/global/global_init.cc')
-rw-r--r-- | src/global/global_init.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/global/global_init.cc b/src/global/global_init.cc index e96c317f820..78da8458ab9 100644 --- a/src/global/global_init.cc +++ b/src/global/global_init.cc @@ -93,7 +93,9 @@ void global_init(std::vector < const char * > *alt_def_args, std::vector < const } } else if (ret) { - dout_emergency("global_init: error reading config file.\n"); + dout_emergency("global_init: error reading config file: "); + dout_emergency(cpp_strerror(ret)); + dout_emergency("\n"); _exit(1); } |