Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPChaos not injecting faults with an Istio sidecar #4389

Open
varun-jupiter opened this issue Apr 2, 2024 · 2 comments
Open

HTTPChaos not injecting faults with an Istio sidecar #4389

varun-jupiter opened this issue Apr 2, 2024 · 2 comments

Comments

@varun-jupiter
Copy link

Bug Report

What version of Kubernetes are you using?
Client Version: v1.28.4
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.27.10-eks-508b6b3

What version of Chaos Mesh are you using?
Controller manager Version: version.Info{GitVersion:"chart-2.6.3", GitCommit:"b159d1c5a361ca350ca7789c9eb7fc917479db39", BuildDate:"2024-01-23T15:04:53Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}

What did you do? / Minimal Reproducible Example
We have an istio service mesh which runs a istio-proxy sidecar for every pod.
I tried injecting HTTPChaos into a few pods.
Daemon logs give no error and the chaos_tproxy is up and running however, the requests are not passing through the chaos_tproxy.

On disabling the sidecar using sidecar.istio.io/inject: false, the HTTPChaos gets applied just fine and the daemon logs show the requests being processed.

Further, on recovering chaos, the pods start restarting since the health check fails. This problem does not auto resolve and the only way around this is redeploying the application.

What did you expect to see?
Even with the istio sidecar, the HTTPChaos should be applied fine.
There should be no impact on the recovery of chaos on the application.

What did you see instead?
Specified above in What did you do.

Output of chaosctl

@varun-jupiter
Copy link
Author

Chaos injected was:

apiVersion: chaos-mesh.org/v1alpha1
metadata:
  namespace: ****
  name: wefwefg-1
spec:
  selector:
    namespaces:
      - ****
    labelSelectors:
      app: ****
  mode: all
  target: Response
  delay: 5s
  port: 8080
  path: /some/path/*
  duration: 3m

@STRRL
Copy link
Member

STRRL commented Apr 16, 2024

unfortunately, chaos mesh could not "just works" with istio, becaus some functionalities of both chaos mesh and istio require modify pod network.

We do not do enough works on the compatibility with istio. we would be very appreciated if you could help us improve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants