dell / csm

Dell Container Storage Modules (CSM)
Apache License 2.0
69 stars 15 forks source link

[BUG]: Support Minimum 3GB Volume Size for NFS in CSI-PowerFlex #1366

Closed adarsh-dell closed 4 months ago

adarsh-dell commented 4 months ago

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

adarsh-dell commented 4 months ago

This fix/enhancement will be available from CSM 1.11.0 in V2.11.0 and onwards for the CSI-Powerflex driver.

Thank you. Adarsh