Bug 2004950
Summary: | Kubevirt doesn't respect cpuAllocationRatio | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Kedar Bidarkar <kbidarka> |
Component: | Virtualization | Assignee: | Vladik Romanovsky <vromanso> |
Status: | CLOSED ERRATA | QA Contact: | Kedar Bidarkar <kbidarka> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.8.1 | CC: | cnv-qe-bugs, ipinto, kbidarka, rmohr, sgott, usurse, vromanso |
Target Milestone: | --- | ||
Target Release: | 4.8.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | virt-operator-container-v4.8.4-4 hco-bundle-registry-container-v4.8.4-11 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 2002313 | Environment: | |
Last Closed: | 2022-01-20 17:21:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2002313 | ||
Bug Blocks: |
Description
Kedar Bidarkar
2021-09-16 13:39:43 UTC
backport tracked here: https://github.com/kubevirt/kubevirt/pull/6453 Backport is merged. Manual backport supercedes previous PR: https://github.com/kubevirt/kubevirt/pull/6655 ]$ oc annotate --overwrite -n openshift-cnv hyperconverged kubevirt-hyperconverged kubevirt.kubevirt.io/jsonpatch='[{
> "op": "add",
> "path": "/spec/configuration/developerConfiguration/cpuAllocationRatio",
> "value": 20
> }]'
hyperconverged.hco.kubevirt.io/kubevirt-hyperconverged annotated
]$ oc get vmi vm-rhel84-ocs -o yaml | grep -A 5 "cpu:"
cpu:
cores: 6
sockets: 1
threads: 1
]$ oc get pods
NAME READY STATUS RESTARTS AGE
virt-launcher-vm-rhel84-ocs-94lpm 1/1 Running 0 3m41s
]$ oc get pod virt-launcher-vm-rhel84-ocs-94lpm -o yaml | grep "cpu:"
f:cpu: {}
cpu: 300m
---
VERIFIED with, virt-operator/images/v4.8.4-4
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Virtualization 4.8.4 Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:0213 |