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

Add exponential backoff for requests that receive PV drivers missing error #262

Merged

Conversation

ddelnano
Copy link
Collaborator

@ddelnano ddelnano commented Sep 27, 2023

Summary: Add exponential backoff for requests that receive PV drivers missing error

This PR is aimed at fixing some issues seen when running the acceptance test suite in Jenkins. There are times where an acceptance test that performs hot plugging of devices tries to attach or disconnect devices before the guest's has fully booted and had its PV drivers initialized. This is one of the changes needed to stabilize the build for #264.

In order to address this, the XO client has been augmented to provide a mechanism for retrying specific JSON rpc error codes and opting the "missing PV drivers" condition into this behavior.

Testing done:

  • Verified that multiple CI job runs succeeded with this change. This was validated with adhoc runs, but will be tested a final time from a Jenkins job.

@ddelnano ddelnano merged commit 0267d33 into master Oct 3, 2023
3 checks passed
@ddelnano ddelnano deleted the ddelnano/add-exp-backoff-to-retryable-xo-api-requests branch October 3, 2023 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant