<?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>10713</bug_id>
          
          <creation_ts>2016-11-23 18:04:49 +0000</creation_ts>
          <short_desc>Allow testimage to work with slirp in addition to working with tun/tap</short_desc>
          <delta_ts>2018-11-29 09:05:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.3</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.7 M1</target_milestone>
          <dependson>7887</dependson>
          <blocked>9592</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="yeoh ee peng">ee.peng.yeoh</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>chin.huat.ang</cc>
    
    <cc>ee.peng.yeoh</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>todor.minchev</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68543</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-11-23 18:04:49 +0000</bug_when>
    <thetext>In order for testimage to be run in containers where the tun/tap device is not available, we need to support running testimage using user mode netowrking (slirp).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68692</commentid>
    <comment_count>1</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2016-11-29 18:33:09 +0000</bug_when>
    <thetext>Was in the progress of implementation, but due to 7887 switching off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69457</commentid>
    <comment_count>2</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2017-01-03 21:50:07 +0000</bug_when>
    <thetext>A status update was requested, Robert took 7887, but that bug is still open. I know patches went to the list, but it doesn&apos;t appear anything was merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70164</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-01-25 22:00:32 +0000</bug_when>
    <thetext>7887 merged now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78586</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-12-07 15:33:00 +0000</bug_when>
    <thetext>This is useful as it allows us to run testimage in containers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78816</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-12-22 17:07:05 +0000</bug_when>
    <thetext>*** Bug 12447 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82102</commentid>
    <comment_count>6</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-09 08:50:25 +0000</bug_when>
    <thetext>Manually launched qemu with slirp, then ssh to qemu from host machine using port binded. 

In progress of code exploration for testimage.bbclass, OEQemuTarget, &amp; OERuntimeTestContextExecutor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82236</commentid>
    <comment_count>7</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-15 09:18:46 +0000</bug_when>
    <thetext>Enabled testimage to work with slirp and enable connection from host machine to qemu with slirp using SSH. 

After enabled testimage to work with slirp, found that oe-selftest was impacted by this changes. 

There are 2 options related to oe-selftest.
1. Disable the qemu with slirp and connection to qemu from host machine using SSH
for oe-selftest
2. Enable this for oe-selftest

Currently, working on option (2), in progress of developing and testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82268</commentid>
    <comment_count>8</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-19 07:12:50 +0000</bug_when>
    <thetext>Received inputs from Anuj to only focus the enhancement for testimage while make sure changes does not impact oe-selftest. Completed the enhancement and now performing further testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82292</commentid>
    <comment_count>9</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-22 09:32:11 +0000</bug_when>
    <thetext>Tested this for testimage &amp; oe-selftest, qemu slirp worked as expected. 
Also tested CROPS running testimage, worked as expected. 

Submitted patches
http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276334.html
http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276335.html
http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276336.html
http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276337.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82293</commentid>
    <comment_count>10</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-22 09:45:57 +0000</bug_when>
    <thetext>There was improvement needed for oeqa/runtime. 

Currently, ssh test assumed ping to target will be available all the time. That was not true when using qemu with slirp, while enabling testimage with slirp, host machine running testimage will connect to the target qemu through &quot;localhost:&lt;port_binded_to_qemu&gt;&quot;. 

Furthermore, when using qemu with slirp, the ping test will ping &quot;localhost&quot; as the self.runner.ip = &apos;localhost&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82351</commentid>
    <comment_count>11</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-11-29 09:05:53 +0000</bug_when>
    <thetext>Patches accepted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>