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: Debug kubectl.GetPrivateIface failure #16863

Merged
merged 2 commits into from Jul 13, 2021

Conversation

pchaigno
Copy link
Member

See commits for details.

Related: #16699.

If GetPrivateIface returns an empty string, we currently proceed as
usual and eventually fail later during the test itself, with few
information available to debug.

This commit changes that to fail early in GetPrivateIface if the
returned interface name is empty. In that case, the output of ip a is
also returned.

Signed-off-by: Paul Chaignon <paul@cilium.io>
This reverts commit 12a4a48.

That commit printed the outputs of ip a and ip r in case of failure in
the IPsec test. That was done in an effort to debug a failure in the
IPsec interface detection. It however appears that that failure is
expected in the test VM (because of our weird enp0s3 & enp0s8 setup) and
the interface detection shouldn't run in the first place.

Instead, we explicitly set the IPsec interface when deploying Cilium. In
some rare cases, setting this Cilium flag fails (see previous commit)
and we fallback to the interface detection.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno
Copy link
Member Author

test-me-please

@pchaigno pchaigno marked this pull request as ready for review July 12, 2021 22:28
@pchaigno pchaigno requested a review from a team July 12, 2021 22:28
@pchaigno pchaigno requested a review from a team as a code owner July 12, 2021 22:28
@pchaigno pchaigno requested review from kkourt and tklauser July 12, 2021 22:28
@pchaigno
Copy link
Member Author

k8s-1.21-kernel-4.9 (test-1.21-4.9) failed with #16717 (this PR doesn't have the latest fix which was merged just 5min ago). Other tests are passing and the team review requests are covered. Marking as ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 13, 2021
@aditighag aditighag merged commit a5ec307 into cilium:master Jul 13, 2021
@pchaigno pchaigno deleted the debug-GetPrivateIface-failure branch July 13, 2021 17:32
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. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants