You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
s_logger.debug(String.format("Trying to copy file from [%s] to [%s] using command [%s].", ovfFilePath, ovfFilePath + ORIGINAL_FILE_EXTENSION, command.toString()));
446
457
Stringresult = command.execute();
447
458
if (result != null) {
448
-
Stringmsg = "Unable to rename original OVF, error msg: " + result;
459
+
Stringmsg = String.format("Unable to copy original OVF file [%s] to [%s] due to [%s].", ovfFilePath, ovfFilePath + ORIGINAL_FILE_EXTENSION, result);
449
460
s_logger.error(msg);
450
461
}
451
462
452
-
s_logger.debug("Reading OVF " + ovfFilePath + " to retrive the number of disks present in OVA");
463
+
s_logger.debug(String.format("Reading OVF file [%s] to retrive the number of disks present in OVA file.", ovfFilePath));
s_logger.debug(LogUtils.logGsonWithoutException("Found %s disks reading OVF file [%s] and using configuration id [%s]. The disks specifications are [%s].",
s_logger.debug(String.format("Trying to find template [%s] with file extension [%s] in secondary storage mount point [%s] using relative folder path [%s].",
s_logger.warn(String.format("Cannot find any files in parent directory [%s] of OVA file [%s].", file.getParent(), srcOVAFileName));
726
+
returnnull;
727
+
}
728
+
729
+
s_logger.debug(String.format("Found [%s] files in parent directory of OVA file [%s]. Files found are [%s].", files.length + 1, file.getParent(), StringUtils.join(files, ", ")));
s_logger.debug(String.format("Trying to get root directory from secondary storage URL [%s] using NFS version [%s].", secUrl, nfsVersion));
2619
2646
URIuri = newURI(secUrl);
2620
2647
Stringdir = mountUri(uri, nfsVersion);
2621
2648
return_parent + "/" + dir;
2622
2649
} catch (Exceptione) {
2623
-
Stringmsg = "GetRootDir for " + secUrl + " failed due to " + e.toString();
2624
-
s_logger.error(msg, e);
2625
-
thrownewCloudRuntimeException(msg);
2650
+
Stringmsg = String.format("Failed to get root directory from secondary storage URL [%s], using NFS version [%s], due to [%s].", secUrl, nfsVersion, e.getMessage());
0 commit comments