/srv/irclogs.ubuntu.com/2023/03/23/#cloud-init.txt

=== tds7 is now known as tds
=== thelounge1591 is now known as thelounge159
jchittummaybe an odd question, but is there some "simple" thing i can add to cloud-init user-data that will _definitely_ cause cloud-init to fail and report an error?12:44
minimaljchittum: when you say "fail and report an error" exactly what do you mean? If your user-data includes some incorrect setting values then you will get schema error messages both in the cloud-init.log and on the console. What type of failure are you wanting?13:15
cjp256holmanb: https://github.com/canonical/cloud-init/pull/209113:20
-ubottu:#cloud-init- Pull 2091 in canonical/cloud-init "unittests/sources: patch util.get_cmdline() for datasource tests" [Open]13:20
jchittumpretty much anything that will do `cloud-init status : error` and have `cloud-init status --format json` have things in `{errors:[]}`, in a reliable fashion.13:25
jchittumi'm working on better Ubuntu cloud-image integration tests (the tests run on images, not cloud-init), and want to make sure I am suitably capturing the errors so i can bubble them up in our tests13:26
holmanbcjp256: Thanks!13:39
cjp256added another one for vmware but unrelated to the other change13:39
cjp256didn't figure out why that one works otherwise https://github.com/canonical/cloud-init/pull/209213:41
-ubottu:#cloud-init- Pull 2092 in canonical/cloud-init "tests/vmware: fix test_no_data_access_method failure" [Open]13:41
jchittumi think i have a reliable thing for me to test our error handling and bubbling up. i since i know `resize2fs` is unhappy in lunar, ran lunar and a runcmd that's `resize2fs` over and over again 🤣13:42
aciba[m]jchittum: invalid/deprecated user-data is not treated as a hard error (to keep backwards compatibility), and it is not included in the output of cloud-init status (I think). one can manually run cloud-init schema --system to check it13:46
holmanbrfc related to command line parsing and nocloud: https://github.com/canonical/cloud-init/pull/209322:04
-ubottu:#cloud-init- Pull 2093 in canonical/cloud-init "Standardize NoCloud Command Line Parsing" [Open]22:04
blackboxswtwo fun PRS for desktop live installer to make desktop environments execute cloud-init.service after NetworkManager: https://code.launchpad.net/~chad.smith/livecd-rootfs/+git/livecd-rootfs/+merge/439585  https://code.launchpad.net/~chad.smith/livecd-rootfs/+git/livecd-rootfs/+merge/43958623:03
blackboxswour desktop installer live iso needs to order after NetworkManager.service so any autoinstall nocloud directives can properly resolve FQDNs which could be provided on the kernel cmdline 23:04
=== `Nothing4You is now known as Nothing4You

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