[JIRA] (JENKINS-62221) EC2 plugin perpetually loops unable to verify key for host

9 views
Skip to first unread message

ed.goose@gmail.com (JIRA)

unread,
May 8, 2020, 11:27:02 AM5/8/20
to jenkinsc...@googlegroups.com
Edward Hartwell Goose created an issue
 
Jenkins / Bug JENKINS-62221
EC2 plugin perpetually loops unable to verify key for host
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2020-05-08 15:26
Labels: ec2-plugin
Priority: Minor Minor
Reporter: Edward Hartwell Goose

I've just upgraded our EC2 plugin to the latest (1.50.2) and have found our nodes are not spinning up.

They perpetually loop with the following logs:

May 08, 2020 4:12:23 PM hudson.plugins.ec2.EC2Cloud INFO: The line with the key doesn't have the required format. Found: "ssh-ed25519 AAAAC3Nzarestofkeygoeshere ". Expected a line with this text: "ALGORITHM THEHOSTKEY", example: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbvbEIoY3tqKwkeRW/L1FnbCLLp8a1TwSOyZHKJqFFR "{{}}
 

Based on this:

https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/ssh/verifiers/SshHostKeyVerificationStrategy.java#L139-L146, which says:

String[] parts = line.split(" ");
if (parts.length > 2) {
 

The example will never work:

{{ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbvbEIoY3tqKwkeRW/L1FnbCLLp8a1TwSOyZHKJqFFR }}

will never split into > 2 pieces as the code says. E.g.: https://repl.it/repls/FoolishCrookedWebsite

Either I'm misunderstanding how this is meant to work, or the error message is unclear.

I've not done anything to change our configuration other than upgrading the plugin - so quite frustrated that it has completely stopped working for us.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ed.goose@gmail.com (JIRA)

unread,
May 8, 2020, 11:31:03 AM5/8/20
to jenkinsc...@googlegroups.com
Edward Hartwell Goose updated an issue
I've just upgraded our EC2 plugin to the latest (1.50.2) and have found our nodes are not spinning up.

They perpetually loop with the following logs:

{{May 08, 2020 4:12:23 PM hudson.plugins.ec2.EC2Cloud INFO: The line with the key doesn't have the required format. Found: "ssh-ed25519 AAAAC3Nzarestofkeygoeshere ". Expected a line with this text: "ALGORITHM THEHOSTKEY", example: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbvbEIoY3tqKwkeRW/L1FnbCLLp8a1TwSOyZHKJqFFR "}}
{{}}

 

Based on this:


[https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/ssh/verifiers/SshHostKeyVerificationStrategy.java#L139-L146], which says:

        String[] parts = line.split(" ");
        if (parts.length > 2) {
 

The example will never work:

{{ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbvbEIoY3tqKwkeRW/L1FnbCLLp8a1TwSOyZHKJqFFR }}

will never split into > 2 pieces as the code says. E.g.: https://repl.it/repls/FoolishCrookedWebsite

Either I'm misunderstanding how this is meant to work, or the error message is unclear.

I've not done anything to change our configuration other than upgrading the plugin - so quite frustrated that it has completely stopped working for us.

ed.goose@gmail.com (JIRA)

unread,
May 8, 2020, 11:31:03 AM5/8/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages