cpu_hotplug test failed because there is only 1 CPU

Bug #1812149 reported by Po-Hsu Lin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

On a KVM node, this test in the ubuntu_kernel_selftest will fail if there is only one CPU

 selftests: cpu-on-off-test.sh
 ========================================
 pid 479's current affinity mask: 1
 pid 479's new affinity mask: 1
 CPU online/offline summary:
 skip all tests:: since there is only one cpu: 0
 not ok 1..1 selftests: cpu-on-off-test.sh [FAIL]

Maybe we should not mark this as failed if it's skipped.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The script will return 4 if the test was skipped.

ksft_skip=4

 if [[ "$online_cpus" = "$online_max" ]]; then
  echo "$msg: since there is only one cpu: $online_cpus"
  exit $ksft_skip
 fi

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

To make the skip code work, we will need to fix 1812352 first.
And bring the CPU hotplug skip code change to older releases if needed.

summary: - cpu_hot_plug test failed because there is only 1 CPU
+ cpu_hotplug test failed because there is only 1 CPU
Sean Feole (sfeole)
tags: added: aws t2.small
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-kernel-selftest
tags: added: ubuntu-kernel-selftests
removed: ubuntu-kernel-selftest
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

With bug 1812352 fixed, this is now affecting Xenial.

The kselftest framework in Xenial needs to be fixed as well. (bug 1851486)

tags: added: sru-20191111
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Still visible in Xenial 4.4.0-1118.132 AWS t2.small

tags: added: sru-20201109
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on xenial/linux-aws/4.4.0-1132.146

tags: added: 4.4 hinted sru-20210816 xenial
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.