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

ec2computerlauncher needs instance status as well as state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ec2-plugin
    • None

      EC2ComputerLauncher only waits for aws to return a running state, which doesn't mean that the user-data has executed.

       

      The agent and init launcher execute before the instance status returns ok, which can mean that user-data hasn't executed yet.

       

      This means that by installing docker and adding user to docker group in user data could be run after the first open ssh session to the instance. So that session can not use docker.

       

      Alternative is to add a wait clause in EC2ComputerLauncher. but seems too hacky.

       

      http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/ec2/model/SummaryStatus.html

            francisu Francis Upton
            lovelycuppatea Alan
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: