/srv/irclogs.ubuntu.com/2021/07/21/#cloud-init.txt

PorkepixHi, I've a little question, did some of you here experiences some issues about AMIs seamingly stuck on boot in some conditions and related to cloud-init? To give some context, we had scripts put as user-data for booting instance and used in a packer report to prepare some AMIs. We wanted to merge those repo and use the same script for both contexts. While it was working well in user-data for10:07
Porkepixbooting instance, packer was stuck with this issue: https://www.packer.io/docs/debugging#issues-installing-ubuntu-packages ; to tackle it, we found out a solution was to use `/usr/bin/cloud-init status --wait`. It worked well for fixing the packer failing, but it also created another issue for instances having this in their user-data: the command is never ending and the user-data log is filling10:07
Porkepixlike that: https://pic.infini.fr/8o6W1LCW/vO0IsI2v.png10:07
PorkepixSo, was it encountered here to have the command never ending and not letting the shell/script take back over?10:09
smoser1you'd need to share what the command is.  why is the command not exiting ?17:47
smoser1cloud-init wait wont be "done" until the commands it is running are done. That seems sane, doesn't it?17:47
=== smoser1 is now known as smoser
smoserPorkepix ?17:47
Porkepixsmoser: Sorry, not at work anymore, but I guess we found out what the issue was, serious miscomprehension of my end that the user-data and scripts it runs are completely part of the cloud-init itself, therefore we created a deadlock were the user-data contained a cloud-init wait, waiting for the end of the user-data itself18:06

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!