cpu_hotplug test failed due to Permission denied

Bug #1814232 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Confirmed
Undecided
Unassigned
linux-azure-edge (Ubuntu)
New
Undecided
Unassigned

Bug Description

Node: Standard_D11_v2
Kernel: 4.18.0-1008.8~18.04.1

 TAP version 13
 selftests: cpu-hotplug: cpu-on-off-test.sh
 ========================================
 pid 9047's current affinity mask: 3
 pid 9047's new affinity mask: 1
 CPU online/offline summary:
 present_cpus = 0-1 present_max = 1
 Cpus in online state: 0-1
 Cpus in offline state: 2-127
 Limited scope test: one hotplug cpu
 (leaves cpu in the original state):
 online to offline to online: cpu 1
19. 01/30 19:57:02 ERROR| utils:0153| [stderr] ./cpu-on-off-test.sh: line 96: /sys/devices/system/cpu/cpu1/online: Permission denied
20. 01/30 19:57:02 ERROR| utils:0153| [stderr] offline_cpu_expect_success 1: unexpected fail
 not ok 1..1 selftests: cpu-hotplug: cpu-on-off-test.sh [FAIL]

Po-Hsu Lin (cypressyew)
affects: linux-azure (Ubuntu) → linux-azure-edge (Ubuntu)
summary: - cpu_hot_plug test failed due to Permission denied
+ cpu_hotplug test failed due to Permission denied
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This will need to CONFIG_HOTPLUG_CPU=y, which was not set on Azure kernel.

Will try to fix this upstream.

Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

BTW, the CONFIG_HOTPLUG_CPU for azure was disabled in bug 1776293

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew)
tags: added: azure ubuntu-kernel-selftests
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Failed on AWS X-4.15 ARM64 (it's only failing on ARM64)

Changed in ubuntu-kernel-tests:
assignee: Po-Hsu Lin (cypressyew) → nobody
status: In Progress → Confirmed
tags: added: aws sru-20191111
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

BTW it's instance a1.large, and the error message is a bit different:

 selftests: cpu-on-off-test.sh
 ========================================
 pid 19403's current affinity mask: 3
 pid 19403's new affinity mask: 1
 CPU online/offline summary:
 present_cpus = 0-1 present_max = 1
 Cpus in online state: 0-1
 Cpus in offline state: 0
 Limited scope test: one hotplug cpu
 (leaves cpu in the original state):
 online to offline to online: cpu 1
 ./cpu-on-off-test.sh: line 89: echo: write error: Input/output error
 online_cpu_expect_success 1: unexpected fail
 not ok 1..1 selftests: cpu-on-off-test.sh [FAIL]

tags: added: bionic sru-20200921
tags: added: 4.15
tags: added: sru-20210104
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

focal/hwe-5.8 : 5.8.0-51.57~20.04.1

21. 04/24 04:59:10 DEBUG| utils:0153| [stdout] # Limited scope test: one hotplug cpu
22. 04/24 04:59:10 DEBUG| utils:0153| [stdout] # (leaves cpu in the original state):
23. 04/24 04:59:10 DEBUG| utils:0153| [stdout] # online to offline to online: cpu 7
24. 04/24 04:59:10 DEBUG| utils:0153| [stdout] # ./cpu-on-off-test.sh: line 96: /sys/devices/system/cpu/cpu7/online: Permission denied
25. 04/24 04:59:10 DEBUG| utils:0153| [stdout] # offline_cpu_expect_success 7: unexpected fail
26. 04/24 04:59:10 DEBUG| utils:0153| [stdout] not ok 1 selftests: cpu-hotplug: cpu-on-off-test.sh # exit=1

tags: added: 5.8 focal hwe hwe-5.8 sru-20210412
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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