istio / old_issues_repo

Deprecated issue-tracking repo, please post new issues or feature requests to istio/istio instead.
36 stars 9 forks source link

When multiple gateways are defined, only the first one is being used. #381

Closed dmitri-d closed 6 years ago

dmitri-d commented 6 years ago

Is this a BUG or FEATURE REQUEST?:

Did you review https://istio.io/help/ and existing issues to identify if this is already solved or being worked on?:

Bug: Y

What Version of Istio and Kubernetes are you using, where did you get Istio from, Installation details

istioctl version
0.8.0
kubectl version
v1.10.1

Is Istio Auth enabled or not ? Did you install the stable istio.yaml, istio-auth.yaml.... or if using the Helm chart please provide full command line input. No auth, installed using helm template per documentation

What happened: I have both bookinfo and httpbin example applications are installed, and both have gateways defined, the former via istioctl create -f samples/bookinfo/routing/bookinfo-gateway.yaml, the latter as explained in https://preliminary.istio.io/docs/tasks/traffic-management/ingress/#configuring-ingress-using-an-istio-gateway. Only one gateway is being used: the first one that was created.

What you expected to happen: I would expect that gateway precedence would be from most specific to least specific and in accordance with host sections of gataway and virtual service definitions. In the example above, I would expect that all traffic to httpbin.example.com would be handled by httpbin-gateway, and the rest of the traffic would go to bookinfo-gateway. How to reproduce it: Install both bookinfo and httpbin examples, observe that only one of the examples (the first that was installed) is accessible, all attempts to reach the other one come back with "404" errors.

Feature Request: N

Describe the feature:

marlonfan commented 6 years ago

+1

rshriram commented 6 years ago

I just fixed this issue. Wait for tonight's nightly and try it out again. Please let me know if things still don't work.

dmitri-d commented 6 years ago

@rshriram: could you link to the PR here please?

rshriram commented 6 years ago

https://github.com/istio/istio/pull/6081

andraxylia commented 6 years ago

Issue moved to istio/istio #6570 via ZenHub