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

[4.13] vDPA vf cannot be created

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 4.13.0
    • 4.13.0
    • Networking / SR-IOV
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      vf cannot be created with `vdpa is virtio`
      
      apiVersion: sriovnetwork.openshift.io/v1
      kind: SriovNetworkNodePolicy
      metadata:
        name: cx6dx
        namespace: openshift-sriov-network-operator
      spec:
        deviceType: netdevice
        nicSelector:
          deviceID: "101d"
          pfNames:
            - ens7f0np0
          vendor: '15b3'
        nodeSelector:
          feature.node.kubernetes.io/sriov-capable: 'true'
        numVfs: 4
        mtu: 9000
        priority: 99
        eSwitchMode: "switchdev"
        vdpaType: "virtio"
        resourceName: cx6dx

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

      4.13.0-202303151728
      4.13.0-0.nightly-2023-03-14-053612
      
      kernel: 5.14.0-282.el9.x86_64
      
      
      

      How reproducible:

       

      Steps to Reproduce:

      1. set cluster OVN with cx6-dx as the default network
      2. setup sriov operator
      3. Create snnp as description mentioned
      4. after the server reboot
      5. ip link ens7f0np0 show
      6. 

      Actual results:

      VF cannot be inited and No `vdpaType` show in the resource
      
      # oc get sriovnetworknodepolicies.sriovnetwork.openshift.io -n openshift-sriov-network-operator cx6dx -o yaml
      apiVersion: sriovnetwork.openshift.io/v1
      kind: SriovNetworkNodePolicy
      metadata:
        creationTimestamp: "2023-03-16T08:35:15Z"
        generation: 1
        name: cx6dx
        namespace: openshift-sriov-network-operator
        resourceVersion: "143685"
        uid: 20fbe8ff-b6f1-407a-a5e6-c2ae92727801
      spec:
        deviceType: netdevice
        eSwitchMode: switchdev
        isRdma: false
        mtu: 9000
        nicSelector:
          deviceID: 101d
          pfNames:
          - ens7f0np0
          vendor: 15b3
        nodeSelector:
          feature.node.kubernetes.io/sriov-capable: "true"
        numVfs: 4
        priority: 99
        resourceName: cx6dx
      

      Expected results:

       

      Additional info:

      must-gather logs: http://file.apac.redhat.com/~zzhao/must-gather.local.4531813996083911189.tar.gz

              rh-ee-lmilleri Leonardo Milleri
              zzhao1@redhat.com Zhanqi Zhao
              Zhanqi Zhao Zhanqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: