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

chore(spc):introduce new field to control overprovisioning #1597

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

chandankumar4
Copy link
Contributor

@chandankumar4 chandankumar4 commented Jan 28, 2020

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 field overProvisioning in SPC is deprecated and will cause no impact.

  1. If the field thickProvisoning is set to true -- overprovisioning is disabled.
  2. If the field thickProvisoning is set to false -- overprovisioning is enabled.
  3. If the field is not specified in the SPC -- 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.

@sonasingh46 sonasingh46 added this to the 1.7.0 milestone Jan 28, 2020
@sonasingh46 sonasingh46 added the pr/release-note PR should be included in release notes label Jan 28, 2020
Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@sonasingh46 sonasingh46 left a comment

Choose a reason for hiding this comment

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

lgtm
Upgrade changes are covered.
No upgrade changes required. cc @shubham14bajpai

@vishnuitta vishnuitta merged commit 7813165 into openebs-archive:master Jan 29, 2020
@chandankumar4 chandankumar4 deleted the thickprovisioning branch January 29, 2020 17:44
chandankumar4 added a commit to chandankumar4/maya that referenced this pull request Feb 2, 2020
vishnuitta pushed a commit that referenced this pull request Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/release-note PR should be included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants