Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21182

EC2 Plugin: EC2 instance starts but waits forever

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • ec2-plugin
    • None
    • Ubuntu, EC2

    Description

      I want to use the "Amazon EC2 Plugin" to dynamically start slaves on EC2.

      Versions:
      Jenkins 1.544
      Amazon EC2 Plugin 1.20

      I am using the eu-west-1 region.

      So far Jenkins starts the EC2 instance fine but Jenkins can not ssh into the slave. The plugin log looks like the following.

      Connecting to 172.31.x.y on port 22.
      Waiting for SSH to come up. Sleeping 5.
      Connecting to 172.31.x.y on port 22.
      Waiting for SSH to come up. Sleeping 5.
      ...

      I already verified that:

      • I can manually ssh into the instance created by jenkins using the credentials used by Jenkins (tested from the jenkins host)
      • I can scp files into /tmp and /var/jenkins
      • auth.log on the instance contains no login attempts
      • adding the running instance as a static slave node works with same credentials

      Therefore I am pretty convinced that it is a defect in Jenkins / the plugin.

      The attached screenshot shows my plugin config in Jenkins.

      I am happy to help analyzing this issue / retesting a fix.

      Attachments

        Issue Links

          Activity

            markfink Mark Fink created issue -
            markfink Mark Fink made changes -
            Field Original Value New Value
            Summary EC2 Plugin: EC2 Plugin: EC2 instance starts but waits forever
            acoulton Andrew Coulton made changes -
            Link This issue duplicates JENKINS-19943 [ JENKINS-19943 ]
            jbrejner Jens Brejner made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 153044 ] JNJira + In-Review [ 194444 ]

            People

              francisu Francis Upton
              markfink Mark Fink
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: