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

[2247200] Virtual machine export is not working on Quota defined namespace

XMLWordPrintable

    • Medium

      +++ This bug was initially created as a clone of Bug #2236422 +++

      Description of problem:

      The namespace has a quota defined:

      ~~~
      oc describe quota -n test-cnv
      Name: compute-resources
      Namespace: test-cnv
      Resource Used Hard
      -------- ---- ----
      requests.cpu 500m 10
      ~~~

      Tried to export the VM:

      ~~~

      1. virtctl vmexport create rhel8-hssasrpx63aq4yv2-export --vm=rhel8-hssasrpx63aq4yv2
        ~~~

      The `virt-export-` pod creation is failing with the error below:

      ~~~
      E0831 08:27:10.088120 1 util.go:72] pods "virt-export-rhel8-hssasrpx63aq4yv2-export" is forbidden: failed quota: compute-resources: must specify requests.cpu for: rhel8-hssasrpx63aq4yv2-export
      ~~~

      It doesn't set default limits/requests for memory and cpu or there is no option to pass the values.

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

      OpenShift Virtualization 4.13.3

      How reproducible:

      100%

      Steps to Reproduce:
      1. Define a quota for the namespace.
      2. Try to export a VM in this namespace.
      3. The virt-export-` creation will fail and the quota error will be reported in the virt-launcher pod.

      Actual results:

      Virtual machine export is not working on Quota defined namespace

      Expected results:

      It should set requests/limits for memory and cpu to the virt-export pod.

      Additional info:

            rhn-support-awels Alexander Wels
            dafrank@redhat.com Dalia Frank
            Natalie Gavrielov Natalie Gavrielov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: