/srv/irclogs.ubuntu.com/2024/03/19/#cloud-init.txt

bahamatThe error was something like `mounts.0.4`, which I take it to mean they are indexed starting with 0 not 100:00
bahamatOk, so that cloud-config works now, having fixed those errors.00:00
bahamatThe instance does reboot, and maybe that's incidentally getting it to work.00:01
minimalit might be counted from 0 but the 5th field is still the 5th field whether it is called field "4" or field "5" ;-)00:01
bahamatFair enough.00:01
minimalYAML tried to be "smart" about the types of values which is why sometimes values need to be quoted to stop it making incorrect decisions ;-)00:02
bahamatAlright, thanks for the help everyone. I'm very glad that I got this working, and that the only thing wrong was my own typos.00:08
bahamatOh, one more question. Does runcmd run after packages?00:09
minimalnot in the default config, no00:26
minimalruncmd runs in the "config" state and packages runs in "final" stage - this is defined in /etc/cloud/cloud.cfg00:26
xploraThis  'cloud-init status --wait'  is running forever,  following the lquick-start tutorial with lxd. What I am missing?07:45
masberhi, I stumped into a server with a cloud-init configuration, for some reason the IPs are not configured as they should, I checked a bit and I can se the cloud-init templates and the values under `/set/cloud`, the values seems to have the right IP I want the machine to have but when I run `$ cloud-init init` the IPs are not configured, any idea why?11:12
blackboxswxplora: that means that cloud-init is blocking on one of the boot stages not running yet. `cloud-init status --format=yaml` without the `--wait` should provide more context on the boot stages (init-local, init, modules-config and modules-final) and whether they have all finished. I'm presuming one of those four has not run yet for some reason. 13:44
blackboxswmasber, to see what cloud-init thinks it saw for network config you can check contents of /run/cloud-init/network-data.json. Also `grep -A 6 "Applying network config" /var/log/cloud-init.log` could give you a good hint about what cloud-init did when it found network configuration.  Note, that if configuration containing `network: {config: disabled}` exists in /etc/cloud/cloud.cfg.d/* then cloud-init won't write net cfg13:53
blackboxswhttps://cloudinit.readthedocs.io/en/latest/reference/network-config.html#disabling-network-configuration13:54
xploraThank you, blackboxsw. When I ran "systemctl --failed", I got these: snap.lxd.activate.service  not-found  failed failed  snap.lxd.activate.service. It is like the problem is "snap.lxd.activate.service"    19:03

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