mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix failure to scp diagnostic data file from SSVM on ubuntu based env (#5384)
This commit is contained in:
parent
e968f3b16a
commit
4acedc8308
@ -340,8 +340,8 @@ public class DiagnosticsServiceImpl extends ManagerBase implements PluggableServ
|
||||
File dataDirectory = new File(dataDirectoryInSecondaryStore);
|
||||
boolean existsInSecondaryStore = dataDirectory.exists() || dataDirectory.mkdir();
|
||||
if (existsInSecondaryStore) {
|
||||
// scp from system VM to mounted sec storage directory
|
||||
File permKey = new File("/var/cloudstack/management/.ssh/id_rsa");
|
||||
String homeDir = System.getProperty("user.home");
|
||||
File permKey = new File(homeDir + "/.ssh/id_rsa");
|
||||
SshHelper.scpFrom(vmSshIp, 3922, "root", permKey, dataDirectoryInSecondaryStore, diagnosticsFile);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user