Bug 2023691

Summary: ClusterIP internalTrafficPolicy does not work for ovn-kubernetes
Product: OpenShift Container Platform Reporter: Mario Vázquez <mavazque>
Component: NetworkingAssignee: Surya Seetharaman <surya>
Networking sub component: ovn-kubernetes QA Contact: huirwang
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: bpickard, huirwang, kahara, kkarampo
Version: 4.9   
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
I think this was already done via https://github.com/openshift/openshift-docs/pull/46446
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:39:48 UTC Type: Bug
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: 2026887    

Description Mario Vázquez 2021-11-16 11:24:47 UTC
Description of problem:

I have a customer using the ovn-kubernetes network provider and needs to use ClusterIP, but it doesn't work properly.

Although internalTrafficPolicy is set to Local, it works as set to Cluster.


Version-Release number of selected component (if applicable):

4.9

How reproducible:

Always

Steps to Reproduce:
1. Prepare a deployment that has pods on many nodes (i.e: apache server)
2. Create a clusterIP service and set internalTrafficPolicy to "local"
3. Try to reach the apache svc from one pod and check which pod gets the request, it should end up in pod/s in the same node.

Actual results:

Requests are load-balanced without honoring the internalTrafficPolicy.

Expected results:

Requests are sent to local endpoints to the node (if any).

Additional info:

Comment 1 Surya Seetharaman 2021-11-19 11:15:41 UTC
Hi,

So we know that the feature ITP became alpha in v1.21  https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/ and 4.9 openshift is v1.22 k8s. However we haven't yet implemented internaltrafficpolicy=local on OVN-K yet and its something we intend to support. We acknowledge this bug and will work towards a fix.

Comment 7 errata-xmlrpc 2022-08-10 10:39:48 UTC
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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069