Skip to content

Conversation

@mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Nov 17, 2025

We see some errors when conneting to the vm. Its odd as we have a helper wait_ssh_ready() that opens the ports and check for the OpenSSH banner string. Until this is fully understood do a single retry to make the vmtest more robust.

See e.g. https://gitlab.com/redhat/services/products/image-builder/ci/images/-/jobs/12115586516

@mvo5 mvo5 requested a review from a team as a code owner November 17, 2025 20:12
@mvo5 mvo5 requested review from achilleas-k, bcl and croissanne and removed request for a team November 17, 2025 20:12
vmtest/vm.py Outdated
time.sleep(0.5)
self._connect(user, password, pkey)

def _connect(self, user, password, pkey):
Copy link
Member

Choose a reason for hiding this comment

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

Needs client as an arg. Or maybe add _client to the VM class?

We see some errors when conneting to the vm. Its odd as we
have a helper wait_ssh_ready() that opens the ports and check
for the OpenSSH banner string. Until this is fully understood
do a single retry to make the vmtest more robust.
@mvo5
Copy link
Collaborator Author

mvo5 commented Nov 18, 2025

This is actually not sufficient, the retry needs to happen on open_session()

@mvo5
Copy link
Collaborator Author

mvo5 commented Nov 20, 2025

Closing in favor of #1156 - if moving to ssh is not enough we will need to add something like a retry of "self.run(true") to make this more robust but it should be passed on ssh instead of paramiko.

@mvo5 mvo5 closed this Nov 20, 2025
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.

2 participants