/srv/irclogs.ubuntu.com/2021/06/25/#snappy.txt

zyga-mbpgood morning05:56
pstolowskimorning07:01
mvogood morning pstolowski 07:14
pstolowskimvo: hi! could you please merge https://github.com/snapcore/snapd/pull/10447 ? it only failed on the lxd test that cachio fixed with the other PR07:15
mvopstolowski: sure07:15
mborzeckimeh, damn matrix bridge07:16
mborzeckimvo: pstolowski: hey07:16
mborzeckii've been sitting there since 630, wondering why nobody has showed up07:17
zyga-mbpmborzecki hahaha07:19
zyga-mbpI've been here :)07:19
zyga-mbpwell, since around 807:19
zyga-mbpI've filed https://git.ostc-eu.org/OSTC/tools/oh-spread/-/issues/807:19
mvomborzecki: good morning to you as well :)07:20
mvomborzecki: hahaha07:20
mvozyga-mbp: ! good morning07:21
mborzeckimvo: yeah, heh07:21
zyga-mbpand also https://git.ostc-eu.org/OSTC/tools/oh-spread/-/issues/907:21
zyga-mbpif anyone from the snapd team is interested I would love to include you in code review07:21
zyga-mbpif not that's fine, I'll just push on 07:21
mborzeckimvo: mardy is around 730 usually, then you join ~830 and pawel joins around 9, so something didn't add up ;)07:21
mborzeckiheh, so some people in #irc:matrix.org have noticed equally confusing behavior07:23
mborzeckimvo: can you take a look at https://github.com/snapcore/snapd/pull/10432 ?07:27
mborzeckiheh, so i'm confused, libera.chat are running their own bridge to matrix, but it seems like it's out of sync :/07:31
zyga-mbpmborzecki matrix is out of sync!07:32
zyga-mbpmborzecki the agents are coming ;)07:32
mborzeckihaha, took the wrong pill this morning ;)07:32
mborzeckiwaiting for agent smith to knock on my door07:32
mborzeckiok, going to school, back in 1.5h or os07:38
mborzeckiso07:38
pedronismvo: hi, we are getting more? random core 20 failures on https://github.com/snapcore/snapd/pull/10446, I don't think it's the new code (because it deterministic) but it's annoying07:40
mvomborzecki I will look at 10432 sure! 07:41
mvopedronis: let me check07:41
pstolowskimvo: can you land that one too? https://github.com/snapcore/snapd/pull/10428 (also, only lxd test failure fixed by cachio)07:47
mvopstolowski: sure07:49
pstolowskimvo: thank you!07:50
mvo10448 needs a second review (should be simple)08:14
pstolowskipedronis: i've updated error handling with ignore flag in https://github.com/snapcore/snapd/pull/10408, you should probably look at the last commit08:36
pedronispstolowski: I'll look in a bit08:47
pstolowskity08:49
pedronismvo: question in https://github.com/snapcore/snapd/pull/10449/ ?09:14
mvopedronis_: looking09:26
mvopedronis_: I can remove the random things in the end, I misunderstood the initial suggestion. will fix it, sorry09:27
mborzeckire09:41
mborzeckihm still doesn't work09:44
=== pedronis_ is now known as pedronis
dot-tobiashi everyone10:34
rbasakIs this a core snap regression? https://bugs.launchpad.net/snapd/+bug/193339211:05
rbasakI've not tested, but I'm not sure if that report is in the right place11:05
rbasakIt's apparently regressing the certbot snap on Debian.11:05
dot-tobiasBuilding a fresh Core image with ubuntu-image, I currently get this fatal error: invalid layout of volume <myvolume>: cannot resolve content for structure #0 at index 0: cannot find "dtbs" in kernel info from "/tmp/tmplm3ypa5a/unpack/kernel"11:09
ograrbasak, you could never "run snapctl on the host" ... that only works internally 11:09
dot-tobiasBuilding an image worked yesterday around 3pm UTC+1, but I saw that the pi-kernel snaps from the 18-pi channel have been updated yesterday. Found https://forum.snapcraft.io/t/failed-to-build-pi-uc20-image/24918 but using edge snaps isn't really an option for prod images.11:11
ogranot sure about the REST API stuff, but the call to snapctl is definitely nt supposed to work unles you run it from "snap run --shell ..." from inbside some snap 11:11
ogrageez ... my typing ... must be friday ... 11:11
pstolowskijamesh: hi, there is a todo: check g_icon_serialize in your notification prototype; is it optional? is gtk notification api able to deal both with icon names & serialized icon?11:14
ogradot-tobias, https://forum.snapcraft.io/t/changes-in-pi-pi-kernel-dtb-handling/24369 update your gadget 11:15
rbasakogra: can you glance at the github issue linked please? In that case, it _is_ running from inside the snap. The reporter tried to generalise it in the LP report.11:15
ograaha 11:15
dot-tobiasogra: I've cherrypicked https://github.com/snapcore/pi-gadget/commit/e452ccb3c6608e6f1de85e51e161706e780f01b1 and https://github.com/snapcore/pi-gadget/commit/fd40afabf0f5bcfcebb673a16a4046a0aa4234e6 to my gadget, that resolved the original error (can't remember the wording) and produced a working image. The same gadget, which includes said changes and worked yesterday, now suddenly fails … I'll triple-check my gadget to be sure11:20
mborzeckidot-tobias: it's a new thing, pi-kernel must have finally caught up https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/190705611:35
mborzeckitbh the feature was made specifically for pi11:35
pstolowskicachio_: do you have a system where snap debug state hangs?11:53
cachio_pstolowski, let me reserve that11:54
pstolowskicachio_: i actually just need state.json from such system, if you can download one that would be enough11:55
cachio_pstolowski, I already reserved 1 device11:55
pstolowskiok thanks11:55
cachio_it is being provisioned11:55
dot-tobiasmborzecki: Thanks, I reverted the changes to my gadget, image is building again. Looking forward to have DTBS from the kernel snap, though 😊 12:14
ograyeah, it is definitely the best thing since sliced bread !12:17
ograrbasak, (sorry, got dragged into a meeting) if you suspect a core regression the first thing i'd do is a snap revert core and compare ... ad given the curl command in the bug i'd also check if snap login makes a difference 12:19
ograi doubt the core changes are that big nowadays given 16.04 is ESM ... so such a regression is not super likely (possible still indeed)12:19
rbasakogra: I don't have a reproducer here readily available unfortunately - I was just asked because I wrote the snap originally.12:22
rbasakSo I don't have anything to revert.12:22
rbasakAccording to https://github.com/certbot/certbot/issues/8922#issuecomment-868451477 microk8s is affected too12:22
rbasakI suspect maybe a regression in snapd rather than core? Anyway I'm just passing on the message.12:23
ograyeah, perhaps ... 12:23
ograin either case soeone should ask in the issue to revert core to the former version to see if it is really the new core 12:23
ograits the easiest bit to verify this 12:24
rbasakIf it reproduces as reported then that's a bug, no?12:24
rbasakI'd like for upstream to do the debugging :-/12:24
ograit is 12:24
ogra... but it helps a lot if the reporter can nail down the two revision of core so you know where to lokk 12:25
ogra*look12:25
rbasakIt's not possible to do a bisection in the general case, because previous snap binaries are not made available except to the snap developer.12:26
rbasakThat decision has a cost: you can't reasonably expect affected users to do that kind of debugging.12:27
ograrbasak, the last local revision is still there ... indeed that doesnt help when you install snapd/core from scratch 12:58
ograso affected users shuld be always able to revert ... just *new* users wont be (as the only have the current core version they just freshly installed)12:59
rbasakogra: well, OK, but affected users can't delegate - eg. I can't help.13:01
rbasakOr, at least, it's artificially made difficult for me to help13:02
ograyes13:02
pedronisrbasak: ogra: fwiw, we have asked somebody on the team to investigate this13:48
ogra👍13:48
rbasakThanks!13:49
mborzeckipstolowski: can you take a look at https://github.com/snapcore/snapd/pull/10460 ? sergiusens reported this in the forum https://forum.snapcraft.io/t/snap-download-slips-in-extra-logging-with-download-size/2515114:11
pstolowskilooking14:12
mborzeckicachio_: can you try to update the tumbleweed image?14:20
cachio_mborzecki, sure14:20
mborzeckicachio_: thanks, hoepfully the image will be better this time ;) the builds in obs keep on working14:21
cachio_mborzecki, nice14:21
cachio_I'll create a new one right now14:22
pstolowskipedronis: the debian issue seems to be caused by /run/snapd-snap.socket vs /run/snapd.socket rename; debian 9 has a very old snapd 2.21 deb, the old snapctl from the deb on the host can't talk to new snapd15:35
pedronispstolowski: that's not a rename, or I'm cofunsed we have two sockets15:36
pedronispstolowski: one is for snapctl and one is for the general api15:37
pedronispstolowski: /run/snapd.socket  is the general API socket (use by the snap command for example15:37
pstolowskipedronis: yeah, sorry, no rename, we have two indeed. what i see with strace is the old snapctl is trying to talk to /run/snapd.socket15:37
pstolowskidid we have just one socket in the past?15:38
pedronisnot sure, we need to go dig into the release branches I suppose15:38
pstolowskigood idea15:40
pedronispstolowski: it was already like that:  https://github.com/snapcore/snapd/blob/release/2.29/cmd/snapctl/main.go#L3815:41
pedronisso maybe there's no socket or something is wrong with apparmor?15:41
pedronisdeos the socket exist?15:41
pedronisI mean which sockets are in /run15:41
pstolowskipedronis: that's 2.29 though, we should be looking at 2.2115:42
pedronisah, sorry I misread15:42
pedronisseems we didn't have two sockets then15:43
pedronisbut I'm still confused why is the snapctl new though?15:43
pstolowskipedronis: we have two sockets because snapd 2.51 comes from core. but afaiu the code of snapctl from 2.21 (which comes from the deb) expects to talk to /run/snapd.socket15:46
pedronispstolowski: sorry, you mean snapctl comes from core, but snapd comes from the 2.21 deb?15:47
pstolowskipedronis: no. snapd comes from core, snap --versin shows 2.51. but for snapctl we don't reexec, so the one from deb 2.21 is used15:49
pedronisbecause this is a classic snap?15:49
pstolowskipedronis: i only tried snapctl manually so far, let me try a classic snap15:50
pedronisI suppose you want to install a confined snap and a classic one, and try snapctl from their snap run --shell15:51
pstolowskipedronis: i tried confined snap it was fine, it used snapctl from core15:52
pstolowskipedronis: yep, classic snap uses snapctl from the host, so fails15:54
pedronisthis is not a regression though, I expect things behaves like this since a long time15:54
pedronisI wonder what changes, and why a classic snap is using snapctl at all?15:54
pedroniswhat changed15:55
pedronispstolowski: I suppose we need to try to snap mentioned in the bug? I don't know why it is using snapctl15:55
pedronisrbasak: did certbot always use snapctl? this doesn't seem a regression15:56
rbasakpedronis: it has done for a long time15:58
rbasakLet me find the thread15:58
pedronisanyway I'm not quite sure how it ever worked on debian 915:58
pstolowskipedronis: yes this seems to be very old15:59
rbasakpedronis: see https://forum.snapcraft.io/t/certbot-request-for-classic-snap-approval/6240/19?u=rbasak and the following post16:01
pstolowskipedronis: it uses snapctl unset from prepare-plug-plugin, i think that's all16:01
rbasakThat's why it's using snapctl - it was a condition of classic snap approval to check for that16:01
pedronisanyway as I said unsure it ever worked on debian 9 given the version of snapd it shipped with. We could think whether there's a way to fix this, but is not new afaict16:02
rbasakpedronis: I might have jumped the gun in assuming it was a regression. Now that I look at the report, I don't see the reporter actually saying that.16:02
rbasakApologies for that16:03
rbasakI suppose it's possible that nobody has tried using the certbot snap with a plugin on Debian 9 before?16:04
pstolowskione sec16:04
rbasakGiven how well used it is, that does seem odd to me still though.16:04
rbasakBut also, installing core seems to regress it? The certbot snap doesn't need core - IIRC it's based on core20.16:05
pedronisit might also depends what other snaps are installed16:05
pedronisthough given that old snapd it might always install core as well16:06
pedronisnot sure16:06
pstolowskithe bug report isn't complete afaict16:07
pstolowskithe github issue it links to is complete16:07
pstolowskisnap set certbot trust-plugin-with-root=ok followed by snap install certbot-dns-cloudflare16:07
pstolowskitriggers it16:07
pstolowskibecause of prepare-plug hook uses snapctl16:08
pstolowskianyway.. it's pretty clear the old snapctl from the deb can't talk to new snapd and must be like that for a few years already. i can also reproduce it with snap run --shell certbot16:09

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