]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: create and cache asyncssh connection objects, and handle asyncssh connec...
authorMelissa <li.melissa.kun@gmail.com>
Tue, 20 Jul 2021 19:56:32 +0000 (15:56 -0400)
committerMelissa Li <li.melissa.kun@gmail.com>
Fri, 20 Aug 2021 18:27:38 +0000 (14:27 -0400)
commitf45ad8107b4ad179746c6c3770042ed89fe0236b
tree6d022bc8987d09268908821545be0f82dd7dd0b0
parent3583c34bc74d89914cda7d0ab83094e4e40e6a0b
mgr/cephadm: create and cache asyncssh connection objects, and handle asyncssh connection errors

Create asyncssh connection object in async `_remote_connection` function and cache in `self.cons`
Create a handler for asyncssh log redirection and output ssh log if a connection error occurs
Disable asyncssh logger from propagating because the asyncssh info messages are verbose

Fixes: https://tracker.ceph.com/issues/44676
Signed-off-by: Melissa Li <li.melissa.kun@gmail.com>
src/pybind/mgr/cephadm/ssh.py [new file with mode: 0644]