Open chase1124 opened 4 months ago
Hey @chase1124, I see this:
I0301 14:51:05.211644 1 mount.go:194] lvm : already mounted vg-microk8s-storage/pvc-13a5885b-e7ed-48fe-bf2d-97b172ff20b3 => /var/snap/microk8s/common/var/lib/kubelet/pods/5559c4f0-12a6-444f-bd90-d87f1ee65876/volumes/kubernetes.io~csi/pvc-13a5885b-e7ed-48fe-bf2d-97b172ff20b3/mount
Can you check by any chance you are trying to use same volume for two different pods ? if you want shared volume you have to give shared: yes
in storage class parameter
What steps did you take and what happened: [A clear and concise description of what the bug is, and what commands you ran.] Create container using lvm storage class, container doesn't start. Am using fsGroup and see warning but otherwise not sure what's going on here.
What did you expect to happen: container successfully created.
The output of the following commands will help us better understand what's going on: (Pasting long output into a GitHub gist or other Pastebin is fine.)
kubectl logs -f openebs--lvm-controller-0 -n kube-system -c openebs-lvm-plugin
kubectl logs -f openebs-lvm-node-[xxxx] -n kube-system -c openebs-lvm-plugin
kubectl get pods -n kube-system
kubectl get lvmvol -A -o yaml
https://pastebin.com/9BypAhdR
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Container:
PVC:
Container describe:
Environment:
kubectl version
): Client Version: v1.28.7 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.28.7/etc/os-release
): Ubuntu 23.10