Bug 1958862

Summary: Missing default values for permitted host devices + misleading API naming
Product: Container Native Virtualization (CNV) Reporter: Nahshon Unna-Tsameret <nunnatsa>
Component: InstallationAssignee: Nahshon Unna-Tsameret <nunnatsa>
Status: CLOSED ERRATA QA Contact: ibesso <ibesso>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8.0CC: cnv-qe-bugs, ibesso, stirabos
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry:v4.8.0-324 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 14:32:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nahshon Unna-Tsameret 2021-05-10 10:40:46 UTC
Description of problem:


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


How reproducible:
Deploy CNV and read KubeVirt CR's permitted host devices

Actual results:
No default values for the permitted host devices

Expected results:
The following PCI devices should be present in HCO CR and KubeVirt CR:
permittedHostDevices:
       pciHostDevices:
                - pciVendorSelector: "10DE:1DB6"
                  resourceName: "nvidia.com/GV100GL_Tesla_V100"
               -  pciVendorSelector: "10DE:1EB8"
                  resourceName: "nvidia.com/TU104GL_Tesla_T4"

In addition the "pciVendorSelector" field name is misleading because this is a device selector, not only a vendor selector. The value is more specific than the field name.

Additional info:

Comment 1 ibesso 2021-05-27 19:19:35 UTC
Verified with a cluster installed from scratch CNV 4.8.0
--------------------------------------------------------
IIB: registry-proxy.engineering.redhat.com/rh-osbs/iib:76375
HCO:[v4.8.0-350]

The HCO CR has the following by default:
  permittedHostDevices:
    pciHostDevices:
    - pciDeviceSelector: 10DE:1DB6
      resourceName: nvidia.com/GV100GL_Tesla_V100
    - pciDeviceSelector: 10DE:1EB8
      resourceName: nvidia.com/TU104GL_Tesla_T4

pciVendorSelector is not used anymore.

Moving to VERIFIED.

Comment 4 errata-xmlrpc 2021-07-27 14:32:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 4.8.0 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2920