Bug 1756166
| Summary: | Route with 2 named ports sends traffic to wrong one with the correct one is down [4.2] | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Miciah Dashiel Butler Masters <mmasters> |
| Component: | Networking | Assignee: | Miciah Dashiel Butler Masters <mmasters> |
| Networking sub component: | router | QA Contact: | Hongan Li <hongli> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | urgent | ||
| Priority: | unspecified | CC: | aos-bugs, bbennett, dmace, hcisneir, hongli, jlee, mrobson |
| Version: | 4.2.0 | Keywords: | Reopened |
| Target Milestone: | --- | ||
| Target Release: | 4.2.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1752521 | Environment: | |
| Last Closed: | 2019-10-16 06:41:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1730778, 1752521 | ||
|
Description
Miciah Dashiel Butler Masters
2019-09-26 22:34:07 UTC
This issue is already fixed in 4.2 by https://github.com/openshift/router/pull/7, but we need this fix verified on 4.2 so that we can merge the 4.1 backport. The fix has already been verified on 3.11 (see Bug 1730778). To test the fix on 4.2, it will be necessary to disable the ingress operator (`oc -n openshift-ingress-operator scale ingresscontroller/default --replicas=0`) and then patch the ingresscontroller (`oc set env dc/router ROUTER_HAPROXY_CONFIG_MANAGER=true`). Verified with 4.2.0-0.nightly-2019-09-25-214437 and issue has been fixed. Note: firstly should disable CVO then disable ingress operator (only disabling ingress operator doesn't work since it will be restored by CVO) 1. oc scale deployment/cluster-version-operator --replicas=0 -n openshift-cluster-version 2. oc scale deployment/ingress-operator --replicas=0 -n openshift-ingress-operator 3. oc set env deployment/router-default ROUTER_HAPROXY_CONFIG_MANAGER=true -n openshift-ingress 4. create your project, pod, svc with two ports and route 5. check server status sh-4.2$ echo "show servers state be_http:hongli:mysvc" | socat - UNIX-CONNECT:/var/lib/haproxy/run/haproxy.sock 1 # be_id be_name srv_id srv_name srv_addr srv_op_state srv_admin_state srv_uweight srv_iweight srv_time_since_last_change srv_check_status srv_check_result srv_check_health srv_check_state srv_agent_state bk_f_forced_id srv_f_forced_id srv_fqdn srv_port srvrecord 39 be_http:hongli:mysvc 1 pod:caddy-docker:mysvc:10.131.0.21:8080 10.131.0.21 2 0 256 256 183 6 3 4 6 0 0 0 - 8080 - 39 be_http:hongli:mysvc 2 _dynamic-pod-1 172.4.0.4 0 5 1 1 183 1 0 0 14 0 0 0 - 8765 - 39 be_http:hongli:mysvc 3 _dynamic-pod-2 172.4.0.4 0 5 1 1 183 1 0 0 14 0 0 0 - 8765 - 39 be_http:hongli:mysvc 4 _dynamic-pod-3 172.4.0.4 0 5 1 1 183 1 0 0 14 0 0 0 - 8765 - 39 be_http:hongli:mysvc 5 _dynamic-pod-4 172.4.0.4 0 5 1 1 183 1 0 0 14 0 0 0 - 8765 - 39 be_http:hongli:mysvc 6 _dynamic-pod-5 172.4.0.4 0 5 1 1 183 1 0 0 14 0 0 0 - 8765 - Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:2922 |