Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
-
Jenkins 1.138.3
ssh-slaves-plugin 1.29.1
Java 1.8.0_171-8u171
OS: Debian Stretch (Server and Jenkins Nodes)
-
-
ssh-slaves-1.29.2
Description
Starting with ssh-slaves-plugin 1.29.1, the SSH agent connection with all nodes fail.
Logs on Jenkins (logfile):
[11/21/18 09:38:38] SSH Launch of HOSTNAME on HOSTNAME failed in 391 ms
Logs on Jenkins (UI):
SSHLauncher{host='HOSTNAME', port=22, credentialsId='b1f94972-dfce-45d0-9cb1-f14e3dc324b9', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=210, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.ManuallyTrustedKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true} [11/21/18 09:40:05] [SSH] Opening SSH connection to HOSTNAME:22. [11/21/18 09:40:05] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed. [11/21/18 09:40:05] [SSH] Authentication failed. Authentication failed. [11/21/18 09:40:05] Launch failed - cleaning up connection [11/21/18 09:40:05] [SSH] Connection closed.
The auth.log of a node just contains:
Closed due to user request. [preauth]
Downgrading to 1.28.1 fixes the issue.
Attachments
Issue Links
- duplicates
-
JENKINS-52232 Credentials not usable after upgrade to 1.14
-
- Reopened
-
- is related to
-
JENKINS-54884 ssh-slaves or trilead-api stops all git over ssh (git+ssh) from working
-
- Resolved
-
-
JENKINS-52232 Credentials not usable after upgrade to 1.14
-
- Reopened
-
- links to
I have tested some configuration to try to replicate the issue, I could not. These are the step I made:
I check the code of ssh-credentials, all the credential source type have the proper method readResolve to migrate to "Enter directly", so there is something I do not see. In any case, the issue is related to ssh-credentials and a deprecated type of credentials, the workaround it is to recreate the credential with the same ID using "Enter directly" for the key, probably if you only save again the credential it will be migrated.
I will put a note in the troubleshooting guide and on changelog breaking changes.