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

Test Chaos Mesh with Istio #146

Closed
zhouqiang-cl opened this issue Jan 18, 2020 · 8 comments
Closed

Test Chaos Mesh with Istio #146

zhouqiang-cl opened this issue Jan 18, 2020 · 8 comments

Comments

@zhouqiang-cl
Copy link
Contributor

zhouqiang-cl commented Jan 18, 2020

Feature Request

Is your feature request related to a problem? Please describe:

Maybe Chaos Mesh can be work with Istio, If it can, we should test it

Describe the feature you'd like:

Make Chaos Mesh can work with istio, but first we should test it

Describe alternatives you've considered:

None

Teachability, Documentation, Adoption, Migration Strategy:

None

@siddontang
Copy link

https://istio.io/docs/tasks/traffic-management/fault-injection/

We can also try to integrate the fault injection if user uses Istio.

@zhouqiang-cl
Copy link
Contributor Author

https://istio.io/docs/tasks/traffic-management/fault-injection/

We can also try to integrate the fault injection if user uses Istio.

Great idea

@Yisaer
Copy link
Contributor

Yisaer commented Jan 21, 2020

I think Chaos-Mesh could make Istio as an option component to extend the network chaos for HTTP protocol. The only problem is How compatible is with the existed network chaos and the Istio sidecar model.

@zhouqiang-cl
Copy link
Contributor Author

I think Chaos-Mesh could make Istio as an option component to extend the network chaos for HTTP protocol. The only problem How compatible is with the existed network chaos and the Istio sidecar model.

can we add a mode in network chaos such as http

@linda01232003
Copy link

linda01232003 commented Feb 6, 2020

When I use NetworkChaos on my exist istio system, I find it didn't work.
I expect ping pod ip will delay, but it not delay。
After a while I found my controller inject istio sidecar,I guess it intercept the NetworkChaos Inject。
The chaos-daemon log shows that:

kubectl log  chaos-daemon-fzjjg -c  chaos-daemon -n chaos-testing
log is DEPRECATED and will be removed in a future version. Use logs instead.
Chaos-daemon Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"a5f2eaabc4c55d07c575577565f6570cd767e8b7", GitTreeState:"dirty", BuildDate:"2020-01-19T10:43:02Z", GoVersion:"go1.13", Compiler:"gc", Platform:"linux/amd64"}
2020-01-20T10:56:10.143Z        INFO    chaos-daemon    starting server
You have mail in /var/spool/mail/root
It can not receive any message。

WechatIMG39

After I remove the controller sidecar and NetworkChaos Inject can work。

@zhouqiang-cl
Copy link
Contributor Author

zhouqiang-cl commented Feb 6, 2020

@linda01232003 thank you for your information. @cwen0 @Yisaer We should also think how to run on istio

@zhouqiang-cl zhouqiang-cl moved this from To do to In progress in Weekly Plan 2020-02-02 ~ 2020-02-07 Feb 6, 2020
@Yisaer
Copy link
Contributor

Yisaer commented Feb 6, 2020

Hi @linda01232003,
AFAIK, there are 2 ways to help you to avoid Istio inject sidecar into Chaos-Mesh.
The first way is to remove the label of the namespace by:

kubectl label namespace chaos-testing istio-injection-

And the second way is to annotate the pod with sidecar.istio.io/inject: "false" which I had created issue to help this. #200

Here is document for istio inject detail.

@zhouqiang-cl zhouqiang-cl moved this from In progress to Reviewer approved in Weekly Plan 2020-02-08 ~ 2020-02-15 Feb 12, 2020
@zhouqiang-cl zhouqiang-cl moved this from Reviewer approved to Done in Weekly Plan 2020-02-08 ~ 2020-02-15 Feb 12, 2020
@zhouqiang-cl
Copy link
Contributor Author

It works. Tested by @YangKeao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants