Bug 1951891

Summary: [migration] cannot change ClusterNetwork CIDR during migration
Product: OpenShift Container Platform Reporter: Peng Liu <pliu>
Component: NetworkingAssignee: Peng Liu <pliu>
Networking sub component: ovn-kubernetes QA Contact: huirwang
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: aconstan, dosmith
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:02:20 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:

Description Peng Liu 2021-04-21 06:28:48 UTC
Description of problem:

The cluster network doesn't allow changing the cluster network CIDR, and print log:

I0421 06:07:58.559363       1 log.go:184] Reconciling Network.operator.openshift.io cluster
I0421 06:07:58.560423       1 log.go:184] Not applying unsafe change: invalid configuration: [cannot change ClusterNetwork]

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

How reproducible:

Trigger an SDN migration with:

oc patch Network.config.openshift.io cluster --type=merge --patch '{"spec":{"networkType":"OVNKubernetes","clusterNetwork":[{"cidr":"","hostPrefix":23}]}}'

Actual results:

CNO didn't deploy OVNKubernetes in the cluster.

Expected results:
OVNKubernetes can be deployed in the cluster.

Additional info:

Comment 6 errata-xmlrpc 2021-07-27 23:02:20 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.8.2 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.