Closed jsalatiel closed 2 months ago
Hi @jsalatiel , Thanks for raising the issue. Could you please share us logs of lvm csi controller container from openebs-lvm-controller-0
pod and lvm csi node pod which runs on node0
Is this still reproducible?
I do not have access to that cluster anymore, but I have created a new single node cluster and could easily reproduce:
Here are the logs for the controller and the csi-snapshotter container.
How to solve
@jsalatiel Please check if you have dm_snapshot
module loaded in your kernel.
lsmod | grep dm_snapshot
If not, please install it by doing modprobe
and retry.
Create snapshot, it's not ReadyToUse
$ kubectl get vs
NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
dslvm-snap false csi-lvmpv-ds 0 lvmpv-snapclass snapcontent-46f801a2-2bc4-4748-9936-670994cf67f4 10s 10s
Install dm_snapshot
module
$ sudo modprobe dm_snapshot
Check volume snapshot again
$ kubectl get vs
NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
dslvm-snap true csi-lvmpv-ds 0 lvmpv-snapclass snapcontent-46f801a2-2bc4-4748-9936-670994cf67f4 40s 40s
Closing as per above comment. Please feel free to reopen if still facing any issue.
@Abhinandan-Purkait @abhilashshetty04 Shall we mention above module requirement as part of documentation?
Ok I just noticed it's already mentioned in documentation under Prerequisites
section.
What steps did you take and what happened: [A clear and concise description of what the bug is, and what commands you ran.] Can't create a valid snapshot from a openebs-lvm pvc. The volumesnapshot never gets READYTOUSE=true
What did you expect to happen: Snapshot should be created and available for use
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.] Installed like this: ( note the --set lvm-localpv.crd.volumeSnapshot=False because I already have those crds installed for longhorn)
storageclass like this:
Snapshot class like this:
VolumeSnapshot like this:
The logs only shows this:
The VolumeSnapshot and VolumeSnapshotContent are forever like this:
Environment:
kubectl version
): v1.26.5/etc/os-release
): almalinux 9.2