Bug 1960119
Summary: | [regression]Failed to reset guest | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Min Deng <mdeng> |
Component: | qemu-kvm | Assignee: | Greg Kurz <gkurz> |
qemu-kvm sub component: | General | QA Contact: | Min Deng <mdeng> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | dgibson, gkurz, jinzhao, juzhang, mdeng, qzhang, virt-maint |
Version: | 8.5 | Keywords: | Regression, Triaged |
Target Milestone: | rc | ||
Target Release: | 8.5 | ||
Hardware: | ppc64le | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-6.0.0-19.module+el8.5.0+11385+6e7d542e | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-16 07:53:34 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1957194 |
Description
Min Deng
2021-05-13 05:25:48 UTC
The following cmdline also can help to reproduce similar issues cmd1, /usr/libexec/qemu-kvm \ -S \ -name 'avocado-vt-vm1' \ -sandbox on \ -machine pseries \ -nodefaults \ -device VGA,bus=pci.0,addr=0x2 \ -m 8192 \ -smp 8,maxcpus=8,cores=4,threads=1,sockets=2 \ -cpu 'host' \ -chardev socket,wait=off,server=on,id=qmp_id_qmpmonitor1,path=/tmp/avocado_fsxoypq0/monitor-qmpmonitor1-20210513-045218-sGLg05Ov \ -mon chardev=qmp_id_qmpmonitor1,mode=control \ -chardev socket,wait=off,server=on,id=qmp_id_catch_monitor,path=/tmp/avocado_fsxoypq0/monitor-catch_monitor-20210513-045218-sGLg05Ov \ -mon chardev=qmp_id_catch_monitor,mode=control \ -chardev socket,wait=off,server=on,id=chardev_serial0,path=/tmp/avocado_fsxoypq0/serial-serial0-20210513-045218-sGLg05Ov \ -device spapr-vty,id=serial0,reg=0x30000000,chardev=chardev_serial0 \ -device qemu-xhci,id=usb1,bus=pci.0,addr=0x3 \ -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \ -device usb-kbd,id=usb-kbd1,bus=usb1.0,port=2 \ -blockdev node-name=file_empty_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/root/test_home/mdeng/kar/vt_test_images/empty_image1.qcow2,cache.direct=on,cache.no-flush=off \ -blockdev node-name=drive_empty_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_empty_image1 \ -device virtio-blk-pci,addr=0x6,id=empty_image1,drive=drive_empty_image1,write-cache=on,bus=pci.0 \ -device virtio-net-pci,mac=9a:5e:c1:5d:f7:6e,addr=0xa,id=id98V6sw,netdev=id6SyKmv,bus=pci.0 \ -netdev tap,id=id6SyKmv,vhost=on,vhostfd=20,fd=7 \ -device virtio-scsi-pci,id=virtio_scsi_pci0,addr=0xb,bus=pci.0 \ -blockdev node-name=file_cd1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/tmp/new.iso,cache.direct=on,cache.no-flush=off \ -blockdev node-name=drive_cd1,driver=raw,read-only=on,cache.direct=on,cache.no-flush=off,file=file_cd1 \ -device scsi-cd,id=cd1,drive=drive_cd1,write-cache=on \ -vnc :0 \ -rtc base=utc,clock=host \ -boot menu=off,order=cdn,once=n,strict=off \ -enable-kvm cmd2, /usr/libexec/qemu-kvm \ -S \ -name 'avocado-vt-vm1' \ -sandbox on \ -machine pseries \ -nodefaults \ -device VGA,bus=pci.0,addr=0x2 \ -m 8192 \ -smp 8,maxcpus=8,cores=4,threads=1,sockets=2 \ -cpu 'host' \ -chardev socket,wait=off,server=on,id=qmp_id_qmpmonitor1,path=/tmp/avocado_fsxoypq0/monitor-qmpmonitor1-20210513-045528-GNEeSUVB \ -mon chardev=qmp_id_qmpmonitor1,mode=control \ -chardev socket,wait=off,server=on,id=qmp_id_catch_monitor,path=/tmp/avocado_fsxoypq0/monitor-catch_monitor-20210513-045528-GNEeSUVB \ -mon chardev=qmp_id_catch_monitor,mode=control \ -chardev socket,wait=off,server=on,id=chardev_serial0,path=/tmp/avocado_fsxoypq0/serial-serial0-20210513-045528-GNEeSUVB \ -device spapr-vty,id=serial0,reg=0x30000000,chardev=chardev_serial0 \ -device qemu-xhci,id=usb1,bus=pci.0,addr=0x3 \ -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \ -device usb-kbd,id=usb-kbd1,bus=usb1.0,port=2 \ -blockdev node-name=file_empty_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/root/test_home/mdeng/kar/vt_test_images/empty_image1.qcow2,cache.direct=on,cache.no-flush=off \ -blockdev node-name=drive_empty_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_empty_image1 \ -device virtio-blk-pci,addr=0x7,id=empty_image1,drive=drive_empty_image1,write-cache=on,bus=pci.0 \ -device virtio-net-pci,mac=9a:5e:c1:5d:f7:6e,addr=0xa,id=idUuRWGr,netdev=id2y4Lm6,bus=pci.0 \ -netdev tap,id=id2y4Lm6,vhost=on,vhostfd=20,fd=16 \ -vnc :0 \ -rtc base=utc,clock=host \ -boot menu=off,order=cdn,once=n,strict=off \ -enable-kvm Actual results, 04:55:41 WARNI| IPv6 address sniffing is not supported yet by using TShark, please fallback to use other sniffers by uninstalling TShark when testing with IPv6 04:55:48 INFO | Output of SLOF: 2021-05-13 04:55:34: SLOF[0m[?25l ********************************************************************** 2021-05-13 04:55:34: [1mQEMU Starting 2021-05-13 04:55:34: [0m Build Date = May 10 2021 05:12:45 2021-05-13 04:55:34: FW Version = mockbuild@ release 20210217 2021-05-13 04:55:34: Press "s" to enter Open Firmware. 2021-05-13 04:55:34: 2021-05-13 04:55:34: [0m[?25h 2021-05-13 04:55:34: C0000C0100C0120C0140C0200C0240C0260C02E0C0300C0320C0340 2021-05-13 04:55:35: C0360 2021-05-13 04:55:35: C0370C0380C0371C0373 2021-05-13 04:55:35: C0374C03F0C0400C0480C04C0C04D0 2021-05-13 04:55:35: C0500Populating /vdevice methods 2021-05-13 04:55:35: Populating /vdevice/vty@30000000 2021-05-13 04:55:35: Populating /vdevice/nvram@71000000 2021-05-13 04:55:35: C05A0 2021-05-13 04:55:36: Populating /pci@800000020000000 2021-05-13 04:55:36: 00 1000 (D) : 1234 1111 qemu vga 2021-05-13 04:55:36: 00 1800 (D) : 1b36 000d serial bus [ usb-xhci ] 2021-05-13 04:55:36: 00 3800 (D) : 1af4 1001 virtio [ block ] 2021-05-13 04:55:36: 00 5000 (D) : 1af4 1000 virtio [ net ] 2021-05-13 04:55:36: C0600C06C0C0700 2021-05-13 04:55:36: C0800 2021-05-13 04:55:37: C0880 2021-05-13 04:55:37: No NVRAM common partition, re-initializing... 2021-05-13 04:55:37: C0890C08A0 2021-05-13 04:55:37: C08A8Installing QEMU fb 2021-05-13 04:55:37: 2021-05-13 04:55:37: 2021-05-13 04:55:37: 2021-05-13 04:55:37: C08B0Scanning USB 2021-05-13 04:55:37: XHCI: Initializing 2021-05-13 04:55:38: USB Keyboard 2021-05-13 04:55:38: C08C0C08D0No console specified using screen & keyboard 2021-05-13 04:55:38: C08E0C08E8C08FF 2021-05-13 04:55:38: 2021-05-13 04:55:38: 2021-05-13 04:55:38: 2021-05-13 04:55:38: Welcome to Open Firmware 2021-05-13 04:55:38: 2021-05-13 04:55:38: Copyright (c) 2004, 2017 IBM Corporation All rights reserved. 2021-05-13 04:55:38: This program and the accompanying materials are made available 2021-05-13 04:55:38: under the terms of the BSD License available at 2021-05-13 04:55:38: http://www.opensource.org/licenses/bsd-license.php 2021-05-13 04:55:38: 2021-05-13 04:55:38: 2021-05-13 04:55:38: Trying to load: from: /pci@800000020000000/ethernet@a ... 2021-05-13 04:55:38: Initializing NIC 2021-05-13 04:55:38: Reading MAC address from device: 9a:5e:c1:5d:f7:6e 2021-05-13 04:55:38: Requesting information via DHCP: 010 2021-05-13 04:55:42: 009 2021-05-13 04:55:46: 008 2021-05-13 04:55:46: done 2021-05-13 04:55:46: Using IPv4 address: 10.16.201.123 2021-05-13 04:55:46: Requesting file "pxelinux.0" via TFTP from 10.19.42.13 2021-05-13 04:55:46: Receiving data: 0 KBytes 2021-05-13 04:55:47: 25 KBytes 2021-05-13 04:55:47: TFTP: Received pxelinux.0 (25 KBytes) 2021-05-13 04:55:47: 2021-05-13 04:55:47: E3403: Bad executable: 2021-05-13 04:55:48: 2021-05-13 04:55:48: E3406: Client application returned an error. 2021-05-13 04:55:48: 2021-05-13 04:55:48: Type 'boot' and press return to continue booting the system. 2021-05-13 04:55:48: Type 'reset-all' and press return to reboot the system. 2021-05-13 04:55:48: 2021-05-13 04:55:48: 2021-05-13 04:55:48: Ready! 2021-05-13 04:55:48: 0 > 7 04:55:48 INFO | Position [0]: /pci@800000020000000/ethernet@a 04:55:48 INFO | Check whether the device(pci@ethernet@0xa) is the 0 bootable device. 04:55:48 INFO | Pass: The device(ethernet@0xa) is not the 0 bootable device. 04:55:48 INFO | Context: Reboot guest by sending key. 04:55:48 INFO | Sending "reset-all" to SLOF user interface. 04:55:48 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey r 1' (via Human Monitor) 04:55:48 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey e 1' (via Human Monitor) 04:55:48 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey s 1' (via Human Monitor) 04:55:49 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey e 1' (via Human Monitor) 04:55:49 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey t 1' (via Human Monitor) 04:55:49 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey minus 1' (via Human Monitor) 04:55:49 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey a 1' (via Human Monitor) 04:55:49 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey l 1' (via Human Monitor) 04:55:50 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey l 1' (via Human Monitor) 04:55:50 DEBUG| (monitor avocado-vt-vm1.qmpmonitor1) Sending command 'sendkey ret 1' (via Human Monitor) 04:55:59 INFO | Output of SLOF: 2021-05-13 04:55:50: SLOF[0m[?25l ********************************************************************** 2021-05-13 04:55:50: [1mQEMU Starting 2021-05-13 04:55:50: [0m Build Date = May 10 2021 05:12:45 2021-05-13 04:55:50: FW Version = mockbuild@ release 20210217 2021-05-13 04:55:50: Press "s" to enter Open Firmware. 2021-05-13 04:55:50: 2021-05-13 04:55:50: [0m[?25h 2021-05-13 04:55:50: C0000C0100C0120C0140C0200C0240C0260C02E0C0300C0320C0340 2021-05-13 04:55:50: C0360 2021-05-13 04:55:51: C0370C0380C0371C0373 2021-05-13 04:55:51: C0374C03F0C0400C0480C04C0C04D0 2021-05-13 04:55:51: C0500Populating /vdevice methods 2021-05-13 04:55:51: Populating /vdevice/vty@30000000 2021-05-13 04:55:51: Populating /vdevice/nvram@71000000 2021-05-13 04:55:51: C05A0 2021-05-13 04:55:52: Populating /pci@800000020000000 2021-05-13 04:55:52: 00 1000 (D) : 1234 1111 qemu vga 2021-05-13 04:55:52: 00 1800 (D) : 1b36 000d serial bus [ usb-xhci ] 2021-05-13 04:55:52: 00 3800 (D) : 1af4 1001 virtio [ block ] 2021-05-13 04:55:52: 00 5000 (D) : 1af4 1000 virtio [ net ] 2021-05-13 04:55:52: C0600C06C0C0700 2021-05-13 04:55:52: C0800 2021-05-13 04:55:52: C0880 2021-05-13 04:55:53: C0890C08A0 2021-05-13 04:55:53: C08A8Installing QEMU fb 2021-05-13 04:55:53: 2021-05-13 04:55:53: 2021-05-13 04:55:53: 2021-05-13 04:55:53: C08B0Scanning USB 2021-05-13 04:55:53: XHCI: Initializing 2021-05-13 04:55:53: USB Keyboard 2021-05-13 04:55:53: C08C0C08D0No console specified using screen & keyboard 2021-05-13 04:55:54: C08E0C08E8C08FF 2021-05-13 04:55:54: 2021-05-13 04:55:54: 2021-05-13 04:55:54: 2021-05-13 04:55:54: Welcome to Open Firmware 2021-05-13 04:55:54: 2021-05-13 04:55:54: Copyright (c) 2004, 2017 IBM Corporation All rights reserved. 2021-05-13 04:55:54: This program and the accompanying materials are made available 2021-05-13 04:55:54: under the terms of the BSD License available at 2021-05-13 04:55:54: http://www.opensource.org/licenses/bsd-license.php 2021-05-13 04:55:54: 2021-05-13 04:55:54: 2021-05-13 04:55:54: Trying to load: from: /pci@800000020000000/ethernet@a ... 2021-05-13 04:55:54: Initializing NIC 2021-05-13 04:55:54: Reading MAC address from device: 9a:5e:c1:5d:f7:6e 2021-05-13 04:55:54: Requesting information via DHCP: 010 2021-05-13 04:55:58: 009 2021-05-13 04:55:58: done 2021-05-13 04:55:58: Using IPv4 address: 10.16.201.123 2021-05-13 04:55:58: Requesting file "pxelinux.0" via TFTP from 10.19.42.13 2021-05-13 04:55:58: Receiving data: 0 KBytes 2021-05-13 04:55:58: 25 KBytes 2021-05-13 04:55:58: TFTP: Received pxelinux.0 (25 KBytes) 2021-05-13 04:55:58: 2021-05-13 04:55:58: E3403: Bad executable: 2021-05-13 04:55:58: 2021-05-13 04:55:58: E3406: Client application returned an error. 2021-05-13 04:55:58: 2021-05-13 04:55:59: Type 'boot' and press return to continue booting the system. 2021-05-13 04:55:59: Type 'reset-all' and press return to reboot the system. 2021-05-13 04:55:59: 2021-05-13 04:55:59: 2021-05-13 04:55:59: Ready! 2021-05-13 04:55:59: 0 > 7 If they are not the same issue, QE would like to report new one, thanks. This isn't a regression of reset-all in SLOF actually. This is a regression in QEMU. You can check that system_reset in the QEMU monitor doesn't work any better. I've posted a fix to qemu-devel: https://patchew.org/QEMU/20210521160735.1901914-1-groug@kaod.org/ You can try out this brew build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=36930372 (In reply to Greg Kurz from comment #2) > This isn't a regression of reset-all in SLOF actually. This is a > regression in QEMU. You can check that system_reset in the QEMU > monitor doesn't work any better. > > I've posted a fix to qemu-devel: > > https://patchew.org/QEMU/20210521160735.1901914-1-groug@kaod.org/ > > You can try out this brew build: > > https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=36930372 The auto test of above scratch build has passed Hi Greg, Could you please set DTM for this bug later ? Thanks a lot. Min (In reply to Min Deng from comment #3) > (In reply to Greg Kurz from comment #2) > > This isn't a regression of reset-all in SLOF actually. This is a > > regression in QEMU. You can check that system_reset in the QEMU > > monitor doesn't work any better. > > > > I've posted a fix to qemu-devel: > > > > https://patchew.org/QEMU/20210521160735.1901914-1-groug@kaod.org/ > > > > You can try out this brew build: > > > > https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=36930372 > > The auto test of above scratch build has passed Cool. > Hi Greg, > Could you please set DTM for this bug later ? Thanks a lot. > Min The fix is now in David's ppc-for-6.1 tree: https://gitlab.com/dgibson/qemu/-/commit/0bec0e30e074b183332d448c47dc29e00606cdc2 Assuming that this reaches upstream soon enough so that I can POST before 06/07, setting DTM to 16. Greg, can you remind me to send another PR next week so that you get this merged in time. I will handle it soon with above build. Set needinfo myself. Set Verified:Tested,SanityOnly as gating/tier1 test pass. Verified the bug on build qemu-kvm-6.0.0-19.module+el8.5.0+11385+6e7d542e.ppc64le SLOF-20210217-1.scrmod+el8.5.0+11436+46173b38.noarch The original issue has gone. Moved it to be verified 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 (virt:av bug fix and enhancement update), 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-2021:4684 |