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

Old routes persists in NBDB when we modify internal masqueradeSubnet, transitSwitchSubnet, joinSwitchSubnet

XMLWordPrintable

    • Critical
    • No
    • SDN Sprint 259, SDN Sprint 260, SDN Sprint 261, SDN Sprint 262, SDN Sprint 263, SDN Sprint 264, SDN Sprint 265
    • 7
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when testing: 4.16 feature and masquerade_subnet feature, i modified the internal masq,transit_sw,join_sw subnet, I can still see old route in NBDB.

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

      How reproducible:

      Steps to Reproduce:

      1. Change the the internal OVN subnets.
      2. Then check the routes in NBDB:
      3. Network operator CR looks like:
      [quickcluster@node-0 ~]$ oc get network.operator.openshift.io -o jsonpath="{.items[0].spec.defaultNetwork}"| jq
      {
        "ovnKubernetesConfig": {
          "egressIPConfig": {},
          "gatewayConfig": {
            "ipv4": {
              "internalMasqueradeSubnet": "171.254.169.0/29"
            },
            "ipv6": {},
            "routingViaHost": false
          },
          "genevePort": 6081,
          "ipsecConfig": {
            "mode": "Disabled"
          },
          "ipv4": {
            "internalJoinSubnet": "100.66.1.0/16",
            "internalTransitSwitchSubnet": "100.90.1.0/16"
          },
          "mtu": 8901,
          "policyAuditConfig": {
            "destination": "null",
            "maxFileSize": 50,
            "maxLogFiles": 5,
            "rateLimit": 20,
            "syslogFacility": "local0"
          }
        },
        "type": "OVNKubernetes"
      } 

      Actual results: 

      sh-5.1# ovn-nbctl lr-route-list  GR_ip-10-0-70-142.us-east-2.compute.internal
      IPv4 Routes
      Route Table <main>:
               169.254.169.0/29             169.254.169.4 dst-ip rtoe-GR_ip-10-0-70-142.us-east-2.compute.internal
               171.254.169.0/29             171.254.169.4 dst-ip rtoe-GR_ip-10-0-70-142.us-east-2.compute.internal
                  10.128.0.0/14                100.66.0.1 dst-ip
                      0.0.0.0/0                 10.0.64.1 dst-ip rtoe-GR_ip-10-0-70-142.us-east-2.compute.internal
      sh-5.1# ovn-nbctl lr-route-list  ovn_cluster_router
      IPv4 Routes
      Route Table <main>:
                     100.64.0.2                100.88.0.2 dst-ip ecmp
                     100.64.0.2                100.90.0.2 dst-ip ecmp
                     100.64.0.3                100.88.0.3 dst-ip ecmp
                     100.64.0.3                100.90.0.3 dst-ip ecmp
                     100.64.0.4                100.88.0.4 dst-ip ecmp
                     100.64.0.4                100.90.0.4 dst-ip ecmp
                     100.64.0.5                100.64.0.5 dst-ip
                     100.64.0.6                100.88.0.6 dst-ip ecmp
                     100.64.0.6                100.90.0.6 dst-ip ecmp
                     100.64.0.7                100.88.0.7 dst-ip ecmp
                     100.64.0.7                100.90.0.7 dst-ip ecmp
                     100.66.0.2                100.90.0.2 dst-ip
                     100.66.0.3                100.90.0.3 dst-ip
                     100.66.0.4                100.90.0.4 dst-ip
                     100.66.0.5                100.66.0.5 dst-ip
                     100.66.0.6                100.90.0.6 dst-ip
                     100.66.0.7                100.90.0.7 dst-ip
                  10.128.0.0/23                100.88.0.4 dst-ip ecmp
                  10.128.0.0/23                100.90.0.4 dst-ip ecmp
                  10.128.2.0/23                100.88.0.6 dst-ip ecmp
                  10.128.2.0/23                100.90.0.6 dst-ip ecmp
                  10.129.0.0/23                100.88.0.2 dst-ip ecmp
                  10.129.0.0/23                100.90.0.2 dst-ip ecmp
                  10.129.2.0/23                100.88.0.7 dst-ip ecmp
                  10.129.2.0/23                100.90.0.7 dst-ip ecmp
                  10.130.0.0/23                100.88.0.3 dst-ip ecmp
                  10.130.0.0/23                100.90.0.3 dst-ip ecmp
                  10.128.0.0/14                100.64.0.5 src-ip ecmp
                  10.128.0.0/14                100.66.0.5 src-ip ecmp 

      Expected results: Older routes should not be present.

       

              rhn-support-arghosh Arnab Ghosh
              rhn-support-nbhatt Neeraj Bhatt
              Anurag Saxena Anurag Saxena
              Riccardo Ravaioli
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: