diff --git a/testlib/src/main/java/org/zstack/testlib/CephPrimaryStorageSpec.groovy b/testlib/src/main/java/org/zstack/testlib/CephPrimaryStorageSpec.groovy index e8f90f1d110..9c9d7b66fe6 100755 --- a/testlib/src/main/java/org/zstack/testlib/CephPrimaryStorageSpec.groovy +++ b/testlib/src/main/java/org/zstack/testlib/CephPrimaryStorageSpec.groovy @@ -708,7 +708,10 @@ class CephPrimaryStorageSpec extends PrimaryStorageSpec { def cmd = JSONObjectUtil.toObject(e.body, CephPrimaryStorageBase.GetVolumeSnapInfosCmd.class) VFS vfs = vfs(cmd, spec) String vfsPath = cephPathToVFSPath(cmd.volumePath) - vfs.Assert(vfs.exists(vfsPath), "cannot find the volume[${cmd.volumePath}]") + if (!vfs.exists(vfsPath)) { + rsp.setSnapInfos(new ArrayList()) + return rsp + } List files = getSnapshotPaths(vfs, vfsPath) rsp.setSnapInfos(new ArrayList())