Skip to content

Conversation

mhofstetter
Copy link
Member

Currently, the LVH GH action verifies the successful start of the SSH server by searching the console logoutput for the corresponding log lines.

This mechanism is very fragile and leads to cases where a successful SSH server start isn't detected properly. E.g. in cases where the logoutput by qemu is interleaved.

[  OK  ] Started     4.887573] e2scrub_all (319) used greatest stack depth: 12416 bytes left
1;39mssh.service - OpenBSD Secure Shell server.

Therefore, this commit removes the SSH server startup check completely. Leaving the check for a successful SSH connect to be the only check.

To respect the SSH server startup time, the default wait retries for the SSH connection check gets increased from 5 to 300 (the time that we potentially waited for the SSH startup in the log check).

Fixes: cilium/cilium#32400

Currently, the LVH GH action verifies the successful start of the
SSH server by searching the console logoutput for the corresponding
log lines.

This mechanism is very fragile and leads to cases where a successful
SSH server start isn't detected properly. E.g. in cases where the logoutput
by qemu is interleaved.

```
[  OK  ] Started     4.887573] e2scrub_all (319) used greatest stack depth: 12416 bytes left
1;39mssh.service - OpenBSD Secure Shell server.
```

Therefore, this commit removes the SSH server startup check completely.
Leaving the check for a successful SSH connect to be the only check.

To respect the SSH server startup time, the default wait retries for the SSH
connection check gets increased from 5 to 300 (the time that we potentially
waited for the SSH startup in the log check).

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter marked this pull request as ready for review May 15, 2024 13:05
@mhofstetter mhofstetter requested a review from learnitall May 15, 2024 13:06
Copy link
Contributor

@learnitall learnitall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for your work on this, interleaved console output was something I should've been mindful of when adding this originally.

@mhofstetter mhofstetter requested review from brb and kkourt May 15, 2024 15:33
@kkourt kkourt merged commit 301e15a into cilium:main May 16, 2024
@mhofstetter mhofstetter deleted the pr/mhofstetter/gha-rem-ssh-startup-wait branch May 16, 2024 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Conformance Ginkgo: Provision LVH VMs
3 participants