Closed cmeisinger closed 7 years ago
Thanks for filing this @cmeisinger. We could add some checks in the bootstrap script to look for these kinds of situations. Thank you for posting the work-around as well!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Description of Issue/Question
When using cloud init/user_data in aws, the current official Ubuntu AMI immediately updates itself on boot. This forks to the background while the system executes other cloud-init processes.
When you use the bootstrap script passed via user_data, the salt-bootstrap script will blow up if it can't immediately apt-get the necessary components, resulting in failure of the deploy.
Setup
Nothing too fancy. Pass this as user data in AWS/EC2 and watch it fail.
Steps to Reproduce Issue
Attached script when passed as userdata will suffice.
Versions and Systems
Expected Action
The bootstrapper should wait until it can grab a lock against the apt-get process and then proceed.
Workaround
Pass in the following in your user_data script...