Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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