Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Ensure that FindMountedVolume returns ("", nil) when not found #276

Merged
merged 1 commit into from
Dec 7, 2019

Conversation

justinsb
Copy link
Contributor

@justinsb justinsb commented Dec 7, 2019

This helps the retry logic work correctly.

@justinsb
Copy link
Contributor Author

justinsb commented Dec 7, 2019

Actually @zetaab would you mind looking at this ... I think the retry loop might return an error when it times out, which isn't really what we want. The problem is that it isn't always possible to cancel a disk attachment (e.g. on AWS) so our best bet is to just keep waiting. I don't know if OpenStack has a better option that actually works!

This helps the retry logic work correctly.
@justinsb justinsb force-pushed the find_mounted_volume_return branch from 6f605de to 0f764ee Compare December 7, 2019 19:48
Copy link
Contributor

@zetaab zetaab left a comment

Choose a reason for hiding this comment

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

for me this looks ok. That is true, it did return error if the code timeout.

@justinsb
Copy link
Contributor Author

justinsb commented Dec 7, 2019

Thanks!

@justinsb justinsb merged commit 9365fe8 into kopeio:master Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants