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

SDK will now return a volume only if it is ready #1199

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

lpabon
Copy link
Member

@lpabon lpabon commented Aug 19, 2019

What this PR does / why we need it:
With this fix, any call creating a volume and noticing it already
exists now checks to make sure that the volume is UP and ready
before returning.

Which issue(s) this PR fixes (optional)
Closes #1180

Special notes for your reviewer:

  • Updated the test port randomizer
  • Added a new wait call to pkg/util called WaitForWithContext which will automatically use the passed default value or the Deadline (WithTimeout) value passed in the context by the caller.

@lpabon lpabon force-pushed the b1180 branch 2 times, most recently from 24f1365 to b2d897c Compare August 30, 2019 19:06
api/server/sdk/volume_ops.go Outdated Show resolved Hide resolved
api/server/sdk/volume_ops.go Show resolved Hide resolved
With this fix, any call creating a volume and noticing it already
exists now checks to make sure that the volume is UP and ready
before returning.

Closes libopenstorage#1180

Signed-off-by: Luis Pabón <[email protected]>
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.

During volume create, SDK should not return existing volume not in up state
2 participants