美文网首页
jepsen注入网络故障,报"STDERR: iptables

jepsen注入网络故障,报"STDERR: iptables

作者: caoxinyiyi | 来源:发表于2020-06-08 15:36 被阅读0次

    错误信息:

    WARN [2020-06-08 15:08:44,867] main - jepsen.core Test crashed!
    clojure.lang.ExceptionInfo: Command exited with non-zero status 2 on node 192.168.69.23:
    sudo -S -u root bash -c "cd /; iptables -F -w"
    
    STDIN:
    null
    
    STDOUT:
    
    
    STDERR:
    iptables v1.4.7: option `-w' requires an argument
    Try `iptables -h' or 'iptables --help' for more information.
    
        at slingshot.support$stack_trace.invoke(support.clj:201) ~[knossos-0.3.5.jar:na]
        at jepsen.control$throw_on_nonzero_exit.invokeStatic(control.clj:126) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$throw_on_nonzero_exit.invoke(control.clj:121) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$exec_STAR_.invokeStatic(control.clj:170) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$exec_STAR_.doInvoke(control.clj:167) ~[jepsen-0.1.15-SNAPSHOT.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.control$exec.invokeStatic(control.clj:186) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$exec.doInvoke(control.clj:180) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clojure.lang.RestFn.invoke(RestFn.java:436) ~[clojure-1.10.0.jar:na]
        at jepsen.net$reify__5189$fn__5191.invoke(net.clj:67) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$on_nodes$fn__2919.invoke(control.clj:398) ~[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.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]
    ERROR [2020-06-08 15:08:44,874] main - jepsen.cli Oh jeez, I'm sorry, Jepsen broke. Here's why:
    clojure.lang.ExceptionInfo: Command exited with non-zero status 2 on node 192.168.69.23:
    sudo -S -u root bash -c "cd /; iptables -F -w"
    
    STDIN:
    null
    
    STDOUT:
    
    
    STDERR:
    iptables v1.4.7: option `-w' requires an argument
    Try `iptables -h' or 'iptables --help' for more information.
    
        at slingshot.support$stack_trace.invoke(support.clj:201) ~[knossos-0.3.5.jar:na]
        at jepsen.control$throw_on_nonzero_exit.invokeStatic(control.clj:126) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$throw_on_nonzero_exit.invoke(control.clj:121) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$exec_STAR_.invokeStatic(control.clj:170) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$exec_STAR_.doInvoke(control.clj:167) ~[jepsen-0.1.15-SNAPSHOT.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.control$exec.invokeStatic(control.clj:186) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$exec.doInvoke(control.clj:180) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at clojure.lang.RestFn.invoke(RestFn.java:436) ~[clojure-1.10.0.jar:na]
        at jepsen.net$reify__5189$fn__5191.invoke(net.clj:67) ~[jepsen-0.1.15-SNAPSHOT.jar:na]
        at jepsen.control$on_nodes$fn__2919.invoke(control.clj:398) ~[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.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]
    

    经过查询资料,发现是iptables 的1.4.7版本没有-w的参数,该参数是在1.4.20版本中加入的,所以需要升级iptables的版本至1.4.20以上。

    升级办法:
    centos6 升级防火墙iptables 1.4.21

    另外需要注意:
    jepsen的control节点和所有DB节点都需要同时升级。

    相关文章

      网友评论

          本文标题:jepsen注入网络故障,报"STDERR: iptables

          本文链接:https://www.haomeiwen.com/subject/yljrtktx.html