Bug 1962387 - Upgrade from Openshift 4.5 -> 4.6 Results in Orphaned Address sets
Summary: Upgrade from Openshift 4.5 -> 4.6 Results in Orphaned Address sets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.9.0
Assignee: Jaime Caamaño Ruiz
QA Contact: zhaozhanqi
Padraig O'Grady
URL:
Whiteboard:
Depends On:
Blocks: 1976241
TreeView+ depends on / blocked
 
Reported: 2021-05-19 22:04 UTC by Andrew Stoycos
Modified: 2021-10-18 17:31 UTC (History)
10 users (show)

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.
Clone Of:
: 1976241 (view as bug list)
Environment:
Last Closed: 2021-10-18 17:31:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 600 0 None closed Bug 1973286: Merge 2021-07-06 2021-07-29 17:00:41 UTC
Red Hat Knowledge Base (Solution) 6067471 0 None None None 2021-05-21 09:04:30 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:31:31 UTC

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


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