Bug 1787395
Summary: | qemu-trace-stap list : TypeError: startswith first arg must be bytes or a tuple of bytes, not str | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Dr. David Alan Gilbert <dgilbert> |
Component: | qemu-kvm | Assignee: | Stefan Hajnoczi <stefanha> |
qemu-kvm sub component: | General | QA Contact: | FuXiangChun <xfu> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | jinzhao, stefanha, virt-maint |
Version: | 8.2 | ||
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-4.2.0-9.module+el8.2.0+5699+b5331ee5 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-05 09:52:22 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
Dr. David Alan Gilbert
2020-01-02 16:58:07 UTC
Needs Python 3 compatibility. Reproduced this bug with qemu-kvm-core-4.2.0-4.module+el8.2.0+5220+e82621dc.x86_64 # /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm Traceback (most recent call last): File "/usr/bin/qemu-trace-stap", line 175, in <module> main() File "/usr/bin/qemu-trace-stap", line 171, in main args.func(args) File "/usr/bin/qemu-trace-stap", line 118, in cmd_list print_probes(args.verbose, "*") File "/usr/bin/qemu-trace-stap", line 107, in print_probes stdout=subprocess.PIPE, env=tapset_env(tapsets)) File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'stap': 'stap' # /usr/bin/qemu-trace-stap -v usage: qemu-trace-stap [-h] [-v] {run,list} ... qemu-trace-stap: error: the following arguments are required: command Patch sent upstream: https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg00850.html QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks Tested this bug with qemu-kvm-4.2.0-13.module+el8.2.0+5898+fb4bceae.x86_64 # /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm Traceback (most recent call last): File "/usr/bin/qemu-trace-stap", line 175, in <module> main() File "/usr/bin/qemu-trace-stap", line 171, in main args.func(args) File "/usr/bin/qemu-trace-stap", line 118, in cmd_list print_probes(args.verbose, "*") File "/usr/bin/qemu-trace-stap", line 107, in print_probes env=tapset_env(tapsets)) File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'stap': 'stap' Hi Stefan, Is it expected result? > FileNotFoundError: [Errno 2] No such file or directory: 'stap': 'stap'
You need to install the systemtap packages.
Verified bug with qemu-kvm-4.2.0-13.module+el8.2.0+5898+fb4bceae.x86_64 and 4.18.0-183.el8.x86_64 /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm acpi_pci_down_read acpi_pci_ej_write acpi_pci_eject_slot acpi_pci_features_read acpi_pci_rmv_read ..... wct_cmd_re wct_cmd_sp wct_cmd_st wct_cmd_ts wct_init wct_speed x86_iommu_iec_notify The fixed qemu-kvm works. So set this bug as verfied. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2017 |