Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-60467

[v4.18.3] No way of overriding the preference value of PreferredTPM from within a VirtualMachine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.18.4
    • None
    • CNV Infrastructure
    • None
    • 2
    • CNV Infra Next
    • Important
    • None

      Description of problem:

      https://github.com/kubevirt/kubevirt/issues/14315 

      Preferences provide preferred values for parts of the VirtualMachineInstanceSpec that should only be used when a user has not provided their own values within the original VirtualMachine.
      
      However for VirtualMachineInstanceSpec attributes like spec.domain.devices.tpm this becomes awkward as we can only implicitly express that the device is disabled by setting nil. 
      
      At present this results in any PreferredTPM value from an associated preference being used in the eventual VirtualMachineInstance with no way for a user to override this behaviour.

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

      <= v4.20.0

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VM using a preference that provides PreferredTPM
      

      Actual results:

      No way of disabling the TPM device from the VM

      Expected results:

      A user should be able to override the value of PreferredTPM from the VM

      Additional info:

       

              rhn-support-lyarwood Lee Yarwood
              rhn-support-lyarwood Lee Yarwood
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: