Created attachment 1311180 [details] logs Description of problem: CPU pinning does not work Version-Release number of selected component (if applicable): vdsm-4.20.2-25.git7499b81.el7.centos.x86_64 ovirt-engine-4.2.0-0.0.master.20170803140556.git1e7d0dd.el7.centos.noarch How reproducible: Always Steps to Reproduce: 1. Pin VM to host 2. Add CPU pinning to VM, for example, 0#0_1#3 3. Start the VM Actual results: VM CPU 0 does not pinned to host CPU 0 and VM CPU 1 does not pinned to host CPU 3 # virsh -r vcpuinfo 10 VCPU: 0 CPU: 8 State: running CPU time: 13.8s CPU Affinity: yyyyyyyyyyyyyyyyyyyyyyyy VCPU: 1 CPU: 7 State: running CPU time: 6.2s CPU Affinity: yyyyyyyyyyyyyyyyyyyyyyyy # virsh -r vcpuinfo 10 VCPU: 0 CPU: 4 State: running CPU time: 14.0s CPU Affinity: yyyyyyyyyyyyyyyyyyyyyyyy VCPU: 1 CPU: 2 State: running CPU time: 6.3s CPU Affinity: yyyyyyyyyyyyyyyyyyyyyyyy Expected results: VM CPU 0 must be pinned to host CPU 0 and VM CPU 1 must be pinned to host CPU 3 Additional info:
Looking at the engine log shows an attempt to pin all vcpus to the same physical cpu: <cputune> <vcpupin cpuset="0" vcpu="0"/> <vcpupin cpuset="0" vcpu="1"/> <vcpupin cpuset="0" vcpu="2"/> <vcpupin cpuset="0" vcpu="3"/> <vcpupin cpuset="0" vcpu="4"/> <vcpupin cpuset="0" vcpu="5"/> <vcpupin cpuset="0" vcpu="6"/> <vcpupin cpuset="0" vcpu="7"/> <vcpupin cpuset="0" vcpu="8"/> <vcpupin cpuset="0" vcpu="9"/> <vcpupin cpuset="0" vcpu="10"/> <vcpupin cpuset="0" vcpu="11"/> </cputune> What was the configuration string you used? Are you doing it with the GUI or the API? Are you seeing the problem in both ends?
If you will check the steps, you can see that I use string 0#0_1#3 The problem relevant for REST and UI.
Verified on ovirt-engine-4.2.0-0.0.master.20170906185835.gitcee3e58.el7.centos.noarch
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.