/srv/irclogs.ubuntu.com/2022/11/24/#cloud-init.txt

testuser12345678Hi together,09:54
testuser12345678I am trying to configure networking with cloud-init on a CentOS cloud image. The cloud-init version is 22.1.6e1809:54
testuser12345678I enabled networking in /etc/cloud/cloud.cfg with:09:54
testuser12345678networking:09:56
testuser12345678  renderes: ['network-manager']09:56
testuser12345678  activators:['network-manager']09:56
testuser12345678When looking through the logs I get this error:09:56
testuser12345678ValueError: Unknown renderers provided in priority list: ['network-manager']09:56
testuser12345678Does anybody know how to solve it?09:56
acibatestuser12345678: Hello. Native support for the network_manager renderer was added in 22.3 in https://github.com/canonical/cloud-init/commit/feda344e6cf9d37b09bc13cf333a717d1654c26c10:09
-ubottu:#cloud-init- Commit feda344 in canonical/cloud-init "Add native NetworkManager support (#1224)"10:09
acibatestuser12345678: before that version, the sysconfig renderer was used to render NetworkManager configs on RHEL distros: https://cloudinit.readthedocs.io/en/22.1_a/topics/network-config.html#network-configuration-outputs10:19
waldiaciba: the user is already gone. patience is a virtue10:23
acibawaldi: thanks. Yeah, I saw it. But I had already looked for the answer, so I wanted to write it here. Just in case the user knows we have an archive of irc logs: https://irclogs.ubuntu.com/2022/11/24/%23cloud-init.html10:28
=== jmcgnh_ is now known as jmcgnh
kilianhi! are there examples of using cloud init in "live systems"? our machines do not have any disks12:05
minimalkilian: do you mean your using a run-from-ram OS or that OS storage is not local (e.g. NFS or iSCSI mounted)?14:30
kilianminimal: I mean run-from-ram OS15:28
kilianwhile OS is booted with PXE15:30
minimalkilian: so in other words you want cloud-init to its first-boot stuff EVERY boot as every boot is 1st (state is lost between reboots)?15:32
minimalso, like any use of cloud-init you need to decide how cloud-init is going to get its configuration and via which DataSource, e.g. NoCloud using a provided ISO/disk? NoCloud via HTTP download of cloud-init YAML files?15:34
kilianyes. currently we have our own toolchain to generate custom images (e.g. install packages, ssh keys, networking, big initramfs/squashfs) a possibly simpler solution would be to do all this work with cloud init15:34
kilianand thereby get rid of custom images15:34
minimalkilian: ^^^15:37
kilianminimal: the http download would be feasible in our use case i believe.15:52
minimalkilian: so have a look at the cloud-init docs for NoCloud, specifically using either by passing "ds=nocloud-net;s=<URL>" on cmdline (i.e. via bootloader), or via adding "seedfrom: <URL>" to /etc/cloud/cloud.cfg file16:00
minimalone issue/thing to point out, this will not fetch network-config, only user-data, meta-data, and vendor-data16:01
minimalhowever as a workaround you can embed network config in meta-data content16:01
kilianthanks minimal 16:12
kilianis there an example of disksetup for the in-memory filesystem?16:12
kiliani am not quite sure if that's even possible16:12
kilianlikely i just need to give it a try16:12
minimalkilian: oh, you can put files inside /var/lib/cloud/seed/nocloud-net/ as well, but then you'd be hardcoding things so they're not be unique between VMs16:17
minimalthat's detailed in doc/examples/seed/README16:17
kilianthanks, i'll give it a shot in a cold dark winter night :-)17:49

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