/srv/irclogs.ubuntu.com/2022/08/23/#cloud-init.txt

gjollyhi! Is there a way of writing the metadata/userdata/network-config directly in a cloud-image/live-image without using an extra CIDATA partition with NoCloud? I tried placing the files in /var/lib/cloud/seed/nocloud (before first boot) and it seems to work but I don't know if this is a supported  feature or a hack.08:53
=== hexa- is now known as h
=== h is now known as hexa-
blackboxswgjolly: sorry for the big delay here. you are correct and adding /var/lib/cloud/seed/nocloud or /var/lib/cloud/seed/nocloud-net/meta-data|user-data|network-config files is supported for image creation and not a hack15:55
gjollyblackboxsw: no worries, thanks! It's good news. Is that documented somewhere? or is it missing from here: https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html15:57
blackboxswit is supported to allow any image creator to override other datasource detection avenues.  And NoCloud will always be detected first if present. that nocloud content can come from those seed files you suggested, or even a URL that you provide via either kernel cmdline  or smbios serial number in qemu https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html#nocloud15:59
blackboxswgjolly: right that link is correct. it's worth a doc update for representing that 16:00
blackboxswgjolly: yes I think that is a gap, and the default seed directory should be represented in docs and it isn't16:00
blackboxswBTW the /var/lib/cloud/seed/nocloud-net  dir is what LXD uses on anything earlier than Jammy16:02
blackboxswso if you are looking to modify test images and using LXD be wary that launching those images may end up overwriting your tests16:03
blackboxswsome context on seed dirs and lxd https://blackboxsw.github.io/2021-11-08-customize-lxd-metadata-templates/16:04
minimalblackboxsw: I'd looked into this a while. For url-based seeding it does *not* request the network-config url (as networking is already up via DHCP in order to be able to fetch URLs) - however I did workaround this in the past by putting network config inside the meta-data file fetched16:05
blackboxswfalcojr: I've provided a manual for ubuntu/bionic for the SRU  since new-upstream-snapshot isn't working yet when refresh patches are involved16:27
blackboxsw*manual diff*16:28
blackboxsw+1 thanks for the reminder minimal 16:28
blackboxswreminder and workaround16:28
minimalblackboxsw: yeah I hit that as I was trying to using cloud-init with machines that needed to configure a VLAN (either for the initial DHCP to be able to reach the seed urls or to configure an initial static network config before requesting seed urls)16:34
gjollyblackboxsw: thanks for all the info16:53
falcojrblackboxsw: branches updated18:55
faahello, now cloud-init may work with jsonschema4?19:15
falcojrI'm assuming you're referring to jsonschema draft 4? Yes, cloud-init validates cloud-config userdata against a version 4 schema19:18
faathank, i'm maintain FreeBSD port, and old version (21.4) require jsonschema-319:20
faanow enable jsonschema-4 too19:20
blackboxswfalcojr: I just put up a devel release PR https://github.com/canonical/cloud-init/pull/1687 so that we can SRU that content into bionic|focal|jammy PRs 20:32
ubottuPull 1687 in canonical/cloud-init "Ubuntu/devel" [Open]20:32
falcojrblackboxsw: didn't we already upload 22.3 into ubuntu/devel? Is this just for the additional commits going into the SRU?20:41
blackboxswfalcojr: we did but we now pulled the additional commits into the SRU uploads20:41
blackboxswI generated that ubuntu/devel branch with the same commitish sync20:42
blackboxsw`new-upstream-snapshot 9f0efc474ea430c75cd0abec3e2da719d4934346`20:42
blackboxswonce we have that PR in, I can dput your bionic|jammy|focal branches up20:42
blackboxswchangsets look good, I'm just commenting on the PRs now 20:42
falcojrblackboxsw: sounds good. One comment on the PR20:43
blackboxswyes it should, thanks for the fix merge20:46
blackboxswkinetic uploaded, and bionic, focal impish uploaded to -proposed pockets21:17
falcojrs/impish/jammy ?21:18
blackboxswforce of habit21:19
blackboxswjammy21:19
blackboxswUnapproved: cloud-init (bionic-proposed/main) [22.2-0ubuntu1~18.04.3 => 22.3-3-g9f0efc47-0ubuntu1~18.04.1] (edubuntu, ubuntu-cloud, ubuntu-server)21:19
blackboxsw15:16 Unapproved: cloud-init (focal-proposed/main) [22.2-0ubuntu1~20.04.3 => 22.3-3-g9f0efc47-0ubuntu1~20.04.1] (core, edubuntu, ubuntu-cloud)21:19
blackboxsw15:16 Unapproved: cloud-init (jammy-proposed/main) [22.2-0ubuntu1~22.04.3 => 22.3-3-g9f0efc47-0ubuntu1~22.04.1] (core, ubuntu-cloud)21:19
blackboxsw[ubuntu/kinetic-proposed] cloud-init 22.3-3-g9f0efc47-0ubuntu1~22.10.1 (Accepted)21:19
blackboxswExternal21:19
blackboxswso those releases will include up until upstream commit 9f0efc474ea430c75cd0abec3e2da719d493434621:20
blackboxswI'm uploading them to our ppa:cloud-init-dev/proposed now too21:20
falcojrsounds good21:22

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