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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: ec2-plugin
    • None
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: