Bug 15036

Summary: oe-selftest failure: pid file not found
Product: [QA/Testing] Functional (self) Testing Reporter: Alexandre Belloni <alexandre.belloni>
Component: oe-selftestAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandre.belloni, randy.macleod, richard.purdie, ross.burton, steve
Version: unspecified   
Target Milestone: 5.0   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2023-02-16 17:20:24 UTC
2023-01-08 20:06:11,729 - oe-selftest - INFO - ======================================================================
2023-01-08 20:06:11,730 - oe-selftest - INFO - ERROR: runqemu.QemuTest.test_qemu_can_boot_nfs_and_shutdown (subunit.RemotedTestCase)
2023-01-08 20:06:11,730 - oe-selftest - INFO - ----------------------------------------------------------------------
2023-01-08 20:06:11,730 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemuppc/build/meta/lib/oeqa/selftest/cases/runqemu.py", line 209, in test_qemu_can_boot_nfs_and_shutdown
    qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout)
  File "/home/pokybuild/yocto-worker/qemuppc/build/meta/lib/oeqa/selftest/cases/runqemu.py", line 184, in _start_qemu_shutdown_check_if_shutdown_succeeded
    is_alive = qemu.check()
  File "/home/pokybuild/yocto-worker/qemuppc/build/meta/lib/oeqa/targetcontrol.py", line 189, in check
    return self.runner.is_alive()
  File "/home/pokybuild/yocto-worker/qemuppc/build/meta/lib/oeqa/utils/qemurunner.py", line 612, in is_alive
    with open(self.qemu_pidfile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/qemuppc/build/build-st-3502753/pidfile_3502753'

https://autobuilder.yoctoproject.org/typhoon/#builders/63/builds/6443/steps/18/logs/stdio
qemuppc debian11-ty-1
Comment 1 Richard Purdie 2023-06-08 14:59:44 UTC
Should be able to audit the code for this issue
Comment 2 Randy MacLeod 2023-09-21 14:45:32 UTC
Likely a shutdown race that should be ignored if that's really the case.
Comment 3 Randy MacLeod 2023-10-30 15:37:29 UTC
Build move to 5.0 -- ../Randy
Comment 4 Ross Burton 2024-01-23 17:24:33 UTC
This has happened once a year ago. Close?
Comment 5 Randy MacLeod 2024-01-25 15:50:47 UTC
Richard reaffirmed that, "Should be able to audit the code for this issue." ! ;-)
Comment 6 Steve Sakoman 2024-01-26 18:36:03 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/147/builds/1229/steps/12/logs/stdio
qemumips-tc fedora38-ty-6