Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2068929

Summary: Some vcpus are missing under dynamic_cpu mapping for VM with resize_and_pin policy
Product: [oVirt] ovirt-engine Reporter: Polina <pagranat>
Component: BLL.VirtAssignee: Liran Rotenberg <lrotenbe>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.5.0CC: ahadas, bugs
Target Milestone: ---Flags: pm-rhel: ovirt-4.5?
pm-rhel: blocker?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-31 11:52:14 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
logs none

Description Polina 2022-03-27 16:52:07 UTC
Created attachment 1868541 [details]
logs

Description of problem: VM with resize_and_pin policy having topology cores*threads 23*2. 

Version-Release number of selected component (if applicable):
ovirt-engine-4.5.0.1-602.3fe8f849c244.6.el8ev.noarch

How reproducible:100% on host with topology
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

Steps to Reproduce:
1. Build VM on the base of infra template . Configure it with resize_and_pin policy and pin to the host with mentioned topology.
2. Run the VM
3. Check on host: virsh -r dumpxml 11 |grep "<vcpupin vcpu=" 
Also run GET https://{{host}}/ovirt-engine/api/vms

Actual results:
The VM has correct cpu topology 
            <topology>
                <cores>23</cores>
                <sockets>1</sockets>
                <threads>2</threads>
            </topology>
but under dynamic_cpu we have only 40 vcpus instead of 46.

Expected results: all 46 vcpus must be under dynamic_cpus

Additional info: the issue happens on ocelot05.qa.lab.tlv.redhat.com
in engine log line 18314

Comment 1 Arik 2022-03-28 11:22:42 UTC
We assume it's a regression but please correct us if we're wrong

Comment 2 RHEL Program Management 2022-03-28 11:22:51 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Liran Rotenberg 2022-03-28 14:30:42 UTC
Removing regression flag and lowering the priority.
Polina, did it work before on this environment?

We have BZ 1955388, where we decided to not allow hosts with number of sockets != NUMA node count.
This means in your current host (1 socket, 4 NUMA nodes) the policy will be forbidden.

Comment 4 Polina 2022-03-29 06:52:27 UTC
Hi I didn't set regression flag , maybe it was set automatically.
Also, I'm not sure if it worked before in this environment. Do you mean before the resize_and_pin policy? I'm not sure. if this is important I can deploy the 4.4.10 on this environment to re-check.
If your question is about resize_and_pin policy , I think this test is performed on this env for the first time.

Comment 5 Arik 2022-03-31 11:52:14 UTC
(In reply to Liran Rotenberg from comment #3)
> We have BZ 1955388, where we decided to not allow hosts with number of
> sockets != NUMA node count.
> This means in your current host (1 socket, 4 NUMA nodes) the policy will be
> forbidden.

+1

*** This bug has been marked as a duplicate of bug 1955388 ***