]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: ignore errors related to parsing the config file
authorJason Dillaman <dillaman@redhat.com>
Wed, 21 Aug 2019 21:20:51 +0000 (17:20 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 12:04:45 +0000 (08:04 -0400)
commit1e8c41e5f72b4f42bc87f2a8b6f45a853cc19faf
tree69f2ecb155e047bf3db8654f0a9b10728a5e0f72
parent57e684911b1948f780cd9d7409050aedf2bc6dd8
rbd-mirror: ignore errors related to parsing the config file

If one or more of the default search paths throw an error like
-EPERM, no longer abort the attempt to connect to the cluster.
Previously, after dropping privileges librados would attempt to
access "/root/.ceph/<cluster name>.conf" and would fail due to
the error, even if all the necessary data to connect was available
via the mon config-key store.

Fixes: https://tracker.ceph.com/issues/41356
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/PoolReplayer.cc