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

[Pre merge Testing] [UDN] joinSubnets not take effect when config it

XMLWordPrintable

    • Important
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when setting the joinSubnets in UserDefinedNetwork

      apiVersion: k8s.ovn.org/v1
      kind: UserDefinedNetwork
      metadata:
        name: l3-primary
      spec:
        topology: Layer3
        layer3:
          role: Primary
          joinSubnets:
            - 100.100.100.0/16
            - fd91::/64
          mtu: 1300
          subnets:
            - cidr: "20.100.0.0/16"
              hostSubnet: 24
            - cidr: "2010:100:0::0/48"
              hostSubnet: 64

      1. oc get net-attach-def -n z5 -o yaml
        apiVersion: v1
        items:
      • apiVersion: k8s.cni.cncf.io/v1
          kind: NetworkAttachmentDefinition
          metadata:
            creationTimestamp: "2024-11-13T03:25:49Z"
            finalizers:
            - k8s.ovn.org/user-defined-network-protection
            generation: 1
            labels:
              k8s.ovn.org/user-defined-network: ""
            name: l3-primary
            namespace: z5
            ownerReferences:
            - apiVersion: k8s.ovn.org/v1
              blockOwnerDeletion: true
              controller: true
              kind: UserDefinedNetwork
              name: l3-primary
              uid: 3ea70556-e1a3-40d4-8067-0849f06ffcb8
            resourceVersion: "359320"
            uid: 51f79383-c0e2-47d0-a63a-4a1754bf9d57
          spec:
            config: '{"cniVersion":"1.0.0","joinSubnets":"100.100.100.0/16,fd91::/64","mtu":1300,"name":"z5.l3-primary","netAttachDefName":"z5/l3-primary","role":"primary","subnets":"20.100.0.0/16/24,2010:100:0::0/48/64","topology":"layer3","type":"ovn-k8s-cni-overlay"}'
        kind: List
        metadata:
          resourceVersion: ""

      The static route still using the default value

      sh-5.1# ovn-nbctl lr-route-list z5.l3.primary_ovn_cluster_router
      IPv4 Routes
      Route Table <main>:
                     100.65.0.2                100.88.0.2 dst-ip
                     100.65.0.3                100.88.0.3 dst-ip
                     100.65.0.4                100.88.0.4 dst-ip
                     100.65.0.5                100.88.0.5 dst-ip
                     100.65.0.6                100.88.0.6 dst-ip
                     100.65.0.7                100.65.0.7 dst-ip
                    172.30.0.10                20.100.0.2 dst-ip
                  20.100.1.0/24                100.88.0.2 dst-ip
                  20.100.2.0/24                100.88.0.3 dst-ip
                  20.100.3.0/24                100.88.0.4 dst-ip
                  20.100.4.0/24                100.88.0.5 dst-ip
                  20.100.5.0/24                100.88.0.6 dst-ip
                  20.100.0.0/24                100.65.0.7 src-ip

      IPv6 Routes
      Route Table <main>:
                        fd99::2                   fd97::2 dst-ip
                        fd99::3                   fd97::3 dst-ip
                        fd99::4                   fd97::4 dst-ip
                        fd99::5                   fd97::5 dst-ip
                        fd99::6                   fd97::6 dst-ip
                        fd99::7                   fd99::7 dst-ip
              2010:100:0:2::/64                   fd97::2 dst-ip
              2010:100:0:3::/64                   fd97::3 dst-ip
              2010:100:0:4::/64                   fd97::4 dst-ip
              2010:100:0:5::/64                   fd97::5 dst-ip
              2010:100:0:6::/64                   fd97::6 dst-ip
              2010:100:0:1::/64                   fd99::7 src-ip

       

              sseethar Surya Seetharaman
              zzhao1@redhat.com Zhanqi Zhao
              Zhanqi Zhao Zhanqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: