-
Bug
-
Resolution: Done-Errata
-
Critical
-
4.13.z, 4.12.z, 4.14.z
Description of problem:
per oc set route-backends -h output: Routes may have one or more optional backend services with weights controlling how much traffic flows to each service. [...] **If all weights are zero the route will not send traffic to any backends.** this is not the case anymore for a route with a single backend.
Version-Release number of selected component (if applicable):
at least from OCP 4.12 onward
How reproducible:
all the time
Steps to Reproduce:
1. kubectl create -f example/ 2. kubectl patch route example -p '{"spec":{"to": {"weight": 0}}}' --type merge 3. curl http://localhost -H "Host: example.local"
Actual results:
curl succeeds
Expected results:
curl fails
Additional info:
https://access.redhat.com/support/cases/#/case/03567697
is regression following NE-822. Reverting
https://github.com/openshift/router/commit/9656da7d5e2ac0962f3eaf718ad7a8c8b2172cfa makes it work again.
- blocks
-
OCPBUGS-17107 OpenShift Router still sends traffic to its only backend when weight is 0
- Closed
- is cloned by
-
OCPBUGS-17107 OpenShift Router still sends traffic to its only backend when weight is 0
- Closed
- links to
-
RHSA-2023:5006 OpenShift Container Platform 4.14.z security update