<?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>5207</bug_id>
          
          <creation_ts>2013-09-16 18:12:58 +0000</creation_ts>
          <short_desc>SSH test fails with nightly-qa-systemd</short_desc>
          <delta_ts>2013-10-16 08:11:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Stefan Stanacar">sstncr</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sstncr</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>36758</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-09-16 18:12:58 +0000</bug_when>
    <thetext>In the nightly-qa-systemd build on the autobuilder, we build core-image-sato and I can see that dropbear is being installed by looking at log.do_rootfs and according to the QEMU log it appears to be started, however the automated tests almost all fail because the SSH test fails.

http://autobuilder.yoctoproject.org:8011/builders/nightly-qa-systemd/builds/167/steps/Running%20Sanity%20Tests/logs/stdio

Booting this image locally, this looks like it has something to do with the ethernet interface not being started correctly/early enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37192</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-09-25 11:07:29 +0000</bug_when>
    <thetext>The situation is that under systemd you reach the login prompt about the same time that connman has just completed starting (that is, its running but hasn&apos;t probed the hardware yet).  The ping test then starts and succeeds because runqemu configures the kernel to bring up eth0 but then some time later connman takes over eth0, which means taking down the interface and bringing it back up again.

This behaviour in connman is currently intentional, although I&apos;ve mailed Marcel to see if they&apos;d be willing to compare the current configuration with the requested configuration and not take the interface down if they match.

No amount of systemd dependency-fu can resolve this because connman is &quot;ready&quot; once it has loaded, actually working on the interfaces happens afterwards.

One way to mitigate this would be to require N pings from the VM to ensure that the connection has had time to settle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37207</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-09-25 14:54:07 +0000</bug_when>
    <thetext>Assigning to Stefan who agreed with me and has submitted a patch to do what I suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37285</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-09-27 07:58:55 +0000</bug_when>
    <thetext>Patch merged in master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=41f88ee1dbda44605301dd7309926e04d146ef52

Since we used the nice levels trick on the AB we haven&apos;t seen this so I&apos;m not sure if it will fix the problem forever (as the described by Ross the behaviour of connman is intentional), but it should help with false SSH fails somewhat.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37964</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2013-10-16 08:11:37 +0000</bug_when>
    <thetext>Switching to verified.
Master branch.
Commit ID: 2b5bac02196b8bd30d223d508f5f7d4300889fd7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>