From 8089bea25eadc47b2bf22e574eef6f4869c74493 Mon Sep 17 00:00:00 2001 From: Michaela Lang Date: Thu, 4 Aug 2022 19:14:49 +0200 Subject: [PATCH] - 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 --- src/pybind/mgr/cephadm/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/ssh.py b/src/pybind/mgr/cephadm/ssh.py index e874ba6d78f..6d29e45d43d 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: -- 2.39.5