[JIRA] (JENKINS-43771) EC2 Plugin: Jenkins doesn't wait for cloud-init to finish

2 views
Skip to first unread message

delgod@delgod.com (JIRA)

unread,
May 21, 2018, 3:31:02 AM5/21/18
to jenkinsc...@googlegroups.com
Mykola Marzhan commented on Bug JENKINS-43771
 
Re: EC2 Plugin: Jenkins doesn't wait for cloud-init to finish

simple workarounds:

1) move scripts from "User Data" to "Init script" section

2) keep scripts in "User Data" and add the following script to "Init script" section

until sudo grep "Cloud-init .* finished" /var/log/cloud-init-output.log; do
    echo wait for cloud-init
    sleep 1
done
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

Ben.Dean@OntarioSystems.com (JIRA)

unread,
Jul 12, 2019, 4:39:03 PM7/12/19
to jenkinsc...@googlegroups.com
Ben Dean commented on Bug JENKINS-43771

Another simpler version of the second part of Mykola Marzhan's workaround is to have this in your init script:

sudo cloud-init status --wait
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages