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

Dual-Stack Hosted Cluster: Cluster Network Operator doesn't validate cluster networks properly

    XMLWordPrintable

Details

    Description

      Description of problem:

      When deploying a dual stack HostedCluster the worker nodes will not fully join the cluster because the CNI plugin doesn't start. If we check the cluster-network-operator pod we will see the following error:
      
      I0711 13:46:16.012420       1 log.go:198] Failed to validate Network.Spec: hostPrefix 23 is larger than its cidr fd01::/48  
      
      
      
      It seems that is validating the IPv4 hostPrefix against the IPv6 pod network, this is how the networking spec for the HC looks like:
      
        networking:
          clusterNetwork:
          - cidr: 10.132.0.0/14
          - cidr: fd01::/48
          networkType: OVNKubernetes
          serviceNetwork:
          - cidr: 172.31.0.0/16
          - cidr: fd02::/112

       

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

      latest

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy a HC with the networking settings specified and using the image with dual stack patches included quay.io/jparrill/hypershift:OCPBUGS-15331-mix-413v2 
      

      Actual results:

      CNI is not deployed

      Expected results:

      CNI is deployed

      Additional info:

      Discussed on slack https://redhat-internal.slack.com/archives/C058TF9K37Z/p1689078655055779

      Attachments

        Activity

          People

            jparrill@redhat.com Juan Manuel Parrilla Madrid
            mavazque@redhat.com Mario Vazquez Cebrian
            Liangquan Li Liangquan Li
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: