Skip to content
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

Dont call DeleteSnapshot when VS belong to VGS #1231

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

Madhu-1
Copy link
Contributor

@Madhu-1 Madhu-1 commented Dec 3, 2024

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change

/kind bug

/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:

Dont call the DeleteSnapshot RPC call when a snapshot is created as part of the VolumeGroupSnapshot.

Which issue(s) this PR fixes:

Fixes #1230

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

During VolumeGroupDeletion dont call the DeleteSnapshot RPC call when a snapshot belongs to a VolumeGroupSnapshot.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Dec 3, 2024
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 3, 2024
@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Dec 3, 2024

/hold for testing

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 3, 2024
@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Dec 3, 2024

E1203 15:25:56.411978       1 groupsnapshot_helper.go:732] checkandUpdateGroupSnapshotContentStatus [groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]: error occurred failed to take group snapshot of the volumes [0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67]: "rpc error: code = Internal desc = quiesce operation is in progress"
E1203 15:25:56.412002       1 groupsnapshot_helper.go:157] could not sync group snapshot content "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8": failed to take group snapshot of the volumes [0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67]: "rpc error: code = Internal desc = quiesce operation is in progress"
I1203 15:25:56.412026       1 groupsnapshot_helper.go:79] Failed to sync group snapshot content "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8", will retry again: failed to take group snapshot of the volumes [0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67]: "rpc error: code = Internal desc = quiesce operation is in progress"
I1203 15:25:56.412061       1 groupsnapshot_helper.go:90] syncGroupSnapshotContentByKey[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:56.412083       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92560
I1203 15:25:56.412093       1 groupsnapshot_helper.go:173] synchronizing VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:56.412100       1 groupsnapshot_helper.go:338] Check if VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] should be deleted.
I1203 15:25:56.412106       1 groupsnapshot_helper.go:728] checkandUpdateGroupSnapshotContentStatus[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] started
I1203 15:25:56.412132       1 groupsnapshot_helper.go:386] createGroupSnapshotWrapper: Creating group snapshot for group snapshot content groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8 through the plugin ...
I1203 15:25:56.412144       1 groupsnapshot_helper.go:465] getCSIGroupSnapshotInput for group snapshot content groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8
I1203 15:25:56.412150       1 groupsnapshot_helper.go:495] getGroupSnapshotClass: VolumeGroupSnapshotClassName [csi-cephfsplugin-groupsnapclass]
I1203 15:25:56.412322       1 event.go:377] Event(v1.ObjectReference{Kind:"VolumeGroupSnapshotContent", Namespace:"", Name:"groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8", UID:"d4f570c3-43fb-4bd9-9020-35aa60192e28", APIVersion:"groupsnapshot.storage.k8s.io/v1beta1", ResourceVersion:"92560", FieldPath:""}): type: 'Warning' reason: 'GroupSnapshotContentCheckandUpdateFailed' Failed to check and update group snapshot content: failed to take group snapshot of the volumes [0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67]: "rpc error: code = Internal desc = quiesce operation is in progress"
I1203 15:25:56.416539       1 groupsnapshot_helper.go:518] setAnnVolumeGroupSnapshotBeingCreated: set annotation [groupsnapshot.storage.kubernetes.io/volumegroupsnapshot-being-created:yes] on groupSnapshotContent [groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8].
I1203 15:25:56.435688       1 util.go:274] storeObjectUpdate updating content "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92562
I1203 15:25:56.435770       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:25:56.435778       1 groupsnapshot_helper.go:543] setAnnVolumeGroupSnapshotBeingCreated: volume group snapshot content &{TypeMeta:{Kind: APIVersion:} ObjectMeta:{Name:groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8 GenerateName: Namespace: SelfLink: UID:d4f570c3-43fb-4bd9-9020-35aa60192e28 ResourceVersion:92562 Generation:1 CreationTimestamp:2024-12-03 15:25:56 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[groupsnapshot.storage.kubernetes.io/deletion-secret-name:rook-csi-cephfs-provisioner groupsnapshot.storage.kubernetes.io/deletion-secret-namespace:rook-ceph groupsnapshot.storage.kubernetes.io/volumegroupsnapshot-being-created:yes] OwnerReferences:[] Finalizers:[groupsnapshot.storage.kubernetes.io/volumegroupsnapshotcontent-bound-protection] ManagedFields:[{Manager:csi-snapshotter Operation:Update APIVersion:groupsnapshot.storage.k8s.io/v1beta1 Time:2024-12-03 15:25:56 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:metadata":{"f:annotations":{"f:groupsnapshot.storage.kubernetes.io/volumegroupsnapshot-being-created":{}}}} Subresource:} {Manager:csi-snapshotter Operation:Update APIVersion:groupsnapshot.storage.k8s.io/v1beta1 Time:2024-12-03 15:25:56 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:status":{".":{},"f:error":{".":{},"f:message":{},"f:time":{}},"f:readyToUse":{}}} Subresource:status} {Manager:snapshot-controller Operation:Update APIVersion:groupsnapshot.storage.k8s.io/v1beta1 Time:2024-12-03 15:25:56 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:metadata":{"f:annotations":{".":{},"f:groupsnapshot.storage.kubernetes.io/deletion-secret-name":{},"f:groupsnapshot.storage.kubernetes.io/deletion-secret-namespace":{}},"f:finalizers":{".":{},"v:\"groupsnapshot.storage.kubernetes.io/volumegroupsnapshotcontent-bound-protection\"":{}}},"f:spec":{".":{},"f:deletionPolicy":{},"f:driver":{},"f:source":{".":{},"f:volumeHandles":{}},"f:volumeGroupSnapshotClassName":{},"f:volumeGroupSnapshotRef":{}}} Subresource:}]} Spec:{VolumeGroupSnapshotRef:{Kind:VolumeGroupSnapshot Namespace:default Name:my-group-snapshot-1 UID:67e159ee-e4d2-45d8-a5fe-64f292119da8 APIVersion:groupsnapshot.storage.k8s.io/v1beta1 ResourceVersion:92548 FieldPath:} DeletionPolicy:Delete Driver:rook-ceph.cephfs.csi.ceph.com VolumeGroupSnapshotClassName:0xc0005a2370 Source:{VolumeHandles:[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67] GroupSnapshotHandles:<nil>}} Status:0xc000988900}
I1203 15:25:56.436089       1 group_snapshotter.go:52] CSI CreateGroupSnapshot: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8
I1203 15:25:56.436386       1 connection.go:264] "GRPC call" method="/csi.v1.Identity/GetPluginInfo" request="{}"
I1203 15:25:56.439484       1 connection.go:270] "GRPC response" response="{\"name\":\"rook-ceph.cephfs.csi.ceph.com\",\"vendor_version\":\"canary\"}" err=null
I1203 15:25:56.439989       1 connection.go:264] "GRPC call" method="/csi.v1.GroupController/CreateVolumeGroupSnapshot" request="{\"name\":\"groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8\",\"parameters\":{\"clusterID\":\"rook-ceph\",\"csi.storage.k8s.io/volumegroupsnapshot/name\":\"my-group-snapshot-1\",\"csi.storage.k8s.io/volumegroupsnapshot/namespace\":\"default\",\"csi.storage.k8s.io/volumegroupsnapshotcontent/name\":\"groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8\",\"fsName\":\"myfs\"},\"secrets\":\"***stripped***\",\"source_volume_ids\":[\"0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67\"]}"
I1203 15:25:56.516662       1 connection.go:270] "GRPC response" response="{\"group_snapshot\":{\"creation_time\":{\"nanos\":515204126,\"seconds\":1733239556},\"group_snapshot_id\":\"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036\",\"ready_to_use\":true,\"snapshots\":[{\"creation_time\":{\"nanos\":339276000,\"seconds\":1733239556},\"group_snapshot_id\":\"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036\",\"ready_to_use\":true,\"size_bytes\":1073741824,\"snapshot_id\":\"0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22\",\"source_volume_id\":\"0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67\"}]}}" err=null
I1203 15:25:56.516692       1 group_snapshotter.go:72] CSI CreateGroupSnapshot: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 driver name [rook-ceph.cephfs.csi.ceph.com] group snapshot ID [0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036] time stamp [seconds:1733239556  nanos:515204126] snapshots [[size_bytes:1073741824  snapshot_id:"0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22"  source_volume_id:"0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67"  creation_time:{seconds:1733239556  nanos:339276000}  ready_to_use:true  group_snapshot_id:"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036"]] readyToUse [true]
I1203 15:25:56.516816       1 groupsnapshot_helper.go:431] Created group snapshot: driver rook-ceph.cephfs.csi.ceph.com, groupSnapshotId 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036, creationTime 2024-12-03 15:25:56.515204126 +0000 UTC, readyToUse true
I1203 15:25:56.516896       1 groupsnapshot_helper.go:584] updateGroupSnapshotContentStatus: updating VolumeGroupSnapshotContent [groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8], groupSnapshotHandle 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036, readyToUse true, createdAt 1733239556515204126
I1203 15:25:56.542326       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:25:56.556292       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:25:56.556600       1 groupsnapshot_helper.go:569] Removed VolumeGroupSnapshotBeingCreated annotation from volume group snapshot content groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8
I1203 15:25:56.556632       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92565
I1203 15:25:56.556642       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92565
I1203 15:25:56.556667       1 groupsnapshot_helper.go:90] syncGroupSnapshotContentByKey[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:56.556680       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92565
I1203 15:25:56.556688       1 groupsnapshot_helper.go:173] synchronizing VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:56.556693       1 groupsnapshot_helper.go:338] Check if VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] should be deleted.
I1203 15:25:57.066161       1 leaderelection.go:293] successfully renewed lease rook-ceph/external-snapshotter-leader-rook-ceph-cephfs-csi-ceph-com
I1203 15:25:57.235530       1 groupsnapshot_helper.go:90] syncGroupSnapshotContentByKey[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:57.235603       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92565
I1203 15:25:57.235622       1 groupsnapshot_helper.go:173] synchronizing VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:57.235630       1 groupsnapshot_helper.go:338] Check if VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] should be deleted.
I1203 15:25:57.341369       1 snapshot_controller_base.go:210] enqueued "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" for sync
I1203 15:25:57.341428       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:25:57.341445       1 util.go:246] storeObjectUpdate: adding content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af", version 92568
I1203 15:25:57.341460       1 snapshot_controller.go:59] synchronizing VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:25:57.341472       1 snapshot_controller.go:627] Check if VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] should be deleted.
I1203 15:25:57.341486       1 snapshot_controller.go:143] checkandUpdateContentStatus[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] started
I1203 15:25:57.341497       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92568
I1203 15:25:57.712232       1 snapshot_controller_base.go:210] enqueued "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" for sync
I1203 15:25:57.712266       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:25:57.712276       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92572
I1203 15:25:57.712283       1 snapshot_controller.go:59] synchronizing VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:25:57.712288       1 snapshot_controller.go:627] Check if VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] should be deleted.
I1203 15:25:57.712292       1 snapshot_controller.go:143] checkandUpdateContentStatus[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] started
I1203 15:25:57.712297       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92572
I1203 15:25:58.341745       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:25:58.341805       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92572
I1203 15:25:58.341821       1 snapshot_controller.go:59] synchronizing VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:25:58.341828       1 snapshot_controller.go:627] Check if VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] should be deleted.
I1203 15:25:58.341836       1 snapshot_controller.go:143] checkandUpdateContentStatus[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] started
I1203 15:25:58.341844       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92572
I1203 15:26:02.342107       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:02.342148       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92577
I1203 15:26:02.342179       1 snapshot_controller.go:59] synchronizing VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:02.342187       1 snapshot_controller.go:627] Check if VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] should be deleted.
I1203 15:26:02.342195       1 snapshot_controller.go:143] checkandUpdateContentStatus[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] started
I1203 15:26:02.342201       1 snapshot_controller.go:269] checkandUpdateContentStatusOperation: call GetSnapshotStatus for snapshot content [snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:02.342271       1 snapshotter.go:113] GetSnapshotStatus: 0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22
I1203 15:26:02.342369       1 connection.go:264] "GRPC call" method="/csi.v1.Controller/ControllerGetCapabilities" request="{}"
I1203 15:26:02.343454       1 connection.go:270] "GRPC response" response="{\"capabilities\":[{\"Type\":{\"Rpc\":{\"type\":1}}},{\"Type\":{\"Rpc\":{\"type\":5}}},{\"Type\":{\"Rpc\":{\"type\":9}}},{\"Type\":{\"Rpc\":{\"type\":7}}},{\"Type\":{\"Rpc\":{\"type\":13}}}]}" err=null
I1203 15:26:02.343488       1 snapshot_controller.go:306] checkandUpdateContentStatusOperation: driver rook-ceph.cephfs.csi.ceph.com, snapshotId 0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22, creationTime 0001-01-01 00:00:00 +0000 UTC, size 0, readyToUse true, groupSnapshotID 
I1203 15:26:02.343503       1 snapshot_controller.go:457] updateSnapshotContentStatus: updating VolumeSnapshotContent [snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af], snapshotHandle 0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22, readyToUse true, createdAt 1733239562343499558, size 0, groupSnapshotID 
I1203 15:26:02.362537       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92583
I1203 15:26:17.981336       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:26:17.981379       1 groupsnapshot_helper.go:90] syncGroupSnapshotContentByKey[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:17.981396       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92597
I1203 15:26:17.981405       1 groupsnapshot_helper.go:173] synchronizing VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:17.981412       1 groupsnapshot_helper.go:338] Check if VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] should be deleted.
I1203 15:26:17.992984       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:26:17.993056       1 groupsnapshot_helper.go:90] syncGroupSnapshotContentByKey[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:17.993069       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92598
I1203 15:26:17.993254       1 groupsnapshot_helper.go:173] synchronizing VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:17.993293       1 groupsnapshot_helper.go:338] Check if VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] should be deleted.
I1203 15:26:17.993329       1 groupsnapshot_helper.go:176] VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]: the policy is Delete
I1203 15:26:17.993345       1 groupsnapshot_helper.go:241] deleteCSIGroupSnapshotOperation [groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] started
I1203 15:26:17.995607       1 connection.go:264] "GRPC call" method="/csi.v1.GroupController/DeleteVolumeGroupSnapshot" request="{\"group_snapshot_id\":\"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036\",\"secrets\":\"***stripped***\",\"snapshot_ids\":[\"0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22\"]}"
I1203 15:26:18.148089       1 connection.go:270] "GRPC response" response="{}" err=null
I1203 15:26:18.148174       1 groupsnapshot_helper.go:286] clearGroupSnapshotContentStatus content [groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:18.165409       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:26:18.165654       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92602
I1203 15:26:18.165733       1 groupsnapshot_helper.go:173] synchronizing VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:18.165751       1 groupsnapshot_helper.go:338] Check if VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8] should be deleted.
I1203 15:26:18.165765       1 groupsnapshot_helper.go:176] VolumeGroupSnapshotContent[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]: the policy is Delete
I1203 15:26:18.178052       1 groupsnapshot_helper.go:61] enqueued "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" for sync
I1203 15:26:18.178161       1 groupsnapshot_helper.go:231] Removed protection finalizer from volume group snapshot content groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8
I1203 15:26:18.178300       1 util.go:274] storeObjectUpdate updating groupsnapshotcontent "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" with version 92602
I1203 15:26:18.178413       1 groupsnapshot_helper.go:90] syncGroupSnapshotContentByKey[groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:18.178443       1 groupsnapshot_helper.go:168] group snapshot content "groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8" deleted
I1203 15:26:19.016031       1 snapshot_controller_base.go:210] enqueued "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" for sync
I1203 15:26:19.016088       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:19.016107       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92605
I1203 15:26:19.016121       1 snapshot_controller.go:59] synchronizing VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:19.016144       1 snapshot_controller.go:627] Check if VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] should be deleted.
I1203 15:26:19.026446       1 snapshot_controller_base.go:210] enqueued "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" for sync
I1203 15:26:19.026492       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:19.026508       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92606
I1203 15:26:19.026522       1 snapshot_controller.go:59] synchronizing VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:19.026530       1 snapshot_controller.go:627] Check if VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af] should be deleted.
I1203 15:26:19.026540       1 snapshot_controller.go:62] VolumeSnapshotContent[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]: the policy is Delete
I1203 15:26:19.041529       1 snapshot_controller_base.go:210] enqueued "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" for sync
I1203 15:26:19.041549       1 snapshot_controller.go:616] Removed protection finalizer from volume snapshot content snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af
I1203 15:26:19.041760       1 util.go:274] storeObjectUpdate updating content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" with version 92606
I1203 15:26:19.041855       1 snapshot_controller_base.go:251] syncContentByKey[snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af]
I1203 15:26:19.041898       1 snapshot_controller_base.go:371] content "snapcontent-c3507d67bc7d6707e496e0acb7d6ff597a391c16d292e7448ff9b49c41c3a3af" deleted

Driver

I1203 15:25:56.134798       1 utils.go:273] ID: 20 GRPC response: {"name":"rook-ceph.cephfs.csi.ceph.com","vendor_version":"canary"}
I1203 15:25:56.141965       1 utils.go:266] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC call: /csi.v1.GroupController/CreateVolumeGroupSnapshot
I1203 15:25:56.142278       1 utils.go:267] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC request: {"name":"groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8","parameters":{"clusterID":"rook-ceph","csi.storage.k8s.io/volumegroupsnapshot/name":"my-group-snapshot-1","csi.storage.k8s.io/volumegroupsnapshot/namespace":"default","csi.storage.k8s.io/volumegroupsnapshotcontent/name":"groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8","fsName":"myfs"},"secrets":"***stripped***","source_volume_ids":["0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67"]}
I1203 15:25:56.145856       1 omap.go:89] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.groups.default"): map[]
I1203 15:25:56.149098       1 omap.go:89] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.04af1666-3a32-4a0f-9865-f807b9fd1e67"): map[csi.imagename:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.volname:pvc-09d38a93-6a24-492b-87bd-3d35f0f1418e csi.volume.owner:default]
I1203 15:25:56.182668       1 omap.go:159] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 set omap keys (pool="myfs-metadata", namespace="csi", name="csi.groups.default"): map[csi.volume.group.groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8:fd25e257-ae20-4614-a0c1-71d41c5ec036])
I1203 15:25:56.189796       1 omap.go:159] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 set omap keys (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[csi.creationtime:2024-12-03T15:25:56.182692524Z csi.groupname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036 csi.volname:groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8])
I1203 15:25:56.189944       1 volumegroup.go:264] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 Generated volume group snapshot ID (0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036) for request name (groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8)
I1203 15:25:56.190023       1 quiesce.go:158] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 FSQuiesce for reserveName groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8: members:[csi/csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67] options:&{180 180 0 false 0 false false false false false false false}
E1203 15:25:56.213850       1 utils.go:271] ID: 21 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC error: rpc error: code = Internal desc = Quiesce operation is in progress
I1203 15:25:56.257385       1 utils.go:266] ID: 22 GRPC call: /csi.v1.Identity/GetPluginInfo
I1203 15:25:56.257451       1 utils.go:267] ID: 22 GRPC request: {}
I1203 15:25:56.257467       1 identityserver-default.go:40] ID: 22 Using default GetPluginInfo
I1203 15:25:56.257493       1 utils.go:273] ID: 22 GRPC response: {"name":"rook-ceph.cephfs.csi.ceph.com","vendor_version":"canary"}
I1203 15:25:56.258040       1 utils.go:266] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC call: /csi.v1.GroupController/CreateVolumeGroupSnapshot
I1203 15:25:56.258097       1 utils.go:267] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC request: {"name":"groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8","parameters":{"clusterID":"rook-ceph","csi.storage.k8s.io/volumegroupsnapshot/name":"my-group-snapshot-1","csi.storage.k8s.io/volumegroupsnapshot/namespace":"default","csi.storage.k8s.io/volumegroupsnapshotcontent/name":"groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8","fsName":"myfs"},"secrets":"***stripped***","source_volume_ids":["0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67"]}
I1203 15:25:56.260752       1 omap.go:89] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.groups.default"): map[csi.volume.group.groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8:fd25e257-ae20-4614-a0c1-71d41c5ec036]
I1203 15:25:56.261501       1 omap.go:221] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[csi.creationtime:2024-12-03T15:25:56.182692524Z csi.groupname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036 csi.volname:groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:56.261530       1 volumegroup.go:224] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 Found existing volume group snapshot (groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8) with UUID (fd25e257-ae20-4614-a0c1-71d41c5ec036) for request (groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8) and mapping map[]
I1203 15:25:56.263607       1 omap.go:89] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.04af1666-3a32-4a0f-9865-f807b9fd1e67"): map[csi.imagename:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.volname:pvc-09d38a93-6a24-492b-87bd-3d35f0f1418e csi.volume.owner:default]
I1203 15:25:56.273592       1 quiesce.go:158] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 FSQuiesce for reserveName groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8: members:[csi/csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67] options:&{180 180 0 false 0 false false false false false false false}
I1203 15:25:56.279406       1 quiesce.go:183] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 FSQuiesceWithExpireTimeout for reserveName groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8: members:[csi/csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67] options:&{180 180 0 false 0 false false false false false false false}
I1203 15:25:56.290927       1 omap.go:89] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.04af1666-3a32-4a0f-9865-f807b9fd1e67"): map[csi.imagename:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.volname:pvc-09d38a93-6a24-492b-87bd-3d35f0f1418e csi.volume.owner:default]
I1203 15:25:56.299329       1 omap.go:89] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.snaps.default"): map[]
I1203 15:25:56.323686       1 omap.go:159] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 set omap keys (pool="myfs-metadata", namespace="csi", name="csi.snaps.default"): map[csi.snap.csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:a3ae1b8d-c0ec-4936-a767-01a539292c22])
I1203 15:25:56.329563       1 omap.go:159] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 set omap keys (pool="myfs-metadata", namespace="csi", name="csi.snap.a3ae1b8d-c0ec-4936-a767-01a539292c22"): map[:default csi.imagename:csi-snap-a3ae1b8d-c0ec-4936-a767-01a539292c22 csi.snapname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.source:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67])
I1203 15:25:56.329594       1 fsjournal.go:363] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 Generated Snapshot ID (0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22) for request name (csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67)
I1203 15:25:56.383138       1 omap.go:159] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 set omap keys (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22])
I1203 15:25:56.383185       1 quiesce.go:235] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 ReleaseFSQuiesce for reserveName groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8: members:[csi/csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67] options:&{0 0 0 false 0 false false false true false false false}
E1203 15:25:56.389459       1 groupcontrollerserver.go:352] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 failed to release filesystem quiesce: quiesce operation is in progress
E1203 15:25:56.389488       1 groupcontrollerserver.go:160] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 failed to create snapshot and add to volume group journal: quiesce operation is in progress
E1203 15:25:56.389546       1 utils.go:271] ID: 23 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC error: rpc error: code = Internal desc = quiesce operation is in progress
I1203 15:25:56.437994       1 utils.go:266] ID: 24 GRPC call: /csi.v1.Identity/GetPluginInfo
I1203 15:25:56.438151       1 utils.go:267] ID: 24 GRPC request: {}
I1203 15:25:56.438174       1 identityserver-default.go:40] ID: 24 Using default GetPluginInfo
I1203 15:25:56.438451       1 utils.go:273] ID: 24 GRPC response: {"name":"rook-ceph.cephfs.csi.ceph.com","vendor_version":"canary"}
I1203 15:25:56.440963       1 utils.go:266] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC call: /csi.v1.GroupController/CreateVolumeGroupSnapshot
I1203 15:25:56.441213       1 utils.go:267] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC request: {"name":"groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8","parameters":{"clusterID":"rook-ceph","csi.storage.k8s.io/volumegroupsnapshot/name":"my-group-snapshot-1","csi.storage.k8s.io/volumegroupsnapshot/namespace":"default","csi.storage.k8s.io/volumegroupsnapshotcontent/name":"groupsnapcontent-67e159ee-e4d2-45d8-a5fe-64f292119da8","fsName":"myfs"},"secrets":"***stripped***","source_volume_ids":["0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67"]}
I1203 15:25:56.445045       1 omap.go:89] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.groups.default"): map[csi.volume.group.groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8:fd25e257-ae20-4614-a0c1-71d41c5ec036]
I1203 15:25:56.445743       1 omap.go:221] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22 csi.creationtime:2024-12-03T15:25:56.182692524Z csi.groupname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036 csi.volname:groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:25:56.445776       1 volumegroup.go:224] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 Found existing volume group snapshot (groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8) with UUID (fd25e257-ae20-4614-a0c1-71d41c5ec036) for request (groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8) and mapping map[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22]
I1203 15:25:56.447925       1 omap.go:89] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.04af1666-3a32-4a0f-9865-f807b9fd1e67"): map[csi.imagename:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.volname:pvc-09d38a93-6a24-492b-87bd-3d35f0f1418e csi.volume.owner:default]
I1203 15:25:56.459324       1 quiesce.go:235] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 ReleaseFSQuiesce for reserveName groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8: members:[csi/csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67] options:&{0 0 0 false 0 false false false true false false false}
I1203 15:25:56.465915       1 omap.go:89] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.04af1666-3a32-4a0f-9865-f807b9fd1e67"): map[csi.imagename:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.volname:pvc-09d38a93-6a24-492b-87bd-3d35f0f1418e csi.volume.owner:default]
I1203 15:25:56.478683       1 omap.go:89] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.snaps.default"): map[csi.snap.csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:a3ae1b8d-c0ec-4936-a767-01a539292c22]
I1203 15:25:56.479367       1 omap.go:89] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.snap.a3ae1b8d-c0ec-4936-a767-01a539292c22"): map[csi.imagename:csi-snap-a3ae1b8d-c0ec-4936-a767-01a539292c22 csi.snapname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.source:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67]
I1203 15:25:56.494841       1 fsjournal.go:468] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 Found existing snapshot (csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67) with subvolume name (csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67) for request (csi-snap-a3ae1b8d-c0ec-4936-a767-01a539292c22)
I1203 15:25:56.515159       1 omap.go:159] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 set omap keys (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22])
I1203 15:25:56.515872       1 utils.go:273] ID: 25 Req-ID: groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8 GRPC response: {"group_snapshot":{"creation_time":{"nanos":515204126,"seconds":1733239556},"group_snapshot_id":"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036","ready_to_use":true,"snapshots":[{"creation_time":{"nanos":339276000,"seconds":1733239556},"group_snapshot_id":"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036","ready_to_use":true,"size_bytes":1073741824,"snapshot_id":"0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22","source_volume_id":"0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67"}]}}
I1203 15:26:02.342805       1 utils.go:266] ID: 26 GRPC call: /csi.v1.Controller/ControllerGetCapabilities
I1203 15:26:02.342850       1 utils.go:267] ID: 26 GRPC request: {}
I1203 15:26:02.342870       1 controllerserver-default.go:42] ID: 26 Using default ControllerGetCapabilities
I1203 15:26:02.343050       1 utils.go:273] ID: 26 GRPC response: {"capabilities":[{"Type":{"Rpc":{"type":1}}},{"Type":{"Rpc":{"type":5}}},{"Type":{"Rpc":{"type":9}}},{"Type":{"Rpc":{"type":7}}},{"Type":{"Rpc":{"type":13}}}]}
I1203 15:26:17.996574       1 utils.go:266] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 GRPC call: /csi.v1.GroupController/DeleteVolumeGroupSnapshot
I1203 15:26:17.996761       1 utils.go:267] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 GRPC request: {"group_snapshot_id":"0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036","secrets":"***stripped***","snapshot_ids":["0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22"]}
I1203 15:26:18.000393       1 omap.go:221] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22 csi.creationtime:2024-12-03T15:25:56.182692524Z csi.groupname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036 csi.volname:groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:18.008520       1 omap.go:89] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.04af1666-3a32-4a0f-9865-f807b9fd1e67"): map[csi.imagename:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.volname:pvc-09d38a93-6a24-492b-87bd-3d35f0f1418e csi.volume.owner:default]
I1203 15:26:18.023986       1 omap.go:221] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): map[0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67:0001-0009-rook-ceph-0000000000000001-a3ae1b8d-c0ec-4936-a767-01a539292c22 csi.creationtime:2024-12-03T15:25:56.182692524Z csi.groupname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036 csi.volname:groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:18.026105       1 omap.go:89] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 got omap values: (pool="myfs-metadata", namespace="csi", name="csi.snap.a3ae1b8d-c0ec-4936-a767-01a539292c22"): map[csi.imagename:csi-snap-a3ae1b8d-c0ec-4936-a767-01a539292c22 csi.snapname:csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67 csi.source:csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67]
I1203 15:26:18.113541       1 omap.go:126] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 removed omap keys (pool="myfs-metadata", namespace="csi", name="csi.snaps.default"): [csi.snap.csi-vol-group-fd25e257-ae20-4614-a0c1-71d41c5ec036-0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67]
I1203 15:26:18.120288       1 omap.go:126] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 removed omap keys (pool="myfs-metadata", namespace="csi", name="csi.volume.group.fd25e257-ae20-4614-a0c1-71d41c5ec036"): [0001-0009-rook-ceph-0000000000000001-04af1666-3a32-4a0f-9865-f807b9fd1e67]
I1203 15:26:18.135587       1 omap.go:126] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 removed omap keys (pool="myfs-metadata", namespace="csi", name="csi.groups.default"): [csi.volume.group.groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8]
I1203 15:26:18.135776       1 quiesce.go:211] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 ResetFSQuiesce for reserveName groupsnapshot-67e159ee-e4d2-45d8-a5fe-64f292119da8: members:[csi/csi-vol-04af1666-3a32-4a0f-9865-f807b9fd1e67] options:&{180 180 0 false 0 false false true false false false false}
I1203 15:26:18.147676       1 utils.go:273] ID: 27 Req-ID: 0001-0009-rook-ceph-0000000000000001-fd25e257-ae20-4614-a0c1-71d41c5ec036 GRPC response: {}

@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Dec 3, 2024

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 3, 2024
@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Dec 3, 2024

/assign @xing-yang @jsafrane

@@ -61,7 +61,7 @@ func (ctrl *csiSnapshotSideCarController) syncContent(content *crdv1.VolumeSnaps
if ctrl.shouldDelete(content) {
klog.V(4).Infof("VolumeSnapshotContent[%s]: the policy is %s", content.Name, content.Spec.DeletionPolicy)
if content.Spec.DeletionPolicy == crdv1.VolumeSnapshotContentDelete &&
content.Status != nil && content.Status.SnapshotHandle != nil {
content.Status != nil && content.Status.SnapshotHandle != nil && content.Status.VolumeGroupSnapshotHandle == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need some tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added extra test case to ensure no RPC call is made when VolumeGroupSnapshotHandle is set on the content

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 4, 2024
@Madhu-1 Madhu-1 force-pushed the fix-1230 branch 2 times, most recently from edf77b6 to fd45362 Compare December 4, 2024 07:03
Dont call the DeleteSnapshot RPC call when a snapshot
is created as part of the VolumeGroupSnapshot.
for _, c := range content {
c.Status.VolumeGroupSnapshotHandle = &volumeGroupSnapshotHandle
}
return content
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I personally do not like functions that take this many parmaeters. There are better ways of doing this. Such as - using the builder pattern or using parameter types.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gnufied Yes i agree that this is going to make the life harder (read/maintain) but that required more work outside the scope of this PR as lot of cleanup is required in this file, is it accepted to do this cleanup as a followup?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you file an issue for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed one here #1232

@gnufied
Copy link
Contributor

gnufied commented Dec 4, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 4, 2024
@xing-yang
Copy link
Collaborator

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Madhu-1, xing-yang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 4, 2024
@k8s-ci-robot k8s-ci-robot merged commit bcb30a7 into kubernetes-csi:master Dec 4, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deletion of VolumeGroupSnapshot leads to DeleteSnapshot CSI call
5 participants