harikrishna-patnala commented on a change in pull request #5333:
URL: https://github.com/apache/cloudstack/pull/5333#discussion_r697159532
##########
File path:
plugins/hypervisors/vmware/src/main/java/com/cloud/storage/resource/VmwareStorageProcessor.java
##########
@@ -1848,14 +1848,15 @@ public Answer createTemplateFromSnapshot(CopyCommand
cmd) {
s_logger.error(msg);
throw new Exception(msg);
}
+ s_logger.debug(String.format("Cloned VM: %s as %s",
vmMo.getName(), clonedVm.getName()));
vmMo = clonedVm;
}
vmMo.exportVm(exportPath, exportName, false, false);
return new Pair<>(diskDevice, disks);
} finally {
if (clonedVm != null) {
- clonedVm.detachAllDisks();
+ s_logger.debug(String.format("Destroying cloned VM: %s with
its disks", clonedVm.getName()));
Review comment:
@shwstppr Thanks for the fix, the same fix applies in the flow of
creating template from volume. Can you please fix it there as well
https://github.com/apache/cloudstack/blob/cb1078aa202ef77cd699a7617daf006febb6fee6/plugins/hypervisors/vmware/src/main/java/com/cloud/storage/resource/VmwareStorageProcessor.java#L1298
--
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]