• Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • CNV v4.17.0
    • CNV v4.17.0
    • CNV Virtualization
    • None
    • No

      Description of problem:

      Can't add usb device in hco config directly

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

      cnv-4.16

      How reproducible:

      Always

      Steps to Reproduce:

      1.$ oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv
      2. Add 
      permittedHostDevices:
            usb:
            - resourceName: kubevirt.io/storage
              selectors:
              - product: 078f
                vendor: 045e
       3. save config
      

      Actual results:

      W0617 22:41:42.728019 1513388 warnings.go:70] unknown field "spec.permittedHostDevices.usb"
      hyperconverged.hco.kubevirt.io/kubevirt-hyperconverged edited

      Expected results:

      can saved

      Additional info:

      using annotate, it work:
      oc annotate --overwrite -n openshift-cnv hyperconverged kubevirt-hyperconverged kubevirt.kubevirt.io/jsonpatch='[{    "op": "add",    "path": "/spec/configuration/permittedHostDevices",    "value": {        "usb": [            {                "resourceName": "kubevirt.io/storage",                "selectors": [                    {                        "vendor": "045e",                        "product": "078f"                    }                ]            }        ]    }}]'

              victortoso@redhat.com Victor Toso
              zpeng1@redhat.com Zhe Peng
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: