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

preference spread options ratio should align to cpu requirements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.21.0
    • CNV v4.17.0
    • CNV Infrastructure
    • None
    • 2
    • CNV Infra Next, CNV Infra 262
    • None

      Description of problem:

      The spreadOption.ration field is blocking the creation of the requirements.cpu field

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

      4.18

      How reproducible:

      100%

      Steps to Reproduce:

      1.Create a VM with dpdk preference with the same value of CPU as requirements.cpi.guest
      

      Actual results:

      The VM gives an error that the CPU number can't be divided in the spreadOption ratio

      Expected results:

      The VM should be running

      Additional info:
      A dpdk preference example where 2 / 4 = 0.5

      spec:
        annotations:
          vm.kubevirt.io/os: linux
        cpu:
          preferredCPUTopology: preferSpread
          spreadOptions:
            across: SocketsCoresThreads
            ratio: 4
        devices:
          preferredDiskBus: virtio
          preferredInterfaceModel: virtio
          preferredNetworkInterfaceMultiQueue: true
        requirements:
          cpu:
            guest: 2
          memory:
            guest: 1536Mi

      Setting the VM with values such as those:

      memory
        guest: perference.spec.require.memory.guest
      cpu
        guest: perference.spec.require.cpu.guest 

              rhn-support-lyarwood Lee Yarwood
              rhn-support-rkishner Roni Kishner
              Roni Kishner Roni Kishner
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: