openebs / lvm-localpv

Dynamically provision Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is integrated with a backend LVM2 data storage stack.
Apache License 2.0
245 stars 92 forks source link

cannot mount pvc #219

Closed th-2021 closed 12 months ago

th-2021 commented 1 year ago

What steps did you take and what happened: [A clear and concise description of what the bug is, and what commands you ran.] Setup from README. Used with minio. Containers stays in ContainerCreating kubectl get events shows:

thiller@tom-ml351:~/WORK$ kubectl -n gitlab get events
LAST SEEN   TYPE      REASON        OBJECT                    MESSAGE
3m54s       Warning   FailedMount   pod/gitlab-ml351-ss-0-0   MountVolume.SetUp failed for volume "pvc-3612c5f5-139f-4169-b577-e71e588181fb" : applyFSGroup failed for vol pvc-3612c5f5-139f-4169-b577-e71e588181fb: lstat /var/snap/microk8s/common/var/lib/kubelet/pods/6931a557-8030-4467-8470-83dcbbb692bb/volumes/kubernetes.io~csi/pvc-3612c5f5-139f-4169-b577-e71e588181fb/mount: no such file or directory

When I create the mount directory manually, the pod continues and enters Running.

What did you expect to happen: mounting should work without intervention.

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.)

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

abhilashshetty04 commented 12 months ago

@th-2021 Are you still facing the issue? We cant find any logs in the links that you provided. If issue persists, Can you upload logs again?

th-2021 commented 12 months ago

I solved it by starting over.