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

ref: Remove status polling in instance module #299

Merged
merged 3 commits into from
Feb 24, 2023

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Feb 23, 2023

📝 Description

This change replaces all instances of status polling in the instance module with proper event polling. This is necessary as status-based polling can be unreliable when trying to run certain operations (boot, disk creations, etc.)

Additionally, this PR introduces a new wait_for_resource_free(...) function that waits for a resource to not be busy.

✔️ How to Test

make TEST_ARGS="-v instance_booted" test
make TEST_ARGS="-v instance_config_disk" test

@lgarber-akamai
Copy link
Contributor Author

/acctest sha=6f0c4fe3062bbf8371914141bf813e549b138acf tests=instance_booted

@lgarber-akamai
Copy link
Contributor Author

/acctest sha=6f0c4fe3062bbf8371914141bf813e549b138acf tests=instance_config_disk

Co-authored-by: zliang-akamai <121905282+zliang-akamai@users.noreply.github.com>
@lgarber-akamai
Copy link
Contributor Author

/acctest sha=2a8a71d827c5de1de19a8598f4a901742f5dc0ce tests=instance_config_disk

@lgarber-akamai lgarber-akamai merged commit c169532 into linode:main Feb 24, 2023
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