-
Notifications
You must be signed in to change notification settings - Fork 372
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
What is behavior of CreateVolumeRequest with empty capacity_range? #413
Comments
CreateVolumeRequest
with empty capacity_range
?
If the capacity range is not specified by the CO, the SP should just use some default.
I don't quite get this ^ |
I agree with Dmytro that the spec is vague about the behavior a plugin should do when capacity is unspecified. It says it MAY choose a default, not MUST. So technically, returning an error is also a valid response according to the spec wording. |
cc @jsafrane |
Plugin MAY choose a default means that it is not obligatory and a plugin also may not use defaults (e. g. if a plugin is configured without default volume size being set). |
I think it's valid for a plugin to respond with an error if no capacity is specified and the plugin is unable to reason about the capacity that it should use. It's also perfectly acceptable for a plugin to not require a capacity and successfully create a volume. We could clarify this by expanding the corresponding error table w/ an explanation that the plugin may return an error for such cases. Given that it's likely either (a) a plugin configuration error, or else; (b) a limitation of the plugin .. then the CO should probably not retry the call as-is, and should instead supply the plugin with a capacity. |
Discussed at community meeting on 2/11/20 |
…r `CreateVolumeRequest` was improved
Based on description, I suppose that Plugin MAY NOT choose an implementation-defined capacity, and in such case while handling
CreateVolumeRequest
having emptycapacity_range
Plugin MUST fail.If my understanding is correct shall we update
CreateVolume Errors
table?The text was updated successfully, but these errors were encountered: