Bug 1982296
| Summary: | vCPU maximum CPU calculation is off causing VM's not to boot due to exceeding maximum vcpu of machine type | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | amashah |
| Component: | ovirt-engine | Assignee: | Milan Zamazal <mzamazal> |
| Status: | CLOSED ERRATA | QA Contact: | Polina <pagranat> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4.5 | CC: | ahadas, ddacosta, dfodor, mavital |
| Target Milestone: | ovirt-4.4.8 | ||
| Target Release: | 4.4.8 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.4.8.2 | Doc Type: | Bug Fix |
| Doc Text: |
Previously, it was possible to set the maximum number of vCPUs too high for virtual machine with the i4440fx BIOS type with certain CPU topologies. This prevented those virtual machines from starting. The current release fixes this issue and the maximum number of vCPUs for such virtual machines is now set within a valid range.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-09-08 14:12:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
amashah
2021-07-14 16:06:26 UTC
There are no logs attached to this case but it's most probably a VM that is set with an i440fx chipset:
[root@ocelot03 ~]# virsh qemu-monitor-command 2 '{"execute":"query-machines"}'
{"return":[{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.0.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":false,"name":"none","numa-mem-supported":false,"cpu-max":1,"deprecated":false,"default-ram-id":"ram"},{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.5.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.3.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel8.3.0","numa-mem-supported":false,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel7.6.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.1.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel8.1.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel7.4.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.6.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","is-default":true,"cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram","alias":"pc"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel8.4.0","numa-mem-supported":false,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram","alias":"q35"},{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.4.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel8.2.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel7.5.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-i440fx-rhel7.2.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":240,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel8.0.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":710,"deprecated":false,"default-ram-id":"pc.ram"},{"hotpluggable-cpus":true,"name":"pc-q35-rhel7.3.0","numa-mem-supported":true,"default-cpu-type":"qemu64-x86_64-cpu","cpu-max":255,"deprecated":false,"default-ram-id":"pc.ram"}],"id":"libvirt-72651"}
We have increased the limit from 240 to 288 in 4.1 [1] and now even higher, without taking into account that the limit for i440fx remains 240.
A workaround for this issue would be to use q35 instead.
[1] https://github.com/oVirt/ovirt-engine/blob/ovirt-engine-4.2/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql#L387-L389
Indeed, it seems the limit for i440fx is 240 rather than the currently assumed 255. I'll fix it in my current max vCPUs patch series. verified on ovirt-engine-4.4.8.4-0.7.el8ev.noarch host topology: [root@intel-knm-03 ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 288 On-line CPU(s) list: 0-287 Thread(s) per core: 4 Core(s) per socket: 72 Socket(s): 1 NUMA node(s): 2 VM with type I440FX and Q35 Chipset successfully starts with topology: cores per socket 31, virtual socket 1, threads per core 1 for VM I440FX: # virsh -r vcpucount 3 maximum config 217 maximum live 217 current config 31 current live 31 for VM Q35 (the same topology) virsh -r vcpucount 4 maximum config 496 maximum live 496 current config 31 current live 31 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 (RHV Manager (ovirt-engine) [ovirt-4.4.8]), 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-2021:3460 |