<?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>15561</bug_id>
          
          <creation_ts>2024-07-24 12:56:51 +0000</creation_ts>
          <short_desc>Occasional ssh timeouts</short_desc>
          <delta_ts>2024-10-31 15:03:39 +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>5.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>5.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Jon Mason">jon.mason</assigned_to>
          <cc>Harish.Sadineni</cc>
    
    <cc>jon.mason</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sundeep.kokkonda</cc>
    
    <cc>Yash.Shinde</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>99426</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-07-24 12:56:51 +0000</bug_when>
    <thetext>Since the ssh connection changes by Jon we&apos;re seeing rare but occasional SSH timeouts:

  File &quot;/home/pokybuild/yocto-worker/qemumips-alt/build/meta/lib/oeqa/runtime/cases/ssh.py&quot;, line 37, in test_ssh
    self.fail(&quot;ssh failed with \&quot;%s\&quot; (exit code %s)&quot; % (output, status))
AssertionError: ssh failed with &quot;&quot; (exit code -15)

Potentially we just need to bump the times a little further?

https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/6318/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99565</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-08-22 14:43:58 +0000</bug_when>
    <thetext>CC Harish, Yash, Sundeep since they may have a similar problem with ssh for toolchain tests.

Jon, Can you describe how you reproduce the retries and what you think could be done to deal with this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99566</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-08-22 14:56:05 +0000</bug_when>
    <thetext>Likely only happening on arm. Lower importance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99569</commentid>
    <comment_count>3</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2024-08-23 14:49:02 +0000</bug_when>
    <thetext>Patch submitted to increase the number of attempts
https://git.openembedded.org/openembedded-core/commit/?h=master-next&amp;id=c796438eec5dd6b4671b798f85506bc89ff402ab

To &quot;debug&quot; this, I found it easier to modify the test and increase the number of attempts to a very high number and add a print to show how many attempts it took when exiting the test.  In the patch referenced above, you would modify the attempts (changed to 20).  As an example, I used 100 attempts on fvp-base using poky-altcfg, which is very slow emulated system and systemd in poky-altcfg brings up the ssh daemon at a much later point.  In this &quot;debug test&quot;, it took roughly 70 attempts to pass the ssh test.  In this example, increasing the number of attempts isn&apos;t an acceptable solution to this issue, as the worst case (which is the test trying 100 times then failing) would be 500 seconds (or 8.33 mins).  Taking this long on a failure would cascade a delay in the Autobuilder CI test matrix.  So, I need to debug the systemd issue to see why it takes so long (which isn&apos;t necessarily relevant to this issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99963</commentid>
    <comment_count>4</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2024-10-22 13:33:38 +0000</bug_when>
    <thetext>Still seems to be an issue.  RP tried to address it with a recent patch.  Keeping this around until it can be verified to go away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100070</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-31 15:03:39 +0000</bug_when>
    <thetext>Likely fixed by another commit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>