Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1891716

Summary: OVN cluster upgrade from 4.6.1 to 4.7 fails
Product: OpenShift Container Platform Reporter: Yang Yang <yanyang>
Component: NetworkingAssignee: Aniket Bhat <anbhat>
Networking sub component: ovn-kubernetes QA Contact: Anurag saxena <anusaxen>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aconstan, omichael, rbrattai, wking, zzhao
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:28:28 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:

Description Yang Yang 2020-10-27 07:39:32 UTC
Description of problem:

OVN cluster upgrade from 4.6.1 to 4.7 fails

# oc get clusterversion 
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS 
version   4.6.1     True        True          5h      Unable to apply 4.7.0-0.nightly-2020-10-24-155529: the cluster operator network has not yet successfully rolled out 

Found this error in ovn pod log:
2020/10/27 06:48:39 could not apply (apps/v1, Kind=DaemonSet) openshift-ovn-kubernetes/ovnkube-master: could not update object (apps/v1, Kind=DaemonSet) openshift-ovn-kubernetes/ovnkube-master: DaemonSet.apps "ovnkube-master" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"ovnkube-master", "ovn-db-pod":"true"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-10-24-155529

How reproducible:
1/1

Steps to Reproduce:
1. Install an OVN cluster on 4.6.1
2. Upgrade it to 4.7

Actual results:
Upgrade fails

Expected results:
Upgrade succeeds

Additional info:

Comment 1 Yang Yang 2020-10-27 08:01:03 UTC
Must gather can be found in https://drive.google.com/file/d/18uqtifAgXEY24Z3Rta5v2qscjGfDOEg3/view?usp=sharing

Comment 3 Aniket Bhat 2020-11-09 19:42:35 UTC
*** Bug 1892620 has been marked as a duplicate of this bug. ***

Comment 4 Anurag saxena 2020-11-11 00:25:05 UTC
Upgrade worked fine for 4.6.3 -> 4.7.0-0.nightly-2020-11-10-163946

Comment 7 errata-xmlrpc 2021-02-24 15:28:28 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.0 security, bug fix, and enhancement 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-2020:5633