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

activate nodeip-configuration at MCO for kubevirt platform

XMLWordPrintable

      Description of problem:

      hypershift kubevirt provider is missing the openshift mechanism to select what interface/ip address kubelet is going to use to register
      
      The nodeip-configuration.service should activated at MCO for kubevirt platform.

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

      4.15.0

      How reproducible:

      Always

      Steps to Reproduce:

      Depends on hypershift kubevirt multinet feature https://github.com/openshift/hypershift/pull/3066

      1. Create an openshift libvirt/baremetal cluster with metallb, cnv, odf, local-storage and kubernetes-nmstate with a pair of extra nics at nodes
      2. Populate the following network attachment definition and nncps to connect those extra nics
      ---
      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        name: net1
        annotations:
          k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/net1
      spec:
        config: >
          {
              "cniVersion": "0.3.1",
              "name": "net1",
              "plugins": [{
                  "type": "cnv-bridge",
                  "bridge": "net1",
                  "ipam": {}
              }]
          }
      ---
      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        name: net2
        annotations:
          k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/net2
      spec:
        config: >
          {
              "cniVersion": "0.3.1",
              "name": "net2",
              "plugins": [{
                  "type": "cnv-bridge",
                  "bridge": "net2",
                  "ipam": {}
              }]
          }
      ---
      apiVersion: nmstate.io/v1
      kind: NodeNetworkConfigurationPolicy
      metadata:
        name: multi-net
      spec:
        desiredState:
          interfaces:
          - name: net1                                                             
            type:  linux-bridge                                                           
            state: up
            ipv4:
              enabled: false
            ipv6:
              enabled: false                                                                   
            bridge: 
              options:
                stp:
                  enabled: true                                                                    
              port:                                                                     
                - name: ens4
          - name: net2                                                             
            type:  linux-bridge                                                           
            state: up
            ipv4:
              enabled: false
            ipv6:
              enabled: false                                                                   
            bridge: 
              options:
                stp:
                  enabled: true                                                                    
              port:                                                                     
                - name: ens5
       3. Create a kubevirt hosted cluster using those nics with the following command --additional-network=name:default/net1 --additional-network=name:default/net2 --attach-default-network=false
      

      Actual results:

      kubelet end up expose the IP from net2 but ovn-k uses net1

      Expected results:

      kubelet and ovn-k should use net1

      Additional info:

       

            ellorent Felix Enrique Llorente Pastora
            ellorent Felix Enrique Llorente Pastora
            Sergio Regidor de la Rosa Sergio Regidor de la Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: