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

minimaldoublechecked to be sure (23.3 fine, git main shows the mentioned output).00:22
minimalcan't see anything obvious in a diff between 23.3 and main code00:22
minimalmeena: looks like my issue may be #448711:26
meenaminimal: it's still bizarre.11:28
meenawhy is it trying to render all these other files?11:31
meenaminimal: is there a difference between python versions?11:31
minimalmeena: yeah I mentioned in a note I added to the issue that as I'm specifying openrc init then I don't know why it treies to template the others11:43
minimalI tested building 23.3 on the *same* build environment (i.e. versions of python etc) and it doesn't behave the same11:44
meenaThe systemd stuff has been around a lot longer than that tho. So are my changes throwing it off then?11:47
minimalthe packaging still completes fine, I just find those YAML messages strange11:48
minimalI'm wondering if their the recent logging changes have made this visible but it always silently happened11:49
meenaAh, i didn't consider that11:53
dchmeena: why do you have `{{ prefix }}` in the ds-identify rc.d template?13:57
dchdoes that get populated by jinja at some point pre packaging?13:58
meenadch: it gets rendered when you package it.13:58
dchgood good13:58
meenadch: i test like this: python3 ./setup.py install --distro=freebsd --prefix=/usr/local --init-system=sysvinit_freebsd --root=/tmp/tmp.p03232blah13:58
meenashellcheck refuses to check a jinja templated shellscripts!13:59
meenadch: anyway, i updated the PR if you wanna test it14:00
dchi see theres a = now thanks!14:00
meena23.3-65-g89f0f8978 would be the version14:00
meenayou'd have to replace canonical with igalic in the makefile14:00
dchthanks you linked me a patch already very kindly14:00
meenai'll link you a usable patch with make makesum, too14:02
dchI finally decided I needed to write up the whole phoenix endpoint -> page render path for somebody14:04
dchlike 5 years overdue14:04
meenadch: https://codeberg.org/meena/freebsd-ports/commit/dd907ac19af4472bc49178fa8e7a7e443b7e4fe714:13
-ubottu:#cloud-init- Commit dd907ac in meena/freebsd-ports "net/cloud-init-devel: bump"14:13
meenaadding .patch on Codeberg works just like on github: https://codeberg.org/meena/freebsd-ports/commit/dd907ac19af4472bc49178fa8e7a7e443b7e4fe7.patch14:13
meenai need a nap before i go pickup my daughter14:14
meenadch: notice the += in  PYDISTUTILS_INSTALLARGS+="--init-system=sysvinit_freebsd"14:17
meenathe preexisting INSTALLARGS are the ones passing things like --prefix=${PREFIX}14:17
dchmeena not much luck here atm on the dsidentify hack20:52
meenaa shite20:52
dchhttps://git.sr.ht/~dch/ports/tree/main/item/net/cloud-init/files/patch-sysvinit_freebsd_dsidentify.tmpl20:52
dchon top of net/cloudinit though20:53
dchif that matters20:53
meenadch: what's ds-identify's log look like?20:55
dchhttps://www.irccloud.com/pastebin/QyLJfp5c/dsidentify.log20:56
dchstarted via `service dsidentify start`20:56
dchaah it doesnt pick up the env vars20:58
dchhttps://www.irccloud.com/pastebin/E4qVgPBO/env20:58
dchbecause cloudinit_env should be dsidentify_env I think20:58
meenado you wanna try?20:59
dchhttps://www.irccloud.com/pastebin/DfaQgtQY/boom20:59
dchthat works20:59
dchI skipped the rest of the log20:59
meenadch: I'm mildly surprised, i think21:00
dchI would for sanity's sake make all of cloudinit_dsidentify_ ... just dsidentify_21:01
dchI'm only running the dsidentify service, not the whole suits21:01
dch*suite21:01
meenahrmm21:01
dchhttps://git.sr.ht/~dch/ports/tree/main/item/net/cloud-init/files/patch-sysvinit_freebsd_dsidentify.tmpl21:02
dchbut yes I share your general sense of surprise21:03
meenaI'll add you as co-author21:03
dchshare the blame, share the pain21:03
meenaheh21:03
dchI reiterate, again, that sysvinit scripts should die in a fire, and like a phoenix from the ashes, freedesktop.org unit files should replace them21:04
dchjust for ports21:04
dchleave my pid1 alone thanks21:04
dchso (1) I like this approach better than my *cough* dirty hack21:04
dchbut (2) these vars, I'm not sure whether they all work like we expect21:05
meenawhat email do I use for you?21:05
dchdch@skunkwerks.at is fine21:05
dchthey're all fine21:05
dchmeena: let me give this 1 more whirl in a more-or-less fresh boot21:07
dchbefore we commit ourselves to immortalised infamy21:07
meenathank you for the help21:08
meenaa proper fix would still be to template ds-identify during the installation process21:10
dchhttps://www.irccloud.com/pastebin/o9e5GO85/blargh21:12
dchhttps://www.irccloud.com/pastebin/5sX1DgyG/happy_dsidentify.log21:12
dchso, with that hack/patch, dsidentify runs correctly21:12
dchbut the blargh paste above looks like network takes too long to come up before datasource bombs out21:13
dchthat is more of a "me problem" than a cloudinit one21:13
meenacan you give it a 👍21:18
meenaRFE https://github.com/canonical/cloud-init/issues/4497 21:24
-ubottu:#cloud-init- Issue 4497 in canonical/cloud-init "[enhancement]: render ds-identify through template renderer" [Open]21:24
dchok, just finished a half-way decent test, this looks great21:29
meenadch: please give it an approving review: https://github.com/canonical/cloud-init/pull/448521:32
-ubottu:#cloud-init- Pull 4485 in canonical/cloud-init "ds-identify: FreeBSD fixes" [Open]21:32
dchalready done21:37
dchits a lukewarm comment but definitely a +1 as WORKS ON MY MACHINE21:37
* dch kicks a build and goes to sleep21:41

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