mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: validate RBD snapshot under temporary clone image is present
Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
10
e2e/utils.go
10
e2e/utils.go
@ -1003,6 +1003,16 @@ func validatePVCClone(
|
||||
if wgErrs[n] == nil && validatePVC != nil && kms != noKMS {
|
||||
wgErrs[n] = validatePVC(f, &p, &a)
|
||||
}
|
||||
if wgErrs[n] == nil {
|
||||
// validate RBD snapshot under temporary clone is not deleted.
|
||||
imageData, imageInfoerr := getImageInfoFromPVC(p.Namespace, name, f)
|
||||
if imageInfoerr != nil {
|
||||
wgErrs[n] = imageInfoerr
|
||||
} else {
|
||||
tempRBDImageName := imageData.imageName + "-temp"
|
||||
wgErrs[n] = validateRBDSnapshotCount(f, 1, defaultRBDPool, tempRBDImageName)
|
||||
}
|
||||
}
|
||||
wg.Done()
|
||||
}(i, *pvcClone, *appClone)
|
||||
}
|
||||
|
Reference in New Issue
Block a user