/srv/irclogs.ubuntu.com/2023/10/27/#cloud-init.txt

meenaSuperLag: can you show us the logs?17:51
SuperLagsorry meena, just now seeing this…20:29
SuperLaghttps://dpaste.com/AJQ4FGXD8 and https://dpaste.com/3WM76A6MG20:29
holmanbminimal: does `cloud-init analyze` work on alpine?22:45
holmanbI'm curious if the author of this page[1] meant to say:22:46
holmanb"The analyze subcommand only works on systemd-based distros."22:46
holmanb[1] https://cloudinit.readthedocs.io/en/latest/explanation/analyze.html#availability22:46
holmanbnevermind, I see the calls to systemctl this is very tightly coupled22:52
holmanband in theory this would work on gentoo/systemd too22:52
holmanb... if cloud-init had better gentoo support22:52
minimalholmanb: blame, show, and dump work on Alpine, it's just "boot" that doesn't due to its reliance on systemd22:54
minimalI briefly looked at it a month or 2 ago thinking of getting it working but didn't dig deep enough to work out what changes were needed22:55
holmanbminimal: gotcha, nice22:55
holmanbthanks for the information22:55
minimalit's on my long list of things to work on lol22:56
holmanbthe neverending list :P22:57
minimalBTW am trying to figure out python gpep517 support22:57
minimalholmanb: yeah I recently added both the lxd DS and cc_lxd to that list ;-)22:58
holmanbah nice23:02
holmanbhow good is lxd support on alpine?23:02
minimalI'm new to lxd myself, only recently spun it up on a VM (to initially test containers)23:03
holmanbgotcha23:03
holmanbI like it23:03
holmanbit's nice23:03
minimaland from a quick look at the LXD DS it seems some Alpine-specific changes needed, e.g. the sock file is not in the usual place23:04
holmanbthe other day I was trying to use it on an old gentoo server of mine and got stuck on subuid/subgic configuration - didn't work out of the box23:04
holmanbbut also I didn't try debugging for very long23:04
minimalAlpine actually has 2 versions packaged - package lxd is 5.0.2, package lxd-feature is 5.1923:05
holmanbgotcha, sock file should be easy enough to work around I assume23:05
minimaland they're not identically setup (2 different maintainers)23:05
holmanblxd on ubuntu has been snap-only for a while - no deb is maintained23:05
holmanbhrm, 2 maintainers for different versions of the same package sounds problematic23:06
minimalit's the "usual" situation of someone supporting/maintaining a "stable" version and someone else wanting the latest/greatest23:06
holmanbgotcha23:07
holmanbif you feel like a quick docs review https://github.com/canonical/cloud-init/pull/4563/files23:07
-ubottu:#cloud-init- Pull 4563 in canonical/cloud-init "Docs Correction" [Open]23:07
minimaldo you know anything about python gpep517 at all?23:08
holmanbuhhhh, a tiny bit23:08
holmanbwait is gpep a thing?23:08
holmanbI thought it was a typo before 23:08
minimalits a "setup.py replacement"23:08
holmanbbut you did it again and now I'm second guessing myself23:08
holmanbyeah I pushed a package to pypi a while ago that used pep51723:09
minimalso using "gpep515 build-wheel --wheel-dir .dist --output-fd 3 3 3>&1 >&2" to build cloud-init23:10
minimaland then apparently "python3 -m installer -d "$pkgdir" .dist/*.wml" to package it up23:10
minimalwhich is how rthe numerous Alpine python packages do this, except this result in *ALL* the cloud-init stuff (including etc directory) being placed inside the site-packages directory23:11
minimalhad a scan of the gpep517 and the python installer modules docs and am none the wiser lol23:12
holmanbyeah it's... confusing23:13
holmanband our setup.py does some random stuff like call external scripts for templating23:13
sam_gpep517 is a frontend we made to try paper over the mess 23:14
sam_https://github.com/projg2/gpep51723:14
sam_alpine started using it too because it's good23:14
holmanbhowdy sam_ o/23:14
sam_hi!23:14
minimalI started looking at gpep517 as a side action of trying to figure out the recent "YAML parsing errors of systemd template files" that I've been seeing with c-i master (but NOT with previous releases), still haven't haven't figured that one out yet23:15
holmanb>  It is the tool of choice for a world that does not revolve around pip and venvs.23:16
holmanbXD23:16
holmanbI like it23:16
minimalsam_: Hi. Looking at examples of other Alpine packages I couldn't figure out how to pass extra options to "python3 -m installer" packaging stage that I currently pass to "python3 setup.py install" (like "--init-system=sysvinit_openrc")23:17
sam_https://github.com/projg2/gpep517/issues/1023:19
-ubottu:#cloud-init- Issue 10 in projg2/gpep517 "how to pass setup.py arguments" [Closed]23:19
sam_(https://github.com/projg2/gpep517/issues/10)23:19
sam_holmanb: yeah, it's our best effort for coping with it23:20
sam_the ecosystem is kind of a mess rn though23:20
sam_it's a nice idea (pep517), but it's messy rn23:20
sam_the defacto stuff for what gpep517 does is 'installer' and 'build'23:20
sam_and they have a tonne of deps23:20
minimalsam_: before you joined the convo I mentioned I'm seeing the installer currently put *everything* inside site-packages, even the etc dir that should be /etc :-(23:23
sam_... that was the next bit I was going to mention23:23
sam_there's no standard way for pep517 things to install outside of site-packages23:23
sam_this is probably the worst part23:23
minimaldoh! ok, so I'll forget about gpep517 for the near future then23:23
sam_what we've done for portage (because it's both a python module but we also want to install files to /etc, etc) is use meson-python in two modes23:24
sam_one for pure wheel23:24
sam_one for system installs23:25
holmanbah, interesting23:27
minimalok, now I'll go back to trying to work on what the heck is going with YAML parsing of tmpl files as mentioned in #448723:29
minimalhttps://tpaste.us/papW23:29
holmanbthanks for the context sam_, appreciate it23:30
minimalhmm, even just running "python3 setup.py install --help" produces those YAML errors...23:39

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