Open jmccormick2001 opened 2 months ago
Can you provide "kubectl get volumegroupsnapshotcontent statically-created-content -o yaml"?
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshotContent
metadata:
annotations:
groupsnapshot.storage.kubernetes.io/deletion-secret-name: infinibox-creds
groupsnapshot.storage.kubernetes.io/deletion-secret-namespace: infinidat-csi
creationTimestamp: "2024-09-06T20:13:27Z"
generation: 1
name: statically-created-content
resourceVersion: "1041007"
uid: d117dc6b-e84a-4ae5-887a-7a893b750ddc
spec:
deletionPolicy: Delete
driver: infinibox-csi-driver
source:
groupSnapshotHandles:
volumeGroupSnapshotHandle: "138869243"
volumeSnapshotHandles:
- 138869241$$iscsi
volumeGroupSnapshotClassName: infinibox-groupsnapclass
volumeGroupSnapshotRef:
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshot
name: mygroup-groupsnapshot-static
namespace: infinidat-csi
status:
creationTime: 1725653607991052659
readyToUse: true
volumeGroupSnapshotHandle: "138869243"
Who set the Status of VolumeGroupSnapshotContent? Is it by the Group Snapshot Controller or did you have some other controller logic that did it? Since the status is already "readyToUse", it seems that VolumeGroupSnapshot mygroup-groupsnapshot-static
already exists?
Please provide logs from snapshot-controller and csi-snapshotter.
let me verify that I'm attempting this in the right sequence: Here is what I'm trying:
Is this the correct sequence I should follow? just want to confirm this is the sequence. I'll send logs on Monday. I 'think' the status is getting set by the snapshot-controller but can verify with the logs.
snapshot controller and side car logs attached. snapshot-controller.log snapshotter.log
@yati1998 and I tested static provisioning with #1184 applied (currently merged in the master branch), and with that we can statically provision a VolumeGroupSnapshotContent and bind it with a VolumeGroupSnapshot without validation errors.
Here are the steps to be followed:
What happened:
I'm creating a static provisioning test for a VolumeGroupSnapshot, I'm getting errors when I create the VolumeGroupSnapshot when it refers to a statically provisioned VolumeGroupSnapshotContent. The error on the VolumeGroupSnapshot is as follows:
I was able to create the VolumeGroupSnapshotContent as folllows:
I tried creating the VolumeGroupSnapshotContent without the volumeGroupSnapshotRef but it will not let me, it gives this error:
What you expected to happen:
I expected the VolumeGroupSnapshot to create as normal, binding to the VolumeGroupSnapshotContent.
How to reproduce it:
Static provision a VolumeGroupSnapshotContent, then try to create a VolumeGroupSnapshot based on that content.
Anything else we need to know?:
Environment:
kubectl version
): 1.30uname -a
):