Issue Summary:
Currently, the CSI-PowerFlex driver does not support volume sizes less than 3GB for NFS. If a volume size smaller than 3GB is requested, the backend returns a 400 Bad Request error.
Proposed Solution:
Implement a feature in the CSI-PowerFlex driver to round up the requested volume size to the minimum supported size of 3GB before sending the request to the backend. This approach is similar to how we handle block volume types, where sizes are rounded up to the nearest multiple of 8GB, as the minimum size supported for block volumes is 8GB.
Details:
Detect if the requested volume size for NFS is less than 3GB.
Round up the volume size to 3GB if it is below the minimum threshold.
Ensure the request to the backend is adjusted accordingly to prevent the 400 Bad Request error.
Update the documentation to reflect this behavior and specify the minimum supported size for different volume types and platforms.
Logs
NA
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
Create a NFS vol of size 1024Mi i.e. 1Gb.
Expected Behavior
Volume creation should take place with min supported size by backend array.
Bug Description
Issue Summary: Currently, the CSI-PowerFlex driver does not support volume sizes less than 3GB for NFS. If a volume size smaller than 3GB is requested, the backend returns a 400 Bad Request error.
Proposed Solution: Implement a feature in the CSI-PowerFlex driver to round up the requested volume size to the minimum supported size of 3GB before sending the request to the backend. This approach is similar to how we handle block volume types, where sizes are rounded up to the nearest multiple of 8GB, as the minimum size supported for block volumes is 8GB.
Details:
Detect if the requested volume size for NFS is less than 3GB. Round up the volume size to 3GB if it is below the minimum threshold. Ensure the request to the backend is adjusted accordingly to prevent the 400 Bad Request error. Update the documentation to reflect this behavior and specify the minimum supported size for different volume types and platforms.
Logs
NA
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
Create a NFS vol of size 1024Mi i.e. 1Gb.
Expected Behavior
Volume creation should take place with min supported size by backend array.
CSM Driver(s)
CSI-Powerflex
Installation Type
No response
Container Storage Modules Enabled
No response
Container Orchestrator
K8, OCP
Operating System
Any