Bug 1646369
| Summary: | CPU count specified via spec.domain.resources.requests.cpu does not honour the value | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Kedar Bidarkar <kbidarka> | ||||||||
| Component: | Virtualization | Assignee: | Martin Sivák <msivak> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Kedar Bidarkar <kbidarka> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | high | ||||||||||
| Version: | 1.3 | CC: | cnv-qe-bugs, fdeutsch, kbidarka, michal.skrivanek, sgordon, vromanso | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | 1.4 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | 0.9.3 | Doc Type: | If docs needed, set a value | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2019-02-26 13:24:16 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Kedar Bidarkar
2018-11-05 13:23:02 UTC
https://github.com/kubevirt/kubevirt/pull/1604 the fix from above kubevirt issue, seems to be this. (In reply to Kedar Bidarkar from comment #1) > https://github.com/kubevirt/kubevirt/pull/1604 the fix from above kubevirt > issue, seems to be this. Yep. This PR is already part of the release-0.9 branch. Created attachment 1504671 [details]
VMI Fedora28 cloud resources
Tried by using the attached vm-spec file, but still see only 1 vcpu in the created VM.
[fedora@vmi-fedora28-cloud-res ~]$ cat /proc/cpuinfo | grep -i ^processor | wc -l
1
[fedora@vmi-fedora28-cloud-res ~]$
TESTED with CNV-1.3.0-11 /kubevirt-0.9.5
Kedar, please provide `kubectl get -o yaml VMNAME` for the running VM. Created attachment 1504681 [details]
output of vmi with -o yaml
Output via, "oc get vmi vmi-fedora28-cloud-res -o yaml"
Can you please try:
apiVersion: kubevirt.io/v1alpha2
kind: VirtualMachineInstance
spec:
domain:
cpu:
cores: 2
dedicatedCpuPlacement: true
…
Without limits/requests.
Without limits and requests it does work fine. spec.domain.cpu_cores approach works fine as expected; but spec.domain.resources.requests.cpu does not work and hence this bug. I checked this with CNV-1.4 and it works fine now, I feel we can now move this to MODIFIED state. Will be attaching the results for the same shortly. Created attachment 1520556 [details]
CPU resources requests limits works fine
moving to Verified based on comment #13 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, 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/RHEA-2019:0417 |