Skip to content

Conversation

@iPraveenParihar
Copy link
Contributor

Describe what this PR does

  • rbd: add rbdSnap.Delete() function
    This function deletes rbd snap and rbd image
    backing k8s snapshot.
    The same function is used for deleting
    individual snapshots in group snapshot.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

@iPraveenParihar iPraveenParihar mentioned this pull request Dec 4, 2024
6 tasks
@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from 35bcc53 to edc9bb2 Compare December 4, 2024 05:55
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e-helm/k8s-1.31

1 similar comment
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e-helm/k8s-1.31

validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, volumesType)
validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, snapsType)
validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, groupSnapsType)

Copy link
Collaborator

Choose a reason for hiding this comment

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

add a validation of no images in the pool itself. validateRBDImageCount

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from 3ae9abb to 9b76924 Compare December 4, 2024 08:08
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar
Copy link
Contributor Author

iPraveenParihar commented Dec 4, 2024

failed ci logs

  I1204 09:58:16.710898       1 rbd_util.go:1506] ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 rbd: snap rm replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789
  I1204 09:58:16.713026       1 group_snapshot.go:98] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c resolved snapshot id "0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-728c142a-3231-428b-9429-884ff3ce40e6" to snapshot "replicapool/csi-snap-728c142a-3231-428b-9429-884ff3ce40e6@csi-snap-728c142a-3231-428b-9429-884ff3ce40e6"
  I1204 09:58:16.714216       1 omap.go:89] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c got omap values: (pool="replicapool", namespace="", name="csi.snap.8c1a0986-5ba1-4111-bcbb-5faac931bc14"): map[csi.groupid:0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c csi.imageid:22c224ead8e6 csi.imagename:csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14 csi.snapname:csi-vol-group-061ff308-e2a7-4ca8-b3a3-2ebeff75bea7-snap-1 csi.source:csi-vol-652e01f5-cf8e-4db8-9f99-a861be116889 csi.volume.owner:rbd-2737]
  I1204 09:58:16.741070       1 group_snapshot.go:98] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c resolved snapshot id "0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14" to snapshot "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14"
  I1204 09:58:16.741107       1 group_snapshot.go:108] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c GetVolumeGroupSnapshot(0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c) returns {commonVolumeGroup:{id:0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c requestName:groupsnapshot-f47d779b-02c7-4513-8ff1-a912bd77fee8 name:csi-vol-group-5c1fbbd1-bc0a-415a-974e-a0cb1292261c creationTime:0xc000a8cd20 clusterID:63946011-0514-45b3-ac2c-f0a3ddf7967d objectUUID:5c1fbbd1-bc0a-415a-974e-a0cb1292261c credentials:0xc0007919c0 conn:<nil> ioctx:<nil> monitors:rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789 pool:replicapool namespace: csiDriver:default journal:0xc000a1ef60} snapshots:[0xc000877200 0xc0001c4600 0xc000bc6000] snapshotsToFree:[0xc000877200 0xc0001c4600 0xc000bc6000]}
  I1204 09:58:16.741133       1 group_snapshot.go:231] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c deleting snapshot image "replicapool/csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5@csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5" for volume group snapshot "replicapool/csi-vol-group-5c1fbbd1-bc0a-415a-974e-a0cb1292261c"
  I1204 09:58:16.741186       1 rbd_util.go:1506] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: snap rm replicapool/csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5@csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789
  I1204 09:58:17.734862       1 rbd_util.go:653] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: delete csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789, pool replicapool
  I1204 09:58:17.735076       1 rbd_util.go:653] ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 rbd: delete csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789, pool replicapool
  I1204 09:58:17.762222       1 rbd_util.go:695] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: adding task to remove image "replicapool/csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5" with id "22c23db22227" from trash
  I1204 09:58:17.764649       1 rbd_util.go:695] ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 rbd: adding task to remove image "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14" with id "22c224ead8e6" from trash
  I1204 09:58:17.768331       1 rbd_util.go:719] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: successfully added task to move image "replicapool/csi-snap-9358d356-480a-458f-9728-e80a9f3ee8a5" with id "22c23db22227" to trash
  I1204 09:58:17.768369       1 group_snapshot.go:231] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c deleting snapshot image "replicapool/csi-snap-728c142a-3231-428b-9429-884ff3ce40e6@csi-snap-728c142a-3231-428b-9429-884ff3ce40e6" for volume group snapshot "replicapool/csi-vol-group-5c1fbbd1-bc0a-415a-974e-a0cb1292261c"
  I1204 09:58:17.768426       1 rbd_util.go:1506] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: snap rm replicapool/csi-snap-728c142a-3231-428b-9429-884ff3ce40e6@csi-snap-728c142a-3231-428b-9429-884ff3ce40e6 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789
  I1204 09:58:17.774422       1 rbd_util.go:719] ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 rbd: successfully added task to move image "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14" with id "22c224ead8e6" to trash
  I1204 09:58:17.780787       1 omap.go:126] ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 removed omap keys (pool="replicapool", namespace="", name="csi.snaps.default"): [csi.snap.csi-vol-group-061ff308-e2a7-4ca8-b3a3-2ebeff75bea7-snap-1]
  I1204 09:58:17.781552       1 utils.go:273] ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 GRPC response: {}
  I1204 09:58:18.751329       1 rbd_util.go:653] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: delete csi-snap-728c142a-3231-428b-9429-884ff3ce40e6 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789, pool replicapool
  I1204 09:58:18.785256       1 rbd_util.go:695] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: adding task to remove image "replicapool/csi-snap-728c142a-3231-428b-9429-884ff3ce40e6" with id "22c2a95617af" from trash
  I1204 09:58:18.795433       1 rbd_util.go:719] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: successfully added task to move image "replicapool/csi-snap-728c142a-3231-428b-9429-884ff3ce40e6" with id "22c2a95617af" to trash
  I1204 09:58:18.795502       1 group_snapshot.go:231] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c deleting snapshot image "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14" for volume group snapshot "replicapool/csi-vol-group-5c1fbbd1-bc0a-415a-974e-a0cb1292261c"
  I1204 09:58:18.795560       1 rbd_util.go:1506] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c rbd: snap rm replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14 using mon rook-ceph-mon-a.rook-ceph.svc.cluster.local:6789
  E1204 09:58:18.799257       1 snapshot.go:86] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c failed to delete snapshot "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14": Failed as image not found (internal RBD image not found: rbd: ret=-2, No such file or directory)
  E1204 09:58:18.799278       1 snapshot.go:181] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c failed to delete image: Failed as image not found (internal RBD image not found: rbd: ret=-2, No such file or directory)
  E1204 09:58:18.799344       1 utils.go:271] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c GRPC error: rpc error: code = Internal desc = failed to delete volume group snapshot "replicapool/csi-vol-group-5c1fbbd1-bc0a-415a-974e-a0cb1292261c": failed to delete snapshot "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14" as part of volume groups snapshot "replicapool/csi-vol-group-5c1fbbd1-bc0a-415a-974e-a0cb1292261c": Failed as image not found (internal RBD image not found: rbd: ret=-2, No such file or directory)

rbd: snap rm replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14 was called twice and second time it failed.

ID: 52 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14 GRPC call: /csi.v1.Controller/DeleteSnapshot

/DeleteSnapshot was called for replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14

And this image was actually part of VolumeGroupSnapshot

I1204 09:58:16.741070       1 group_snapshot.go:98] ID: 51 Req-ID: 0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-5c1fbbd1-bc0a-415a-974e-a0cb1292261c resolved snapshot id "0001-0024-63946011-0514-45b3-ac2c-f0a3ddf7967d-0000000000000004-8c1a0986-5ba1-4111-bcbb-5faac931bc14" to snapshot "replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14@csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14"

When deleting VolumeGroupSnapshot, snapshotter calls /DeleteSnapshot for the snapshot that is part of the VolumeGroupSnapshot being deleted - will be fixed by kubernetes-csi/external-snapshotter#1231.

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from 9b76924 to aaa79e8 Compare December 4, 2024 11:33
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar
Copy link
Contributor Author

passed ci logs

@Madhu-1 @Rakshith-R PTAL

@iPraveenParihar iPraveenParihar marked this pull request as ready for review December 4, 2024 13:37

err := waitToRemoveImagesFromTrash(rvgs.framework, defaultRBDPool, deployTimeout)
if err != nil {
framework.Failf("failed to validate rbd images in pool %s trash: %v", defaultRBDPool, err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

return error message

Copy link
Collaborator

Choose a reason for hiding this comment

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

its already logged at the caller, lets remove the extra logging from here

Copy link
Member

Choose a reason for hiding this comment

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

I am not sure if framework.Failf() really returns, does the test not get aborted when it is called?

rbdSnap.RbdImageName = rbdVol.RbdImageName
err = cleanUpSnapshot(ctx, rbdVol, rbdSnap, rbdVol)
if err != nil {
log.ErrorLog(ctx, "failed to delete image: %v", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

log the details of what image and snapshot was tried for cleanup for better debugging.

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Dec 4, 2024

Can you please increase the pvc count and put the vgs test in loop of 5 or 10 (as extra commit) to ensure the issue is fixed as we are close to release?

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from aaa79e8 to deaa370 Compare December 5, 2024 04:14
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.29

@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch 2 times, most recently from fac97cc to eadc4bc Compare December 5, 2024 04:56
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from eadc4bc to 0764605 Compare December 5, 2024 07:12
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from 0764605 to b22b61d Compare December 5, 2024 11:28
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar
Copy link
Contributor Author

iPraveenParihar commented Dec 6, 2024

undoSnapReservation was missed for /DeleteVolumeGroupSnapshot. Now moved undoSnapReservation() function to snapshot.Delete() so it works for both /DeleteSnapshot and /DeleteVolumeGroupSnapshot.

cc @Madhu-1 @nixpanic

@iPraveenParihar
Copy link
Contributor Author

test volumeGroupSnapshot for both RBD and CephFS passed here. However, it failed due to test timeout of 150m.

I'll try with 3 PVCs and loop 3 times.

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from b22b61d to 95cfa33 Compare December 6, 2024 06:29
@iPraveenParihar
Copy link
Contributor Author

/test ci/centos/mini-e2e/k8s-1.31

@iPraveenParihar
Copy link
Contributor Author

passed ci logs.

But, OMAP from csi.groups.default are not getting removed when VolumeGroupSnapshot Deleted.
There's a bug in UndoReserve() for VolumeGroup, it requires volumeGroup ReqestName to be passed but csiID is being passed here -

err = j.UndoReservation(ctx, pool, name, csiID)
if err != nil /* TODO? !errors.Is(..., err) */ {
return fmt.Errorf("failed to undo the reservation for volume group %q: %w", cvg, err)
}

This is not getting captured in e2e as we don't have check for RBD groupSnap OMAP data -

ceph-csi/e2e/utils.go

Lines 165 to 217 in a32ba13

func validateOmapCount(f *framework.Framework, count int, driver, pool, mode string) {
type radosListCommand struct {
volumeMode string
driverType string
radosLsCmd, radosLsCmdFilter string
radosLsKeysCmd, radosLsKeysCmdFilter string
}
radosListCommands := []radosListCommand{
{
volumeMode: volumesType,
driverType: cephfsType,
radosLsCmd: "rados ls " + cephfsOptions(pool),
radosLsCmdFilter: fmt.Sprintf("rados ls %s | grep -v default | grep -v csi.volume.group. | grep -c ^csi.volume.",
cephfsOptions(pool)),
radosLsKeysCmd: "rados listomapkeys csi.volumes.default " + cephfsOptions(pool),
radosLsKeysCmdFilter: fmt.Sprintf("rados listomapkeys csi.volumes.default %s | wc -l", cephfsOptions(pool)),
},
{
volumeMode: volumesType,
driverType: rbdType,
radosLsCmd: "rados ls " + rbdOptions(pool),
radosLsCmdFilter: fmt.Sprintf(
"rados ls %s | grep -v default | grep -v csi.volume.group. | grep -c ^csi.volume.",
rbdOptions(pool)),
radosLsKeysCmd: "rados listomapkeys csi.volumes.default " + rbdOptions(pool),
radosLsKeysCmdFilter: fmt.Sprintf("rados listomapkeys csi.volumes.default %s | wc -l", rbdOptions(pool)),
},
{
volumeMode: snapsType,
driverType: cephfsType,
radosLsCmd: "rados ls " + cephfsOptions(pool),
radosLsCmdFilter: fmt.Sprintf("rados ls %s | grep -v default | grep -c ^csi.snap.", cephfsOptions(pool)),
radosLsKeysCmd: "rados listomapkeys csi.snaps.default " + cephfsOptions(pool),
radosLsKeysCmdFilter: fmt.Sprintf("rados listomapkeys csi.snaps.default %s | wc -l", cephfsOptions(pool)),
},
{
volumeMode: snapsType,
driverType: rbdType,
radosLsCmd: "rados ls " + rbdOptions(pool),
radosLsCmdFilter: fmt.Sprintf("rados ls %s | grep -v default | grep -c ^csi.snap.", rbdOptions(pool)),
radosLsKeysCmd: "rados listomapkeys csi.snaps.default " + rbdOptions(pool),
radosLsKeysCmdFilter: fmt.Sprintf("rados listomapkeys csi.snaps.default %s | wc -l", rbdOptions(pool)),
},
{
volumeMode: groupSnapsType,
driverType: cephfsType,
radosLsCmd: "rados ls" + cephfsOptions(pool),
radosLsCmdFilter: fmt.Sprintf("rados ls %s | grep -v default | grep -c ^csi.volume.group.", cephfsOptions(pool)),
radosLsKeysCmd: "rados listomapkeys csi.groups.default " + cephfsOptions(pool),
radosLsKeysCmdFilter: fmt.Sprintf("rados listomapkeys csi.groups.default %s | wc -l", cephfsOptions(pool)),
},
}

I'll add fix for both in this PR.

cc @Madhu-1 @nixpanic @Rakshith-R

@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from 95cfa33 to 61a81b5 Compare December 9, 2024 08:13
Copy link
Collaborator

@Madhu-1 Madhu-1 left a comment

Choose a reason for hiding this comment

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

LGTM, please drop the extra commit.

This function deletes rbd snap and rbd image
backing k8s snapshot.
The same function is used for deleting
individual snapshots in group snapshot.

Signed-off-by: Praveen M <[email protected]>
This commit fixes the VolumeGroup UndoReservation
by using the correct RequestName of the VolumeGroup
instead of the volumeGroupHandle.

Signed-off-by: Praveen M <[email protected]>
@iPraveenParihar iPraveenParihar force-pushed the rbd/add-snap-delete-function branch from 34f1a82 to 8fa6da2 Compare December 16, 2024 10:36
@iPraveenParihar
Copy link
Contributor Author

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Dec 16, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 88b7e0d

@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Dec 16, 2024
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.31

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Dec 16, 2024
@mergify mergify bot merged commit 88b7e0d into ceph:devel Dec 16, 2024
36 checks passed
@Madhu-1 Madhu-1 removed the DNM DO NOT MERGE label Dec 17, 2024
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Dec 17, 2024

@Mergifyio backport release-v3.13

@mergify
Copy link
Contributor

mergify bot commented Dec 17, 2024

backport release-v3.13

✅ Backports have been created

@iPraveenParihar iPraveenParihar self-assigned this Dec 17, 2024
@iPraveenParihar iPraveenParihar added the backport-to-release-v3.13 Label to backport from devel to release-v3.13 branch label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-release-v3.13 Label to backport from devel to release-v3.13 branch component/rbd Issues related to RBD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants