Bug 1985516

Summary: allow-from-router feature doesn't work on v6 only single stack cluster
Product: OpenShift Container Platform Reporter: Aniket Bhat <anbhat>
Component: NetworkingAssignee: Aniket Bhat <anbhat>
Networking sub component: ovn-kubernetes QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: anusaxen, bbennett, mifiedle, weliang
Version: 4.8Keywords: FastFix
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1985514
: 1985517 (view as bug list) Environment:
Last Closed: 2021-08-11 06:41:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1985514    
Bug Blocks: 1985517    

Description Aniket Bhat 2021-07-23 19:10:38 UTC
+++ This bug was initially created as a clone of Bug #1985514 +++

+++ This bug was initially created as a clone of Bug #1985512 +++

Description of problem:

In a v6 only ovn-k cluster, the management interface IP is not added to the address set used for classifying host network traffic. This causes the allow-from-router network policy to not work correctly on platforms where the endpoint publishing strategy is "HostNetwork"

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

How reproducible:

Steps to Reproduce:
1.Create a single stack v6 cluster on vsphere or a platform where the endpoint publishing strategy is HostNetwork
2.Create allow from ingress network policy
3.try external access to service in the cluster that is v6

Actual results:
service is not reliably accessible since the v6 management IP is not added to the address set for classifying host network traffic

Expected results:
External access to a service in a single stack v6 cluster works reliably. 

Additional info:

Comment 1 Weibin Liang 2021-07-28 20:48:52 UTC
Testing pass by following steps in https://bugzilla.redhat.com/show_bug.cgi?id=1985512#c3

Comment 4 Weibin Liang 2021-07-30 15:42:56 UTC
https://github.com/openshift/ovn-kubernetes/pull/625/ is merged, move this bug to verified

Comment 7 errata-xmlrpc 2021-08-11 06:41:09 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 (Moderate: OpenShift Container Platform 4.7.23 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.