[00:19] <andras-kovacs> wow there is sg. strange with cloud-init on RHEL7.8 It didn't start as previously
[10:53] <andras-kovacs> I could trigger cloud-init-local, but cloud-init.service didn't run
[11:18]  * andras-kovacs sent a long message:  < https://matrix.org/_matrix/media/r0/download/matrix.org/iAKNrOfaoBqRjPsUCkIAQSak >
[11:19] <andras-kovacs> I'm disabling cloud-init from my kickstart file, than enable it when I finish the VM build with packer from a cleanup script. So the first run should happen only when I make a new vm from the template. Now I'll give a try to disable cloud-init with a file or kernel parameter instead of messing with the systemd units from the kickstart. Because the service units are enabled but they don't start on the "second" boot
[11:19] <andras-kovacs> -> even there is no cloud-init logs, I ran cloud-init clean, etc.
[11:20] <andras-kovacs> Ofc if I find the source of the problem, I'll report it to RHEL
[11:26] <andras-kovacs> maybe cloud-init.target is not in the boot goals hmm.
[12:00] <andras-kovacs> That's the case! I can't see any cloud-init related service in the critical chain.
[12:00] <andras-kovacs> * systemd-analyze critical-chain I mean
[12:08] <andras-kovacs> "already disabled: no change needed [no /run/systemd/generator.early/multi-user.target.wants/cloud-init.target]"
[12:16] <andras-kovacs> cloud-config.service is now WantedBy=cloud-init.target
[12:16] <andras-kovacs> perviously it was WantedBy=multi-user.target
[12:22] <andras-kovacs> same story with cloud-init.service
[13:04] <andras-kovacs> So IMHO this is the same issue: https://bugs.launchpad.net/cloud-init/+bug/1771382
[13:04] <andras-kovacs> or really similaer
[13:09] <andras-kovacs> it don't need to modify / override the unit files, only: mv /etc/systemd/system/cloud-init.target.wants/* /etc/systemd/system/multi-user.target.wants/
[13:09] <andras-kovacs> And it works!
[13:09] <andras-kovacs> finally
[14:11] <andras-kovacs> The bug was filed already here: https://bugzilla.redhat.com/show_bug.cgi?id=1820540
[14:11] <andras-kovacs> I added my notes and findings.
[14:18] <andras-kovacs> Maybe... it's not so obvious now cloud-init has many modules what get executed all the time a server boots up.