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

Bug 1831680

Summary: Trying to create a hybrid network network after install should fail
Product: OpenShift Container Platform Reporter: Jacob Tanenbaum <jtanenba>
Component: NetworkingAssignee: Jacob Tanenbaum <jtanenba>
Networking sub component: ovn-kubernetes QA Contact: Anurag saxena <anusaxen>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified    
Version: 4.5   
Target Milestone: ---   
Target Release: 4.5.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: 2020-07-13 17:35:00 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 Jacob Tanenbaum 2020-05-05 13:27:41 UTC
Description of problem:

The requirements for hybrid networking has changed and it is no longer supported to start a hybrid network on a running cluster. Currently trying to patch the CNO to enable a hybrid network succeeds and it should fail.  

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

How reproducible:

Everytime 

Steps to Reproduce:
1. Deploy an openshift cluster with OVNKubernetes 
2. patch the CNO to enable a hybrid network 
3. the patch operation succeeds 

Actual results:
The patch operation is allowed to happen

Expected results:
The patch operation should fail

Additional info:
Patch the CNO so the operator config looks like this 

apiVersion: operator.openshift.io/v1
kind: Network
metadata:
  creationTimestamp: null
  name: cluster
spec:
  clusterNetwork:
  - cidr: 10.128.0.0/14         <- must be the cluster network CIDR
    hostPrefix: 23
  externalIP:
    policy: {}
  networkType: OVNKubernetes
  serviceNetwork:
  - 172.30.0.0/16                <- must be the service network CIDR
  defaultNetwork:
    type: OVNKubernetes
    ovnKubernetesConfig:
      hybridOverlayConfig:
        hybridClusterNetwork:
        - cidr: 10.132.0.0/14    <- must not overlap cluster or service cidr    
          hostPrefix: 23

Comment 8 errata-xmlrpc 2020-07-13 17:35:00 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, 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/RHBA-2020:2409