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

Pod interfaces using VFs report NO-CARRIER status

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      Pod interfaces using VFs report NO-CARRIER status

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

      4.12.0-0.ci.test-2022-10-19-103705-ci-ln-b4wpri2-latest
      sriov-network-operator.4.12.0-202210051531

      How reproducible:

      100%

      Steps to Reproduce:

      1.create the SR-IOV NetworkNodePolicy:
      
      apiVersion: sriovnetwork.openshift.io/v1
      kind: SriovNetworkNodePolicy
      metadata:
        name: pci-sriov-net-f1
        namespace: openshift-sriov-network-operator
      spec:
        resourceName: pci_sriov_net_f1
        nodeSelector:
          node-role.kubernetes.io/master: ""
        mtu: 1500
        numVfs: 8
        deviceType: netdevice
        nicSelector:
          vendor: "8086"
          deviceID: "1593"
          pfNames: ["ens2f2#0-1"] 
      
      2. Create sriovNetwork 
      
      apiVersion: sriovnetwork.openshift.io/v1
      kind: SriovNetwork
      metadata:
        name: sriov-net-f1
        namespace: openshift-sriov-network-operator
      spec:
        networkNamespace: ztp-testns
        resourceName: pci_sriov_net_f1
        vlan: 150
      
      
      3. Create pod with interfaces in the network created above
      
      ---
      apiVersion: v1
      kind: Pod
      metadata:
        annotations:
          k8s.v1.cni.cncf.io/networks: '[{"name": "sriov-net-f1", "interface": "f1c", "namespace": "ztp-testns" }, {"name": "sriov-net-f1", "interface": "f1u", "namespace": "ztp-testns" }]'
        name: dpdk
        namespace: ztp-testns
      spec:
         containers:
         - env:
           - name: service_name
             value: dpdk
           command: ["sleep", "infinity"]
           image: registry.kni-qe-0.lab.eng.rdu2.redhat.com:5000/dpdk
           imagePullPolicy: IfNotPresent
           securityContext:
             runAsUser: 0
             capabilities:
               add: ["IPC_LOCK","SYS_RESOURCE","NET_RAW"]
           name: dpdk
           ports:
           - containerPort: 8080
             protocol: TCP
           resources:
             limits:
               hugepages-1Gi: "4Gi"
               cpu: "4"
               memory: "1Gi"
             requests:
               hugepages-1Gi: "4Gi"
               cpu: "3.8"
               memory: "1Gi"
           volumeMounts:
           - mountPath: /dev/hugepages
             name: hugepage
             readOnly: False
         volumes:
         - name: hugepage
           emptyDir:
             medium: HugePages 
      
      4. Check interface status inside the pod
      
      oc -n ztp-testns exec dpdk -- ip a

      Actual results:

      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
             valid_lft forever preferred_lft forever
          inet6 ::1/128 scope host 
             valid_lft forever preferred_lft forever
      2: eth0@if2922: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1400 qdisc noqueue state UP group default 
          link/ether 0a:58:2b:3c:0a:a3 brd ff:ff:ff:ff:ff:ff link-netnsid 0
          inet6 fd01:0:0:1::ac8/64 scope global 
             valid_lft forever preferred_lft forever
          inet6 fe80::858:2bff:fe3c:aa3/64 scope link 
             valid_lft forever preferred_lft forever
      143: f1c: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
          link/ether 76:0d:a3:bd:66:fc brd ff:ff:ff:ff:ff:ff
      144: f1u: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
          link/ether 26:f5:ce:ec:ce:65 brd ff:ff:ff:ff:ff:ff

      Expected results:

      f1c and f1u interfaces do not report NO-CARRIER

      Additional info:

      Attaching sr-iov must gather.

      Attachments

        Activity

          People

            vpunj@redhat.com Vrinda Punj
            mcornea@redhat.com Marius Cornea
            Zhanqi Zhao Zhanqi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: