sureshanaparti commented on a change in pull request #4395:
URL: https://github.com/apache/cloudstack/pull/4395#discussion_r506044504
##########
File path:
services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
##########
@@ -1300,15 +1300,17 @@ protected Answer copyFromNfsToNfs(CopyCommand cmd) {
try {
File srcFile = new File(getDir(srcStore.getUrl(), _nfsVersion),
srcData.getPath());
File destFile = new File(getDir(destStore.getUrl(), _nfsVersion),
destData.getPath());
- ImageFormat format = getTemplateFormat(srcFile.getName());
if (srcFile == null) {
- return new CopyCmdAnswer("Can't find src file:" + srcFile);
+ return new CopyCmdAnswer("Can't find source file to initiate
file transfer");
Review comment:
adding path and datastore id to the log might help in debugging
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]