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-395560 Improve logging and error checking on sg_readcap #733

Merged

Conversation

TimSmithCtx
Copy link
Contributor

When reading information using sg_readcap, it would be useful in the event of failure to log what the return code was so that we know what failure we're dealing with.

Also, per the manual pages for these commands, there are quite a few more return codes which should be considered retryable, plus a non-zero success return code which is theoretically possible.

Add a function to gather up the checks and logs for these things and then wrap a call to that function in a short retry loop.

When reading information using sg_readcap, it would be useful in the
event of failure to log what the return code was so that we know what
failure we're dealing with.

Also, per the manual pages for these commands, there are quite a few
more return codes which should be considered retryable, plus a non-zero
success return code which is theoretically possible.

Add a function to gather up the checks and logs for these things and
then wrap a call to that function in a short retry loop.

Signed-off-by: Tim Smith <[email protected]>
@MarkSymsCtx MarkSymsCtx merged commit 25ceda3 into xapi-project:master Feb 19, 2025
2 checks passed
@TimSmithCtx TimSmithCtx deleted the private/timsmi/CA-395560 branch February 19, 2025 11:31
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