Bug 2144696

Summary: [Hyper-V][RHEL9.2] Hyperv-tools related config CONFIG_HYPERV_TESTING is not set as ‘Y’ in the debug kernel configuration.
Product: Red Hat Enterprise Linux 9 Reporter: xxiong
Component: kernelAssignee: Virtualization Maintenance <virt-maint>
kernel sub component: Hyper-V QA Contact: xxiong
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: low    
Priority: low CC: cavery, eterrell, huzhao, litian, vkuznets, xuli, yacao, yuxisun
Version: 9.2   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-04 08:42:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description xxiong 2022-11-22 03:15:12 UTC
Hyperv-tools related config CONFIG_HYPERV_TESTING is not set as ‘Y’ in the debug kernel configuration.

Description of problem: 
CONFIG_HYPERV_TESTING is not set as ‘Y’ in the debug kernel config for hyperv-tools. When executing vmbus_testing, “/sys/kernel/debug/hyperv doesn't exist/check permissions” pops up with SyntaxWarning.

Version-Release number of selected components (if applicable):
Host: Hyper-V 2022
Guest:
RHEL-9.2.0-20221117.3_x86_64 compose
 
Kernel version: 5.14.0-196.el9.x86_64+debug
Hyperv-daemons version:
hyperv-daemons-0-0.40.20190303git.el9.x86_64
hyperv-tools-0-0.40.20190303git.el9.noarch
 
How reproducible:
100%
 
Steps to Reproduce:
1. Install debug kernel and boot up debug kernel.
2. Execute vmbus_testing in the terminal. 
3. Check CONFIG_HYPERV_TESTING status in the config file.
 
Actual results: 

1. “/sys/kernel/debug/hyperv doesn't exist/check permissions” pops up.
2. CONFIG_HYPERV_TESTING is not set

[root@vm-74-12 ~]# vmbus_testing -h
/usr/sbin/vmbus_testing:167: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (get_test_state(locate_state(device, file_map)) is 1):
/usr/sbin/vmbus_testing:206: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (get_test_state(state_path) is 1):
/sys/kernel/debug/hyperv doesn't exist/check permissions

[root@vm-74-12 ~]# uname -r
5.14.0-196.el9.x86_64+debug
 
[root@vm-74-12 ~]# cat /boot/$(uname -r)  | grep -i CONFIG_HYPERV_TESTING
cat: /boot/5.14.0-196.el9.x86_64+debug: No such file or directory

Expected results:

1. Vmbus_testing can execute successfully as below.
2. CONFIG_HYPERV_TESTING is set to Y for debug kernel. 
examples:
# vmbus_testing -h
usage:
vmbus_testing [delay]   [-h] [-e|-E] -t [-p]
vmbus_testing [view_all       | V]      [-h]
vmbus_testing [disable_all    | D]      [-h]
vmbus_testing [disable_single | d]      [-h|-p]
vmbus_testing [view_single    | v]      [-h|-p]
vmbus_testing --version

Additional info:

1. This issue also occur on:

RHEL9.1 (5.14.0-162.6.1.el9_1.x86_64+debug/hyperv-tools-0-0.40.20190303git.el9.noarch/hyperv-daemons-0-0.40.20190303git.el9.x86_64),

does not occur on:

RHEL8.8 (4.18.0-438.el8.x86_64+debug/hyperv-tools-0-0.33.20180415git.el8.noarch/hyperv-daemons-0-0.33.20180415git.el8.x86_64)

RHEL8.7 (4.18.0-425.3.1.el8.x86_64+debug/hyperv-tools-0-0.33.20180415git.el8.noarch/hyperv-daemons-0-0.33.20180415git.el8.x86_64)

2. Similar issue already fixed in bug for RHEL9.0 : https://bugzilla.redhat.com/show_bug.cgi?id=1960203

Comment 9 xxiong 2023-07-04 08:42:52 UTC
closed for current