cpu_hotplug test failed because there is only 1 CPU

Bug #1812149 reported by Po-Hsu Lin on 2019-01-17
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
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.

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

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) on 2019-03-22
tags: added: aws t2.small
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers