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

fix(qemu): Allow listing over instances which cannot be queried over QMP #1965

Conversation

nderjung
Copy link
Member

@nderjung nderjung commented Nov 20, 2024

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

This PR amortizes the errors from connection sequences via QMP into well-defined errors. These errors can then be cross-validated in the listing method which would otherwise fast-fail. By omitting any issues related via QMP, we are able to properly return a full list of machines, regardless of whether they have a QMP socket.

@nderjung nderjung requested a review from craciunoiuc November 20, 2024 14:56
This commit amortizes the errors from connection sequences via QMP
into well-defined errors.  These errors can then be cross-validated
in the listing method which would otherwise fast-fail.  By omitting
any issues related via QMP, we are able to properly return a full
list of machines, regardless of whether they have a QMP socket.

Signed-off-by: Alexander Jung <[email protected]>
@nderjung nderjung force-pushed the nderjung/fix/machine/qemu/iterate-over-dead-qmp-instances branch from a0ed982 to 1a49ec4 Compare November 20, 2024 14:57
Copy link
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

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

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu [email protected]
Approved-by: Cezar Craciunoiu [email protected]

@craciunoiuc craciunoiuc merged commit 492e174 into unikraft:staging Nov 21, 2024
10 checks passed
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