message "Error opening SSH session. Verify username, password, and node hostnames are correct.", ...

WARN [2021-01-21 00:21:09,658] main - jepsen.core Test crashed!
clojure.lang.ExceptionInfo: throw+: {:dir "/", :private-key-path nil, :password "root", :username "root", :type :jepsen.control/session-error, :port 22, :strict-host-key-checking false, :host nil, :sudo nil, :dummy nil, :message "Error opening SSH session. Verify username, password, and node hostnames are correct.", :session nil}
        at slingshot.support$stack_trace.invoke(support.clj:201) ~[knossos-0.3.5.jar:na]
        at jepsen.control$session$fn__2905.invoke(control.clj:318) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.reconnect$open_BANG_$fn__2781.invoke(reconnect.clj:59) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.reconnect$open_BANG_.invokeStatic(reconnect.clj:57) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.reconnect$open_BANG_.invoke(reconnect.clj:54) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$session.invokeStatic(control.clj:312) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$session.invoke(control.clj:309) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clojure.lang.AFn.applyToHelper(AFn.java:154) ~[clojure-1.10.0.jar:na]
        at clojure.lang.AFn.applyTo(AFn.java:144) ~[clojure-1.10.0.jar:na]
        at clojure.core$apply.invokeStatic(core.clj:665) ~[clojure-1.10.0.jar:na]
        at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1973) ~[clojure-1.10.0.jar:na]
        at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1973) ~[clojure-1.10.0.jar:na]
        at clojure.lang.RestFn.applyTo(RestFn.java:142) ~[clojure-1.10.0.jar:na]
        at clojure.core$apply.invokeStatic(core.clj:669) ~[clojure-1.10.0.jar:na]
        at clojure.core$bound_fn_STAR_$fn__5734.doInvoke(core.clj:2003) ~[clojure-1.10.0.jar:na]
        at clojure.lang.RestFn.applyTo(RestFn.java:137) ~[clojure-1.10.0.jar:na]
        at clojure.core$apply.invokeStatic(core.clj:665) ~[clojure-1.10.0.jar:na]
        at clojure.core$apply.invoke(core.clj:660) ~[clojure-1.10.0.jar:na]
        at jepsen.util$fcatch$wrapper__2044.doInvoke(util.clj:37) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clojure.lang.RestFn.invoke(RestFn.java:408) ~[clojure-1.10.0.jar:na]
        at dom_top.core$real_pmap_helper$build_thread__214$fn__215.invoke(core.clj:146) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clojure.lang.AFn.applyToHelper(AFn.java:152) ~[clojure-1.10.0.jar:na]
        at clojure.lang.AFn.applyTo(AFn.java:144) ~[clojure-1.10.0.jar:na]
        at clojure.core$apply.invokeStatic(core.clj:665) ~[clojure-1.10.0.jar:na]
        at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1973) ~[clojure-1.10.0.jar:na]
        at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1973) ~[clojure-1.10.0.jar:na]
        at clojure.lang.RestFn.invoke(RestFn.java:425) ~[clojure-1.10.0.jar:na]
        at clojure.lang.AFn.applyToHelper(AFn.java:156) ~[clojure-1.10.0.jar:na]
        at clojure.lang.RestFn.applyTo(RestFn.java:132) ~[clojure-1.10.0.jar:na]
        at clojure.core$apply.invokeStatic(core.clj:669) ~[clojure-1.10.0.jar:na]
        at clojure.core$bound_fn_STAR_$fn__5734.doInvoke(core.clj:2003) ~[clojure-1.10.0.jar:na]
        at clojure.lang.RestFn.invoke(RestFn.java:397) ~[clojure-1.10.0.jar:na]
        at clojure.lang.AFn.run(AFn.java:22) ~[clojure-1.10.0.jar:na]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_66]
Caused by: com.jcraft.jsch.JSchException: Auth fail
        at com.jcraft.jsch.Session.connect(Session.java:512) ~[jsch-0.1.53.jar:na]
        at com.jcraft.jsch.Session.connect(Session.java:183) ~[jsch-0.1.53.jar:na]
        at clj_ssh.ssh$fn__2477.invokeStatic(ssh.clj:118) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clj_ssh.ssh$fn__2477.invoke(ssh.clj:115) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clj_ssh.ssh.protocols$fn__2435$G__2402__2444.invoke(protocols.clj:4) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clj_ssh.ssh$connect.invokeStatic(ssh.clj:401) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clj_ssh.ssh$connect.invoke(ssh.clj:397) ~[jepsen-0.1.15-SNAPSHOT.jar:na]

解决方案参考: https://github.com/jepsen-io/jepsen/issues/412
在自己的项目中加上了如下代码的58行
https://github.com/jepsen-io/jepsen/blob/ba6adb7915aa8373356a7f11704ea16e56420f59/jepsen/test/jepsen/core_test.clj#L58

是否可行,待验证。

你可能感兴趣的:(message "Error opening SSH session. Verify username, password, and node hostnames are correct.", ...)