Bug 2144696 - [Hyper-V][RHEL9.2] Hyperv-tools related config CONFIG_HYPERV_TESTING is not set as ‘Y’ in the debug kernel configuration.
Summary: [Hyper-V][RHEL9.2] Hyperv-tools related config CONFIG_HYPERV_TESTING is not s...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kernel
Version: 9.2
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: xxiong
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-22 03:15 UTC by xxiong
Modified: 2023-07-04 08:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-04 08:42:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-140106 0 None None None 2022-11-22 03:26:36 UTC

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


Note You need to log in before you can comment on or make changes to this bug.