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

Incorrect display of used cpu in ARQ when set it through 'requests.cpu'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.16.0
    • None
    • CNV Virtualization
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • aaq-operator-rhel9-container-v4.16.0-95
    • ---
    • ---
    • No

      Description of problem:

      When I set cpu number by spec.domain.resources.requests.cpu - ARQ always shows that only `1` is used
      
      
      # VM Spec:
      
      $ oc get vm vm-fedora -o yaml
      .
      spec:
        template:
          spec:
            domain:
              resources:
                requests:
                  cpu: "6"
      
      
      # lscpu in the VM shows 6 CPUs:
      
      CPU(s):                  6
        On-line CPU(s) list:   0-5
      Vendor ID:               GenuineIntel
        Model name:            Intel Atom Processor (SnowRidge)
          CPU family:          6
          Model:               134
          Thread(s) per core:  1
          Core(s) per socket:  1
          Socket(s):           6 
      
      
      # ARQ shows only 1 cpu/vmi is used:
      
      $ oc describe arq | grep Used -A 5
        Used:
          requests.cpu:            0
          requests.cpu/vmi:        1
          requests.instances/vmi:  1
          requests.memory:         0
          requests.memory/vmi:     1536Mi

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

      4.15

      How reproducible:

      100%

      Steps to Reproduce:

      1. create VM with CPU set by 'requests.cpu' 
      2. 
      3.
      

      Actual results:

      ARQ shows only 1 cpu used

      Expected results:

      ARQ should reflects the real number

      Additional info:

      I don't see this issue when set CPU as a guest 

              bmordeha@redhat.com Barak Mordehai
              dshchedr@redhat.com Denys Shchedrivyi
              Zhe Peng Zhe Peng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: