-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.121.1
Google Compute Engine Plugin: 1.0.4
CentOS
When setting up the GCE plugin, I'm unable to get the slave to connect properly. The logs show only an authentication error:
Aug 13, 2018 2:44:45 PM null INFO: Connected via SSH. Aug 13, 2018 2:44:45 PM null WARNING: Authentication failed. Trying again... Aug 13, 2018 2:45:00 PM null INFO: Authenticating as jenkins Aug 13, 2018 2:45:00 PM null INFO: Connecting to 10.1.2.3 on port 22, with timeout 10000. Aug 13, 2018 2:45:00 PM null INFO: Connected via SSH. Aug 13, 2018 2:45:00 PM null WARNING: Authentication failed. Trying again... Aug 13, 2018 2:45:15 PM null INFO: Authenticating as jenkins Aug 13, 2018 2:45:15 PM null INFO: Connecting to 10.1.2.3 on port 22, with timeout 10000. Aug 13, 2018 2:45:16 PM null INFO: Connected via SSH.
Eventually it throws a "bootstrapresult failed" error:
Aug 13, 2018 2:50:36 PM null
WARNING: bootstrapresult failed
I can't find any way to begin debugging this issue. The Google Cloud console shows that a new ssh key has been added to the metadata on the freshly provisioned instance, corresponding to the user that Jenkins will use, but I can't get any further logs from the system; logging into the freshly provisioned instance with a different user and examining /var/log/secure doesn't show any ssh login failures.
[JENKINS-53017] Jenkins slave can't connect via ssh to GCE instance
Assignee | Original: Evan Brown [ evanbrown ] | New: Rachel Yen [ zombiemoose ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Is there any way I can debug this? The log output from the plugin is insufficient to work out why this is happening.