/srv/irclogs.ubuntu.com/2023/05/09/#cloud-init.txt

minimalSuperLag: obviously using the "apt:" section is only going to work for apt/deb-based distros like Debian/Ubuntu, likewise using "yum_repos:" is only going to work for RPM-based distros00:04
meenaanyone know what the best strategy is for getting https://github.com/canonical/cloud-init/pull/2157 tested? it looks like there's no unit tests for routes in the renderer tests right now, at all13:49
-ubottu:#cloud-init- Pull 2157 in canonical/cloud-init "Added / fixed support for static routes on OpenBSD and FreeBSD" [Open]13:49
meenavery naïve patch: https://github.com/canonical/cloud-init/pull/2168 needs testing (but I've already got a VM with MBR setup)14:49
-ubottu:#cloud-init- Pull 2168 in canonical/cloud-init "FreeBSD (and friends): better identify MBR slices" [Open]14:49
holmanbminimal: thanks for helping threepistons, I see they've left now but I was going to mention that I learned about url/cloud-config-data recently when updating cloud-init docs.15:28
holmanbminimal: I was also initially under the impression that it was MAAS-only, however I think it's actually a feature that was requested for maas but made more general.15:28
holmanbIt has a handful of shortcomings, which I tried to document better with the changes I made.15:31
holmanb The interface feels very much like a bolt-on idea.15:31
holmanbSo does the include file format for that matter.15:31
minimalholmanb: certainly for nocloud-net the include stuff, if it worked, would seem a bit clunky15:51
holmanbminimal: agreed15:52
holmanbbut the fact that it does leaves is with a crappy ux - a documented format that works in some cases but not others15:53
meenahttps://github.com/canonical/cloud-init/issues/4 this should probably be closed now16:08
-ubottu:#cloud-init- Issue 4 in canonical/cloud-init "Agree with LaunchPad issue, either update of this repo or kill it" [Open]16:08
falcojrmeena: heh, thanks. Just saw it too and was about to close it16:08
meenahttps://github.com/canonical/cloud-init/issues/3 and i don't even know what this is16:10
-ubottu:#cloud-init- Issue 3 in canonical/cloud-init "Linux VM fail to read admin_pass to reset the root password" [Open]16:10
falcojrit's just a very old issue that happened to "disappear" when we closed github issues many years back. We'll triage it accordingly in time16:10
minimalit seems to refer to a cloudbase-init (Windows cloud-init "clone") specific user-data setting: "admin_pass:"16:33
meenadoes Linux have an equivalent to https://github.com/freebsd/freebsd-src/blob/main/libexec/rc/rc.d/growfs ?17:29
meenaI'm thinking of replacing the FreeBSD17:30
meenacc_growfs Code with `service growfs onestart`17:30
minimalcc_growfs? you mean cc_growpart or cc_resizefs? ;-)17:32
minimalfor cc_growpart Linux typically uses growpart from cloud-utils17:33
minimalfor cc_resize the program used depends on the particular filesystem, e.g. resize2fs for EXT2/3/417:33
falcojrAs announced the other week, I'm starting the bug migration from Launchpad to Github Issues today. If you have repo email notifications turned on for either Github or Launchpad, you might want to turn them off..17:33
minimalfalcojr: where's that configured in Launchpad? I don't see it17:39
falcojrhttps://bugs.launchpad.net/cloud-init/+subscriptions17:39
minimalthankds17:41
minimalmeena: there is no "standard" daemon for Linux to grow/resize partitions & fs. Also the c-i modules only manipulate the rootfs partition & fs, that FreeBSD daemon also deals with swap partition which c-i handles via cc_disk_setup17:51
meenaI could literally just replace all three of those with a call to service growfs onestart18:08
meenaaaaaand, i think it would probably be quite sensible18:09
minimalit depends ;-)18:10
minimalfrom memory with some cloud providers swap may go elsewhere18:10
minimalalso someone may want a swapfile rather than a swap partition18:10
minimaland someone may want to control any partition or fs resizing (I added "overprovisioning" support to cloud-utils' growpart some time ago for SSD use)18:11
meenaokay, so, more like, cc_growpart and cc_resizefs then18:23
minimalmeena: my point about overprovisioning, for SSDs I typically want the partition resizing to ensure that a percentage (i.e. 10%) of the device is not partitioned (and so not used) to "help" the lifetime of the SSD18:24
minimalenterprise SSDs already tend to be overprovisioned, the above helps for consumer SSDs18:25
minimalI just haven't gotten around to adding the overprovisioning support to cc_growpart yet (the underlying tool has it for some time)18:26
minimalcc_growpart and cc_resize also need to handle "stacked" filesystems - i.e. fs-on-LVM, or fs-on-LUKS encryption, or fs-on-Software RAID, or fs-on-LVM-on-LUKS-on-Software Raid ;-)18:29
minimalso with fs-on-LVM you may want cc_growpart to grow the root partition to fill the disk and grow the LVM PV to fill the partition but *not* want cc_resizefs to grow the root LV or the rootfs inside the LV18:31
meenaokay, I've added the pull request, I think I should mark it WIP, cuz I just realized this service only works for the root dev.22:44
meena(also, I really need to figure out how to make it not do the swap thing, cuz maybe some people like having servers without swap)22:44
meenait means they also have servers that can't crashdump, but, hey, who am I to judge?22:45
meena(I am very judgy when it comes to debugging crashed software)22:45
minimaldoes this block until the resizing is finished?23:00
meenayes23:12
minimalok23:13

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