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

holmanb@minimal: ping16:21
minimalholmanb: hi16:24
holmanbminimal: thanks for the fs PR :)16:25
holmanbminimal: I'm a little confused why the parsing differs between ubuntu and alpine (works on ubuntu). Does alpine have its own cli parser?16:25
minimalyeah I found it by chance when I found the time to actually test cc_disk_setup/cc_mounts on Alpine16:25
minimalAlpine is using stock e2fsprogs mkfs.ext416:26
minimaland the manpages that I looked at for various mkfs tools all show options before the device name16:26
holmanbagreed, per the docs what we're doing now doesn't make sense16:26
holmanbjust curious why it works on ubuntu16:26
minimalthe only difference then between Alpine using mkfs.ext4 and Ubuntu using mkfs.ext4 would be musl vs glibc16:27
minimalso unless mkfs.ext4 is using some libc function that behaves differently on musl vs glibc I don't know16:27
minimalmusl does pride itself in following POSIX spec16:27
holmanbI wonder if their getopt() implementation differs from glibc16:28
minimalah, from https://wiki.musl-libc.org/functional-differences-from-glibc.html16:30
minimal"GNU getopt permutes argv to pull options to the front, ahead of non-option arguments. musl and the POSIX standard getopt stop processing options at the first non-option argument with no permutation."16:31
holmanbnice16:31
holmanbthat checks out16:31
holmanbthanks for finding that :)16:31
minimalso glibc resorts the cli list internally to "fix up" for badly ordered options?16:31
holmanbsounds like a glibc thing to do16:31
minimalyeah a GNU "extension" to POSIX16:32
acibaI was digging into https://github.com/tytso/e2fsprogs/blob/master/misc/mke2fs.c but you were faster :)16:32
minimalso glibc helps people who don't follow the manpage lol16:32
minimalyou saw also the minor docs/example changes I put in that PR?16:32
acibathen we could potentially have more wrong commands over musl16:33
holmanbeither way, the PR lgtm - though for future git history mining purposes I think it would be better to update the proposed commit message  to something like "It is not clear to me how the existing code ever worked *with (musl|non-glibc) based OSes* ..." or something to that affect16:33
holmanbminimal: I can do that unless you'd prefer to16:33
minimalholmanb: I can do that now16:33
holmanbthanks16:34
holmanb> so glibc helps people who don't follow the manpage lol16:34
holmanbglibc "helps" with a lot of things ;)16:34
minimalBTW re disk_setup, it currently is listed as for all distros but it apparently has never been tested with BSD and I'm not sure all the commands it uses are available for BSD16:34
minimalthere' currently no way to define any c-i modules as "linux only"16:35
minimalshort of listing all the various linux distros individually16:35
holmanbaciba: +1 agreed we should probably check for other commands too16:36
holmanbminimal: helpers for that would be nice, matrix management for "distro" support has probably outgrown its current interface16:38
minimalwell I was wondering whether in addition to "all" there should be "all-linux" and "all-bsd" definitions16:40
holmanbsounds reasonable to me16:40
cjp256holmanb: there's some variants out there, but I'm looking at one that matches https://bugs.launchpad.net/cloud-init/+bug/184419118:46
-ubottu:#cloud-init- Launchpad bug 1844191 in cloud-init "azure advanced networking sometimes triggers duplicate mac detection" [Critical, Fix Released]18:46
cjp256the fix committed their addresses it most of the time, but there is a gap between when the interface surfaces and gets bonded as the slave interface, so there's a race there still18:47
cjp256at the end of the day, I think it's simply fair to say that duplicate mac is a bad assertion other than for the data structures being used there :)18:48
holmanbcjp256: agreed19:49
holmanbcjp256: net.__init__.py assumes mac addresses on a host are unique in a bunch of different places :(20:11
holmanbcjp256: I just reopened 1844191. It seems like cloud-init shouldn't be gathering this info yet if the kernel hasn't finished configuring interfaces yet, unless some other attribute is given that we can key off of in place of the `*/master` entry.21:59
cjp256thanks holmanb23:13

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