Bug 2062754 - VM with resize and pin cpu policy fails to start on host CPUs:48,Threads:2,Cores:24, Sockets:1,NUMA:4
Summary: VM with resize and pin cpu policy fails to start on host CPUs:48,Threads:2,Co...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.5.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Liran Rotenberg
QA Contact: Polina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-10 14:11 UTC by Polina
Modified: 2022-04-20 06:33 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.5.0
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-20 06:33:59 UTC
oVirt Team: Virt
Embargoed:
sbonazzo: ovirt-4.5+


Attachments (Terms of Use)
engine nd vdsm logs (3.03 MB, application/gzip)
2022-03-10 14:11 UTC, Polina
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 140 0 None Merged core: fix resize and pin scheduling 2022-03-16 15:51:43 UTC
Red Hat Issue Tracker RHV-45073 0 None None None 2022-03-10 14:16:35 UTC

Description Polina 2022-03-10 14:11:54 UTC
Created attachment 1865174 [details]
engine nd vdsm logs

Description of problem: VM with resize cpu pinning policy fails on start with java.lang.NullPointerException


Version-Release number of selected component (if applicable):
ovirt-engine-4.5.0-596.7434eeb1dde2.226.el8ev.noarch

How reproducible: 100% on a host with 
CPU(s):              48
On-line CPU(s) list: 0-47
Thread(s) per core:  2
Core(s) per socket:  24
Socket(s):           1
NUMA node(s):        4

the reproduce could be seen on ocelot05.qa.lab.tlv.redhat.com

Steps to Reproduce:
1. Configure VM with 1 CPU, resize_and_pin cpu policy, assign it to host .
2. Run VM


Actual results: fails to start

2022-03-09 14:37:51,405+02 ERROR [org.ovirt.engine.core.bll.RunVmCommand] (default task-13) [vms_syncAction_e9b271b7-e36b-4ef4] Error during ValidateFailure.: java.lang.NullPointerException
        at org.ovirt.engine.core.common//org.ovirt.engine.core.common.utils.CpuPinningHelper.getAllPinnedPCpus(CpuPinningHelper.java:61)

Expected results:
starts ok

Additional info:

Comment 1 Polina 2022-04-18 07:56:48 UTC
verified on ovirt-engine-4.5.0.2-0.7.el8ev.noarch by running automation test rhevmtests.compute.sla.vm_auto_pinning.vm_auto_pinning_test.TestAutoPinningAdjustBasic on host ocelot05.qa.lab.tlv.redhat.com

Comment 2 Sandro Bonazzola 2022-04-20 06:33:59 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

Since the problem described in this bug report should be resolved in oVirt 4.5.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.