-
Notifications
You must be signed in to change notification settings - Fork 159
Round up pdcsi driver size in CreateVolume #684
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if backporting makes sense; I'm not sure this will justify a backport in GKE as +/-1G isn't a big deal.
Could you create an issue for this bug? Then we could at least have a public discussion about backporting.
@@ -0,0 +1,30 @@ | |||
ShortName: pdtest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't mean to check in this file?
/approved Thanks! Can you mention the issue number in this PR when you create it (or mention this PR in the issue, whatever, just so we can keep track) |
Done. The bug number is 176099317. Can you help to approve this PR? Thanks a lot! |
/approve Sorry, I got the wrong approve robot command. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jiawei0227, mattcary The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently if we create a PVC of size 1.5Gi, the pdcsi driver will convert it to 1Gi but the provisioner will say it is 2Gi[1]. And both of them are not accurate. From the CSI spec, we know that we should provide size larger than the requested size. So if user ask for 1.5Gi, we should give them at least 1.5Gi.
This PR changes the RoundDown behavior of CreateVolume to RoundUp. This is to align with the CreateVolume CSI spec that when the required_bytes is set, the driver should provision something bigger.
[1] kubernetes-csi/external-provisioner#199
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
/cc @msau42
/cc @saikat-royc
/assign @mattcary