/srv/irclogs.ubuntu.com/2020/02/21/#cloud-init.txt

boolmanhow can I force netplan on cloudinit?11:25
meenaboolman: https://cloudinit.readthedocs.io/en/latest/topics/network-config.html#network-configuration-outputs it's default on Ubuntu 17.1011:33
meenaboolman: but you can override the default: https://cloudinit.readthedocs.io/en/latest/topics/network-config.html#network-output-policy11:34
meenaof course, that would require that the binaries be in placeā€¦ and that netplan can render for whatever the backend is, that your OS actually supports.11:34
meenaNetplan currently works with these supported renderers11:35
meena    NetworkManager11:35
meena    Systemd-networkd11:35
shibumiHi can somebody explain me this error here? udevadm test-builtin net_setup_link /sys/class/net/lo fails with No such file or directory13:08
shibumiThe error message is at this location: https://github.com/canonical/cloud-init/blob/13e82554728b1cb524438163784e5b955c7c5ed0/cloudinit/net/netplan.py#L25613:08
Odd_Blokeshibumi: What version of cloud-init are you using, and on what distro?14:20
rharpershibumi: looks like your OS/kernel does not provide a loopback network interface15:23
boolmanim trying to get cloudinit to work on vmware, but it works like 1/10 of the time. other times it either doesnt even get the user/metadata or configures the network to late. different hosts each time. seems so random.15:27
boolmanshould mention that im deploying with terraform15:28
rharperboolman: hi;  vmware + cloud-init is not in a great spot;  this is a known issue;  there are some discussions with VMWare cloud-init devs to work on supporting user-data, network-config and vmware customization;15:37
boolmanrharper: okey, so just not do it is the current solution?15:41
rharperboolman: well it depends on what "mode" you're using; https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/180613315:50
ubot5Ubuntu bug 1806133 in cloud-init (Ubuntu) "OVF does not read user-data if vmware IMC is used." [Medium,Confirmed]15:50
shibumiOdd_Bloke: arch linux15:51
shibumiOdd_Bloke: newest release15:51
shibumiOdd_Bloke: cloud-init 19.315:51
shibumiOdd_Bloke: maybe a bug in the new arch linux implementation for cloud-init?15:51
shibumirharper: it should..i have no idea what's going on15:51
rharpershibumi: me neither; I don't know what creates the initial loopback interface; I was fairly certain the kernel itself does this;15:53
rharperwhich made me wonder what kernel was in use15:53
boolmanrharper: not sure what you mean, Im deploying a regular vm template, without vmware customization15:55
rharperOVF has many places it "fetches" configuration from15:55
boolmanim not using OVF atleast15:56
rharperthen IMC ?15:56
boolmanIm not following, Ive manually installed a ubuntu bionic from cd, installed cloudinit and vmware's cloudinit guestinfo package. converted to template.15:57
rharperif you like, you can run cloud-init collect-logs and the tarball will have info we look at what's going on;  it may be a known issue, or it could be a new one15:57
rharperwhen you boot the template cloud-init needs a datasource; on VMware platforms, this is typically OVF;15:58
boolmanhttps://github.com/vmware/cloud-init-vmware-guestinfo15:58
rharperthe platform provides to the guest 1) an iso OVF format 2) OVF in the filesystem of the guest  3) vmware customization config in the filesystem of the guest15:58
rharperwe don't support that15:58
rharperit's out of tree;  if VMware wanted to contribute that to cloud-init; that'd be nice15:59
rharperit has 9 issues; maybe one of them is relevant ?15:59
rharperhttps://github.com/vmware/cloud-init-vmware-guestinfo/issues/515:59
boolmanno that doesnt seem relevant to my problem16:01
johnsonshiHi guys, I am trying to configure an Azure VM so that its per-boot scripts would persist across 'cloud-init clean -lr' invocations. I have dropped some scripts into /var/lib/cloud/scripts/per-boot, but when I issue cloud-init clean -lr, the scripts are not executed, and when I look into the per-boot scripts directory, it is empty. The cloud-init.log file also makes no mention of executing any script within the per-boot directory. That means18:35
johnsonshisomehow per-boot directory gets cleaned when cloud-init clean -lr runs.18:35
johnsonshiThe docs mention that "Any scripts in the scripts/per-boot directory on the datasource will be run every time the system boots." does that mean that in order to configure per-boot scripts, I would need to configure the datasource (which in this case is the Azure datasource (since this is an Azure VM))18:36
Odd_Blokejohnsonshi: `cloud-init clean` cleans out all of /var/lib/cloud (by design).  Perhaps changing your process to put those scripts in place _after_ you clean would work?18:52
johnsonshiOdd_Bloke: I have just discovered that the write_files module runs first (during the first stage of cloud-init), while the per-boot module runs in the last module. I will try that out instead. Thanks!19:00
johnsonshiOdd_Bloke: Perhaps I could get write-files to write the scripts into the per-boot directory.19:01
Odd_BlokeI believe that would work.19:19
Odd_Blokeblackboxsw: rharper: The updated release process doc/script: https://github.com/CanonicalLtd/uss-tableflip/pull/3721:20
Odd_Blokeblackboxsw: Can you point me at the template Trello board?  I want to be 100% sure I'm modifying the correct thing. :p21:21
blackboxswOdd_Bloke: https://trello.com/b/QQYFXpsA/template-sru-cloud-init-xy21:21
Odd_BlokeThanks!21:21
blackboxswno prob21:21

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