]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: fix host connection exception
authorSage Weil <sage@redhat.com>
Sat, 14 Mar 2020 15:07:34 +0000 (10:07 -0500)
committerSage Weil <sage@redhat.com>
Sat, 14 Mar 2020 15:07:34 +0000 (10:07 -0500)
commit23514a5529f4e7aca8f51c55c7895b76fca87551
tree03996ddab9ddf88791715fe0bae75a4d29a077a7
parenta5bd70d8b73030b3a2976d8d88b7c37ce6021ded
mgr/cephadm: fix host connection exception

1- catch exception thrown by _get_connection itself
2- make the error message more informative.  the old one was

Error ENOENT: New host dael (10.3.64.25) failed to connect: `ssh -F /tmp/cephadm-conf-9tvrgrls -i /tmp/cephadm-identity-sj66ado1 root@10.3.64.25`

which was both misleading and had irrelevant information.  Now,

Error ENOENT: Failed to connect to dael (10.3.64.25).  Check that the host is reachable and accepts connections using the cephadm SSH key

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py