Bug 1975708

Summary: cnf-tests fails when running on node with secure boot enabled and mlx nic
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: CNF Platform ValidationAssignee: Sebastian Scheinkman <sscheink>
Status: CLOSED CURRENTRELEASE QA Contact: elevin
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.8CC: grajaiya, sscheink
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-24 12:52:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1975216    
Bug Blocks:    

Description OpenShift BugZilla Robot 2021-06-24 09:18:45 UTC
+++ This bug was initially created as a clone of Bug #1975216 +++

Description of problem:
When running cnf-tests on a node with secure boot enabled
that also have mlx nic

sriov-operator is ignoring this nic
but the tests still chooses it, which leads them to fail

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


How reproducible:
every time


Steps to Reproduce:
1. enable secure boot in bios
2. run sriov tests from cnf-tests 

Actual results:
fail


Expected results:
pass

Comment 1 elevin 2021-07-30 20:05:52 UTC
Server Version: 4.8.2
Kubernetes Version: v1.21.1+051ac4f
Secure boot enabled
quay.io/openshift-kni/cnf-tests:4.8
mlnx and Intel nics

===================================================


 sudo podman run  -v ~/hlx2:/kubeconfig:Z  -e KUBECONFIG=/kubeconfig/kubeconfig -e IMAGE_REGISTRY=quay.io/openshift-kni -e CNF_TESTS_IMAGE=cnf-tests:4.8 -e DPDK_TESTS_IMAGE=dpdk:4.8  -e SCTPTEST_HAS_NON_CNF_WORKERS=false quay.io/openshift-kni/cnf-tests:4.8 /usr/bin/test-run.sh -ginkgo.focus="sriov"
[sudo] password for elevin: 
running /usr/bin//validationsuite -ginkgo.focus=sriov
I0729 18:14:56.699687       7 request.go:655] Throttling request took 1.049958904s, request: GET:https://api.hlxcl2.lab.eng.tlv2.redhat.com:6443/apis/authentication.k8s.io/v1beta1?timeout=32s
Running Suite: CNF Features e2e validation
==========================================
Random Seed: 1627582493
Will run 6 of 36 specs

SSSSSSS•••••
------------------------------
• [SLOW TEST:8.128 seconds]
validation
/go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/validationsuite/cluster/validation.go:45
  sriov
  /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/validationsuite/cluster/validation.go:127
    should have SR-IOV node statuses not in progress
    /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/validationsuite/cluster/validation.go:193
------------------------------
SSSSSSSSSSSSSSSSSSSSSSS
Ran 6 of 36 Specs in 10.494 seconds
SUCCESS! -- 6 Passed | 0 Failed | 0 Pending | 30 Skipped
PASS
running /usr/bin//configsuite -ginkgo.focus=sriov
I0729 18:15:12.222305      29 request.go:655] Throttling request took 1.043982593s, request: GET:https://api.hlxcl2.lab.eng.tlv2.redhat.com:6443/apis/ptp.openshift.io/v1?timeout=32s
Running Suite: CNF Features e2e setup
=====================================
Random Seed: 1627582509
Will run 0 of 1 specs


S [SKIPPING] [68.136 seconds]
[sriov] operator
/go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:66
  Custom SriovNetworkNodePolicy
  /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:909
    Nic Validation
    /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1373
      Test connectivity using the requested nic
      /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1395
        Ethernet Controller XXV710 Intel(R) FPGA Programmable Acceleration Card N3000 for Networking [It]
        /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1473

        skip nic validate as wasn't able to find a nic with vendorID 8086 and deviceID 0d58

        /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1399
------------------------------
 
Waiting for the sriov state to stable
Sriov state is stable
• [SLOW TEST:47.072 seconds]
[sriov] operator
/go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:66
  Custom SriovNetworkNodePolicy
  /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:909
    Resource Injector
    /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1476
      SR-IOV Operator Config, disable
      /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1490
        Network resource injector
        /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1569
------------------------------
......................................................
......................................................
......................................................

Waiting for the sriov state to stable
Sriov state is stable
• [SLOW TEST:41.529 seconds]
[sriov] operator
/go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:66
  Custom SriovNetworkNodePolicy
  /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:909
    Resource Injector
    /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1476
      SR-IOV Operator Config, disable
      /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1490
        Webhook resource injector
        /go/src/github.com/openshift-kni/cnf-features-deploy/vendor/github.com/k8snetworkplumbingwg/sriov-network-operator/test/conformance/tests/sriov_operator.go:1571
------------------------------
• [SLOW TEST:116.527 seconds]
[sriov] SCTP integration
/go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/sctp/sctp_sriov.go:33
  Test Connectivity
  /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/sctp/sctp_sriov.go:112
    Connectivity between client and server
    /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/sctp/sctp_sriov.go:113
      Should work over a SR-IOV device
      /go/src/github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/e2esuite/sctp/sctp_sriov.go:131
------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
JUnit report was created: /junit.xml/cnftests-junit.xml

Ran 24 of 134 Specs in 1870.134 seconds
SUCCESS! -- 24 Passed | 0 Failed | 0 Pending | 110 Skipped

Comment 4 Carlos Goncalves 2022-08-24 12:52:49 UTC
Bulk closing of all "CNF Platform Validation" component BZs assigned to CNF Network team members and in VERIFIED status for longer than 1 month.