Bug 1984424 - Incorrect CPUs in the NUMA node for the second hosts's socket
Summary: Incorrect CPUs in the NUMA node for the second hosts's socket
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.4.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.4.8
: 4.4.8.2
Assignee: Liran Rotenberg
QA Contact: Polina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-21 12:04 UTC by Polina
Modified: 2021-08-19 06:23 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.4.8.2
Clone Of:
Environment:
Last Closed: 2021-08-19 06:23:00 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 115803 0 master MERGED dbscripts: order cpus in vds numa nodes 2021-07-27 06:48:15 UTC

Description Polina 2021-07-21 12:04:54 UTC
Description of problem: engine gets invalid CPU ids on the NUMA node and as result we see invalid vcpu_pinng on the VMs created by auto_pinning policy.


Version-Release number of selected component (if applicable):
ovirt-engine-4.4.7.7-0.1.el8ev.noarch

How reproducible: reproducible on some hosts


Steps to Reproduce:
1. Create VM by adjust auto_pinning policy , like 
https://{{host}}/ovirt-engine/api/vms?auto_pinning_policy=adjust
<vm>
  <name>auto_cpu_vm</name>
  <template>
    <name>latest-rhel-guest-image-8.3-infra</name>
  </template>
  <cluster>
    <name>golden_env_mixed_1</name>
  </cluster>
  <placement_policy>
      <hosts>
        <host>
          <name>host_mixed_1</name>
        </host>
    </hosts>
  </placement_policy>
</vm>

on host with the following lscpu 



[root@serval26 ~]# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  8
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Intel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
BIOS Model name:     Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
Stepping:            4
CPU MHz:             800.345
BogoMIPS:            4200.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            11264K
NUMA node0 CPU(s):   0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
NUMA node1 CPU(s):   1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d

Actual results:

The created vm has invalid vcpu_pinning

AssertionError: VM vcpu_pinning: 0#2,18_1#2,18_2#4,20_3#4,20_4#6,22_5#6,22_6#8,24_7#8,24_8#10,26_9#10,26_10#12,28_11#12,28_12#14,30_13#14,30_14#27,11_15#27,11_16#29,13_17#29,13_18#31,15_19#31,15_20#1,17_21#1,17_22#3,19_23#3,19_24#5,21_25#5,21_26#7,23_27#7,23 differs from host vcpu_pinning: 0#2,18_1#2,18_2#4,20_3#4,20_4#6,22_5#6,22_6#8,24_7#8,24_8#10,26_9#10,26_10#12,28_11#12,28_12#14,30_13#14,30_14#3,19_15#3,19_16#5,21_17#5,21_18#7,23_19#7,23_20#9,25_21#9,25_22#11,27_23#11,27_24#13,29_25#13,29_26#15,31_27#15,31


Expected results:
vcpu_pinning the same as on host.

Comment 2 Polina 2021-08-11 13:04:55 UTC
verified by running automation rhevmtests.compute.sla.vm_auto_pinning.vm_auto_pinning_test.TestAutoPinningAdjustBasic on GE5 and GE6 (where the bug found)
version ovirt-engine-4.4.8.3-0.10.el8ev.noarch

Comment 3 Sandro Bonazzola 2021-08-19 06:23:00 UTC
This bugzilla is included in oVirt 4.4.8 release, published on August 19th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.8 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.