/srv/irclogs.ubuntu.com/2020/04/04/#cloud-init.txt

andras-kovacswow there is sg. strange with cloud-init on RHEL7.8 It didn't start as previously00:19
andras-kovacsI could trigger cloud-init-local, but cloud-init.service didn't run10:53
* andras-kovacs sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/iAKNrOfaoBqRjPsUCkIAQSak >11:18
andras-kovacsI'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" boot11:19
andras-kovacs-> even there is no cloud-init logs, I ran cloud-init clean, etc.11:19
andras-kovacsOfc if I find the source of the problem, I'll report it to RHEL11:20
andras-kovacsmaybe cloud-init.target is not in the boot goals hmm.11:26
andras-kovacsThat'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 mean12:00
andras-kovacs"already disabled: no change needed [no /run/systemd/generator.early/multi-user.target.wants/cloud-init.target]"12:08
andras-kovacscloud-config.service is now WantedBy=cloud-init.target12:16
andras-kovacsperviously it was WantedBy=multi-user.target12:16
andras-kovacssame story with cloud-init.service12:22
andras-kovacsSo IMHO this is the same issue: https://bugs.launchpad.net/cloud-init/+bug/177138213:04
andras-kovacsor really similaer13:04
ubot5Ubuntu bug 1771382 in cloud-init (openSUSE) "ds-identify: fails to recognize NoCloud datasource on boot cause it does not have /sbin in $PATH and thus does not find blkid" [Medium,Fix released]13:04
andras-kovacsit 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-kovacsAnd it works!13:09
andras-kovacsfinally13:09
andras-kovacsThe bug was filed already here: https://bugzilla.redhat.com/show_bug.cgi?id=182054014:11
andras-kovacsI added my notes and findings.14:11
ubot5bugzilla.redhat.com bug 1820540 in cloud-init "cloud-init package broken post 7.8 upgrade" [Medium,New]14:11
andras-kovacsMaybe... it's not so obvious now cloud-init has many modules what get executed all the time a server boots up.14:18
=== shibumi is now known as brain0
=== brain0 is now known as shibumi
=== tds7 is now known as tds

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