New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud-Init triggered install/start of docker will always hang #77
Comments
|
Thanks for the excellent issue report. Unfortunately, the Offhand...I think we might have been waiting for cloud-init to do the growpart bit. But we do that internally now. I am thinking it'd be safe to just remove that |
|
The typical way of solving this is to pass the This will enqueue the start request and return immediately. Of course, This is tricky if you're using the built-in "service" abstractions in ansible/puppet/etc, which may not have any facility for using the |
|
P.S. Tested and works for me. I think docker-storate-setup can be skipped as it seems useless without setting configuration. But leaving it above for completeness. |
Removes cloud-init dependency from the service to avoid hangs. Fixes projectatomic#77
Removes cloud-init dependency from the service to avoid hangs. Fixes projectatomic#77
|
for your mentioned bootcmd: is it really helps for cases below? But another issue comes for no-block, in cloud-init, we also need to run Do you have any good suggestion for that ? |
|
@HackToday , using |
Removes cloud-init dependency from the service to avoid hangs. Fixes projectatomic#77
Removes cloud-init dependency from the service to avoid hangs. Fixes projectatomic#77
|
Actually, now that If you want to change the default d-s-s configuration, you can still do so in the |
|
Even better, since |
If Cloud-init is used to trigger installs of docker, docker startup, and provisioning in general will just hang. This is irrespective of what the actual method of install/config is - ie. Puppet/Ansible etc.
Expanding on that:
docker-storage-setupto have already run.docker-storage-setupsystemd config requirescloud-final.service( ie. cloud-init) to have finished - https://github.com/projectatomic/docker-storage-setup/blob/master/docker-storage-setup.service#L3The result is that provisioning cannot complete until cloud-init has failed/died - or the box has been rebooted.
Commenting out
After=cloud-final.servicemakes this problem go away.I understand the thinking behind the requirement - basically, ensure the box has had it's storage configured by Cloud-init, to be used by
docker-storage-setup- but the existing restriction makes more sophisticated hands-off provisioning awkward.I'm not sure what to suggest as a solution here, sorry!
The text was updated successfully, but these errors were encountered: