<?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>5954</bug_id>
          
          <creation_ts>2014-03-12 14:27:23 +0000</creation_ts>
          <short_desc>[openssh]ssh connection is delayed for QEMU images using openssh</short_desc>
          <delta_ts>2014-04-10 08:00:48 +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.6</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.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Palalau">alexandrux.palalau</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sstncr</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41138</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-03-12 14:27:23 +0000</bug_when>
    <thetext>For openssh images (core-image-sato-sdk), the ssh connection is delayed with almost 12s. For dropbear, the connection time is under 1s.
The behavior was encountered on QEMU images.
The connection is delayed at &quot;debug1: SSH2_MSG_SERVICE_REQUEST sent&quot;

I could override this by adding &quot;UseDNS no&quot; in /etc/ssh/sshd_config

core-image-sato-sdk (openssh) connection output:
$time ssh root@192.168.7.2 uname -a
Linux qemuarm 3.10.32-ltsi-yocto-standard #1 PREEMPT Tue Mar 11 08:51:38 EDT 2014 armv5tejl GNU/Linux

real	0m11.531s
user	0m0.016s
sys	0m0.006s


core-image-sato (dropbear) connection output:
$time ssh root@192.168.7.4 uname -a
Linux qemuarm 3.10.32-ltsi-yocto-standard #1 PREEMPT Tue Mar 11 08:51:38 EDT 2014 armv5tejl GNU/Linux

real	0m0.712s
user	0m0.013s
sys	0m0.004s

This bug has impact for QA tests available on AB:
http://autobuilder.yoctoproject.org/main/builders/nightly-x86-64/builds/91/steps/Running%20Sanity%20Tests/logs/stdio

core-image-sato - Ran 40 tests in 511.073s
core-image-sato - OK - All required tests passed
NOTE: recipe core-image-sato-1.0-r0: task do_testimage: Succeeded
core-image-sato-sdk - Ran 48 tests in 2256.444s
core-image-sato-sdk - OK - All required tests passed

For core-image-sato-sdk 2200 seconds is extremely long, it should be under 800 (if using UseDNS=no). That happens because each test runs commands over ssh, and for each command 12-15 seconds are added at connecting.
I&apos;m pretty sure that for 1.5 this wasn&apos;t the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41139</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-03-12 14:47:02 +0000</bug_when>
    <thetext>It would be interesting to try reverting 1964da1b483d58955abafa6119c4035f9444d86b (most recent openssh upgrade) and see if this makes a difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41166</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2014-03-13 07:37:45 +0000</bug_when>
    <thetext>Same thing with that reverted. 
How about a patch that sed&apos;s UseDNS yes in sshd_config just for qemu machines? Our qemu machine don&apos;t really have a DNS server, so asking openssh to do reverse checking in our qemu machines is pointless... and it adds a lot of time for the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41250</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-03-14 22:29:37 +0000</bug_when>
    <thetext>Just to confirm, this is trying to connect to the QEMU Target image from the 
host, not from within the QEMU image itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42082</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-04-01 23:17:53 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=30959dda952b602b75bbd58ef225bbe4558ce440</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42496</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-04-10 08:00:48 +0000</bug_when>
    <thetext>Verified on master branch.
Commit ID: 1f42d829feb62271211e3d9afd5b21f9c1e2307d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>