Project

General

Profile

Actions

Task #5133

closed

Use "admin username" defined in config

Added by Schwarz Lionel almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
High
Assigned To:
Category:
JClouds plugin
Target version:
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

Related to Intégration Continue - Bug #5129: Unable to launch a Ubuntu13.04 instanceClosedSchwarz Lionel09/24/2013

Actions
Actions

Also available in: Atom PDF