Is it possible to create a statefulset/deployment with this CSI driver volumes and the pods in this set can failover to other nodes when the current node down.
Can you share a bit more details or log on the error ?
On hard node failure, kubernetes cannot know if the issue is because kubelet is down and the stateful pod is still alive and writing or if the pod is down.
Therefore the pod will be stuck in Terminating mode.
Thanks for asking,the pod is not stucked in terminating ,and the pod has been deleted from the down node automatically ,and begin to create pod in a running node,the status is creatingcontainer.
The error is generated at the moment.
######################
Multi-Attach error for volume "pmax-c2e3a49fbf" Volume is already exclusively attached to one node and can't be attached to another
We have also seen this, when the system goes to reattach the volume. Normally, if you give it some time, this automatically corrects itself, as the attacher and reconciler takes over. Give it 10 mins and see (most times, it recovers automatically)
If not, continue on
Whats the status of your vxflexos-controller-0 pod (are all the 4 containers up)? Check the logs of the attacher and it should point you to the right direction in terms of your error.(kubectl logs vxflexos-controller-0 -n vxflexos -c attacher --tail 100) and driver (kubectl logs vxflexos-controller-0 -n vxflexos -c driver--tail 100)
Check if the query_mdm command is successful on all the node (where the pod is trying to come up) and ensure the mdm connection is fine
Wellin
1 Rookie
•
6 Posts
1718
0
Posted July 8th, 2020 23:00
I tried both deployment and statefulset ,all of them didn't completed failover ,got the similar error output :
######################
Multi-Attach error for volume "pmax-c2e3a49fbf" Volume is already exclusively attached to one node and can't be attached to another
########################