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

[hypershift]No annotation k8s.ovn.org/node-gateway-router-lrp-ifaddr for hc nodes after ovnKubernetesConfigconfigurated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.20.0
    • HyperShift
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      After Adding ovnKubernetesConfig in hosted cluster configuration, there's no annotation k8s.ovn.org/node-gateway-router-lrp-ifaddr for hosted clusters nodes.
          

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

      4.20.0-0.nightly-2025-09-01-101753
          

      How reproducible:

        Always
          

      Steps to Reproduce:

          1. Add ovnKubernetesConfig in hc configuration
      
      {code:java}
            $ oc edit hc -n clusters
          operatorConfiguration:
            clusterNetworkOperator:
              disableMultiNetwork: false
              ovnKubernetesConfig:
                ipv4:
                  internalJoinSubnet: 100.99.0.0/16
                  internalTransitSwitchSubnet: 100.69.0.0/16
      

      2. Check cno configuration in hosted cluster
      $oc get network.operator.openshift.io --kubeconfig=<hc_kubeconfig>

        defaultNetwork:
          ovnKubernetesConfig:
            egressIPConfig: {}
            gatewayConfig:
              ipv4: {}
              ipv6: {}
              routingViaHost: false
            genevePort: 6081
            ipsecConfig:
              mode: Disabled
            ipv4:
              internalJoinSubnet: 100.99.0.0/16
              internalTransitSwitchSubnet: 100.69.0.0/16
      

      3.Check annotations k8s.ovn.org/node-gateway-router-lrp-ifaddr,return nothing

      # oc describe  node/ip-10-0-138-112.us-east-2.compute.internal |grep -i  k8s.ovn.org/node-gateway-router-lrp-ifaddr
      

      4. Check annotations k8s.ovn.org/node-transit-switch-port-ifaddr, get expected result.

      # oc describe node/ip-10-0-138-112.us-east-2.compute.internal |grep -i k8s.ovn.org/node-transit-switch-port-ifaddr
                          k8s.ovn.org/node-transit-switch-port-ifaddr: {"ipv4":"100.69.0.3/16"}
      
          Actual results:{code:none}
      no annotations k8s.ovn.org/node-gateway-router-lrp-ifaddr  value returned.
          

      Expected results:

      should have range value like 100.99.0.x/16 of for annotations k8s.ovn.org/node-gateway-router-lrp-ifaddr  
          

      Additional info:

      
          

              rhn-support-liangli Liangquan Li
              rhn-support-wewang Wen Wang
              None
              None
              Yu Li Yu Li
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: