diff --git a/e2e/volumegroupsnapshot.go b/e2e/volumegroupsnapshot.go index 8a41aef57ef..7b899d236d5 100644 --- a/e2e/volumegroupsnapshot.go +++ b/e2e/volumegroupsnapshot.go @@ -176,6 +176,16 @@ func (rvgs *rbdVolumeGroupSnapshot) ValidateResourcesForCreate(vgs *groupsnapapi func (rvgs *rbdVolumeGroupSnapshot) ValidateResourcesForDelete() error { validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, volumesType) + validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, snapsType) + validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, groupSnapsType) + validateRBDImageCount(rvgs.framework, 0, defaultRBDPool) + + err := waitToRemoveImagesFromTrash(rvgs.framework, defaultRBDPool, deployTimeout) + if err != nil { + framework.Failf("failed to validate rbd images in pool %s trash: %v", defaultRBDPool, err) + + return err + } return nil }