/srv/irclogs.ubuntu.com/2021/12/28/#cloud-init.txt

Nothing4Youi'm trying to figure out how to properly auto grow a multi disk btrfs array, i can get cloud-init to resize the related partitions by passing them to growpart but the btrfs volume is only grown once for the first grown device00:25
Nothing4Youseems like a limitation in current cc_resizefs00:50
minimalNothing4You: probably. There's WIP currently for dealing with LVM using cc_growpart/cc_resizefs00:58
Nothing4Youi'm writing a bug report right now00:58
Nothing4Youthe problem is it's using `btrfs filesystem resize max /` which only resizes the first volume00:58
Nothing4You*disk00:58
Nothing4Youif you don't pass a disk id it uses disk id 1 by default00:58
minimalNothing4You: you could always use "runcmd:" to do the correct commands yourself00:59
Nothing4Youyou'd need to get a list of all disk ids from btrfs and then run resize for each one00:59
Nothing4Youyeah, i'll have to do that as workaround, until a patch hits debian years go by :)00:59
minimalNothing4You: like most opensource projects its often a case of workout how to add the support yourself and submit a MR - that's what I do when I hit an issue :-)01:01
Nothing4Youyeah, for now i'm just documenting, it's 2am already, i need to get some sleep01:01
Nothing4Yousince i'm generating the images myself i could also just patch the relevant python file in my image generation script once i have a patch though01:02
Nothing4Youso i might just do that01:02
Nothing4Youif it's not too complicated01:02
minimalI do something similar - I manage the Alpine Linux packaging so I often come up with a fix, patch it into the Alpine package, and also raise an MR to get it fixed upstream later01:02
minimalc-i is released quarterly, next release (22.1) is due late Feb from memory. Though of course Debian may take sometime after that to package it01:03
Nothing4Youhttps://bugs.launchpad.net/cloud-init/+bug/1955858 now i can go to bed :)01:10
ubottuLaunchpad bug 1955858 in cloud-init "cc_resizefs does not allocate space on all disks of a multi disk btrfs volume" [Undecided, New]01:10
minimalNothing4You: haven't used ProxMox yet, was there anything special you had to do to whatever Linux distro you're using to get cloud-init working with ProxMox?01:12
Nothing4Youminimal: i'm building a customized version of the official debian-11-generic-amd64 cloud image, but that's mostly unrelated to cloud-init01:13
Nothing4Younothing needed to be done in the image directly01:14
Nothing4Youunfortunately in proxmox the way to pass user data is quite limited01:14
Nothing4Youbasically via gui/api you can only set very few variables01:14
Nothing4Youfor more configuration you need to manage snippets (files on the host filesystem) which there is no api for at this time01:15
Nothing4Youand then attach those files via `qm set` to the vm01:15
minimalcool that's there's nothing need for VM - I have a script for creating cloud-init enabled Alpine disk images and have been intending to test it with ProxMox sometime01:15
Nothing4Youmain reason i generate customized images is using btrfs for the root fs and using netplan01:16
minimalnetplan on Debian? hmm......01:18
Nothing4Younetplan is specifically because i have network configuration that cannot be represented by the default renderer01:18
Nothing4Youyeah01:18
Nothing4Younetplan with networkd01:18
minimaloh, not tried networkd - Alpine uses e/n/i like Debian and I've used both v1 and v2 network-config YAML01:19
Nothing4Youan example of what my netplan config looks like https://gist.githubusercontent.com/Nothing4You/f19352da2fa8fe1be4d9a083971bb097/raw/0b5e32689726a2aaa08a74396946dc011aeb623c/gistfile1.txt01:20
minimalnothing out of the ordinary in there - I've used that sort of config fine with e/n/i on Alpine, I'd assume it would also be fine for e/n/i in Debian01:21
Nothing4Younot sure if it was a c-i or e/n/i limitation but i think it was the source aspect that wasn't supported somewhere01:22
minimalnetworkd is from systemd right? has Debian switched over to use it rather than e/n/i?01:22
Nothing4Youas in from: in routes01:23
Nothing4Youyes, systemd01:23
Nothing4Youno, iirc debian still defaults to e/n/i01:23
Nothing4Youplaying with from: in routes is rarely used, even more rarely changing the from: value at runtime01:23
Nothing4Youhttps://bugs.launchpad.net/netplan/+bug/184695401:24
ubottuLaunchpad bug 1846954 in netplan.io (Debian) "Route does not get removed when it's not defined anymore" [Undecided, New]01:24
Nothing4Youhttps://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html does not explicitly list "from:" as valid value for routes01:25
Nothing4Youi had this issue before which resulted in the netplan passthrough paragraph being added at the top of the page01:25
Nothing4Youhttps://bugs.launchpad.net/cloud-init/+bug/190913801:26
ubottuLaunchpad bug 1909138 in cloud-init "cloud-init should officially support routes with source ip" [Wishlist, Fix Released]01:26
minimaldid we talk about this on here maybe 6 or so months ago? it sounds familiar01:27
minimaljust had a quick look at network_state.py and yes it doesn't seem to handle the source aspect of routes01:27
Nothing4Youactually it was in january :D01:28
minimalyes it was me, the 2nd bug is familiar - it was me who told you that it working for netplan might be an unintended side-effect rather than by design (which oddbloke then clarified)01:29
minimalthought there was some activity to add this for non-netplan - guess I was wrong01:30
Nothing4Youanyways 2:35am, actually gonna get some sleep now01:36
Nothing4Youthanks for the talk, we'll probably continue in another year or so :)01:36
minimalthat's less than a week away ;-)01:36
minimalsee ya01:36
Nothing4Younext year != in another year :P01:37
Nothing4Youactually you could interpret another as different rather than one more as well01:37
Nothing4Youi guess both work01:38

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