Closed edubonifs closed 4 months ago
Possibly related issues:
https://github.com/solo-io/gloo/pull/8461 https://github.com/solo-io/gloo/pull/8407
In short, we had some issues in how errors were being registered for some of our listeners on hybrid gateways (tcp listeners specifically, I think, but my memory is very faint). I wonder if the issues in those pull requests are affecting the behaviour here too
So after investigating, this error only occurs when no VS exist
kg apply -f- << EOF
apiVersion: gateway.solo.io/v1
kind: VirtualService
metadata:
name: test-direct-response
namespace: gloo-system
spec:
virtualHost:
domains:
- 'foo'
routes:
- matchers:
- prefix: /
directResponseAction:
status: 200
body: "Hello, world!"
---
apiVersion: gateway.solo.io/v1
kind: Gateway
metadata:
name: gateway-proxy-ssl
namespace: gloo-system
spec:
bindAddress: '::'
bindPort: 8443
hybridGateway:
delegatedHttpGateways:
selector:
labels:
hybrid-gateway: SSL
EOF
virtualservice.gateway.solo.io/test-direct-response created
Error from server: error when creating "vs.yaml": admission webhook "gloo.gloo-system.svc" denied the request: resource incompatible with current Gloo snapshot: [Validating *v1.Gateway failed: 1 error occurred:
* Validating *v1.Gateway failed: validating *v1.Gateway name:"gateway-proxy-ssl" namespace:"gloo-system": 1 error occurred:
* could not render proxy: 2 errors occurred:
* invalid resource gloo-system.gateway-proxy-ssl
* WARN:
[hybrid gateway does not have any populated matched gateways]
This will be fixed in v1.17.0
Gloo Edge Product
Enterprise
Gloo Edge Version
1.15.2
Kubernetes Version
1.24
Describe the bug
I am seeing a behaviour in gateway proxy validation. I have an hybridGateway with delegatedHttpGateways. However, I don't have any HttpGateway created, so the gateway is failing with "warning: \n hybrid gateway does not have any populated matched gateways"
This is expected as I am not defining any gateway. However, if I set isolateVirtualHostsBySslConfig: true, then the validation runs and the gateway shows as Accepted, even though I have a gateway which delegates to non existing gateway.
Expected Behavior
Behavior should be the same doesn't matter the value of isolateVirtualHostsBySslConfig.
Steps to reproduce the bug
For reproducing, just apply this settings:
And this gateway:
You will see that the gateway appears as ACCEPTED, even though we don't have a httpgateway created. Then, change isolateVirtualHostsBySslConfig to false, and check again the status of the gateway.
You will see that the status of the gateway shows the following:
Additional Environment Detail
No response
Additional Context
No response
┆Issue is synchronized with this Asana task by Unito