Bug 15561 - Occasional ssh timeouts
Summary: Occasional ssh timeouts
Status: RESOLVED WORKSFORME
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: 5.2
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 5.1 M4
Assignee: Jon Mason
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-07-24 12:56 UTC by Ross Burton
Modified: 2024-10-31 15:03 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2024-07-24 12:56:51 UTC
Since the ssh connection changes by Jon we're seeing rare but occasional SSH timeouts:

  File "/home/pokybuild/yocto-worker/qemumips-alt/build/meta/lib/oeqa/runtime/cases/ssh.py", line 37, in test_ssh
    self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status))
AssertionError: ssh failed with "" (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
Comment 1 Randy MacLeod 2024-08-22 14:43:58 UTC
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.
Comment 2 Randy MacLeod 2024-08-22 14:56:05 UTC
Likely only happening on arm. Lower importance.
Comment 3 Jon Mason 2024-08-23 14:49:02 UTC
Patch submitted to increase the number of attempts
https://git.openembedded.org/openembedded-core/commit/?h=master-next&id=c796438eec5dd6b4671b798f85506bc89ff402ab

To "debug" 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 "debug test", it took roughly 70 attempts to pass the ssh test.  In this example, increasing the number of attempts isn'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't necessarily relevant to this issue).
Comment 4 Jon Mason 2024-10-22 13:33:38 UTC
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.
Comment 5 Randy MacLeod 2024-10-31 15:03:39 UTC
Likely fixed by another commit.