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

VM with CPU requests/limits is simply rejected

XMLWordPrintable

    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • ---
    • ---
    • High
    • No

      Description of problem:

      VM with CPU requests/limits is simply rejected

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

      CNV v4.16.0.rhel9-2638

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create VM described below
      2.
      3.
      

      Actual results:

      Rejected

      Expected results:

      Success

      Additional info:

      This happens because downstream kubevirt has drifted for 2 weeks
      compared to upstream's release-1.2.
      Fixed with https://gitlab.cee.redhat.com/cpaas-midstream/openshift-virtualization/kubevirt/-/merge_requests/3972
      
      $ cat vm.yaml 
      apiVersion: kubevirt.io/v1
      kind: VirtualMachine
      metadata:
        name: simple-vm
        namespace: default
      spec:
        running: true
        template:
          metadata:
            labels: {kubevirt.io/domain: simple-vm,
              kubevirt.io/vm: simple-vm}
          spec:
            domain:
              devices:
                disks:
                - disk: {bus: virtio}
                  name: dv-disk
                - disk: {bus: virtio}
                  name: cloudinitdisk
              resources:
                requests: {memory: 2048M, cpu: 250m}
            volumes:
            - dataVolume: {name: simple-dv}
              name: dv-disk
            - cloudInitNoCloud:
                userData: |
                  #cloud-config
                  password: fedora
                  chpasswd: { expire: False }
              name: cloudinitdisk
      $ oc create -f vm.yaml 
      The request is invalid: spec.template.spec.domain.resources: Configuration of CPU resource requirements is not allowed when CPU live update is enabled

              alitke@redhat.com Adam Litke
              akalenyu Alex Kalenyuk
              Denys Shchedrivyi Denys Shchedrivyi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: