Open xing-yang opened 2 days ago
Can you please re-verify this? I have faces this error earlier but later saw that it was some rbac issue. We need to check if proper rbacs are used.
I was able to create and delete the snapshots properly with latest branch including beta pr and webhook changes
yati@dhcp53-199:~/csi-driver-host-path/examples$ kubectl get volumegroupsnapshot
NAME READYTOUSE VOLUMEGROUPSNAPSHOTCLASS VOLUMEGROUPSNAPSHOTCONTENT CREATIONTIME AGE
new-groupsnapshot-testmaster true csi-hostpath-groupsnapclass groupsnapcontent-ea2dc037-0b24-48be-b748-1c481003b2d1 11s 12s
yati@dhcp53-199:~/csi-driver-host-path/examples$ kubectl get volumegroupsnapshotcontent
NAME READYTOUSE DELETIONPOLICY DRIVER VOLUMEGROUPSNAPSHOTCLASS VOLUMEGROUPSNAPSHOTNAMESPACE VOLUMEGROUPSNAPSHOT AGE
groupsnapcontent-ea2dc037-0b24-48be-b748-1c481003b2d1 true Delete hostpath.csi.k8s.io csi-hostpath-groupsnapclass default new-groupsnapshot-testmaster 17s
yati@dhcp53-199:~/csi-driver-host-path/examples$ kubectl get volumesnapshot
NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
snapshot-a6ddfaedc4af87a109c36f2c2c08b7c9a00e4d8a1fc14fd3649865d255ed8b13 true csi-pvc-testmaster 1Gi snapcontent-a6ddfaedc4af87a109c36f2c2c08b7c9a00e4d8a1fc14fd3649865d255ed8b13 29s 29s
yati@dhcp53-199:~/csi-driver-host-path/examples$ kubectl get volumesnapshotcontent
NAME READYTOUSE RESTORESIZE DELETIONPOLICY DRIVER VOLUMESNAPSHOTCLASS VOLUMESNAPSHOT VOLUMESNAPSHOTNAMESPACE AGE
snapcontent-a6ddfaedc4af87a109c36f2c2c08b7c9a00e4d8a1fc14fd3649865d255ed8b13 true 1073741824 Delete hostpath.csi.k8s.io snapshot-a6ddfaedc4af87a109c36f2c2c08b7c9a00e4d8a1fc14fd3649865d255ed8b13 default 35s
yati@dhcp53-199:~/csi-driver-host-path/examples$ kubectl get volumegroupsnapshot -oyaml
apiVersion: v1
items:
- apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshot
metadata:
creationTimestamp: "2024-11-21T07:30:27Z"
generation: 1
name: static-vg
namespace: default
resourceVersion: "13042"
uid: 86088ef8-3c7e-40ff-9c18-e46803443c10
spec:
source:
volumeGroupSnapshotContentName: static-vgs
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass
status:
boundVolumeGroupSnapshotContentName: static-vgs
creationTime: "2024-11-21T07:23:53Z"
readyToUse: true
kind: List
result for static provisioning as well
@yati1998 A more detailed bug is opened here: https://github.com/kubernetes-csi/external-snapshotter/issues/1203
What happened: The following error was encountered when creating a VolumeGroupSnapshot.
More details here: https://gist.githubusercontent.com/gnufied/98adc0d974f4ba7222314d48f42b3ae5/raw/46118872bbb1c65864811ba7c88f60352e761989/gistfile1.txt
What you expected to happen:
How to reproduce it:
Anything else we need to know?:
Environment:
kubectl version
):uname -a
):