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

openstack/api: wait for image to be active #382

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

tormath1
Copy link
Contributor

the image usually takes a few second to be unpacked on the Openstack instance.

It can leads to CI error if the image used to run the test it not yet fully active.

Signed-off-by: Mathieu Tortuyaux mtortuyaux@microsoft.com

@@ -546,6 +546,18 @@ func (a *API) UploadImage(name, path string) (string, error) {
return "", fmt.Errorf("web uploading: %w", err)
}

// It usually takes around 10 seconds to extract the image.
if err := util.WaitUntilReady(20*time.Second, 5*time.Second, func() (bool, error) {
Copy link
Member

Choose a reason for hiding this comment

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

I'd be on the safe side and would wait for a minute. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, let's do this!

the image usually takes a few second to be unpacked on the Openstack
instance.

It can leads to CI error if the image used to run the test it not yet
fully active.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 merged commit 507696e into flatcar-master Sep 23, 2022
@tormath1 tormath1 deleted the tormath1/openstack branch September 23, 2022 15:51
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