Bug 2152534
| Summary: | Default CPU request in namespace limitrange takes precedence over the VMs configured vCPU | |||
|---|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | nijin ashok <nashok> | |
| Component: | Virtualization | Assignee: | Igor Bezukh <ibezukh> | |
| Status: | CLOSED ERRATA | QA Contact: | Denys Shchedrivyi <dshchedr> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 4.11.1 | CC: | dholler, divshah, ibezukh | |
| Target Milestone: | --- | |||
| Target Release: | 4.11.3 | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | hco-bundle-v4.11.3-21 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2164431 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-18 02:56:36 UTC | Type: | Bug | |
| 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: | ||||
| Bug Blocks: | 2164431, 2164432 | |||
|
Description
nijin ashok
2022-12-12 09:24:48 UTC
Can you share the limitrange object you used as a reproducer? Nijin, can you please post manifests for the VMI, the limitrange object and the resulting pod? Verified, LimitRange does not take precedence over the VMs cpu/cores field
Created LimitRange:
apiVersion: v1
kind: LimitRange
metadata:
name: resource-limits
namespace: default
spec:
limits:
- default:
cpu: "2"
memory: 4Gi
defaultRequest:
cpu: 100m
memory: 4Gi
max:
cpu: "2"
memory: 5Gi
type: Container
Created VM with domain.cpu.cores field but without resources.requests.cpu:
> $ oc get vmi vm-fedora -o yaml | yq .spec.domain.cpu.cores
> 3
> $ oc get vmi vm-fedora -o yaml | yq .spec.domain.resources.requests
> memory: 1Gi
The POD has expected cpu value
> $ oc get pod virt-launcher-vm-fedora-xtvkp -o yaml | yq .spec.containers[0].resources.requests
> cpu: 300m
Yes it should be in 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 (Moderate: OpenShift Virtualization 4.13.0 Images security, bug fix, and enhancement update), 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/RHSA-2023:3205 |