-
Notifications
You must be signed in to change notification settings - Fork 116
exposer routes rejected for a passthrough route with a secret to mount #165
Comments
I'm also experiencing this in the context of RH ServiceMesh 2.0 on OpenShift 4.7. As @ntxt mentioned, this used to work. We noticed certificates are expired and not renewing. I see the same stanza with the exposer route not admitted due to HostAlreadyClaimed. In my case, the offending route is the one that gets created by RHSM (istio) Gateway. (Note: RHSM copies annotations from the Gateway to the Openshift Route object. Details https://docs.openshift.com/container-platform/4.7/service_mesh/v2x/ossm-traffic-manage.html#ossm-auto-route-annotations_routing-traffic)
That causes the main route to get created in the service mesh's namespace in addition to the exposer route. These two routes conflict. If I remove the annotation, only the main route exists.
Any advice on a workaround is appreciated. |
What happened:
I have run the following script with a resource file below, the deployment and a passthrough route got created with the annotation pointing to a TLS secret. The secret gets created but the cert and key values are not populated, which makes the "docker-registry" fail looking for them (the secret is mounted to the container). The exposer route gets rejected with "HostAlreadyClaimed".
What you expected to happen:
The secret should get populated with the key and cert values, "docker-registry" should see and use them to secure the requests passed through by the route.
How to reproduce it (as minimally and precisely as possible):
openshift-acme logs:
Anything else we need to know?:
I had this setup working for a few days (passthrough route + TLS secret mounted into a pod) but after recreating it in another namespace both stopped to work. No duplicate routes are present in any namespaces, double checked.
Environment:
Client Version: 4.8.13
Server Version: 4.8.20
Kubernetes Version: v1.21.4+6438632
@tnozicka
The text was updated successfully, but these errors were encountered: