Skip to content

fix Envoy Fails to Add Router#274

Closed
zirain wants to merge 1 commit intoenvoyproxy:mainfrom
zirain:fix-router
Closed

fix Envoy Fails to Add Router#274
zirain wants to merge 1 commit intoenvoyproxy:mainfrom
zirain:fix-router

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented Aug 29, 2022

fixes: #272
Signed-off-by: hejianpeng hejianpeng2@huawei.com

wait #273

@zirain zirain requested a review from a team as a code owner August 29, 2022 07:47
Copy link
Copy Markdown
Contributor

@danehans danehans left a comment

Choose a reason for hiding this comment

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

@zirain I am still seeing the same #272 issue with this PR:

Envoy Gateway Logs

2022-08-29T16:43:11.320Z	INFO	cache/logrwrapper.go:24	nodeID "envoy-eg-6f568884ff-6f4gx" requested type.googleapis.com/envoy.config.listener.v3.Listener[] and known map[]. Diff []	{"runner": "xds-server"}
2022-08-29T16:43:11.320Z	INFO	cache/logrwrapper.go:24	respond type.googleapis.com/envoy.config.listener.v3.Listener[] version "" with version "1"	{"runner": "xds-server"}
2022-08-29T16:43:11.320Z	INFO	cache/logrwrapper.go:24	Sending Response on stream 3 to node envoy-eg-6f568884ff-6f4gx	{"runner": "xds-server"}

Envoy Logs

[2022-08-29 16:43:10.292][1][warning][config] [source/common/config/grpc_subscription_impl.cc:126] gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) listener_default-eg-http_8080: Didn't find a registered implementation for 'envoy.filters.http.router' with type URL: ''

The failed CI run supports these findings.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove whitespace.

Comment thread internal/xds/translator/translator.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

afaik this shouldnt be needed here, the Gateway API translator should have set this to * while creating the IR

if len(h.Hostnames) == 0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like Validate is not called today, will raise a PR once #216 is in to call Validate before performing a Store

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

raised #276

@danehans
Copy link
Copy Markdown
Contributor

FYI @zirain @arkodg I do not see this issue when I create an HTTPRoute that includes a hostname. FOr example:

apiVersion: gateway.networking.k8s.io/v1alpha2
kind: HTTPRoute
metadata:
  name: httpbin
spec:
  parentRefs:
  - name: eg
  hostnames:
  - "*.example.com"
  rules:
  - backendRefs:
    - name: httpbin
      port: 80

@zirain
Copy link
Copy Markdown
Member Author

zirain commented Aug 30, 2022

@danehans I face this issue with the yaml files your provider here

I'm OK to close this PR, which is a kind of defensive programming.

Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
@zirain
Copy link
Copy Markdown
Member Author

zirain commented Aug 30, 2022

replaced by #286

@zirain zirain closed this Aug 30, 2022
@zirain zirain deleted the fix-router branch September 8, 2022 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XDS: Envoy Fails to Add Router

3 participants