Bug 13799

Summary: oe-selftest efibootpartition.GenericEFITest.test_boot_efi) failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Kevin Hao <kexin.hao>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2020-02-19 12:19:20 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/703

2020-02-19 00:45:25,210 - oe-selftest - INFO - efibootpartition.GenericEFITest.test_boot_efi (subunit.RemotedTestCase)
2020-02-19 00:45:25,211 - oe-selftest - INFO -  ... ERROR
2020-02-19 00:45:25,211 - oe-selftest - INFO - 4: 3/9 256/399 (1667.86s) (efibootpartition.GenericEFITest.test_boot_efi)
2020-02-19 00:45:25,211 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/utils/commands.py", line 342, in runqemu
    qemu.start(params=qemuparams, ssh=ssh, runqemuparams=runqemuparams, launch_cmd=launch_cmd, discard_writes=discard_writes)
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/targetcontrol.py", line 179, in start
    raise RuntimeError("%s - FAILED to start qemu - check the task log and the boot log" % self.pn)
RuntimeError: core-image-minimal - FAILED to start qemu - check the task log and the boot log
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/selftest/cases/efibootpartition.py", line 45, in test_boot_efi
    with runqemu(self.image, ssh=False, launch_cmd=cmd) as qemu:
  File "/usr/lib64/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/utils/commands.py", line 348, in runqemu
    raise Exception(msg)
Exception: core-image-minimal - FAILED to start qemu - check the task log and the boot log
Failed to start QEMU - see the logs in /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimageQemurunner log output from /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimage/qemurunner_log.20200219002836:
INFO: rootfs file: 
INFO: Qemu log file: /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimage/qemu_boot_log.20200219002836
INFO: SSH log file: /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimage/ssh_target_log.20200219002836
DEBUG: Created listening socket for qemu serial console on: 127.0.0.1:43251
DEBUG: Created listening socket for qemu serial console on: 127.0.0.1:45567
DEBUG: launchcmd=runqemu nographic serial wic ovmf qemux86-64 tcpserial=43251:45567 bootparams="console=tty1 console=ttyS0,115200n8 printk.time=1" qemuparams="-pidfile pidfile_13529"
DEBUG: runqemu started, pid is 6256
DEBUG: waiting at most 120 seconds for qemu pid (02/19/20 00:28:39)
DEBUG: qemu started in 3.0063350200653076 seconds - qemu procces pid is 9320 (02/19/20 00:28:42)
DEBUG: Target IP: None
DEBUG: Server IP: None
DEBUG: Starting logging thread
DEBUG: Starting thread event loop
DEBUG: Connection request received
DEBUG: Setting connection established event
DEBUG: Output from runqemu:
runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e ...
runqemu - INFO - Continuing with the following parameters:
MACHINE: [qemux86-64]
FSTYPE: [wic]
ROOTFS: [/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20200219002401.rootfs.wic]
OVMF: ['/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/deploy/images/qemux86-64/ovmf.qcow2']
CONFFILE: [/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20200219002401.qemuboot.conf]
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock failed: [Errno 11] Resource temporarily unavailable
runqemu - INFO - Using preconfigured tap device tap1
runqemu - INFO - If this is not intended, touch /tmp/qemu-tap-locks/tap1.skip to make runqemu skip tap1.
runqemu - INFO - Network configuration: 192.168.7.4::192.168.7.3:255.255.255.0
runqemu - INFO - Using scsi drive
runqemu - INFO - Running /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:04 -netdev tap,id=net0,ifname=tap1,script=no,downscript=no -drive if=none,id=hd,file=/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20200219002401.rootfs.wic,format=raw -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd -no-reboot -show-cursor -usb -device usb-tablet -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -drive if=pflash,format=qcow2,file=/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/deploy/images/qemux86-64/ovmf.qcow2  -nographic  -cpu core2duo -m 256 -serial tcp:127.0.0.1:43251 -serial tcp:127.0.0.1:45567  -pidfile pidfile_13529 
DEBUG: Waiting at most 1000 seconds for login banner (02/19/20 00:28:42)
DEBUG: Connection from 127.0.0.1:52762
WARNING: Target didn't reach login banner in 1000 seconds (02/19/20 00:45:22)
WARNING: Last 25 lines of text:
[=3h
BdsDxe: loading Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x0)
 
                         boot                                                   
                         Reboot Into Firmware Interface                         
                                Boot in 10 sec.                                
                                Boot in 10 sec.                                
                                Boot in 10 sec.                                
                                Boot in 10 sec.                                
                                Boot in 10 sec.                                
                                Boot in 10 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 9 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 8 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 7 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 6 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 5 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 4 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 3 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 2 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 1 sec.                                
                                 Boot in 0 sec.                                
                                 Boot in 0 sec.                                
                                 Boot in 0 sec.                                
                                 Boot in 0 sec.                                
                                 Boot in 0 sec.                                
WARNING: Check full boot log: /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimage/qemu_boot_log.20200219002836
WARNING: Qemu ended unexpectedly, dump data from host is in /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-13529/tmp/log/runtime-hostdump/202002190045_qemu
DEBUG: Stopping logging thread
DEBUG: Stop event received
DEBUG: Tearing down logging thread
DEBUG: Sending SIGTERM to runqemu
2020-02-19 00:45:25,2
Comment 1 Randy MacLeod 2020-02-20 15:52:58 UTC
Happen on Centos-8 (and maybe elsewhere). It's not reproducible.
Comment 2 Randy MacLeod 2020-03-10 21:36:03 UTC
Kexin, any news?
Comment 3 Kevin Hao 2020-03-16 02:30:23 UTC
I can't reproduce this on either my Fedora 27 build server or a Centos 8 container. There is also no any useful info in the error log.
Comment 4 Kevin Hao 2020-03-23 04:33:46 UTC
Can't reproduce this so close this bug. We can reopen it once we can find a way to reproduce it or get some useful error log for debugging.