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

If hostDevices.deviceName has multiple types, the generated hostDevices.name has duplicates.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.17.z, 4.18.z, 4.19
    • None
    • Critical
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-49827. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-49748. The following is the description of the original issue:

      Description of problem:

          If hostDevices.deviceName has multiple types, the generated hostDevices.name may have duplicates.

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

          4.19 4.18 4.17

      How reproducible:

          100%

      Steps to Reproduce:

      apiVersion: hypershift.openshift.io/v1beta1
      kind: NodePool
      spec:
       platform:
        kubevirt:
         hostDevices:
         - count: 8
           deviceName: nvidia.com/H20
         - count;4
           deviceName: nvidia.com/NVSwitch

      Actual results:

      kubevirtmachines yaml
      hostDevices:
       - deviceName: nvidia.com/H20
         name :hostdevice-1
       - deviceName: nvidia.com/H20
         name :hostdevice-2
       - deviceName: nvidia.com/H20
         name :hostdevice-3
       - deviceName: nvidia.com/H20
         name :hostdevice-4
       - deviceName: nvidia.com/NVSwitch
         name :hostdevice-1
       - deviceName: nvidia.com/NVSwitch
         name :hostdevice-2    
      

      Expected results:

      kubevirtmachines yaml
      hostDevices:
       - deviceName: nvidia.com/H20
         name :hostdevice-1
       - deviceName: nvidia.com/H20
         name :hostdevice-2
       - deviceName: nvidia.com/H20
         name :hostdevice-3
       - deviceName: nvidia.com/H20
         name :hostdevice-4
       - deviceName: nvidia.com/NVSwitch
         name :hostdevice-5
       - deviceName: nvidia.com/NVSwitch
         name :hostdevice-6    
          

      Additional info:

          

              kmajcher@redhat.com Krzysztof Majcher
              openshift-crt-jira-prow OpenShift Prow Bot
              Yu Li Yu Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: