Bug 2023691 - ClusterIP internalTrafficPolicy does not work for ovn-kubernetes
Summary: ClusterIP internalTrafficPolicy does not work for ovn-kubernetes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Surya Seetharaman
QA Contact: huirwang
URL:
Whiteboard:
Depends On:
Blocks: 2026887
TreeView+ depends on / blocked
 
Reported: 2021-11-16 11:24 UTC by Mario Vázquez
Modified: 2022-08-10 10:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Release Note
Doc Text:
I think this was already done via https://github.com/openshift/openshift-docs/pull/46446
Clone Of:
Environment:
Last Closed: 2022-08-10 10:39:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 1049 0 None open Bug 2023691: Downstream merge 2022-04-22 2022-04-22 09:55:53 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:40:25 UTC

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


Note You need to log in before you can comment on or make changes to this bug.