[BUG]: Volume Size Rounding Issue in PowerFlex: Rounds Down Instead of Up for Multiples of 8GB #1608
Labels
area/csi-powerflex
Issue pertains to the CSI Driver for Dell EMC PowerFlex
type/bug
Something isn't working. This is the default label associated with a bug issue.
Milestone
Bug Description
When creating a volume in PowerFlex, it appears to round down instead of up for sizes that are multiples of 8GB. For example:
A request for 53,690,000 KB results in a 56 GB disk.
However, a request for 50,000,000 KB (50 GB) only yields a 48 GiB disk, which should ideally be 56 GiB.
This behavior suggests that the conversion from decimal to binary may not be handled correctly. Specifically, when the requested size in GiB is close to the 8 GiB cutoff (approximately 48.8 GiB), it does not round up to the next 8 GiB size (56 GiB)
Logs
`
storage: 52428800k
Because the size is just over 48 GiB, we would expect the volume to be created for 56 GiB.
powerflex-controller-857877b59b-27mhm-driver
This is the first occurrence of the create that I see
It then streams the CreateVolume REQ/REP for the rest of the logs.
powerflex-controller-857877b59b-27mhm-provisioner
First occurrence I see of this volume creation
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
Create a pvc with storage: 52428800k
Expected Behavior
When creating a volume in PowerFlex, the expected behavior should be:
Correct Size Allocation: The system should round up to the nearest multiple of 8 GiB when the requested size is close to the cutoff. For instance:
A request for 50,000,000 KB (approximately 47.7 GiB) should round up to 56 GiB instead of rounding down to 48 GiB.
Similarly, a request for 53,690,000 KB should correctly yield 56 GiB.
CSM Driver(s)
PowerFlex CSI Driver 2.11
Installation Type
No response
Container Storage Modules Enabled
No response
Container Orchestrator
N/A
Operating System
N/A
The text was updated successfully, but these errors were encountered: