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

API documentation on disk cache is misleading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • CNV v4.17.z
    • CNV v4.17.0
    • Storage Platform
    • None
    • Incidents & Support
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV Storage 266, CNV Storage 267, CNV Storage 268, CNV Storage 269
    • Moderate
    • None

      Description of problem:

      The supported values reported here are incorrect
      
      # oc explain vm.spec.template.spec.domain.devices.disks.cache
      GROUP:      kubevirt.io
      KIND:       VirtualMachine
      VERSION:    v1
      
      
      FIELD: cache <string>
      
      
      
      
      DESCRIPTION:
          Cache specifies which kvm disk cache mode should be used.
          Supported values are: CacheNone, CacheWriteThrough.

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

      4.17.0

      How reproducible:

      Always

      Steps to Reproduce:

      1. Configure a disk with the values suggested in the API documentation
      

      Actual results:

      YAML validation fails

      Expected results:

      Show the user the actual values it accepts for cache: "none" and "writethrough".

      Additional info:

      CacheWriteThrough and CacheNone are internal DriverCache types (enum/const). The values the user can write in the YAML are just "none" and "writethrough".

              akalenyu Alex Kalenyuk
              rhn-support-gveitmic Germano Veit Michel
              Jenia Peimer Jenia Peimer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: