Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for 15 seconds for the qmp listener #4330

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

eriknordmark
Copy link
Contributor

Make the code consitently wait/retry for 15 seconds - in some cases it would only wait for 3 seconds. Fixes timeout on slow devices. Those timeouts seem to have started to appear with the new xentools version, so marking this as stable.

@eriknordmark eriknordmark added the stable Should be backported to stable release(s) label Oct 9, 2024
@github-actions github-actions bot requested review from rucoder and shjala October 9, 2024 18:26
pkg/pillar/hypervisor/kvm.go Outdated Show resolved Hide resolved
Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

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

Actually, the functions touched by this PR are perfect candidates for unit testing...

@eriknordmark
Copy link
Contributor Author

Actually, the functions touched by this PR are perfect candidates for unit testing...

Would need to have a way to stub out the go-qemu/qmp package to do delay and fault injection in order to do unit tests for this. That would require some refactoring which doesn't make sense now given that this is a regression in 13.4

@OhmSpectator
Copy link
Member

Actually, the functions touched by this PR are perfect candidates for unit testing...

Would need to have a way to stub out the go-qemu/qmp package to do delay and fault injection in order to do unit tests for this. That would require some refactoring which doesn't make sense now given that this is a regression in 13.4

For sure we can add them later

Make the code consitently wait/retry for 15 seconds - in some cases it
would only wait for 3 seconds. Fixes timeout on slow devices.

Signed-off-by: eriknordmark <[email protected]>
Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

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

Looks good!

@eriknordmark eriknordmark merged commit 55b3933 into lf-edge:master Oct 17, 2024
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable Should be backported to stable release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants