-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VolumeGroupSnapshot static provisioning not working #1153
Comments
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 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. |
Here are the steps to be followed:
|
How are individual VolumeSnapshots handled in this case? |
Each snapshot if deleted has to be created with source as volumesnapshotcontent cc @nixpanic |
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
):The text was updated successfully, but these errors were encountered: