/srv/irclogs.ubuntu.com/2020/11/30/#cloud-init.txt

chillysurfergood day, all! i'm curious under what circumstance a network interface would be renamed to `cirename0`? briefly looking through the code isn't extremely obvious what the condition would be17:37
powersjchillysurfer, rharper's previous comment in https://bugs.launchpad.net/cloud-init/+bug/1852162 might be helpful17:41
ubot5Ubuntu bug 1852162 in cloud-init "Some NIC didn't get the IP when attach multiple nics after VM provisioned on azure" [Undecided,Expired]17:41
chillysurferpowersj: so basically cloud-init uses cirename0 so that after a different interface setting (i.e. changed entwork adapters) it'll still retain the original and configured adapter names?17:57
powersjchillysurfer, I think that is how I read ryan's comment as well17:58
chillysurferpowersj: perfect thanks!17:58
=== vrubiolo1 is now known as vrubiolo
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson
powersjKrikke, the command you were looking for earlier is cloud-localds: https://cloudinit.readthedocs.io/en/latest/topics/faq.html#cloud-localds18:54
powersjhandy way to produce an ISO with user data or metadata to then pass the disk to an instance18:54
powersjthe doc above has some examples using qemu18:55
rharperchillysurfer: the 'cirename' prefix is used as a swap value;  if we need to rename an interface (set-name in config); if we need to swap names (eth0 and eth1 names are reversed from a previous boot), then we cannot just rename eth0 to eth1; in those cases we use a cirenameX as placeholder;   see cloudinit/net/__init__.py:_rename_interfaces();19:05
chillysurferrharper: thanks!! that makes total sense19:28
rharperchillysurfer: sure;  in some failure paths, you'll see cirenameX still around;  are you seeing that ?19:28
chillysurferrharper: i don't think so but i'll validate that as well19:38
Krikkepowersj: ah ok, the terraform scripts do it for me :)20:13
giesenArghh lost hours because the documentation for static routes is partially incorrect with regards to Network Configuration v2. Submitted a pull request to fix it :))23:26

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