Closed hvikharev closed 1 year ago
Is this a transient condition? e.g. first mount fails and then when the node is ready, it succeeds?
yes. it repeats 5 or 6 times and when instance is ready, it succeeds. But with CAS I don't have this issue. kubelet has the same flags in both cases. CAS node mounts volumes successful from first attempt and Karpenter node isn't.
I suspect this is caused by Karpenter creating the node object which CAS does not do. This should be resolved soon when we stop doing that.
CC @jonathan-innis
We are facing same issue. Sometime it will not resolve after so many retries. can we fix this asap?
Hi @jonathan-innis .. Is there a release label with merged fix yet?
@h1-himanshu Yes, this was released under an RC v0.28.0-rc.1
last week.
@hvikharev @h1-himanshu @rr-krupesh-savaliya Have you tried out the latest release candidate v0.28.0-rc.1
and see if this resolves the issue you were seeing on older versions of Karpenter?
@jonathan-innis Yes, we tested v0.28.0-rc.1
release on multiple clusters, and as a result, we no longer encounter any issues with mounting volumes.
@jonathan-innis I tested v0.28.0-rc.1 too and haven't seen any issue with mount volumes. Thank you!
Hi I am using 0.28.1 version and getting this error:
Warning FailedMount 15m (x7 over 16m) kubelet MountVolume.SetUp failed for volume "client-secret" : kubernetes.io/csi: mounter.SetUpAt failed to get CSI client: driver name secrets-store.csi.k8s.io not found in the list of registered CSI drivers Warning FailedMount 12m kubelet Unable to attach or mount volumes: unmounted volumes=[pvc], unattached volumes=[client-secret pvc kube-api-access-xvpkn aws-iam-token config secret]: timed out waiting for the condition Warning FailedMount 7m55s kubelet Unable to attach or mount volumes: unmounted volumes=[pvc], unattached volumes=[secret client-secret pvc kube-api-access-xvpkn aws-iam-token config]: timed out waiting for the condition Warning FailedMount 5m52s (x2 over 14m) kubelet Unable to attach or mount volumes: unmounted volumes=[pvc], unattached volumes=[aws-iam-token config secret client-secret pvc kube-api-access-xvpkn]: timed out waiting for the condition Warning FailedMount 106s (x3 over 9m58s) kubelet Unable to attach or mount volumes: unmounted volumes=[pvc], unattached volumes=[config secret client-secret pvc kube-api-access-xvpkn aws-iam-token]: timed out waiting for the condition
Can anyone please help? I have verified the the secret csi driver is running on the karpenter node.
Version
Karpenter Version: v0.27.1
Kubernetes Version: v1.23.17
Expected Behavior
We run Karpenter on EKS and run deployment (pod + volume from configmap). Karpenter should create node, run pod and attach volume to the pod.
Actual Behavior
The kubelet can't attach volumes with kube-root-ca.crt and our own files in first attempt:
CNI plugin: v1.12.6-eksbuild.1 runtime: containerd amiFamily: Bottlerocket and AL2
Steps to Reproduce the Problem
Observe the pod status.
Resource Specs and Logs
Provisioner
Karpenter controller log:
Kubelet log:
Community Note