tetragon icon indicating copy to clipboard operation
tetragon copied to clipboard

CI flake: e2e policyfilter test

Open kkourt opened this issue 1 year ago • 0 comments

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:

https://github.com/cilium/tetragon/blob/45a8310c6bc2dc26077e79762560e843570682fe/tests/e2e/tests/policyfilter/policyfilter_test.go#L101-L105

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

kkourt avatar Oct 25 '24 11:10 kkourt