Bug 1962387

Summary: Upgrade from Openshift 4.5 -> 4.6 Results in Orphaned Address sets
Product: OpenShift Container Platform Reporter: Andrew Stoycos <astoycos>
Component: NetworkingAssignee: Jaime CaamaƱo Ruiz <jcaamano>
Networking sub component: ovn-kubernetes QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact: Padraig O'Grady <pogrady>
Severity: high    
Priority: unspecified CC: akaris, arajapa, asegurap, bbennett, bhershbe, mifiedle, pablo.iranzo, pogrady, sgordon, yjoseph
Version: 4.8   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Address set naming convention used in OVN-Kubernetes changed from 4.5 to 4.6 but migration to the new naming convention of existing address sets through an upgrade was not handled. Consequence: Network policies created in 4.5 with namespace selector criteria for their ingress or egress sections might not work correctly in 4.6 or later releases due to the fact that rely on matching old address sets that were not being kept updated with the pod IPs within such namespaces. These policies might allow or drop unexpected traffic. Workaround is to remove and recreate these policies. Fix: On OVN-Kubernetes upgrade to fixed version, address sets with old naming convention are removed and policy ACLs referencing this old address sets are updated referencing the address sets following the new naming convention. Result: Affected network policies created in 4.5 should start working correctly again after upgrade.
Story Points: ---
Clone Of:
: 1976241 (view as bug list) Environment:
Last Closed: 2021-10-18 17:31:06 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: 1976241    

Comment 9 zhaozhanqi 2021-08-17 03:33:57 UTC
Verified this bug on 4.9.0-0.nightly-2021-08-16-154237 with steps in https://bugzilla.redhat.com/show_bug.cgi?id=1976241#c7


$ oc logs ovnkube-master-vzqbv -c ovnkube-master | grep -i "removing old" 
I0817 02:45:47.285050       1 address_set_cleanup.go:43] Removing old spec address set z1.allow-same-namespace.ingress.0

Comment 12 errata-xmlrpc 2021-10-18 17:31:06 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.9.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-2021:3759