Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-34916

Live migration still going on even though there is CIDR overlaps

XMLWordPrintable

    • Important
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      Description of problem:

          When setting overlaps CIDR for v4InternalSubnet, Live migration did not be blocked.
      
      #oc patch Network.operator.openshift.io cluster --type='merge' --patch '{"spec":{"defaultNetwork":{"ovnKubernetesConfig": {"v4InternalSubnet": "10.128.0.0/16"}}}}'
      
      #oc patch Network.config.openshift.io cluster --type='merge' --patch '{"metadata":{"annotations":{"network.openshift.io/network-type-migration":""}},"spec":{"networkType":"OVNKubernetes"}}'
      
      

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

      https://github.com/openshift/cluster-network-operator/pull/2392/commits/50201625861ba30570313d8f28c14e59e83f112a

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

      I can see: 
      network                                    4.16.0-0.ci.test-2024-06-05-023541-ci-ln-hhzztr2-latest   True        False         True       163m    The cluster configuration is invalid (network clusterNetwork(10.128.0.0/14) overlaps with network v4InternalSubnet(10.128.0.0/16)). Use 'oc edit network.config.openshift.io cluster' to fix.
         
       However migration still going on later

      Expected results:

          Migration should be blocked.

      Additional info:

          

              pdiak@redhat.com Patryk Diak
              zzhao1@redhat.com Zhanqi Zhao
              Zhanqi Zhao Zhanqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: