[00:01] minimal: the problem was identifying what's causing the discrepancy: identical image, different network device names. netplan config was showing as written by cloud-init, so that was the first stop at the debugging tree [00:02] ananke: but what is the problem? using differing interface names is not in itself a problem [00:02] if network works then it works regardless of the names used [00:04] minimal: it is, if you have to manage images that have to operate on either scheme, with multiple network interfaces. when apps/services require configs that reflect appropriate network interface names, then eth1 vs ens6 can break things [00:04] ananke: so add "net.ifnames=0" to the cmdline as I mentioned earlier [00:04] then all interfaces will be named ethX [00:05] minimal: I feel like we're talking in circles. I'm not looking for a solution, I was trying to identify the root cause [00:06] ananke: and I mentioned that I suspected that the vif driver does not support predictable interfaces names, perhaps it is hardcoded to only use ethX [00:07] but as I can't find the source for it I can't confirm that suspicion [00:07] perhaps, but I was pretty much done with the debugging process at this point: 14:41 ananke> looks like this may be related to the network driver: vif vs ena [00:07] beyond that I was just entertaining your questions, I imagine you were interesting in more detail. I wasn't looking for a solution past that point [00:08] well that didn't really identify a root cause though [00:08] from my perspective, it did [00:12] for further detail, here's a post explaining the difference between the drivers used on t2 and t3 instances : https://www.mail-archive.com/debian-cloud@lists.debian.org/msg04285.html [00:13] ananke: actually I'm wrong, predictable names are handled by udev, not the kernel, so perhaps there's a missing udev rule for that device type [00:16] yes that explains it - they're not pci devices (which is why lspci didn't show them) [00:17] and that article makes exactly the same point I made - disable predictable names if you want t2 and t3 to have same naming [00:19] more info in the systemd source code in docs/PREDICTABLE_INTERFACE_NAMES.md [00:46] I'm actually thinking of using altnames, rather than falling back on the legacy mode. we can prop up old stuff only for so long, it's time to move on [00:49] though it will be interesting to figure out how to set those to be persistent in our images, but that's a problem for another day [00:51] ananke: I have physical machines where I use cloud-init's network-config's "set-name" to set interface names like "lan" and "wan" to make things clear [00:53] minimal: those type of names are actually very much in line of what I was thinking of, the issue though may be the fact that currently cloud-init's network is not something we can control [00:55] ananke: yes it different for a local physical/VM setup where you can control the network YAML and a cloud where the cloud provider presents it to cloud-init [00:58] it would be nice if we could merge those, and simply have a custom 'first network interface should have altname X, second network interface should have altname Y'. the network cards we assign via AWS show up in the expected order, so that would be ideal [00:58] beyond that, I can't rely on anything else. we don't know the MAC addresses, IP ranges, default routes, etc. [01:02] ananke: well that's what the EC2 IMDS is for :-) [01:04] minimal: not sure how that helps me [01:05] it doesn't really - you (and cloud-init) are limited to what IMDS presents [09:41] how to add more than one line for a source using apt: ? [12:37] MICROburst: Why do you want that? Is this for rfc822? [12:40] MICROburst: the apt config module doesn't support 822 yet, but you canuse write_files to add a new source file to /etc/apt/sources.list.d if you want rfc822 definitions [12:41] moin. i have a small design question. i want to add support for mirror+file:/// in apt-configure module (see apt-transport-mirror). how would you design the knob to enable this feature? [12:41] - config entry, similar to apt.preseve_source_list [12:42] - detect if hard coded files exist (like /etc/apt/mirror.list/cloud-init-security.list) [13:08] waldi: Not very familiar with it, but it probably warrants adding a new config key for enabling the feature. [13:19] hmm, do ubuntu images really contain a complete set of metadata in /var/lib/apt/lists/? because the apt-configure module does not run apt-get update if it only changes the main apt config, but tries to rename existing files [13:19] holmanb: yeah… [15:27] holmanb: Are you sure your are referring to the correct RFC? https://www.rfc-editor.org/info/rfc822 [15:27] write_files does not seem to work properly for me [19:39] holmanb: falcojr https://github.com/canonical/pycloudlib/pull/211 for less Azure logs during integration tests [19:39] Pull 211 in canonical/pycloudlib "azure: reduce logging noise to only warnings for every HTTP request" [Open] [20:14] should obj.pkl be updated after get_data()? i'm not seeing an update to the pkl and the cache updates made during init-local are being lost [20:16] and `applying net config names for ...` ends up using the previous config [20:51] MICROburst: https://manpages.ubuntu.com/manpages/jammy/en/man5/deb822.5.html [20:56] MICROburst: "does not seem to work properly for me" -> will require more information to debug, you probably want to check for warnings in your /var/log/cloud-init.log [21:30] https://github.com/canonical/cloud-init/pull/1667 [21:30] Pull 1667 in canonical/cloud-init "stages: sync datasource cache after updating metadata" [Open] [21:37] holmanb: It does not substitute variables like §RELEASE, the stuff goes verbatim into the file. [21:41] MICROburst: Correct. If you need more complicated logic you'll need to use runcmd or a different user-data format. [22:52] or bootcmd/etc