set VolumeSnapshotGroupVO uuid to the resourceuuid of messgae if exsited
@@ -2308,7 +2308,11 @@ public class VolumeBase implements Volume {
private VolumeSnapshotGroupVO createGroup(CreateVolumesSnapshotReply r) {
List<VolumeSnapshotGroupRefVO> refs = new ArrayList<>();
VolumeSnapshotGroupVO group = new VolumeSnapshotGroupVO();
+ if (msg.getResourceUuid() != null) {
+ group.setUuid(msg.getResourceUuid());
+ } else {
group.setUuid(getUuid());
+ }
group.setSnapshotCount(vm.getAllVolumes().size());
group.setName(msg.getName());
group.setDescription(msg.getDescription());
