Unable to connect to instance when using "check-new-hard" or "check-new-soft" host key verification strategies

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: ec2-plugin
    • Environment:
      Jenkins version: 2.503
      Java: Java 17
      EC2-Plugin: 1885.v730b_5c25b_da_e

      Jenkins runs in AWS Fargate cluster
      Jenkins EC2 agents: AL2023, java 17

      Jenkins fails to connect to EC2 instances when using Host Key Verification Strategy "check-new-hard" or "check-new-soft" with error:

      WARNING: Unable to check the server key Exception: software.amazon.awssdk.services.ec2.model.Ec2Exception: No instanceId specified (Service: Ec2, Status Code: 400, Request ID: ...) (SDK Attempt Count: 1) 

      Works normally with "accept-new" and "off" verification strategies.

            Assignee:
            Robert
            Reporter:
            Robert
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: