slavkap commented on code in PR #8575:
URL: https://github.com/apache/cloudstack/pull/8575#discussion_r1910240558
##########
plugins/storage/volume/storpool/src/main/java/org/apache/cloudstack/storage/motion/StorPoolDataMotionStrategy.java:
##########
@@ -219,24 +219,23 @@ public void copyAsync(DataObject srcData, DataObject
destData, Host destHost,
} else {
answer = (CopyCmdAnswer) ep2.sendMessage(backupSnapshot);
if (answer != null && answer.getResult()) {
- SpApiResponse resSnapshot =
StorPoolUtil.volumeFreeze(volumeName, conn);
+ SpApiResponse resSnapshot =
StorPoolUtil.volumeSnapshot(volumeName, template.getUuid(), null, "template",
null, conn);
if (resSnapshot.getError() != null) {
- logger.debug("Could not snapshot volume [id: {},
name: {}]", snapshot.getId(), snapshot.getName());
- StorPoolUtil.spLog("Volume freeze failed with
error=%s", resSnapshot.getError().getDescr());
+ logger.debug(String.format("Could not snapshot
volume with ID=%s", snapshot.getId()));
Review Comment:
Thanks, @DaanHoogland, I haven't noticed the change while rebasing. I will
update my changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]