Bug 2062754

Summary: VM with resize and pin cpu policy fails to start on host CPUs:48,Threads:2,Cores:24, Sockets:1,NUMA:4
Product: [oVirt] ovirt-engine Reporter: Polina <pagranat>
Component: BLL.VirtAssignee: Liran Rotenberg <lrotenbe>
Status: CLOSED CURRENTRELEASE QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5.0CC: ahadas, bugs
Target Milestone: ovirt-4.5.0Keywords: ZStream
Target Release: 4.5.0Flags: sbonazzo: ovirt-4.5+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 06:33:59 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:
Attachments:
Description Flags
engine nd vdsm logs none

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.