/srv/irclogs.ubuntu.com/2021/10/22/#cloud-init.txt

CookiesHello, I'm having trouble with the puppet module. It does set my config correctly, but no run is triggered even though I set 'exec' to 'true'. It sets the config and then continues with the next module which in my case is power_state_change and reboots the server. Does the power_state_change have a higher priority than the puppet exec? Here is my10:17
Cookiesconfig for reference: https://privatebin.net/?f9c14ac91864ece4#H7y2HF3wkxbKYsMXafjPzyek2PHAqgK1qiCcxR3gSzRV10:17
StyXmanmy setup is complicated, so please be patient11:46
StyXmanwe have these test systems that use terraform, terraform-lxc, lxc to boot up containers that run centos7 (yes, old, I know) with cloud-init to set the IPv4 via DHCP for one particular interface11:47
StyXmanthis stopped working since yesterday, when I upgraded the host (wrong move) from ubuntu 21.04 to 21.1011:47
StyXmanthe fact is, it's completely weird because the whole setup is mostly OS independent:11:48
StyXmanlxd is installed via snap, and hasn't ben updated in a year or so, terraform and the provider are also installed by hand in the project's dir and didn't change (altho I tried by upgrading to the provider's 1.6 version) and the OS image didn't change at all11:49
StyXmanso my question is: how can I debug why cloud-init is deciding not to do _anything_ at boot?11:49
StyXmanthere's not even a cloudi-init.log file; see https://bugs.launchpad.net/cloud-init/+bug/194845011:50
ubottuLaunchpad bug 1948450 in cloud-init "cloud-init analize fails miserably if there is no log file" [Undecided, New]11:50
StyXmanI just checked this https://cloudinit.readthedocs.io/en/latest/topics/boot.html#generator and all seems fine11:50
StyXmanhttps://dpaste.org/n3DD11:51
StyXmanoh11:54
StyXman[root@demo3-node1 ~]# systemctl status cloud-init-local.service11:54
StyXmanFailed to get D-Bus connection: No such file or directory11:54
StyXmanthis is so fsckedup11:54
falcojrCookies: I'm assuming puppet is already installed (asking because of the install: false)? What version of cloud-init are you running? Can you also post what's in /var/log/cloud-init? cloud-init doesn't capture the output from the puppet agent, so you're not going to see the agent output in the cloud-init logs. 14:04
Cookiesfalcojr yes puppet is already installed in the image. The cloud-init version is 20.4.1-2+deb11u1. The log is here: https://privatebin.net/?3d4cf4e196d47d51#98VVo14YPyLcUWHET5rVh9zD2X3a1bCaebpHjHSD124b It not capturing the output of the puppet agent is annoying :/  is there any way to log this for debugging?14:11
falcojrahhh, so puppet module got an overhaul in 21.314:18
falcojr20.4 documentation looks like this https://cloudinit.readthedocs.io/en/20.4/topics/modules.html#puppet14:18
falcojrin 20.4 the service automatically gets set to start on boot and the end of the module triggers a "service puppet start"14:19
falcojrI don't think there's a way to foreground the run in 20.414:20
falcojrCookies: ^14:21
Cookiesfalcojr oh ok, that explains it :D  then I'll have to wait for debian to adapt >=21.3 for bullseye. Will try to find a workaround in the meantime. Thank you very much for your time and helpful information!14:23
=== tris is now known as empty_string
=== empty_string is now known as tris
asparagushi there19:28
asparagusam trying to configure cloud-config to install puppet agent for ubuntu 20.04.3..does anyone have experience with this?19:29
=== aaii__ is now known as aaii

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