23 Posts

June 8th, 2021 05:00

Thanks a lot to bring the volumeBindMode to me. Back to Unity CSI driver version 1.2.0, I was not aware of this parameter, and from the note I had before, seems it was default "immediate", because right after create the PVC, I was able to verify the volume on unity storage.

For this case, I found the issue, it was the char "_"  used in myvalues.yaml file, it should be an unsupported char, and after removed it. I'm able to create a statefulset with PVC bound to storageclass.

 

Here's the log messages from controller pod:

 

E0608 07:07:05.824590 1 volume_store.go:144] error saving volume jij8_csivol-eca6144d1e: PersistentVolume "jij8_csivol-eca6144d1e" is invalid: metadata.name: Invalid value: "jij8_csivol-eca6144d1e": a DNS-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])?)*')
 
After remove it from myvalues.yaml and recreate all including the statefulset, it's showing fine now. And I can continue my tests:
 
[root@master test]# kubectl get pvc -A
NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
test-unity pvol1 Bound jij8-csivol-caaf49426e 25Gi RWO unity-iscsi 34s

2 Intern

 • 

286 Posts

June 7th, 2021 09:00

I created a video on the installation, it should still be valid. You may want to confirm it was installed correctly. It seems that way since the pods are running.

Is there anything in the "get pv" output?

Can you send the kubectl detail for pvol1?

 

13 Posts

June 7th, 2021 12:00

I see storage-class details as mentioned- 
unity-iscsi csi-unity.dellemc.com Retain WaitForFirstConsumer true 135m

WaitForFirstConsumer indicates volume will be in pending state unless you created corresponding pod for the same volume then only dynamic pvc creation will be triggered. 

If you are not interested to use WaitForFirstConsumer you may change this to Immediate and see dynamic pvc will be provisioned immediately without pod creation.

Hope you understand the difference and its by nature as Topology implementation is at place.

 

2 Intern

 • 

286 Posts

June 8th, 2021 09:00

Was the parameter that you used '_' the volumeNamePrefix?

23 Posts

June 8th, 2021 14:00

yes. It's stupid, but I was not realizing it's harmful.

2 Intern

 • 

286 Posts

June 9th, 2021 08:00

i just ask so we can make sure our documentation is updated

No Events found!

Top