Open pbabilas opened 1 year ago
We have noticed this issue. In version 4.0.0, we require the backend name to follow the DNS label standard defined in RFC 1123,before version 4.0.0, we did not have this requirement, and there are indeed differences. Please let me know which version of CSI you are currently using, so that we can better solve the issue.
Thanks for answer, my current version os 3.1.
As in topic, when I updated my Hua driver at cluster, there is a problem with backend names. In V3 backend name is set like: backend: dorado-3000-V6 - during this version there was only string type restriction in this field. Now at v4 I cannot use this name because crd meta.name which is created from backend needs to by lowercased :(
Invalid value: "test-Name": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
My cluster has more than 6 hundreds lun created, all with backend name writed before. Background name can be changed in storageclass, in configmap and secret but pv is immutable and to do so I would need to scale all services, delete pvc and delete pv, next again add those with backend name changed. Is there any way that driver could convert name to lowercase or work with backward compatibility?