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

CI flake: e2e policyfilter test #3050

Open
kkourt opened this issue Oct 25, 2024 · 0 comments
Open

CI flake: e2e policyfilter test #3050

kkourt opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
kind/ci-flake A flake in CI

Comments

@kkourt
Copy link
Contributor

kkourt commented Oct 25, 2024

The policy is not installed for some reason:

I1022 09:25:28.287168 14427 rpcchecker.go:200] "Running event checks" checker="policyfilter-namespace-checker"
E1022 09:25:28.288184 14427 policyfilter_test.go:103] "failed to install policy" err="failed to get API group resources: unable to retrieve the complete list of server APIs: cilium.io/v1alpha1: the server could not find the requested resource"
E1022 09:25:28.292618 14427 portforward.go:409] an error occurred forwarding 54321 -> 54321: error forwarding port 54321 to pod 4053eceb1f88e2f026088270fbd142b5bb316dda1ad4b444ce672cc7b9e09f39, uid : failed to execute portforward in network namespace "host": failed to connect to localhost:54321 inside namespace "4053eceb1f88e2f026088270fbd142b5bb316dda1ad4b444ce672cc7b9e09f39", IPv4: dial tcp4 127.0.0.1:54321: connect: connection refused IPv6 dial tcp6 [::1]:54321: connect: connection refused

Code:

ctx, err := helpers.LoadCRDString(policyNamespace, namespacedPolicy, false)(ctx, c)
if err != nil {
klog.ErrorS(err, "failed to install policy")
t.Fail()
}

We could also improve the error reporting in the e2e test, since it's not immediately clear why the test fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/ci-flake A flake in CI
Projects
None yet
Development

No branches or pull requests

1 participant