[BUG]: Cert-csi modifies ephemeral.volumeAttributes fields causing test failure #1664
Labels
area/cert-csi
Issues pertaining to Cert CSI
type/bug
Something isn't working. This is the default label associated with a bug issue.
Milestone
Bug Description
cert-csi reads data from the file specified by the --cert-config option in order to execute ephemeral volume testing.
It appears during this read operation, the child field names of ephemeral.volumeAttributes are being converted to lower-case. When the ephemeral volume is then created during the test, csi-powerflex fails to mount the volume because it is expecting the case-sensitive fields of volumeAttributes.
For example:
The child fields of storageClasses[0].ephemeral.volumeAttributes are cased, but when cert-csi prompts the user to confirm the test cases are correct before starting the test run they are displayed as below with lower-cased field names.
[2024-12-19 16:07:53] INFO 9. EphemeralVolumeSuite {driver: csi-vxflexos.dellemc.com, podNumber: 2, volAttributes: map[size:8Gi storagepool:SP-SW_SSD-1 systemid:af948d7db6f7160f volumename:my-ephemeral-vol]}
This effects cert-csi v1.4.0 onward.
Logs
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
run cert-csi for powerflex and unity driver
Expected Behavior
Cert-csi suite should pass successfully
CSM Driver(s)
powerflex , unity
Installation Type
NA
Container Storage Modules Enabled
NA
Container Orchestrator
NA
Operating System
NA
The text was updated successfully, but these errors were encountered: