dell/csm

[BUG]: Create volume even if the size is smaller than possible

boyamurthy opened this issue · 1 comments

Bug Description

As part of the Kubevirt validation, the driver failed to provision storage with :

powermax-controller-b46d977b6-bmhdn driver time="2024-05-13T09:27:03Z" level=info msg="/csi.v1.Controller/CreateVolume: REP 0077: rpc error: code = OutOfRange desc = bad capacity: requested minimum size (20971520 bytes) is less than the minimum volume size (51118080 bytes)"

According to Kubernetes docs and API conventions, a CSI driver can always provision a larger volume than requested.

Logs

powermax-controller-b46d977b6-bmhdn driver time="2024-05-13T09:27:03Z" level=info msg="/csi.v1.Controller/CreateVolume: REP 0077: rpc error: code = OutOfRange desc = bad capacity: requested minimum size (20971520 bytes) is less than the minimum volume size (51118080 bytes)"

Screenshots

No response

Additional Environment Information

No response

Steps to Reproduce

create volume size lessthan 50 MB.

Expected Behavior

as per CSI spec , volume creation should be successful with minumum supported size.

CSM Driver(s)

csi driver for PowerMax

Installation Type

No response

Container Storage Modules Enabled

No response

Container Orchestrator

all

Operating System

all

link: 24328