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

feat(zoneproxies): check empty listeners #7562

Merged

Conversation

jakubdyszkiewicz
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz commented Aug 22, 2023

Checklist prior to review

I noticed that sometimes in e2e test we end up in this situation

[2023-08-21 20:32:22.374][81][warning][config] [source/extensions/config_subscription/grpc/grpc_subscription_impl.cc:128] gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) inbound:172.18.0.10:30686: error adding listener '172.18.0.10:30686': no filter chains specified

[2023-08-21 20:32:22.374][81][info][upstream] [source/common/upstream/cds_api_helper.cc:32] cds: add 3 cluster(s), remove 2 cluster(s)
[2023-08-21 20:32:22.383][81][info][upstream] [source/common/upstream/cds_api_helper.cc:69] cds: added/updated 1 cluster(s), skipped 2 unmodified cluster(s)
[2023-08-21 20:32:27.402][81][warning][config] [source/extensions/config_subscription/grpc/grpc_subscription_impl.cc:128] gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) inbound:172.18.0.10:30686: error adding listener '172.18.0.10:30686': no filter chains specified

which means that this if for adding empty filter chain match does not work. It's not clear to me how to reproduce it and under what condition this happens, but we can at least fix the condition so we won't send listener without filter chains.

  • Link to relevant issue as well as docs and UI issues -- trying to fix flaky multizone test
  • This will not break child repos: it doesn't hardcode values (.e.g "kumahq" as a image registry) and it will work on Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS --
  • Tests (Unit test, E2E tests, manual test on universal and k8s) --
  • Do you need to update UPGRADE.md? --
  • Does it need to be backported according to the backporting policy? (this GH action will add "backport" label based on these file globs, if you want to prevent it from adding the "backport" label use no-backport-autolabel label) --
  • Do you need to explicitly set a > Changelog: entry here or add a ci/ label to run fewer/more tests?

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz added the ci/run-full-matrix PR: Runs all possible e2e test combination (expensive use carefully) label Aug 22, 2023
@jakubdyszkiewicz jakubdyszkiewicz marked this pull request as ready for review August 23, 2023 09:27
@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner August 23, 2023 09:27
@jakubdyszkiewicz jakubdyszkiewicz requested review from michaelbeaumont and lukidzi and removed request for a team August 23, 2023 09:27
@michaelbeaumont
Copy link
Contributor

For some reason I remember @bartsmykla saying this was intentional, or maybe a comment somewhere? I think it can happen in

func AddFilterChains(
pretty easily, when there are no destinations

@jakubdyszkiewicz
Copy link
Contributor Author

Intentional? But we should not send invalid config to envoy

@michaelbeaumont
Copy link
Contributor

Yeah I agree, can we handle it in AddFilterChains?

@jakubdyszkiewicz
Copy link
Contributor Author

how could we handle this in AddFilterChains?

@jakubdyszkiewicz jakubdyszkiewicz merged commit f24df81 into kumahq:master Aug 23, 2023
@jakubdyszkiewicz jakubdyszkiewicz deleted the feat/empty-listeners branch August 23, 2023 16:30
@bartsmykla
Copy link
Contributor

For some reason I remember @bartsmykla saying this was intentional, or maybe a comment somewhere?

I unfortunately don't remember it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/run-full-matrix PR: Runs all possible e2e test combination (expensive use carefully)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants