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

connectivity: Add secondary network NodePort tests #1942

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

brb
Copy link
Member

@brb brb commented Aug 28, 2023

First, this commit introduces "--secondary-network-iface" flag. The flag is used to determine a secondary network IP addr of each node.

Second, the commit extends the NodePort from outside tests. When the aforementioned flag is set, in addition to the regular curl request, the test case sends HTTP requests to an IP addr on each Cilium node which is set to the "--secondary-network-face".

Testing PR cilium/cilium#27738 (https://github.com/cilium/cilium/actions/runs/6010840377/job/16303159003)

cc @julianwiedmann @borkmann

First, this commit introduces "--secondary-network-iface" flag. The flag
is used to determine a secondary network IP addr of each node.

Second, the commit extends the NodePort from outside tests. When the
aforementioned flag is set, in addition to the regular curl request, the
test case sends HTTP requests to an IP addr on each Cilium node which is
set to the "--secondary-network-face".

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb brb added the area/CI Continuous Integration testing issue or flake label Aug 28, 2023
@brb brb temporarily deployed to ci August 28, 2023 12:42 — with GitHub Actions Inactive
@brb brb marked this pull request as ready for review August 29, 2023 10:56
@brb brb requested review from a team as code owners August 29, 2023 10:56
@brb brb added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Aug 30, 2023
@brb
Copy link
Member Author

brb commented Aug 30, 2023

The Go build error is a red-herring. Got review from Chris (:broccoli:), marking as ready to merge to unblock the e2e testing of Cilium's multi-dev changes.

Copy link
Contributor

@derailed derailed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brb Nice work! just a couple comments...

if err != nil {
return fmt.Errorf("failed to fetch secondary network ip addr: %w", err)
}
ct.secondaryNetworkNodeIPv4[pod.Spec.NodeName] = strings.TrimSuffix(addr.String(), "\n")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we care to check if the returned address is somehow not set?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a case should eventually become visible in the tests, but will make it more explicit 👍

connectivity/tests/service.go Show resolved Hide resolved
@aditighag aditighag merged commit d5971d4 into main Aug 30, 2023
18 of 19 checks passed
@aditighag aditighag deleted the pr/brb/secondary-network branch August 30, 2023 22:42
@aditighag
Copy link
Member

The Go build error is a red-herring. Got review from Chris (🥦), marking as ready to merge to unblock the e2e testing of Cilium's multi-dev changes.

Merged per this comment.

@tklauser
Copy link
Member

The Go build error is a red-herring. Got review from Chris (🥦), marking as ready to merge to unblock the e2e testing of Cilium's multi-dev changes.

Merging this PR with this Go build error in place makes this job fail consistently on main 😢 can we please add a comment for the linter to ignore that red herring or work around it so the job stays green?

brb added a commit to cilium/cilium that referenced this pull request Sep 1, 2023
This will enable secondary NodePort tests [1].

[1]: cilium/cilium-cli#1942

Signed-off-by: Martynas Pumputis <m@lambda.lt>
borkmann pushed a commit to cilium/cilium that referenced this pull request Sep 1, 2023
This will enable secondary NodePort tests [1].

[1]: cilium/cilium-cli#1942

Signed-off-by: Martynas Pumputis <m@lambda.lt>
jibi pushed a commit to cilium/cilium that referenced this pull request Sep 5, 2023
[ upstream commit 814036b ]

This will enable secondary NodePort tests [1].

[1]: cilium/cilium-cli#1942

Signed-off-by: Martynas Pumputis <m@lambda.lt>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
youngnick pushed a commit to cilium/cilium that referenced this pull request Sep 7, 2023
[ upstream commit 814036b ]

This will enable secondary NodePort tests [1].

[1]: cilium/cilium-cli#1942

Signed-off-by: Martynas Pumputis <m@lambda.lt>
Signed-off-by: Gilberto Bertin <jibi@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants