chaos-mesh: apply fail: fail to set routes: code: 2, msg: iptables v1.8.2 (legacy): Couldn't load match `socket':No such file or directory Try `iptables -h' or 'iptables --help' for more information.

Bug Report

What version of Kubernetes are you using?

1.14.4 What version of Chaos Mesh are you using?

2.1.0 made by myself What did you do?

add httpchaos What did you see instead? image Output of chaosctl

yaml image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (12 by maintainers)

Most upvoted comments

Hi @ChanKunggc, did you retry/test Chaos Mesh HTTPChaos after rebuilding kernel with updated kernel configs? Does it work? 😄

Hi @STRRL , I try to recompile kernel ,and patch xt_socket.ko xt_TPROXY.ko ,it worked !   image

image @ChanKunggc , I tihnk the problem may caused by some missing parts in your kernel.

Is it possible to provide a list of kernel modules required by Chaos Mesh? IIRC, @YangKeao have made a list for that, but I could not find it on our document site.

I think the problem may not caused by a leak of kernel modules, but some code inside the kernel modules is not compiled well or some other problem.

@Andrewmatilde I guess the related config (and module) is CONFIG_NETFILTER_XT_MATCH_SOCKET, and I’m not sure whether it’s included by the package kernel-modules-extra (but in most case, it is).