From: Michaela Lang Date: Thu, 4 Aug 2022 17:14:49 +0000 (+0200) Subject: - mgr/cephadm: provide an additional hint when running into I/O closed exception... X-Git-Tag: v18.0.0~293^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47464%2Fhead;p=ceph.git - mgr/cephadm: provide an additional hint when running into I/O closed exception from execnet seen as Error EINVAL: Can't communicate with remote host `127.0.0.1`, possibly because python3 is not installed there: cannot send (already closed?) Signed-off-by: Michaela Lang --- diff --git a/src/pybind/mgr/cephadm/ssh.py b/src/pybind/mgr/cephadm/ssh.py index e874ba6d78fe..6d29e45d43d1 100644 --- a/src/pybind/mgr/cephadm/ssh.py +++ b/src/pybind/mgr/cephadm/ssh.py @@ -104,7 +104,7 @@ class SSHManager: except OSError as e: self.mgr.offline_hosts.add(host) log_content = log_string.getvalue() - msg = f"Can't communicate with remote host `{addr}`, possibly because python3 is not installed there. {str(e)}" + msg = f"Can't communicate with remote host `{addr}`, possibly because python3 is not installed there or you are missing NOPASSWD in sudoers. {str(e)}" logger.exception(msg) raise OrchestratorError(msg) except asyncssh.Error as e: