Actions
Task #5133
closedUse "admin username" defined in config
Start date:
09/24/2013
Due date:
% Done:
0%
Estimated time:
Description
It seems the patch does not use the user defined in "Admin username" when the "Admin password" is empty.
The connection seems to be done as 'root' with the cloud publid key.
This is an issue with Ubuntu systems that prevents 'root' to connect.
Change in JCloudsSlaveTemplate.java#get():
} else if(!Strings.isNullOrEmpty(getCloud().privateKey)){ options.overrideLoginPrivateKey(getCloud().privateKey); }
by
} else if(!Strings.isNullOrEmpty(getCloud().privateKey)){ String key = getCloud().privateKey; LoginCredentials lc = LoginCredentials.builder().user(vmUser).privateKey(key).build(); options.overrideLoginCredentials(lc); }
Related issues
Actions