PersistentVolumeClaim : Unable to attach or mount volumes: unmounted volumes #5828
Unanswered
khine-shwezin
asked this question in
Operations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SUMMARY
"Unable to attach or mount volumes" error when adding persistentVolumeClaim config.
STACKSTORM VERSION
ST2 3.8
OS, environment, install method
OS: MacOS Monterey , v12.6
minikube version: v1.28.0
Docker Mac Desktop > Minikube > ST2 v 3.8
Steps to reproduce the problem
updated in Chart.yaml for PVC.
Expected Results
ST2 should be launched and PVC is successful.
Actual Results
POD fails with error in log as 'Unable to attach or mount volumes: unmounted volumes.'
Log output from running [ % kubectl describe pods {POD_ID}]
...
st2-packs-vol:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: task-pv-claim
ReadOnly: false
st2-virtualenvs-vol:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: task-pv-claim
ReadOnly: false
st2-pack-configs-vol:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: task-pv-claim
ReadOnly: false
st2-config-vol st2-encryption-key-vol st2-packs-vol st2-virtualenvs-vol st2-pack-configs-vol st2-pack-configs-from-helm-vol]: timed out waiting for the condition
Warning FailedMount 8m46s kubelet Unable to attach or mount volumes: unmounted volumes=[st2-packs-vol st2-virtualenvs-vol], unattached volumes=[st2-config-vol st2-encryption-key-vol st2-packs-vol st2-virtualenvs-vol st2-pack-configs-vol st2-pack-configs-from-helm-vol kube-api-access-4z]: timed out waiting for the condition
Warning FailedMount 4m11s kubelet Unable to attach or mount volumes: unmounted volumes=[st2-packs-vol st2-virtualenvs-vol], unattached volumes=[st2-pack-configs-from-helm-vol kube-api-access-4z st2-config-vol st2-encryption-key-vol st2-packs-vol st2-virtualenvs-vol st2-pack-configs-vol]: timed out waiting for the condition
Warning FailedMount 114s (x2 over 6m29s) kubelet Unable to attach or mount volumes: unmounted volumes=[st2-packs-vol st2-virtualenvs-vol], unattached volumes=[st2-encryption-key-vol st2-packs-vol st2-virtualenvs-vol st2-pack-configs-vol st2-pack-configs-from-helm-vol kube-api-access-4z st2-config-vol]: timed out waiting for the condition
% kubectl get pv task-pv-volume
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
task-pv-volume 10Gi RWO Retain Bound default/task-pv-claim manual 107m
What else do we need to check?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions