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

CA-390512: Improved xenapi error handling #48

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

GeraldEV
Copy link
Collaborator

In some cases we may fail to query the host CPUs due to an invalid reference, in this case we should log the failure and not add it into the list of host CPUs.
In the event of a failure we receive a list of the form: ['HANDLE_INVALID', 'host_cpu', '<uuid>']
In a success we receive a dictionary which is later used to populate the number of CPUs per name but does not check that the contents of host_CPUs is a list of dictionaries.

@rosslagerwall
Copy link
Contributor

This looks OK to me but the information in the PR description should be in the commit message.

In some cases we may fail to query the host CPUs due to an invalid
reference, in this case we should log the failure and not add it into
the list of host CPUs.
In the event of a failure we receive a list of the form:
['HANDLE_INVALID', 'host_cpu', '<uuid>']
In a success we receive a dictionary which is later used to populate the
number of CPUs per name but does not check that the contents of
host_CPUs is a list of dictionaries.
@GeraldEV GeraldEV merged commit d563fb9 into xapi-project:master Jul 23, 2024
1 check 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.

3 participants