-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.17.z
-
Quality / Stability / Reliability
-
False
-
-
None
-
Moderate
-
None
-
None
-
None
-
Rejected
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
A customer is using Ingresses in their OpenShift Container Platform 4.17 cluster. They are relying on the "Ingress-to-Route" functionality of OpenShift Container Platform to create their Route objects.
The customer is now seeing multiple "UnmanagedRoutes" alerts in their cluster, for example the following:
- activeAt: "2025-10-15T09:53:22.786962619Z" annotations: description: This alert fires when there is a Route owned by an unmanaged Ingress. message: Route example-namespace/example-web-modeler-gxspk is owned by an unmanaged Ingress. summary: Route owned by an Ingress no longer managed labels: alertname: UnmanagedRoutes container: route-controller-manager endpoint: https host: webmodeler-example-namespace.cluster.foobar.com instance: 10.125.10.249:8443 job: route-controller-manager name: example-web-modeler-gxspk namespace: example-namespace pod: route-controller-manager-7454dbc847-42vdd service: route-controller-manager severity: warning state: firing value: "1e+00"
Examining the Route and Ingress shows that:
- The Route has a valid Ingress as Owner
- Ingress "example-web-modeler" is in same namespace
- `ingressClassName: openshift-default` is set
- Spec `controller: openshift.io/ingress-to-route` is set on the "openshift-default" IngressClass
We believe this is a Bug in the metrics code that determines if an Ingress is managed or unmanaged: https://github.com/openshift/route-controller-manager/blob/release-4.17/pkg/route/ingress/metrics.go#L84
This issue may only appear if there are both managed and unmanaged Ingresses in the same namespace.
Version-Release number of selected component (if applicable):
OpenShift Container Platform 4.17.28
How reproducible:
Always on customer cluster
Steps to Reproduce:
1. On an OpenShift Container Platform 4.17.28 cluster, create the namespace that the customer uses
2. Apply the Ingress and Route manifests from the customer Support Case
3. Observe the alerts firing on OpenShift Container Platform
Actual results:
Despite the Ingress being configured correctly, we see the "UnmanagedRoutes" alert
Expected results:
When all Ingresses are managed, no alert is firing
- Additional info:*
- "must-gather" and "inspect" files are available in the attached Support Case
- Ingress and IngressClass YAML are also provided
- is related to
-
OCPBUGS-13181 metric for ingresswithoutclassname does not decrease when classless ingresses cease to exist
-
- Closed
-