ananke | hmm, so looks like latest kali, based on debian testing, has a new cloud-init which fails with a config that has worked without issues for a long time. cloud-init status now returns non-zero exit code on a deprecation warning: https://dpaste.com/HF7X2NXTR.txt | 20:47 |
---|---|---|
ananke | "Unsupported configuration: boot stage called by PID [587] outside of systemd is deprecated in 24.3 and scheduled to be removed in 29.3. Triggering cloud-init boot stages outside of intial system boot is not a fully supported operation which can lead to incomplete or incorrect configuration. As such, cloud-init is deprecating this feature in the future. " | 20:47 |
ananke | I've been trying to search for info on what exactly is the root cause, but haven't been able to find much. I don't suppose anybody has a suggestion on what I should be looking at? | 20:49 |
minimal | anake: find out how your PACKER config is calling cloud-init? | 20:55 |
minimal | ananke: ^^^ | 20:55 |
minimal | I'm guessing that Packer is booting a disk image with cloud-init already installed and enabled and so cloud-init runs when Packer boots that VM and then later your Packer script/config is running parts of cloud-init again, so resulting in the above message | 20:56 |
ananke | minimal: that part hasn't changed, it's literally a simple 'cloud-init status --wait --long' | 21:02 |
ananke | our image build process hasn't changed, but cloud-init has. the process is fairly simple: boot ec2, feed initial cloud-init, wait until cloud-init status reports ok, reboot, run cloud-init status again [then do more]. | 21:05 |
ananke | the failure in question takes place after package updates take place during first boot, and once the system is rebooted cloud-init status fails | 21:07 |
ananke | ahh, found something: https://github.com/canonical/cloud-init/issues/5726 | 21:16 |
-ubottu:#cloud-init- Issue 5726 in canonical/cloud-init "Manual invocation of cloud-init with `--file` option should not be deprecated" [Closed] | 21:16 | |
falcojr | ananke: that deprecation has been reverted in 24.4: https://github.com/canonical/cloud-init/pull/5770 | 21:56 |
-ubottu:#cloud-init- Pull 5770 in canonical/cloud-init "fix: avoid deprecation logs for calling cli stages" [Merged] | 21:56 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!