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

unexpected behavior of NetworkChaos Netem #1450

Closed
YangKeao opened this issue Jan 26, 2021 · 0 comments · Fixed by #1490
Closed

unexpected behavior of NetworkChaos Netem #1450

YangKeao opened this issue Jan 26, 2021 · 0 comments · Fixed by #1490

Comments

@YangKeao
Copy link
Member

	case v1alpha1.Both:
		err = r.applyTc(ctx, pods, pods, externalCidrs, m, networkchaos)
		if err != nil {
			r.Log.Error(err, "failed to apply traffic control", "sources", pods, "targets", pods)
			return err
		}

When the direction is both, all connection between all pods will be applied with netem, which is not expected.

For example, if the source is A, B, and the target is C, D, now the connection between A and B will also be affected by this chaos, but what we actually need is to only apply chaos between AC, AD, BC, BD.

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

Successfully merging a pull request may close this issue.

1 participant