-
Couldn't load subscription status.
- Fork 580
RBD: add snap delete function #5000
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
RBD: add snap delete function #5000
Conversation
35bcc53 to
edc9bb2
Compare
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
1 similar comment
|
/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) | ||
|
|
There was a problem hiding this comment.
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
3ae9abb to
9b76924
Compare
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
failed ci logs
/DeleteSnapshot was called for replicapool/csi-snap-8c1a0986-5ba1-4111-bcbb-5faac931bc14 And this image was actually part of VolumeGroupSnapshot 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. |
9b76924 to
aaa79e8
Compare
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
passed ci logs @Madhu-1 @Rakshith-R PTAL |
e2e/volumegroupsnapshot.go
Outdated
|
|
||
| err := waitToRemoveImagesFromTrash(rvgs.framework, defaultRBDPool, deployTimeout) | ||
| if err != nil { | ||
| framework.Failf("failed to validate rbd images in pool %s trash: %v", defaultRBDPool, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return error message
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
internal/rbd/snapshot.go
Outdated
| rbdSnap.RbdImageName = rbdVol.RbdImageName | ||
| err = cleanUpSnapshot(ctx, rbdVol, rbdSnap, rbdVol) | ||
| if err != nil { | ||
| log.ErrorLog(ctx, "failed to delete image: %v", err) |
There was a problem hiding this comment.
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.
|
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? |
aaa79e8 to
deaa370
Compare
|
/test ci/centos/mini-e2e/k8s-1.29 |
|
/test ci/centos/mini-e2e/k8s-1.31 |
fac97cc to
eadc4bc
Compare
|
/test ci/centos/mini-e2e/k8s-1.31 |
eadc4bc to
0764605
Compare
|
/test ci/centos/mini-e2e/k8s-1.31 |
0764605 to
b22b61d
Compare
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
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. |
b22b61d to
95cfa33
Compare
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
passed ci logs. But, OMAP from ceph-csi/internal/rbd/group/util.go Lines 303 to 307 in a32ba13
This is not getting captured in e2e as we don't have check for RBD groupSnap OMAP data - Lines 165 to 217 in a32ba13
I'll add fix for both in this PR. |
95cfa33 to
61a81b5
Compare
There was a problem hiding this 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]>
Signed-off-by: Praveen M <[email protected]>
34f1a82 to
8fa6da2
Compare
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 88b7e0d |
|
/test ci/centos/k8s-e2e-external-storage/1.29 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/mini-e2e-helm/k8s-1.29 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/k8s-e2e-external-storage/1.30 |
|
/test ci/centos/mini-e2e/k8s-1.29 |
|
/test ci/centos/k8s-e2e-external-storage/1.31 |
|
/test ci/centos/mini-e2e-helm/k8s-1.30 |
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
|
/test ci/centos/mini-e2e/k8s-1.30 |
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
@Mergifyio backport release-v3.13 |
✅ Backports have been created
|
Describe what this PR does
This function deletes rbd snap and rbd image
backing k8s snapshot.
The same function is used for deleting
individual snapshots in group snapshot.
Checklist:
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 unrelatedfailure (please report the failure too!)