]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
- mgr/cephadm: provide an additional hint when running into I/O closed exception... 47464/head
authorMichaela Lang <milang@redhat.com>
Thu, 4 Aug 2022 17:14:49 +0000 (19:14 +0200)
committerMichaela Lang <milang@redhat.com>
Mon, 8 Aug 2022 19:19:26 +0000 (21:19 +0200)
               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 <milang@redhat.com>
src/pybind/mgr/cephadm/ssh.py

index e874ba6d78fe860b6ed969f1c6d15a7c71d13193..6d29e45d43d1c9dbc31c815a58a329e038ee3ca8 100644 (file)
@@ -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: