<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13390</bug_id>
          
          <creation_ts>2019-06-11 12:50:53 +0000</creation_ts>
          <short_desc>oe-selftest qemu process handling issue</short_desc>
          <delta_ts>2019-07-22 01:48:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>sharmasudhir</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84144</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-11 12:50:53 +0000</bug_when>
    <thetext>From https://autobuilder.yoctoproject.org/typhoon/#/builders/59/builds/688

2019-06-10 23:03:09,869 - oe-selftest - INFO - 2: 6/12 10/16 (6.07s) (runqemu.RunqemuTests.test_boot_machine_slirp)
2019-06-10 23:03:09,869 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/runqemu.py&quot;, line 107, in test_boot_machine_slirp
    with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu:
  File &quot;/usr/lib64/python3.7/contextlib.py&quot;, line 112, in __enter__
    return next(self.gen)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/commands.py&quot;, line 339, in runqemu
    qemu.start(params=qemuparams, ssh=ssh, runqemuparams=runqemuparams, launch_cmd=launch_cmd, discard_writes=discard_writes)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/targetcontrol.py&quot;, line 164, in start
    start = self.runner.launch(get_ip=ssh, launch_cmd=launch_cmd, qemuparams=params)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/qemurunner.py&quot;, line 207, in launch
    while not self.is_alive() and time.time() &lt; endtime:
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/qemurunner.py&quot;, line 431, in is_alive
    qemupid = int(qemu_pid)
ValueError: invalid literal for int() with base 10: &apos;&apos;


2019-06-10 23:03:21,583 - oe-selftest - INFO - runqemu.RunqemuTests.test_boot_machine_slirp_qcow2 (subunit.RemotedTestCase)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84211</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-14 12:16:16 +0000</bug_when>
    <thetext>*** Bug 13399 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84468</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2019-07-22 01:48:55 +0000</bug_when>
    <thetext>commit 7a6b2ce603a44db60a3ba7a4a62ec3c04c1db656
Author: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Date:   Fri Jul 12 15:31:13 2019 +0800

    qemurunner.py: fix race condition at qemu startup
    
    When handling pid file, qemu would first create the file, stat it,
    lock it and then write actually contents to it.
    
    So it&apos;s possbile that when reading the pid file, the content is empty.
    
    [YOCTO #13390]
    
    (From OE-Core rev: 170e59b203a02f8438b9aeab3a45f6fcd6608b1f)
    
    Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>