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

Fix NodeNetworkPolicy e2e test failure #156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hongliangl
Copy link
Owner

In NodeNetworkPolicy e2e tests, we have the following cases:

  • Node to Node. We deploy two hostNetwork Pods on different Nodes.
  • Node to Pods. We deploy a hostNetwork Pod on a Node and two non-hostNetwork Pods on different Nodes.

For the case of Node to Pods, after creating test Pods, a full mesh probing is run to ensure that all Pods can be reachable from each other. However, the UDP probing from a non-hostNetwork Pod to the hostNetwork Pod deployed on the same Node will get a failure. The reason is that due to UDP's connectionless nature, the reply traffic may use a source IP address determined by routing decisions or outgoing interfaces, rather than the destination IP address used in request traffic. This can lead to probing failures for the UDP server.

To resolve the issue, we ensure that the UDP server listens exclusively on Node IPs when the test Pod is a host network Pod.

In NodeNetworkPolicy e2e tests, we have the following cases:

- Node to Node. We deploy two hostNetwork Pods on different Nodes.
- Node to Pods. We deploy a hostNetwork Pod on a Node and two
  non-hostNetwork Pods on different Nodes.

For the case of Node to Pods, after creating test Pods, a full mesh
probing is run to ensure that all Pods can be reachable from each
other. However, the UDP probing from a non-hostNetwork Pod to the
hostNetwork Pod deployed on the same Node will get a failure. The
reason is that due to UDP's connectionless nature, the reply traffic
may use a source IP address determined by routing decisions or outgoing
interfaces, rather than the destination IP address used in request
traffic. This can lead to probing failures for the UDP server.

To resolve the issue, we ensure that the UDP server listens exclusively
on Node IPs when the test Pod is a host network Pod.

Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
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

Successfully merging this pull request may close these issues.

1 participant