andras-kovacs | wow there is sg. strange with cloud-init on RHEL7.8 It didn't start as previously | 00:19 |
---|---|---|
andras-kovacs | I could trigger cloud-init-local, but cloud-init.service didn't run | 10:53 |
* andras-kovacs sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/iAKNrOfaoBqRjPsUCkIAQSak > | 11:18 | |
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:19 |
andras-kovacs | Ofc if I find the source of the problem, I'll report it to RHEL | 11:20 |
andras-kovacs | maybe cloud-init.target is not in the boot goals hmm. | 11:26 |
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:00 |
andras-kovacs | "already disabled: no change needed [no /run/systemd/generator.early/multi-user.target.wants/cloud-init.target]" | 12:08 |
andras-kovacs | cloud-config.service is now WantedBy=cloud-init.target | 12:16 |
andras-kovacs | perviously it was WantedBy=multi-user.target | 12:16 |
andras-kovacs | same story with cloud-init.service | 12:22 |
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:04 |
ubot5 | Ubuntu 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-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 | 13:09 |
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:11 |
ubot5 | bugzilla.redhat.com bug 1820540 in cloud-init "cloud-init package broken post 7.8 upgrade" [Medium,New] | 14:11 |
andras-kovacs | Maybe... 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!