Kubernetes Could not get iscsi iscsiTargets: can`t get iscsi target address
We are getting an error in k8s when we try to attach a volume from Dell EMC PowerStore to a pod in a StatefulSet application, do you have an idea why?
What we`ve done:
- Deployment of CSI driver was successfully. (Initialization of plugin pods on Kubernetes nodes and initiator group for PowerStore storage)
- We tried to test PVCs and StatefulSet, volumes were successfully created but the pods remain in Creating state and from running command kubctl describe the pod we get the below error:
Warning FailedAttachVolume 4m35s (x45 over 79m) attachdetach-controller AttachVolume.Attach failed for volume "csi-a571c6d7b1" : rpc error: code = Internal desc = Could not get iscsi iscsiTargets: can't get iscsi target address Warning FailedMount 3m2s (x29 over 77m) kubelet, cl-k4s-k8s-node-nf-1 Unable to attach or mount volumes: unmounted volumes=[pvol1], unattached volumes=[pvol1 powerstoretest-token-tkvng]: timed out waiting for the condition
If we run on the worker node iscsiadm -m session we get the active sessions to PowerStore.