/srv/irclogs.ubuntu.com/2022/07/27/#cloud-init.txt

holmanb@blackboxsw: ansible config module PR and LXD integration test PRs are up and ready for re-review when you get a chance.13:41
minimalholmanb: no alpine does not have systemd-detect-virt as it has no systemd at all14:33
holmanbminimal: yeah, figured15:17
=== themachine is now known as th3machine
minimalholmanb: there was an attempt to package systemd for Alpine a few months ago but it didn't happen - partly because at least one person perceived that the packager was doing so in order to cause "mischief" but also as quite a few patches were required to get systemd working on musl (the C library Alpine uses) and there was basically zero chance of those patches being accepted upstream (and so such an Alpine package would present a ongoing maintenance 16:02
minimalissue)16:02
holmanbminimal: I'm not trying to make init system decisions for alpine or any other distro, but this is a tool that I suspect would probably work standalone without systemd as your init system - it just evaluates what kind of container/vm it's running in based on information available.16:35
holmanbminimal: the relevent code chunk, in case you're interested: https://github.com/canonical/cloud-init/blob/fe3a2fbfc85dded8d54ef75a5373272743e51378/cloudinit/sources/DataSourceLXD.py#L5616:36
minimalholmanb: the systemd-detect-virt code is part of the systemd codebase, which is designed to work with glibc so it is likely it requires/assumes glibc extensions16:44
minimalholmanb: Alpine does have virt-what packaged which is similar, those perhaps not as extensive16:50
minimalhttps://people.redhat.com/~rjones/virt-what/16:52
holmanbahh, good point, forgot about musl17:03
minimalholmanb: that's the whole issue of the musl + systemd "standoff", musl is a POSIX-compliant libc, systemd only supports glibc (or glibc compatible) libc17:04
minimalso attempts to submit systemd MRs to support musl get a "no, tell musl to fix it" whereas musl would say "there's nothing to fix, that's not POSIX"17:05
minimalanyway, from a quick look at that cloud-init code I'd expect you could easily use virt-what (which is not Alpine-specific) if systemd-detect-virt is not installed17:06
holmanbminimal: agreed, it looks like it would work based on the man page18:04
holmanb@blackboxsw: doc8 release looks to be causing CI failures - I have a PR up that should fix it if you get a chance for a quick unblock18:05
holmanb@blackboxsw: integration tests aren't done yet but I expect to pass, the doc test (the one that fails with unpinned doc8) succeeded with the PR so I think it should get CI back in order: https://github.com/canonical/cloud-init/pull/162118:07
blackboxswholmanb: will grab that now thanks. almost done on your LXD PR18:10
holmanbblackboxsw: +1 digging into this it looks like this probably wouldn't be a problem except for a different pin we have for sphinx_rtd_theme. With a modern docutils we would be good. I'm going to update the PR to include that info.18:32
blackboxswfunny to see the primary maintainer of doc8 https://pypi.org/project/doc8/. familiar faces :)18:52
blackboxswmerged18:54
holmanbHeh, nice. Thanks!19:21
blackboxswholmanb: lvm integration tests look pretty good. sent back a request for how we are working around the lack of dm-thin-pools, otherwise +119:35
holmanb@blackboxsw: Thanks for the feedback. cc_lxd only supports ubuntu, which is why I didn't worry about an all-distro solution, but I can add this in case we want to extend support to the other linux distros.20:07
blackboxswahh right-o missed that distros declaration. and given that we probably don't need the   `cloud.distro.name == "ubuntu"`20:10
blackboxsw+1 on at least making it possible to open this up for more than ubuntu (not in this PR though)20:11
blackboxswalso, not sure in a followup PR if we also want to take special account for container based storage_backend:btrfs  as it ultimately requires that the underlying host is running btrfs https://linuxcontainers.org/lxd/docs/master/reference/storage_btrfs/#btrfs-driver-in-lxd20:14
blackboxswholmanb: otherwise I think we hit the following error  from `lxd init --auto --storage-backend=btrfs`20:16
blackboxsw`Error: The requested backend 'btrfs' isn't available on your system (missing tools)`20:16
holmanbgood point, the == "ubuntu" was probably misleading for review20:17
holmanbblackboxsw: interesting point on btrfs, I agree. That's why I excluded the integration tests from lxd, funny enough I didn't think about the implications for the config module itself. Modifying filesystems and volumes from an unpriv'd container shouldn't work (applies to lvm and zfs too).20:24
holmanbI'll add a fix for that as well to the PR20:25
holmanbignore my statement about lvm/zfs/btrfs -> reading the docs it's more nuanced than I assumed due to the lxd user/group20:48
blackboxswholmanb: if we get this lxd PR landed today. I'm game for trying to publish an interim release into kinetic which should help Azure folks out on their daily integration tests in kinetic20:49
holmanbsoundfs good to me20:49
blackboxswthe LXD PR won't help azure out, but the fact that we landed some cc_set_password fixes will20:49
blackboxswand I want to start getting LXD stuff out in release streams for better testing and vibislity20:50
blackboxsw*visibility20:50
holmanb@blackboxsw: sounds good - there's a small LXD bridge/mtu PR out there too if we want to air that out in kinetic, but no need to shoehorn that into the review queue ahead of the interim release. We need to draw the line somewhere :)21:00
holmanb@blackboxsw: pushed the storage requested change, CI is running -> https://github.com/canonical/cloud-init/pull/160221:02
* holmanb will stop broadcasting thoughts at everyone in irc now21:03
blackboxswholmanb: thanks for the broadcast. appreciated. I was looking into whether we want to support installing ansible-core as a minimal option/override instead just defaulting to ansible I think we need to check in with athos who is working the ansible server support as I also discovered ansible-core doesn't install without postinst errors on kinetic21:18
blackboxswI may have hit https://bugs.launchpad.net/ubuntu/+source/ansible-core/+bug/196991721:24
ubottuLaunchpad bug 1969917 in ansible-core (Ubuntu) "package ansible-core 2.12.0-1 failed to install/upgrade: installed ansible-core package post-installation script subprocess returned error exit status 1" [Undecided, Confirmed]21:24
holmanbgood idea with -core - A simple way to implement that might be to have the package name as another field (default "ansible", or whatever) the user could then override with -core if they wish21:25
blackboxsw+1 holmanb that's the comment I have yet to submit21:28
blackboxswhttps://github.com/canonical/cloud-init/pull/1579/files#r93159699921:28
ubottuPull 1579 in canonical/cloud-init "Add Ansible Config Module" [Open]21:28
blackboxswI think it's reasonable/flexible enough  to allow pip version overrides too21:28
blackboxswholman here's the symptom w/ ansible-core on jammy https://bugs.launchpad.net/ubuntu/+source/ansible-core/+bug/1969917/comments/521:38
ubottuLaunchpad bug 1969917 in ansible-core (Ubuntu) "package ansible-core 2.12.0-1 failed to install/upgrade: installed ansible-core package post-installation script subprocess returned error exit status 1" [Undecided, Confirmed]21:38
holmanbblackboxsw: nice report! Have you already pinged athos? if not I will21:50
blackboxswholmanb: I pinged athos in #ubuntu-server for tomorrow23:28
blackboxswhttps://github.com/canonical/cloud-init/pull/1620 merged23:28
ubottuPull 1620 in canonical/cloud-init "LXD Add MTU Support" [Merged]23:28
* blackboxsw wants a bot to announce github PRs merged. It gives such a sense of accomplishment23:29
blackboxsw... but maybe that just translates to noise for folks.... opinions welcome23:29
blackboxswI guess noisy bots can be muted individually in IRC for those that don't want to look23:29

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