=== chihchun is now known as chihchun_afk [02:34] Saviq, hey, please try the image fedora-rawhide-64, tomorrow I'll ping you === chihchun_afk is now known as chihchun [06:12] morning [06:19] Hi [06:20] Some late night pull requests [06:20] With green 2.36 [06:20] :-) [06:37] heh :) went to a meetup yday, then i stayed until midnight making that damn selinux work, audit actually showed some interesting behavior by journald poking some attributes in /proc all the time [06:39] Cool, looking forward to that [06:39] My son is 1/3rd my age today [06:40] Feeling old or young? :-) === chihchun is now known as chihchun_afk [07:23] re [07:23] mborzecki: hey [07:23] so today we will try to stabilize 2.36 and merge the bits back into master [07:23] mborzecki: this is part of the issue https://github.com/snapcore/snapd/pull/6233 [07:23] PR #6233: overlord: don't write system key if security setup fails [07:24] mborzecki: this is a more complete view but as you will see there it cannot land just yet https://github.com/snapcore/snapd/pull/6235 [07:24] PR #6235: overlord,apparmor: new syskey behaviour + non-ignored snap-confine profile errors [07:24] each commit has some description that explains what was going on [07:24] Chipaca: good morning sir! [07:25] I need to run an errand in the morning (wife doctor checkup) but I will be back as soon as I can [07:34] zyga: goodmorning [07:35] * Chipaca not legally awake yet [07:40] PR snapd#6236 opened: Staticcheck fixes [07:58] Hey mvo [07:58] I’m afk on the way to a doctor with my wife (all is good, no worries) [07:59] I sent some PRs last night [07:59] Please have a look [07:59] zyga: cool [07:59] zyga: thanks, I check the PRs === pstolowski|afk is now known as pstolowski [08:00] If you have time I would love more eyes on the trio of pastebins from yesterday [08:00] To be confident we understand how things happen [08:01] After I am back I will post leap fixes [08:01] Together this will fix 2.36 as we understand it so far [08:06] zyga: great [08:11] zyga: I asked a question in one of them [08:14] morning [08:15] hey pstolowski [08:18] pedronis: replied now [08:18] Actually [08:18] Hmmm [08:18] More problematic [08:19] Oh boy :-) [08:19] Something to think about [08:19] zyga: I thought we already added the waiting to snap-confine, is that false? [08:21] No system key, no snap run [08:21] pedronis: thanks for adding the todo to 6195 [08:21] I’m afk partially sorry for laggy replies [08:21] zyga: ? [08:21] I thought we did something saner [08:22] I’m not at home, doctor visit with wife [08:22] zyga: ok, let' chat later [08:22] mvo: do you know what snap-confine does if there's no system-key? I thought it would wait a while [08:23] pedronis: it will wait a while, do you see something different? [08:23] pedronis: it should try to talk to snapd in this case [08:23] This is really about a restart case [08:23] zyga: is saying something else [08:23] So we error because we are restarting [08:23] It will be fixed by next startup [08:23] ? [08:23] error where [08:23] something sounds wrong [08:24] is snap-confine assuming that snapd runs all the time [08:24] that's a bit optimistic [08:24] pedronis: well, we had a long discussion abut this when we introduced the system key [08:24] mvo: I mean if snap-confine needs to wait and can't talk to snapd it should wait a bit more and try again, no? [08:25] pedronis: I can look in a bit for the details, I think we wrote it down. at least gustavo and me, don't remember if you were part of it [08:25] I can hop on a voice call if you want to discuss this in detail [08:25] until some timeout [08:25] pedronis: yes, thats correct [08:25] is it simply dying if snapd is not there [08:25] ? [08:25] pedronis: is this not what you see? [08:25] That is what currently happens [08:25] pedronis: no, it should not [08:25] zyga: oh? [08:25] It waits [08:25] And then might die if something required is missing [08:25] AFAIK [08:26] I am just trying this [08:26] it definitely waits [08:26] then is as designed, no? [08:26] I mean, I don't expect this to work 100% [08:26] Yes [08:26] I think this is as designed [08:26] it should not fail on boot 100% [08:26] and when I start snapd again it will continue [08:26] either [08:26] we might have a problem in that [08:27] the timeout might be shorter than it takes to regen all security if lots of snaps ? [08:28] Yes [08:28] yes, that could be a problem :( [08:28] is not a problem for today tough [08:28] but zyga scared a bit, like snap-confine would not to do what I remember was designed to do [08:28] it waits 60s right now [08:29] pedronis, zyga let me try this [08:29] what were we calling the feature where we'd delay a snap refresh until the app was closed? [08:29] 6195 still needs a second review [08:30] I think it is not perfect but as designed === chihchun_afk is now known as chihchun [08:30] as I said I don't expect perfect (kind of impossible given the constraints), we might have to improve over time in some corners [08:31] but for a second it sounded like it was broken [08:31] I was scared :-) [08:31] hm, it seems to error when it hits the timeout - iirc we wanted it to continue (best effort) - yes? [08:32] Chipaca: we call it "Prevent refreshes while running" [08:32] at least that's the name of the day [08:32] pedronis: is there a forum topic about it? [08:33] asking because https://forum.snapcraft.io/t/concerns-about-consistency-and-data-corruption-during-snap-refresh/8741 [08:33] yea, I saw that one [08:33] if there isn't, i'll just reply vaguely [08:33] :-) [08:36] Chipaca: I don't see one, is mentioned in the last sprint topics but not as a discussed one [08:36] anyway is planned for the cycle [08:37] pedronis: https://forum.snapcraft.io/t/concerns-about-consistency-and-data-corruption-during-snap-refresh/8741/2?u=chipaca [08:37] ¯\_(ツ)_/¯ [08:38] mvo: #6195 gtg fwiw [08:38] PR #6195: snapstate: update fontconfig caches on install [08:39] Chipaca: thx [08:39] * Chipaca wanders off in search of coffee [08:41] I could use some too [08:41] Waiting for blood tests now [08:42] * mvo gets some lovely tea [08:43] I’m happy nobody mentioned nutrient breakfast yet [08:43] mvo: I saw somebody using "material tea timer" and thought you might like it (if you didn't have it already) [08:43] mvo: https://play.google.com/store/apps/details?id=org.ligi.materialteatimer [08:44] Chipaca: nice! [08:44] Chipaca: I don't have it, I use the boring clock app [08:44] Chipaca: but this even has nice pics (teap0rn) [08:45] mvo: and it's FOSS [08:45] \o/ === chihchun is now known as chihchun_afk [09:00] PR snapd#6195 closed: snapstate: update fontconfig caches on install [09:00] PR snapd#6218 closed: snapstate: update fontconfig caches on install (2.36) <⚠ Critical> [09:00] good morning [09:10] Hey dot-tobias [09:12] hm finnally, clean installation, no denials, ending up with this: system_u:system_r:unconfined_service_t:s0 root 11016 1 0 09:11 ? 00:00:00 /bin/sh /snap/test-snapd-service/x1/bin/start [09:13] PR snapd#6237 opened: client, store: don't use store from client (use client from store) [09:34] Breakfast time [09:38] * Chipaca joins zyga [09:38] * Chipaca thinks hobbits had the right of it [09:39] Haga [09:40] Haha, yes :-) [09:52] PR snapd#6189 closed: daemon, vendor: bump github.com/coreos/go-systemd/activation, handle API changes (2.36) [10:03] PR snapd#6238 opened: [RFC] many: add minimal SELinux support, refactor the policy [10:05] putting selinux aside for while now [10:08] any PRs needing 2nd reviews? [10:09] mborzecki, you are literally my best friend right now! [10:10] you have _no_ idea how happy I am to see this pull request! [10:11] Son_Goku: haha :) yw, would appreciate if you could find someone more familiar with this stuff to take a look at the policy [10:11] * Son_Goku dances in joy [10:11] * zyga goes to sob in the corner [10:11] :-) [10:11] zyga, this is something I've been asking for two years for! [10:11] Heading home ttyl [10:12] you can't blame me for being overjoyed :) [10:12] I know but I don’t make the schedule [10:12] Son_Goku: hope i got most of the things right, but figuring out the bits was like uhh [10:12] I’m happy to see this too :-) [10:12] mborzecki, yeah I knew it was going to be like that [10:12] Beginning of a long journey [10:12] and the docs are few and useless really :P [10:12] mborzecki, most security subsystems aren't well documented sadly :( [10:13] I'll see if I can get Lukas from the Fedora SELinux team to do a review [10:13] Insecurity by security obscurity [10:13] Son_Goku: yeah, unfortunately true [10:13] some to think of it, SMACK is probably more obscure than SELinux and AppArmor [10:13] yep [10:13] s/some/come/ [10:13] and TOMOYO even more so [10:14] (TOMOYO is what Mageia has enabled, but no one knows what to do with it) [10:14] hahah [10:14] iirc AGL was supposed to use SMACK [10:14] yep [10:15] Son_Goku: o/ ! [10:15] Chipaca: \o [10:15] Son_Goku: when you have a moment I'd like to pick you brain a tiny little bit [10:15] You know [10:15] Chipaca, I have a moment now [10:15] Breakfast downtown is fun and fancy [10:15] Need to do this more often [10:15] zyga: nice, enjoy! [10:15] mborzecki, and the biggest criticism of SMACK is that it's pretty much functionally identical to a minimal SELinux policy [10:16] Son_Goku: you remember, ages ago, when we talked about tracking what users had used snaps, to enable snap-user-enumeration without having to do system-user-enumeration? [10:16] Chipaca, yeah? that was what, a year ago at the rally? [10:16] Son_Goku: you objected to that because you said a user's data should be the user's to control, or something like that? [10:16] yes [10:16] yeah probably more [10:16] actually I don't think that was my only objection [10:16] Son_Goku: now we're again looking at things where we need to enumerate users [10:17] Son_Goku: and the same solution comes up, and so I wanted to revisit your objection to it [10:17] to see if I understood it correctly [10:17] are we talking about ~/snap/* enumeration? [10:17] or the user population/enumeration for services? [10:17] Son_Goku: "all users that have used snaps" [10:18] Son_Goku: like [10:18] Son_Goku: ls /home/*/snap/* but that's a bad way of doing it [10:18] right [10:18] You need a dbus call that does a perl shell call to is [10:18] this? https://forum.snapcraft.io/t/bug-with-cleaning-snap-data-in-home-dirs-proposed-solution/1201 [10:19] Ls, darn shell typos [10:19] Chipaca ^ ? [10:19] zyga: have you looked at the systemd-run change for the profile generation? if not I can do that while waiting for builds [10:19] Son_Goku: yeh [10:19] Son_Goku: i think that's it [10:20] my problem was that the proposal as I understood it would break shared setups and make user data private from the user itself [10:20] Son_Goku: that's one bit I don't understand [10:20] Son_Goku: what's the user data that would be private from the user? [10:20] Son_Goku: the proposal is not to move all user data to /var/whatevs [10:20] well, how I understood it is that data would move from ~/snap to /var/lib/snapd//data [10:21] Son_Goku: but to create a stamp file in /var/whatevs "this user used a snap" [10:21] or something like that [10:22] Chipaca, my only objection there is that it makes network shared users ugly [10:22] Son_Goku: user data would remain unchanged; all this'd do is that 'snap run' would 'touch /var/lib/snapd/user/$USER' before running the thing [10:22] Son_Goku: how does it make network shared users ugly? [10:22] please expand :-) [10:23] well, actually, if it's only that and doesn't effect how data "ownership" and migration occurs, then it's not an issue [10:23] the way it was explained to me at the rally is that we wanted to do "smart things" by doing so [10:23] for example, automatic cleanup of related user-data if the stamp didn't exist [10:23] which would be extremely dumb for networked user case [10:24] er, no, that's the opposite of what I'd want to do [10:24] "related user-data" would not be even looked at if the stamp didn't exist [10:24] PR snapd#6239 opened: packaging/fedora/snapd.spec: fix bogus date in changelog [10:25] mborzecki: it looks like the selinux pr is failing because libselinux not found on centos afaict [10:25] as you say it breaks for networks, it also means that something is enumerating users from the system, which is a no-no [10:25] mvo: thanks, will look into it [10:25] mborzecki: really nice progress btw [10:26] Son_Goku: re-reading that topic now to find the cleanup-of-missing thing to address it there [10:27] mvo: thanks, and sorry for not being too responsive for reviews the last couple of days, didn't want to loose context [10:27] mborzecki, it's because you've disabled libselinux right now [10:28] mborzecki, you currently have selinux disabled for centos builds [10:29] mborzecki: no worries [10:29] oh no, wait, it looks like you've switched it back [10:29] Son_Goku: --enable-selinux is behind %{?with_selinux:..} [10:29] Son_Goku: and the rest is if/endif'ed [10:30] Son_Goku: restored fedora 28 to spread specifically to build it [10:36] omg, with_selinux is always defined :/ [10:36] PR snapd#6240 opened: release: 2.36.2 [10:39] mvo: I have not looked yet [10:39] zyga: ok, I give it a poke [10:43] Thank you [10:47] hmm selinux doesn't like the fontconfig bits [10:53] Son_Goku: https://forum.snapcraft.io/t/bug-with-cleaning-snap-data-in-home-dirs-proposed-solution/1201/14?u=chipaca [10:56] mborzecki, will this work if both apparmor and selinux are available as options (i.e. SUSE distributions?) [10:58] Son_Goku: we'll probably need to disable one, i see that with_selinux is 1 by default [10:58] well, I'm saying can the integration be compiled in? [10:59] because there are folks that use SELinux instead of AppArmor on SLED/SLES, for example [11:00] Son_Goku: you can build both and there's a change it'll work out of the box, the libselinux bits do autodetection and so does libapparmor [11:00] yeah, that's what I was getting at [11:00] Son_Goku: there's always a quesion of refpolicy they use, whether it's the same as fedora [11:01] RH/Fedora and (open)SUSE use the same upstream: fedora-selinux [11:01] actually, of all the distros that offer SELinux support, I think only Debian/Ubuntu don't offer the fedora-selinux variant of the policy [11:02] (and "offer" is a _strong_ word here for Ubuntu... more like didn't purge from Debian impots) [11:02] *imports [11:04] Chipaca: if you've got time, could you have a look at https://github.com/snapcore/snapd/pull/5822 ? [11:04] PR #5822: wrappers: allow user mode systemd daemons [11:04] Son_Goku: mhm, right so there's a change it'll work :) happy to learn how far it gets though [11:04] jamesh: whoops, yes [11:04] mvo, niemeyer, I hope mborzecki's PR for selinux makes it in for the next release, this would drastically improve my confidence in shipping snapd for RHEL/CentOS through EPEL [11:05] I'm actually pretty tempted to not ship until we get this in a release, because this is a *big* improvement across the board [11:05] Chipaca: it should be fairly up to date now: I rebased it recently and spread seems happy with it again [11:05] jamesh: ok [11:05] Saviq, hey, could you try the rawhide image? [11:05] mborzecki, how is transitioning from older policy rules to the new one? [11:05] it works okay? [11:06] Son_Goku: haha, don't be, i see some issues on centos alredy, we need to have smarter runtime detectio of whether the policy is present and the latest bits with fontconfig are causing some issues [11:06] ah [11:06] mborzecki, well, it would at least mean the confinement _does_ something now :) [11:06] not great, but it does something [11:07] Son_Goku: it's only confining snapd and helpers [11:07] but now the framework is in place to confine snaps properly too [11:07] Son_Goku: but there's a path forward i guess at this point [11:07] Son_Goku: at least there are options to explore :) [11:07] yep [11:08] now that we have libselinux integration, we can look at things like mapping CIL and snappy policy knobs to the snappy security HLL [11:09] re [11:11] mvo: sorry for being absent so long, I'm finally home now [11:11] mvo: I will start by adding tests to https://github.com/snapcore/snapd/pull/6233 [11:11] zyga: no worries [11:11] PR #6233: overlord: don't write system key if security setup fails [11:11] then resume with leap fixes [11:23] mvo, hey, I saw 2.36.2 branch has failed [11:23] 2 tests with same error on configure hooks [11:27] cachio: failed in spread? [11:28] cachio: or failed somewhere else? [11:28] mvo, in spread [11:29] cachio: I have not looked yet, does the failure look familiar in any way? [11:29] https://paste.ubuntu.com/p/z7jh7KwJt9/ [11:29] mvo, it is happening on 2.36 family [11:30] mvo, I am already trying to reproduce it [11:40] cachio: no need [11:40] cachio: this is the problem we've been trying to understand recently [11:41] and now I believe we mostly do [11:41] zyga,ah, ok [11:41] zyga, It just failed here :) [11:43] cachio: I did, it seems to have failed to install our deps https://travis-ci.org/MirServer/mir/jobs/461204937 [11:43] I need to add a spread timeout < 50 minutes so it bails out I suppose [11:43] zyga, cachio is it the permission denied bug? [11:43] yes [11:44] cachio, zyga thanks! in this case I hope to push a PR soon with a fix [11:44] mvo, yes [11:44] cannot create temporary directory for /var/lib/snapd mount point: Permission denied [11:44] mvo: does systemd-run play ball on 14.04? [11:44] cachio: yeah, I hope to have something ready before or shortly after lunch [11:44] zyga: I don't know, need to check but if not that would suck(tm) [11:45] zyga: 14.04 is just ~5 more month but still [11:45] mvo: the set of patches I proposed fixes this too [11:45] I will land all the bits needed today [11:46] I don't mind systemd-run being used as well,\ we may have other issues causing system key-based problem [11:47] zyga: hm, you mean 6234 - or more? [11:47] https://github.com/snapcore/snapd/pull/6235 [11:47] PR #6235: overlord,apparmor: new syskey behaviour + non-ignored snap-confine profile errors <⛔ Blocked> [11:48] that's the full set but it is blocked by leap [11:48] https://github.com/snapcore/snapd/pull/6235/commits/15cae44908738b6c8e1814563c0cae727594a3d7 [11:48] have a look at each patch there [11:49] zyga: interessting - and its green, nice. is this reliable, i.e. did you run a couple of times? [11:50] not in that PR but yeah, a few times locally [11:50] feel free to restart it as many times as you like [11:50] it failed only on noise like mount error or store timeout [11:50] great [12:08] zyga: looks like systemd-run is out, a shame [12:08] oh, why? [12:08] zyga: not availalbe on trusty, it has 204 but we need 205 [12:08] 14.04? [12:08] ://// [12:08] bummer [12:08] well [12:08] 4 months [12:08] zyga: yeah, indeed [12:08] and I'm busy writing tests [12:08] oh well, I will shelve the PR [12:08] until then [12:08] I'm happy to finally end 2.36 drama ;) [12:10] zyga: indeed [12:10] zyga: well done! [12:11] zyga, :) [12:21] PR snapd#6239 closed: packaging/fedora/snapd.spec: fix bogus date in changelog [12:22] mvo: systemd-run wha? [12:31] Chipaca: it doesn't exist in 14.04 ? [12:46] mvo: I pushed unit test to https://github.com/snapcore/snapd/pull/6233 [12:46] PR #6233: overlord: don't write system key if security setup fails [12:46] mvo: I will now add a spread test [12:46] have a look please [12:57] off to pick up the kids [13:07] mborzecki: what's the story with https://bugs.launchpad.net/snapd/+bug/1759349 ? [13:07] Bug #1759349: Confinement doesn't work on arch (manjaro) linux [13:10] zyga: sure, looking [13:11] thx [13:12] Chipaca: https://github.com/snapcore/snapd/compare/master...mvo5:systemd-run-security-gen?expand=1 <- the idea was to avoid that apparmor_parser and snap-seccomp processes get killed when we restart snapd [13:12] Chipaca: but a non-starter for now [13:19] mvo: curious how snapd fits into trusty/esm... [13:20] jdstrand: last time we talked about this someone mentioned that snapd would probably not included but that wasn't very official [13:20] jdstrand: gives mvo more gray hair? [13:20] mvo: probably want to talk to joe and amurray. they arer in the process of defining what's in trusty/esm and that is coming from stakeholders [13:21] jdstrand: ok [13:22] mvo: I hadn't really thought that snapd would be in esm, but it seems likely it will have a (much) expanded package set than precise/esm [13:23] mvo: I guess part of this would be looking at data for snapd on trusty and seeing how that maps to esm customers [13:24] mvo: which joe and amurray may need some help with (on the data collection bits) [13:24] jdstrand: makes sense. however the version of systemd (204) there is giving us a headache [13:24] mvo: not trying to give you gray hair, sorry :\ [13:24] * jdstrand nods [13:24] mvo: wrote the spread test, running it now [13:24] I'll make something warm [13:25] zyga: thanks! [13:25] zyga: and sorry for commenting on the wrong PR :/ I commtned on the right now now too [13:25] mvo: with both spread and unit test I'm happy with this being merged into master [13:25] mvo: hah, no worries :) [13:25] least of our problems [13:25] mvo: I wouldn't necessarily consider also upgrading systemd in trusty/esm off the table. there is more flexibility there, so *if* snapd should be included in trusty/esm, perhaps there are things that can be done to make it easier on you [13:25] jdstrand: well, it will be a discussion but trusty is a real burden for us, that should be taken into consideration [13:26] mvo: sure, which is why I wanted to mention that you should let joe and amurray aware of that. you're obviously a stakeholder :) [13:26] PR snapcraft#2380 closed: tests: use autopkgtest to leverage snap testing [13:40] jdstrand: I would love 14.04 == 16.04 as far as systemd is concerned [13:41] would be much sweeter support target [13:41] we have plenty of // TODO because 14.04 ... in the code [13:41] mvo: I added 2.36.3 milestone [13:41] zyga: thanks [13:42] zyga: to LP? [13:42] yes [13:42] zyga: cool [13:42] mborzecki: probably want to update https://bugs.launchpad.net/snapd/+bug/1772016 [13:42] Bug #1772016: Mount snap "snapcraft" (1591) ([start snap-snapcraft-1591.mount] failed with exit status 1: [13:53] PR snapd#6231 closed: data: set KillMode=process <⛔ Blocked> [13:57] mvo: I must say I really enjoy filing bugs and writing regression tests [13:57] that paper trail and non-main test means that we still get rapid testing of features (main) but get nice and good feeling that over time things don't explode on bugs that we fought before [13:58] and if it happens we have all the context to look at [14:01] Chipaca: standup? [14:01] pedronis: omw [14:02] cachio: ^ [14:02] zyga: indeed [14:09] cachio: 2.36.2 is ready for beta validation now :) [14:09] mvo great [14:09] I'll start asap [14:12] * cwayne gets excited for some core results [14:13] kenvandine: the fontconfig fix is in the core beta now, if you could test and ask your team to test that would be awesome [14:14] mvo: awesome [14:14] thanks [14:14] mvo: how about core18? [14:14] kenvandine: it will work there too [14:14] sweet [14:14] kenvandine: I mean, it will work with snaps that use core18 as well [14:16] niemeyer: hello, just to clarify, is the conclusion from https://forum.snapcraft.io/t/snap-multi-line-descriptions-need-newline-trim-on-store-import/3934/12 to use | instead of > considering that the markdown filter will apply the appropriate formatting wrt (in this case) newlines? [14:19] zyga: can you try 'snap install hello-world_foo hello-world_bar'? does it work for you? [14:19] mborzecki: in a sec [14:22] mvo: if you can do a final ack on https://github.com/snapcore/snapd/pull/6233 [14:22] PR #6233: overlord: don't write system key if security setup fails [14:23] PR snapcraft#2417 closed: Revert "lifecycle: make snapcraft init template use > not | (#2393)" [14:24] mborzecki: yes [14:24] mborzecki: works ok [14:24] zyga: both snaps in a single line? [14:24] yes [14:25] zyga: are you running the latest master? [14:25] no [14:25] 2.36.1 [14:25] sorry, too many machines :) [14:25] my master machine is on the right [14:25] this one was on the left [14:25] zyga: i get 'error: store.SnapNotFound with 2 snaps' [14:26] hmmmm [14:30] sergiusens: It looks like ">" (aka line folding) changes the output completely from what is presented to the user. It even corrupts the rendering once the text is interpreted as Markdown. [14:30] sergiusens: Isn't that true? If it is, then it indeed looks like a terrible idea to use it. [14:31] niemeyer: yes, exactly why I am inclined to revert it https://www.irccloud.com/pastebin/WaNVs8vG/para%20que%20veas%20el%20efecto [14:38] mup: hello [14:38] zyga: I apologize, but I'm pretty strict about only responding to known commands. [14:39] Heh.. [14:39] 2fa? [14:39] No.. either chrome or hangouts itself is hanging on me [14:41] PR snapd#6241 opened: tests/main/parallel-install-store: verify installation of more than one instance at a time [14:45] PR snapd#6240 closed: release: 2.36.2 [14:56] sergiusens: Why are you just inclined? Is the behavior reasonable? [14:58] pstolowski: niemeyer: I wrote something here: https://bugs.launchpad.net/snapd/+bug/1777121 [14:58] Bug #1777121: Remove is called after snap services are stopped [14:58] sergiusens: To me it looks clearly like a bug.. ideally that sort of change should be carefully investigated before it takes place [14:59] pedronis: Thanks.. depending on their use case, we might have a hook like this, but I'd try to cook it in a way that detaches from the promise of running services [15:03] niemeyer: let's see if they have further feedback, now that the picture is clearer [15:03] * zyga -> soup [15:04] pedronis: ty. i marked my PR blocked for now, we can decide if we want to close depending on feedback [15:06] brb, need to reboot - plugging in my headset hangs my trackpad [15:06] (WAT) [15:09] mvo, hey [15:09] https://paste.ubuntu.com/p/gNMHkR2Wpt/ [15:10] any idea about this request [15:10] it is taking about 3/4 seconds [15:10] delaying the test suite [15:12] pedronis: We might call it "cleanup", for example.. we should just make its semantics more clear, including when exactly it's called, what are the promises or possibilities, and we might also consider what other use cases we might have for the same hook [15:14] cachio: not sure where it comes from, what happens before/after in the logs? [15:16] mvo, https://paste.ubuntu.com/p/ct763X3tj5/ [15:17] mvo, it jumps from 14:50:20 to 14:50:24 [15:17] with that request [15:17] mvo: hey, did you see my response regarding your compression exploration? we don't need to discuss it here, but if you start to narrow in on something, please perform resquash tests (I can show you how) on a variety of snaps (eg, large, like chromium as well as snaps built on one arch (eg, i386, armhf, arm64) and resquashed on amd64) [15:17] it happens when we stop the snapd.service [15:21] could we land https://github.com/snapcore/snapd/pull/6211 ? super simple [15:21] PR #6211: spread: run tests on Fedora 28 again [15:22] "error: cannot install zero snaps" -- not something I ever thought I'd see a dedicated error message for :) [15:23] (my fingers raced a middle click paste against the return key) [15:24] rbasak: attention to detail :-) [15:27] jdstrand: yeah, saw it but didn't look at the details yet [15:28] cachio: aha, looks like the catalog update [15:28] cachio: I guess we could disable that via some magic [15:29] cachio: but we need to write code for that, iirc we currently unconditionally run it [15:29] mvo, the problem is that we start / stop it on reset [15:30] and it takes like 7/10 seconds to stop it [15:30] mvo: ok, don't want to distract you, just want you to be aware that we should not regress resquash tests in the store and that, having been through this with our existing options, things are rather delicate [15:30] mvo, is it refreshing the catalog any time we start snapd? [15:41] cachio: catalog refresh happens every startup yes === phoenix_firebrd is now known as murthy [15:42] cachio: also sometimes assertions [15:42] fun fact: on freebsd there's /.snap and then there's a /sys symlink to source code [15:42] zyga: what's /.snap ? [15:42] empty directory [15:43] maybe snapshot spot? [15:43] not sure yet [15:43] Chipaca: you will like this one [15:43] zyga: https://lists.freebsd.org/pipermail/freebsd-questions/2012-January/237296.html [15:43] Chipaca: /home is a symlink to /usr/home :D [15:43] Chipaca, mmm, ok, perhaps I can make small change to avoid stop snapd just after we start it [15:46] Chipaca: also /proc exists, but it is empty [15:46] freebsd is odd :) [15:46] Chipaca: there's /rescue which is much like /bin but everything is statically linked [15:46] I see what you did there freebsd [15:47] * cachio lunch [15:48] cachio: or we could make snapd check the timestamp on the catalog and not refresh too often [15:54] mvo, Chipaca found a fun bug [15:54] https://pastebin.ubuntu.com/p/xyNHG2Hqdk/ [15:54] we mount core18 _after_ starting snapd [15:54] and things go south [15:55] is this expected? [15:58] zyga: all bugs are expected [15:58] * Chipaca puts down his tea and looks at it quizzically [15:59] zyga: where? what's the context of that? [15:59] pedronis: regression test noticed that things misbehave on a core18 system [16:00] just vanilla run-off-the-mill core18 test system [16:00] looking at journal logs to see what was wrong [16:05] I guess this possible means that we mount any snap after snapd is started [16:05] which would be possibly quite grim [16:05] shall I report it and finish my current task? [16:07] Chipaca, yes, that too [16:09] zyga: yes [16:13] zyga: yeah, thanks for finding this [16:13] reported as https://bugs.launchpad.net/snapd/+bug/1805866 [16:13] Bug #1805866: On core18 system core18 snap was mounted after snapd had started [16:14] zyga: its slightly strange iirc we set Before=snapd.service in our mount units plus mounts happen before multi-user [16:14] and if I can have one xmas present, I would love to see markdown support on launchpad comments [16:14] zyga: but might be because of something in core18 that is special [16:14] yep [16:15] it's "fun" that this fix for 2.36 uncovers issues like that [16:15] zyga: yeah [16:15] zyga: is this first run on core18? I mean, very first start? there nothing is mounted yet, snapd needs to bootstrap itself [16:15] mvo: I just ran [16:16] spread -debug -v google:ubuntu-core-18-64:tests/regression/lp-1805838 [16:16] maybe try with -shell-after [16:16] PR snapd#6211 closed: spread: run tests on Fedora 28 again [16:16] PR snapd#6242 opened: overlord/snapstate: use file timestamp to initialize timer [16:16] zyga: ok, what PR was this again? [16:16] cachio: ^ [16:16] https://github.com/snapcore/snapd/pull/6233 [16:16] PR #6233: overlord: don't write system key if security setup fails [16:17] the test passes on all systems now [16:20] zyga: thanks! running it now [16:25] PR snapd#6243 opened: systemd: allow only a single daemon-reload at the same time <⛔ Blocked> [16:31] zyga: can you take a look at #6180 (doesn't have to be today) [16:31] ? [16:31] k [16:31] PR #6180: snap/info: bind global plugs/slots to implicit hooks [16:31] ah [16:31] sure [16:32] * pstolowski should probably remove complex label from it and have something that attracts people instead ;) [16:32] we need a label [16:32] yay [16:32] 🍪 [16:32] it's not really complex btw.. just needs some insight maybe [16:32] roadmr: just need to cross check with kyrofa about how it renders [16:33] roadmr: lovely [16:33] PR snapcraft#2418 opened: Release changelog for 3.0.1 === Trevinho_ is now known as Trevinho [16:34] zyga: do we need #6230 ? [16:34] PR #6230: spread: detect "signal: terminated" in journal logs <⛔ Blocked> [16:34] no, it was just experiments [16:34] closed now [16:34] PR snapd#6230 closed: spread: detect "signal: terminated" in journal logs <⛔ Blocked> [16:35] pedronis, mvo: though the forkstat stuff was amazing [16:37] zyga: yeah, I think we keep this in mind, something like this may come back later [16:39] Chipaca: #6192 needs a 2nd review and I suggested a smal tweak [16:39] PR #6192: overlord/snapstate: on refresh, check new rev can read current [16:40] zyga: I suspect the issue with the core-18 is really that on first-run nothing is available yet. otoh the state should also be empty so slightly strange [16:41] maybe particular test setup is the culprit but I don't expect this to happen [16:41] zyga: I see "Reboot on qemu:ubuntu-core-18-64 ... is taking a while" and it seems like its hanging [16:41] we're either seeging [16:41] *seeding [16:41] and snaps are installed [16:41] or we know nothing about them [16:41] feels like a bug for real at some level [16:41] zyga: oh, they are installed, hm, hm, if so we should have a Before=snapd.service [16:41] mmm [16:41] yeah [16:41] I haz real bug [16:42] zyga: mvo: we do have some tests that wipe the state [16:42] pedronis: I ran that single test in isolation [16:42] and simulate the seeding again [16:42] it was the first code to run [16:42] zyga: what test is it? [16:43] zyga: did you also get this wait? [16:43] spread -debug -v google:ubuntu-core-18-64:tests/regression/lp-1805838 from https://github.com/snapcore/snapd/pull/6233 [16:43] PR #6233: overlord: don't write system key if security setup fails [16:43] wait? [16:44] am I reading it wrong, that info is not in the bug? [16:45] no, it's not in the bug but that test is arguably not doing anything, it just restarts snapd to see what the logs show - [16:46] it's a new test? [16:46] I don't have it here [16:46] yes [16:47] it's a regression test for that branch [16:49] mvo: I missed this part: [16:49] zyga: I see "Reboot on qemu:ubuntu-core-18-64 ... is taking a while" and it seems like its hanging [16:49] mvo: I didn't get that [16:49] is it still hanging [16:49] ? [16:49] zyga: hm, ok [16:50] zyga: yeah, I try again [16:50] eh, failed on mount error [16:50] - Mount snap "test-snapd-tools" (7) ([start var-lib-snapd-snap-test\x2dsnapd\x2dtools-7.mount] failed with exit status 1: Job for var-lib-snapd-snap-test\x2dsnapd\x2dtools-7.mount failed. [16:50] See "systemctl status "var-lib-snapd-snap-test\\x2dsnapd\\x2dtools-7.mount"" and "journalctl -xe" for details. [16:51] zyga: I was running it in qemu [16:51] aha [16:51] zyga: running it in google now [16:54] afk [16:54] going to my son's birthday :) [16:54] ttyl === zyga is now known as zyga|afk === pstolowski is now known as pstolowski|afk [17:05] Haha, zyga|afk looks like a rock [17:07] https://www.youtube.com/watch?v=2NEbe_brJAQ [17:18] zyga|afk: enjoy! [17:34] zyga|afk: hm, hm, spread -v -debug google:ubuntu-core-18-64:tests/regression/lp-1805838 just worked, I try again after dinner [17:37] mvo: yes, it passes [17:37] mvo: try -shell-after [17:37] see what logs say === zyga|afk is now known as zyga [18:47] whee [18:48] PR snapd#6233 closed: overlord: don't write system key if security setup fails [21:42] * cachio afk [23:14] PR snapd#6244 opened: release: detect too old apparmor_parser [23:15] * zyga really goes to sleep now