Skip to content

Conversation

@mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Nov 18, 2025

vm: drop paramiko

And replace with ssh/scp binaries. This is probably more
robust than paramiko and more "standard". As a side effect
we do no longer request an explicit tty. We could force
that with "-t" in ssh but we did that with paramiko and
that caused issues that e.g. "systemctl" would detect
a tty and go into pager mode. So lets start without and
we can always add "-t" to our ssh invocation to force
it.


vmtest: add new _ensure_ssh() that will retry 3x to login

Small helper to retry ssh to avoid flakyness when a VM closes the
connection too early.

@mvo5 mvo5 requested a review from a team as a code owner November 18, 2025 18:19
@mvo5 mvo5 requested review from achilleas-k, bcl and supakeen and removed request for a team November 18, 2025 18:19
@mvo5 mvo5 marked this pull request as draft November 19, 2025 08:00
@mvo5 mvo5 force-pushed the drop-paramiko branch 2 times, most recently from e65dc81 to 9bec074 Compare November 20, 2025 16:35
@mvo5 mvo5 marked this pull request as ready for review November 20, 2025 17:01
@mvo5 mvo5 force-pushed the drop-paramiko branch 3 times, most recently from aa1b648 to 2b71666 Compare November 20, 2025 18:05
supakeen
supakeen previously approved these changes Nov 20, 2025
@mvo5 mvo5 force-pushed the drop-paramiko branch 3 times, most recently from 4cbb6a8 to f45f0dc Compare November 20, 2025 20:56
supakeen
supakeen previously approved these changes Nov 20, 2025
And replace with ssh/scp binaries. This is probably more
robust than paramiko and more "standard". As a side effect
we do no longer request an explicit tty. We could force
that with "-t" in ssh but we did that with paramiko and
that caused issues that e.g. "systemctl" would detect
a tty and go into pager mode. So lets start without and
we can always add "-t" to our ssh invocation to force
it.
@mvo5 mvo5 changed the title vm: drop paramiko vm: drop paramiko, use opeensh and add retry Nov 21, 2025
Small helper to retry ssh to avoid flakyness when a VM closes the
connection too early.
@mvo5 mvo5 added this pull request to the merge queue Nov 21, 2025
Merged via the queue into osbuild:main with commit f10206c Nov 21, 2025
18 of 22 checks passed
@mvo5 mvo5 deleted the drop-paramiko branch November 21, 2025 11:22
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.

3 participants