chore(spc):introduce new field to control overprovisioning #1597
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following PR added support to restrict overprovisioning of volumes on a cStor pool. Please go through the following links to understand more.
#1577
openebs/openebs#2855
SPC has a field
overProvisioning
that was never used and the PR made use of that to decide on overprovisioning requirements.Now every existing SPC might have SPC created with missing
overProvisioning
field(the missing field will have by default a false value as the field is of bool type) or value set to false.Now, there can be failure in subsequent volume provisioning if a user intends to over-provision -- to fix this one would need to edit SPC yaml to turn
overProvisioning
to true.This PR introduces a new field
thickProvisoning
to decide on over-provisioning requirements and the fieldoverProvisioning
in SPC is deprecated and will cause no impact.thickProvisoning
is set to true -- overprovisioning is disabled.thickProvisoning
is set to false -- overprovisioning is enabled.Signed-off-by: chandan kumar [email protected]
Special notes for your reviewer:
Dependent PR: openebs/openebs#2901
This PR needs to merge first in order to travis CI to pass for the PR.