[02:10] PR core-build#11 closed: remove cruft from the writable-paths [02:10] PR core-build#22 closed: unit testing for sync_dir() [02:10] PR core-build#26 closed: move most of the customization into the core snap build [02:11] PR core-build#11 opened: remove cruft from the writable-paths [02:11] PR core-build#22 opened: unit testing for sync_dir() [02:11] PR core-build#26 opened: move most of the customization into the core snap build [04:45] Hello good people. I was wondering. Is there an example/boilerplate for making a kernel module snap? [05:21] morning [05:39] PR snapd#5468 opened: dirs: improve distro detection for Antegros [06:29] PR snapd#5463 closed: Optimize snap install time 1 [06:32] PR snapd#5469 opened: interfaces/apparmor: (un)load profiles in one apparmor_parser call [06:43] PR snapd#5464 closed: vendor: switch to latest bson [06:46] mborzecki: thanks for the merge [06:51] mvo: hi, would it be possible to pick #5468 for 2.34? [06:51] PR #5468: dirs: improve distro detection for Antegros [06:51] sil2100: you are in the SRU team, right? if you could look at my bionic snapd upload with a tiny fix for the boot dealy workaround, that would be great. the xenial version of this can be rejected, I think xenial is not affected by this bad kernel update [06:51] mborzecki: sure thing [06:52] that os-release thing is a bit messy unfortunately [06:53] mborzecki: make sure to tag for 2.32 [06:53] 2.34 [06:54] it's tagged (labeled) for 2.34 already [06:54] mborzecki: great [07:08] mvo: sure! I'm having my SRU shift today so I'll look at it for sure [07:10] sil2100: thank you === pstolowski|afk is now known as pstolowski [07:11] heyas [07:16] hm, systemd-activate is not in bionic anymore [07:16] which is the alternative for it? [07:16] ha, systemd-socket-activate must be [07:17] PR snapd#5468 closed: dirs: improve distro detection for Antegros [07:40] zyga: hey, can you take a look at https://github.com/snapcore/snapd/pull/5416 ? [07:40] PR #5416: interfaces/hotplug: add hotplug Specification and HotplugDeviceInfo [07:40] pstolowski: yes, sorry for not reviewing that last evening [07:46] mborzecki: quick question on 5458 - cachio says "grep -c" exits 1 when no result is found - so is your change (to use it) safe? [07:47] mvo: looking [07:47] mborzecki: I mean, with "wc -l" last we never have the last command in the pipeline failing, with grep -c it *might* happen [07:48] mborzecki: and since we check before restarting snapd we will be back at the same bug we are fixing, no? [07:48] mvo: if grep -c fails, then the output is empty, so -gt tests will fail [07:49] mborzecki: also in the "refreshes_before=" assignment ? [07:49] mvo: yes, test "" -gt "" fails in such case [07:49] pstolowski: have a look [07:50] mvo: haha it fails in zsh [07:50] test "" -gt "" [07:50] bash: test: : integer expression expected [07:50] mborzecki: grep -c will print "0", no? [07:50] mborzecki: I mean, refrehes_before will be zero with the new and the old code [07:51] mborzecki: the risk is that if grep -c returns an exit 1 then the last command in the pipe failed and that causes set -e to kick in and abort (unless I'm reading this wrong) [07:51] mvo: but it's in a subshell [07:52] mvo: see it now, pff let me fix it [07:54] mvo: simple || true should do the trick [07:54] mborzecki: http://paste.ubuntu.com/p/6DbZ8m5xZN/ if you want to play. thanks ! [07:54] mborzecki: yeah, that will also work [07:56] mborzecki: feel free to merge once the grep -c is fixed, the PR looks fine [07:58] 5460 is an easy win [07:59] mvo: pushed, will wait for it to get green and merge [08:00] PR snapd#5460 closed: tests: use grep to avoid non-matching messages from MATCH [08:03] mborzecki: ta [08:16] pstolowski: is that sensible? [08:16] sorry, waking up much too late here [08:17] PR snapd#5470 opened: tests: fixes for the autopkgtest failures in cosmic [08:20] zyga: re Object and DevPath - happy to drop Object, just not 100% sure they're alyways the same, that's the only reason i've both, not to close any doors (although, it's easy to add it back if needed) [08:20] pstolowski: ok, let's drop it for now under the assumption that they are indeed the same; if we find this is wrong we need to re-think some stuff [08:21] zyga: ok, np, thanks for the review [08:22] mwhudson has all the fun [08:22] I too want to skip the office and go whalewatching [08:22] Chipaca: whales of fun [08:22] only whalewatching i could do is at the mall though, so maybe i'll pass [08:23] Chipaca: I was doing hornethunting instead of whalewhatching [08:24] zyga: hornets, or F/A-18 hornets? [08:25] zyga: or even hawker hornets [08:25] those are cool [08:27] Chipaca: my odds would be poor with those :) [08:31] zyga: probably the same as against japanese hornets :P [08:37] did we have a testutil for 'this looks like a timestamp'? [08:43] mmmm, not that I recall [08:46] nm, fixed it by not having the timestamp in the first place [08:46] in fact i'm questioning the whole 'send the timestamp' idea [08:47] mvo: accepted the snapd bionic upload o/ As for xenial, in theory we do have the -hwe kernels in xenial that are 4.15 based, will those not cause problems? [08:48] sil2100: oh, good point, let me quickly check if the bad kernel hit xenial as well [08:49] sil2100: yes it did, so probably a good idea to have the fix in xenial too [08:49] I think the same bits were in the -hwe kernel I published on Monday [08:49] Ok then! [08:49] sil2100: nice catch! [08:52] mvo, i "accidentially" created a universal pi gadget that boots all pi's from one gadget ... and was wondering, i assume we are changing names for core18 images, so we could probably use that unified approach in 18 by default ? https://github.com/ogra1/pi-kiosk-gadget/commit/24ce020e094447abbad4d37a2856e23483b281dd [08:55] ogra_: oh, nice, how does it work? [08:55] zyga, config.txt allows filters per-device since a while [08:55] nobody ever tried them ... [08:56] ... i'm actually working on a universal browser-kiosk image atm and got tired to always have to build two gadgets, so i tried it out ;) [08:56] (thats what i meant by "accidentially" ;) ) [08:58] neat [08:59] zyga, http://people.canonical.com/~ogra/snappy/kiosk/pi-kiosk.img.xz in case you want to try (sadly seeding the giant chromium-mir-kiosk snap on firstboot takes 15-20min so one needs to be patient) [08:59] ogra_: interessting. [09:00] ogra_: one complication is upgrades, on an upgrade the current thinking is that you get a new core18 model assertion [09:01] mvo, right, but i was assuming we change gadget names anyway and need an upgrade path for the naming [09:01] ogra_: but as part of the upgrade logic we could put in the new config.txt - I assume this is backward compatible too? i.e. the old uboot.bin from the current gadget understands this too? [09:01] so we could as well turn everyone to a universal pi gadget in that step [09:01] ogra_: so far we had no need to change the gadget names for 18 [09:02] ogra_: we can/could, its definitely a compelling option [09:02] i'm using the same source tag of the upstream tree that all core16 image use for the blobs, so yeah, fully compatible to todays gadgets [09:03] the feature actually got added a few commits before the tag we use in core 16 so that should be safe [09:03] ogra_: great [09:05] PR snapd#5462 closed: many: use extra "releases" information on store "revision-not-found" errors to produce better errors (2.34) [09:06] PR snapd#5471 opened: dirs: fix antergos typo [09:06] silly typo fix ^^ [09:07] had to stare at the screen for a while to spot the difference [09:09] pedronis, (and probably sil2100 ) https://bugs.launchpad.net/ubuntu-image/+bug/1780217 [09:09] Bug #1780217: new connections: stanza causes validation error in ubuntu-image [09:15] ogra_: yeah, indeed, the connections: part wasn't around when we had the parser prepared [09:16] yeah [09:16] it's pretty new (i think i'm actually the first one to try using it) [09:17] sil2100: maybe add a switch --ignore-unknow or something to make the parser more accepting stuff that is unknown so that people can easier experiment [09:17] sil2100: or even just warn about unknown options by default instead of hard failing [09:17] doesnt snapd have a parser that u-image could call out to ? [09:18] seems awkward that validation needs to be maintained in two places [09:19] ogra_: there is separation of concern here, snapd ignore most of the partitioning bits but u-i needs to parse that. conversely u-i can ignore stuff like connections or snaps because snapd will handle that [09:19] oh, right ... gadget.yaml is special [09:20] mvo: good idea, we didn't really think about future changes to the gadget.yaml spec it seems ;) [09:21] Anyway, let me get these things fixed today-ish [09:22] sil2100, i'm not in a hurry (i have hacks for my test images that help with the issue) so no need to drop something else for it or some such [09:24] jdstrand: please enqueue https://github.com/snapcore/snapd/pull/5469 [09:24] PR #5469: interfaces/apparmor: (un)load profiles in one apparmor_parser call [09:25] Chipaca: turns out the midwinter fireworks might get canceled because of this whale [09:26] so i don't get _all_ the fun [09:27] neither does the whale (who knows probably he'd appreciate fireworks :) ) [09:32] mwhudson: I am unconvinced [09:33] mvo: i just got the MATCH bug on core18 :-) [09:39] mwhudson: is the whale something special where you live? [09:40] Chipaca: did you bring any MATCHes [09:40] Chipaca: do you have a debug shell? [09:40] zyga: this was from travis so no [09:40] in the end working on software is fun because of MATCH like bugs [09:40] where we look at a 3 liner [09:40] zyga: but am now trying to repro it with debug [09:40] and then look at the error [09:40] and then say WAT [09:40] and are awed by the eventual understanding [09:41] mvo: hi, thanks for merging that backport, there is also #5442 [09:41] PR #5442: many: expose publisher's validation throughout the API (2.34) [09:41] pedronis: aha, looking [09:43] PR snapd#5442 closed: many: expose publisher's validation throughout the API (2.34) [09:46] zyga: yeah, it's pretty unusual [09:46] zyga: dolphins, seals, even orca are somewhat normal, but a baleen whale? [09:53] mvo: thanks [09:55] * zyga wrote pretty lengthy review for a one liner: https://github.com/snapcore/snapd/pull/5466 [09:55] PR #5466: tests: remove extra ' which breaks interfaces-bluetooth-control test [09:55] mwhudson: nice, I never saw a whale [09:56] zyga: me neither until today! [09:56] mwhudson: I think I saw a dolphin as a child when one was (rarely) spotted near to where I was at the seaside here [09:56] i've never been around when the orca are in the harbour [09:56] mwhudson: imagine how it must feel to dive next to such a creature! [09:57] zyga: i thought the paddle boarders were being quite brave enough [09:57] zyga: have you seen the bbc series 'the blue planet'? [09:57] is the whale stuck there or just passing by? [09:57] mwhudson: yes, I have it on BD [09:58] one of the making of segments has a diver getting a bit too close to a whale + calf [09:58] watching that makes me think I made some bad life decisions by working on computers all day long [09:58] too close? maybe I missed that part [09:58] as far as anyone can tell the whale is just hanging out [09:58] it's been here for three days now? [09:59] did you take that photo with your phone? [09:59] i can't imagine there's a lot of krill in the harbour but what do i know [09:59] or with a telelens? [09:59] yeah [09:59] doesn't the terrible unsharp mask give it away? :) [09:59] haha, well, maybe this is a smoker whale who likes the smell of oil and gasoline ;-) [09:59] haha, kind of :D [10:00] if you have a camera now would be a great time to take some time off and photograph it [10:00] maybe that could go to the community showcase [10:00] * mvo seconds that [10:00] i guess it was ~300 metres away when i saw it [10:00] ubuntu wacky whale anyone :D [10:00] well unsurprisingly there are billions of much better photos on twitter & fb etc [10:00] yeah, that is how the times are [10:01] https://www.facebook.com/photo.php?fbid=10155927798194830&set=a.383547374829.165096.535824829&type=3&theater [10:01] I kept saying that someone should make an app for finding photos made at the time / place where one was with juts their phone [10:01] for example [10:01] but then I learned one of the heavyweights did just that [10:01] (forgot which now) [10:01] woah [10:01] Mornings [10:01] fantastic photo [10:01] hey Gustavo :) [10:01] mborzecki: Some comments in #5459 [10:01] PR #5459: cmd/snap: add 'debug paths' command [10:03] niemeyer: hey, thanks for the review! [10:03] mborzecki: Heya, np [10:04] PR snapd#5471 closed: dirs: fix antergos typo [10:05] niemeyer: given your comemnt, that would be SNAP_MOUNT, SNAP_BIN, SNAPD_LIBEXEC [10:05] fatal: unable to access 'https://github.com/kardianos/govendor/': Failed to connect to github.com port 443: Connection timed out [10:05] I wonder if there's something simple we can pass to govendor to retry those [10:06] zyga: that's go get [10:06] aha [10:07] seems not [10:07] we could grep [10:07] but :/ [10:07] mvo: do you think we should grep for "Failed to connect" and retry? [10:11] mborzecki: can you look at https://github.com/snapcore/snapd/pull/5457 [10:11] PR #5457: many: lessen the use of core-support [10:11] mborzecki: Not sure I get the question [10:11] PR snapd#5466 closed: tests: remove extra ' which breaks interfaces-bluetooth-control test [10:11] mborzecki: now that https://github.com/snapcore/core/pull/92 has landed we need this [10:11] PR core#92: Remove core-support plug [10:11] CC mvo [10:12] mborzecki: ... there's no SNAP_BIN there, only SNAPD_BIN, and the suggested entries match exactly the ones in the PR in the same order and with almost the same names [10:16] niemeyer: yeah, so i'm wondering if we should use SNAP_MOUNT instead, since we refer to the path as snap mount dir elsewhere (and SNAP_BIN for that matter) [10:17] zyga: I looked at this one, no? [10:17] mvo: yes just letting you know we need to merge it :) [10:17] mborzecki: The review provides the exact background for $SNAP_ vs. $SNAPD_.. did you read it? :) [10:17] mvo: or tests will complain about missing core-support-plug [10:19] mvo: looking at core PRs I'd suggest to look at and close https://github.com/snapcore/core/pull/38 [10:19] PR core#38: Add another pi-config option [10:19] zyga: addressed your feedback to https://github.com/snapcore/snapd/pull/5416 [10:19] PR #5416: interfaces/hotplug: add hotplug Specification and HotplugDeviceInfo [10:19] pstolowski: perfect, looking [10:20] mborzecki: It's of course okay to disagree.. but it sounds like you didn't read it.. what do you think of these points? [10:20] PR core#91 closed: hooks: add a check to ensure that the image is build with ppa:snappy-dev/image [10:21] pstolowski: reviewed [10:21] mborzecki: I'm usually much more careful when I need to expose such names to the external world via an API than when it just sits inside our code which can easily change [10:22] mborzecki: The mount dir of a snap is actually at /snap// [10:23] Which we call $SNAP for the snap [10:25] mborzecki: snap.Info.MountDir also returns /snap//, not /snap [10:25] drat, I don't have my opensuse account password here [10:25] I'll ask my wife later today [10:29] niemeyer: sry, kids are around, what i meant is that the tests and configure flags and the `dirs` package variable name is some premuation of snap mount dir,, that's why i found SNAPD_(MOUNT|BIN) a bit confusing [10:31] mborzecki: Sure, and that's what the comment in the review addresses.. in other cases we generally try to leave SNAP_* for snap-specific namespaces [10:31] mborzecki: $SNAP_COMMON, $SNAP, $SNAP_DATA, ... [10:31] mborzecki: While SNAPD_* is for snapd.. $SNAPD_DEBUG, ... [10:31] ack [10:32] mborzecki: Inside the code we have both.. dirs.SnapMountDir, and snap.Info.MountDir.. the first maps to SNAPD_MOUNT, while the latter is snap-specific and exposed as $SNAP [10:39] zyga: COmment on #5457 [10:39] PR #5457: many: lessen the use of core-support === sabdfl_ is now known as sabdfl [10:44] looking [10:46] niemeyer: replied [10:48] zyga: Replied the reply... [10:48] I wish GH would notify instead of us using IRC that way :) [10:48] haha, yes [10:50] niemeyer: replied again [10:51] I wonder why github shows me someone is typing but then doesn't show me the actual post. I need to refresh the page... wierd [10:51] zyga: You say it's not removing the testing of the interface, which is a bit ironic given that the comment is under a line removed that tested the existence of the interface :) [10:52] no, you misunderstand [10:52] that is not what is tested [10:52] Man.. do I need to copy & paste the test? :) [10:52] details: | [10:52] The "snap interface" command displays a listing of used interfaces [10:52] execute: | [10:52] - snap interface | MATCH 'core-support\s+ special permissions for the core snap' [10:52] snap interface lists interfaces that are _present_ in the system as plugs or slots [10:52] it doens't list interfaces that are known but not present as plugs or slots [10:53] Ah.. okay, that's what I missed [10:53] I could change that to say "snap interface --all | MATCH" but that was not the point of the test so I changed it slightly [10:53] zyga: And what about this: [10:53] - snap interface core-support > out.yaml [10:53] + snap interface network > out.yaml [10:53] - diff -u out.yaml snap-interface-core-support.yaml [10:53] and hence used the network interface instead [10:54] this just shows how plugs and slots are reported by "snap interface IFACENAME" [10:54] zyga: Do we have other tests for it? [10:54] this is why I also added the test snap to have a connection [10:54] for the core-support test, no I don't believe we do [10:54] it used to be tested by various core configuration test [10:54] *tests [10:55] but those stopped exercising that code [10:55] from my POV that interface is stuck as-is until we can understand why some snaps are abusing it [10:55] and shift them away from it [10:55] So we're back to the same point [10:55] We should either remove the interface, or tes it [10:55] test it [10:55] well, I disagree, I didn't remove an existing test for the functionality of this interface since we didn't have one [10:55] we cannot remove the interface, I can add a test for the interface but this is orthogonal to the change I made here [10:55] I hope you agree about this point specifically [10:57] FYI, I clarified my last comment [10:57] (on GH) [10:59] zyga: I see.. the test goal was just checking "snap interface" itself, not the core one specifically [10:59] yes [10:59] exactly so [10:59] mborzecki: google:arch-linux-64:tests/main/interfaces-content-default-provider failure on arch - https://api.travis-ci.org/v3/job/400340808/log.txt [11:00] pstolowski: mount isuse? [11:00] zyga: We probably have tests for that interface originally, but they were about the hook which don't need the interface anymore [11:00] mborzecki: yes [11:00] niemeyer: yes, I think so as well [11:00] zyga: So why do we need the interface again? [11:00] mborzecki: can i restart or do you want to take a look at the log? [11:00] pstolowski: go ahead and restat [11:00] k [11:00] niemeyer: we found that one of our customers has a snap declaration for using it on some of their snaps [11:00] niemeyer: they are probably using it for the unconfined systemctl access [11:01] niemeyer: I believe we are trying to get in touch with them to discuss this [11:01] mborzecki: is this test flakiness or something deeper? [11:01] niemeyer: I would have removed it a few days ago but jdstrand suggested we do a store-side search to ensure it is really unused [11:01] pstolowski: no clue yet, there's a forum topic tracking this problem [11:01] pstolowski: it's usually associated with I/O errors on loop devices [11:01] zyga: Well, that's definitely not what this is supposed to do [11:02] niemeyer: interesting observation, no? I think this is something to learn from [11:02] niemeyer: yeah but I don't think we should pull the rug from under their feet without asking first [11:02] zyga: How's that not blocked with the declaration? [11:02] zyga: Pretty sure jdstrand wouldn't hand that off [11:02] jdstrand: hey, I created a core16 base snap, it is essentially core without snapd, exactly the same build etc. could you please whitelist that in the store so that people can start using it? sergio was keen to use it for his latest snapcraft work [11:02] niemeyer: they have their store, they just signed a declaration that grants this [11:03] zyga: Okay, let's just drop this then [11:03] mm? [11:03] drop the interface you mean? [11:04] zyga: Drop the permissions granted by the interface [11:04] keep the interface but make it empty or remove it entirely? [11:04] zyga: Keep the interface, drop permissions [11:04] ok [11:04] can we land this PR then, I will open a new one that drops the actual permissions [11:04] we need this PR because we removed core-support-plug from core [11:05] zyga: Yeah, the PR is fine [11:05] zyga: Who's the contact on our end? [11:05] thanks! sorry for not including more context in the PR itself [11:05] niemeyer: I think lool [11:05] lool: ping [11:06] zyga: I'll also revive the conversation about the fact people granting arbitrary permissions like that for their devices is completely bogus [11:06] niemeyer: but I need to re-check, pedronis noticed this as he helped to find this [11:06] niemeyer: thank you [11:06] niemeyer: we may have some extra constraint on interface policy [11:06] zyga: np, thanks for the info [11:06] niemeyer: we didn't ping anybody so far, I wanted to mention it in the standup yesterday [11:06] niemeyer: that really limits it to specific snaps in a way that cannot be forced from the store [11:06] niemeyer: so that in the future things like that don't happen [11:06] zyga: No, the bug here is people being able to sign snap-declarations blindly [11:07] niemeyer: snice this ties our hands as to what we can do for internal bits [11:07] niemeyer: I see, ok [11:07] niemeyer: about the blocking of this self-granting, we will have more control as part of the work planned in this cycle [11:07] niemeyer: without counter signature and review? [11:07] zyga: Exactly [11:07] yeah, this makes sense [11:07] pedronis: Okay, I'll try to put something on the agenda for the sprint [11:07] ok, I'll prepare another PR now [11:07] niemeyer: I need to resync with jdstrand on that [11:08] pedronis: We need to act on this.. we discuss it as high-priority a few times, but we didn't really get any work items on the schedule yet [11:08] *discussed [11:08] niemeyer: we do [11:08] pedronis: Oh? [11:08] one sec [11:10] zyga: hmmm. gnome-calculator stopped working on 18.04, it wants me to connect gnome interface (which somehow got disconnected at some point); I reconnected it and it is connected per 'snap interfaces', but apparmor says: audit: type=1400 audit(1530788803.989:110): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.gnome-calculator.gnome-calculator" [11:10] pid=22099 comm="apparmor_parser [11:11] the STATUS is just spam, it doesn't say anything bad [11:11] pstolowski: can you tell me how this happened [11:11] I know of one other case but we didn't manage to either reproduce it or figure out how it came to be [11:11] pstolowski: please tell me all you know [11:12] zyga: i've no idea. i'm running stable. i've just made a copy of state.json before reconnecting, so i can try to find something there. there were no 'snap changes' reported [11:13] was this in a VM with random tests running or on your machine? [11:13] can you look at logs from snapd (all of them) [11:13] zyga: so this must have happened some time ago, i just didn't notice until i tried to use gnome-calculator today [11:13] aha [11:13] what is your uptime? [11:13] zyga: 3 days [11:14] zyga: and it's not VM, it's my main box [11:14] hmmm hmm [11:14] can you please collect fstab files for that snap [11:14] grr grr MATCH grr [11:14] the two, one in /var/lib/snapd/mount and the other in /run/snapd/ns [11:15] pstolowski: also, since you have a mount namespace, can you please collect the mountinfo from that namespace (ping if you need aid) [11:16] pstolowski: my only theory is as follows [11:17] pstolowski: oh one more detail please, collect timestamps from all the files, including the .mnt file [11:17] pstolowski: content connections are non-fatal, if you conncet but we fail to mount, we just carry on [11:17] pstolowski: we do mark the thing as not mounted though [11:17] pstolowski: something is either causing that to unmount [11:18] pstolowski: or the logic is wrong and we thing we mounted (I need to ensure this is strictly tested) [11:18] pstolowski: I wonder if refreshing content snap is doing the right thinh [11:18] *thing [11:18] I will look into this soon [11:18] pstolowski: please collect this in the forum, I suspect there's one thread about this but if no, make one [11:18] zyga: re namespaces, you need mount output after sudo nsenter -m/run/snapd/ns/gnome-calculator.mnt ? [11:19] cat /proc/self/mountinfo [11:19] ok [11:19] but yes [11:20] ergh. SNAPCRAFT_BUILD_ENVIRONMENT=lxd has always been a pain for me when running `snapcraft clean ...` the pull step seems to pull the parts' sources as uid 1000 which doesn't seem to be mapped properly to my host userid and thus clean cannot delete the files [11:20] PR snapd#5470 closed: tests: fixes for the autopkgtest failures in cosmic [11:21] niemeyer: can you please approve 5457 [11:23] zyga: Sorry, just working on the side effects of this mess [11:23] niemeyer: sure, no worries :) [11:23] paste of an affected source tree on my host: http://paste.ubuntu.com/p/XPW37s4gTq/ and within the build container: http://paste.ubuntu.com/p/hvPFZQqGMz/ [11:23] niemeyer: this is the follow up https://github.com/snapcore/snapd/pull/5472 [11:24] PR #5472: interfaces: make core-support a no-op interface [11:24] PR snapd#5472 opened: interfaces: make core-support a no-op interface [11:24] zyga: Too late, but this was abusing "many:" [11:24] Thank you! [11:24] :-) [11:24] zyga: This was actually a single directory [11:25] ah, sorry, I probably kept the name from earlier branch [11:25] yep [11:25] PR snapd#5457 closed: many: lessen the use of core-support [11:25] ok little by little :) core 18 here we come [11:28] * Chipaca ~> lunch [11:28] zyga: Follow up LGTM except for summary (comments there) [11:29] thanks! [11:30] zyga: https://forum.snapcraft.io/t/gnome-calculator-suddenly-disconnected-from-gnome-platform-snap-reconnecting-doesnt-help/6256 [11:31] pstolowski: looking [11:31] zyga: let me know if there is anything else to capture; i'll look into state in a moment [11:31] pstolowski: please add fstab files [11:31] they are essential [11:31] and timestamps on all the three files [11:31] and snap changes for the content snap (if any) [11:32] * diddledan twiddles his thumbs [11:32] pstolowski: also snap list --all would help, for the inactive revisions [11:32] diddledan: hey, sorry for not being able to help you [11:32] I saw your question but I don't know enough about snapcraft to help [11:32] :-) [11:33] zyga: sure, doing [11:33] thanks [11:36] zyga: updated [11:38] pstolowski: you missed /run/snapd/ns/ [11:38] that has more fstab files :) [11:38] (and the important one is there) [11:41] aha. ok [11:42] zyga: how about now? [11:44] pedronis: disconnect-hooks PR is ready for re-review.. it grew a bit unfortunately. changes worth nothing are: individual disconnects, a "automatic-disconnect" flag on disconnect tasks, handling of undo (connect-* hooks run if disconnect hooks are undone). [11:46] zyga: #5454 also +1d with a trivial [11:46] PR #5454: interfaces: prefer "snapd" when resolving implicit connections [11:46] zyga: Thanks for the nice breakdown of those issues, btw === pstolowski is now known as pstolowski|lunch [11:47] niemeyer: reminder to take a look at #1779859 when you can [11:47] Bug #1779859: tracks should be ordered [11:48] niemeyer: thank you! [11:49] pstolowski|lunch: ah, you've gone for lunch [11:49] after you are back, please run snap-update-ns on that snap [11:49] I'm super curious what the result will be [11:49] guys, I need to run, my dog makes it crystal clear what I should be doing now (not hacking) [11:53] Hi. I have two 18.04 machines both up-to-date. One has snap version 2.32.9+18.04 and the other snap version 2.33.1. How can I get the other machine up to 2.33.1? I've tried `apt install snap`. Having a boot issue with the other machine and wonder if it is affected by this https://forum.snapcraft.io/t/snapd-service-delays-startup-in-ubuntu-18-04-with-4-15-0-24/6205 Thanks. [11:53] PLA1: how are you checking the versions of snapd? [11:54] snap version [11:54] Chipaca: Done! [11:54] niemeyer: taw [11:55] PLA1: do you have snaps installed in the one that says 2.32.9+18.04? [11:55] I don't think there are any snaps installed on either machines. What is that command to list? [11:55] PLA1: try 'snap list core' [11:56] The 2.33.1 has core installed the other does not. [11:57] PLA1: that's your answer: install core (snap install core) to get 2.33.1 in the other one as well [11:57] OK. Thanks. [11:58] Both at 2.33.1 now. Lets see if that fixes his boot problem. Thanks! [12:04] re [12:04] wow, I can work from here :) [12:08] pstolowski|lunch: one more idea to explore once you are back [12:09] zyga: where's 'here'? [12:09] Chipaca: hop into standup [12:09] hhh [12:09] darn [12:09] I didn't take my token :P [12:09] let me ask my son for help [12:12] most boring standup EVAR [12:14] featuring me having lunch like a caveman [12:14] hahah [12:15] pstolowski|lunch: run journalctl | grep 'Unmounted Mount unit for gnome-*' [12:16] pstolowski|lunch: this will show us some history of the mount units [12:16] this can eliminate any chance that event propagation caused this [12:16] thanks, I'll tend to other tasks until you are back [12:20] niemeyer: pong [12:20] * zyga tunes in [12:21] Chipaca: I'll ping you once my kids arrive with the token :P [12:21] PR snapd#5473 opened: overlord: have SnapManager use a passed in TaskRunner created by Overlord [12:22] zyga: re https://github.com/snapcore/snapd/pull/5469> ok [12:22] PR #5469: interfaces/apparmor: (un)load profiles in one apparmor_parser call [12:22] zyga: the byzantine generals needed kids, clearly [12:23] PR snapd#5474 opened: many: finish sharing a single TaskRunner with all the the managers [12:23] Chipaca: how many do I need for the minimal algorithm to wokr? [12:23] *work [12:24] zyga: 3, but uniformly 3 levels deep [12:24] Chipaca: drat [12:24] Chipaca: well, I can perhaps say that now :) [12:24] Chipaca: 3rd is on the way now [12:24] Chipaca: I'm in the standup if you want to chat [12:24] zyga: congrats! [12:25] PR snapd#5416 closed: interfaces/hotplug: add hotplug Specification and HotplugDeviceInfo [12:25] PR snapd#5475 opened: Remove unneeded calls to daemon-reload [12:25] zyga: you're not in the standup [12:27] Snap had nothing to do with the problem. Not sure what it is but I moved the other box from LightDM to GDM. Good to go. Thanks again. [12:28] PR snapd#5476 opened: snapstate: make sure all *link-*snap tasks carry a snap type and further hints [12:29] thanks John [12:29] zyga: np [12:32] niemeyer: this is not urgent but could you please append https://github.com/snapcore/snapd/pull/5307 to your review list [12:32] PR #5307: cmd/snap-confine: allow hard-coded mounts to be optional [12:35] pstolowski|lunch: were those messages from pre-reboot? we only need the one from _this_ boot [12:36] zyga: added journalctl output, looks totally fine [12:36] zyga: The comment I made there earlier still seems relevant.. this PR is unused and untested. [12:36] zyga: Can we please have these changes together with the tests that demonstrate how this is supposed to work? [12:36] zyga: what's the PR we're considering? lots of PR discussed :-) [12:36] niemeyer: I specifically explained why that is, those are tested in the two follow-up PRs, that code doesn't have any more tests and adding them here would be non trivial [12:37] niemeyer: there is a spread test at the end, I believe [12:37] pstolowski|lunch: yes, but was it from all the boots or just from the current one? [12:37] zyga: No, no tests [12:37] niemeyer: I can put the remaining patches into this PR, sure [12:38] niemeyer: I missed this when reading: zyga: Can we please have these changes together with the tests that demonstrate how this is supposed to work? [12:38] thanks! [12:38] zyga: Breaking down independent PRs is nice, but it feels a bit over the limit to be pushing logic that is completely untouched by anything [12:40] mvo: re core16> ack. I manually approved r1. for r2-r6, please request a manual review and I'll approve [12:42] jdstrand, the process-control interface allows me to send signals to processes, but doesnt allow me to exec kill or pkill from the core snap, couldnt we allow these two commands so one doesnt need to ship them in the snap ? [12:43] niemeyer (cc pedronis): fyi, the brand store declaration work is on the spreadsheet for this cycle already [12:43] jdstrand: yes, pointed that out on a different channel [12:44] ah yes, I see that now [12:50] mvo: I'm re-working the last patch of the set, I think this will correctly handle all the edge cases, transitions and what not [12:51] zyga: \o/ [12:51] mvo: I will share a little while after the standup as I'm making some more changes based on experiments and some thinking [12:51] zyga: can't wait to see/try it [12:51] zyga: sure [12:51] mvo: let's HO then to discuss if this is sane [12:51] ok === pstolowski|lunch is now known as pstolowski [12:58] PR snapd#5454 closed: interfaces: prefer "snapd" when resolving implicit connections [13:00] zyga, mvo, all: Won't attend the standup.. have a conflict today [13:00] PR snapd#5472 closed: interfaces: make core-support a no-op interface [13:01] niemeyer: ta [13:01] 708947 [13:01] niemeyer: thanks for the heads up [13:07] hmm, how can snap and snapd be at different versions in "snap version" output .. thats weird https://forum.snapcraft.io/t/creating-a-python-daemon-to-interact-with-gpio/6177/10 [13:08] wow : 1min 38.255s snapd.seeded.service [13:09] ogra_: added to the list for the next batch of updates [13:09] ahoneybun, pfft ... try on an arm board [13:09] jdstrand, thanks, thats really helpful i think [13:10] ahoneybun, i have an image seeding 2 snaps (mir-kiosk and chromium-mir-kiosk) that takes 20+ minutes for the first boot (15 of that just seeding chromium) [13:10] i'd *love* to have an 1:38 firstboot :) [13:16] ogra_: they can get out of sync if somebody has cobbled together the system out of random bits they found on the internet [13:17] Chipaca, well, this seems to be a dell customer with an edge gateway (the caracalla gadget seems to be in use, there are interfaces called caracalla) [13:17] ogra_: this is a core system, so no re-exec [13:17] right [13:17] ogra_: because you're supposed to already be booting from core [13:18] no re-exec but also snap and snapd come from the same core snap usually [13:18] ogra_: so I'd first inquire how they built or otherwise obtained the system [13:18] ogra_: e.g. if they copied it in some weird way [13:19] ogra_: i mean: if all were ok, it's impossible [13:19] ogra_: so something is not ok [13:19] ogra_: i'd start with #0: users lie [13:19] ogra_: and go from there :-) [13:21] yeah, i asked if he tinkered with the install in some form [13:23] roadmr: hi! can you pull r1093 of the review tools? [13:23] mvo: that has the core16 override adjustments ^ [13:23] jdstrand: hello! certainly, I'll start the usual paperwork [13:25] jdstrand: when time permits, could you help reply to this folk: https://forum.snapcraft.io/t/my-snap-lbe-device-management-was-rejected-on-the-store/6242/2 Also we were wondering if there's like a boilerplate text (perhaps more detailed than what the review tools say) we could use for people requesting snapd-control. If what the tools reply is enough in your opinion, that works as well [13:27] roadmr: I thought your answer was great. there is boilerplate in the wiki: "The snapd-control interface is reserved for snaps that require device ownership and the ability to control all aspects of snaps on the system and is not usually needed for typical snaps. If the access is required, consider using a brand store or create a forum topic at https://forum.snapcraft.io/ using the 'store' category if this can be discussed in public or the 'sensitive [13:28] roadmr: I can adjust the review-tools too. let me try to do something for r1094 real quick [13:29] jdstrand: yes, that's pretty much what the tools say, which I thought was clear [13:29] in that respect, what this person did was correct, he came to the forum, and in there we can explain in more detail and discuss with them [13:33] roadmr: it isn't clear who should respond. really, this is a brand store question [13:34] roadmr: I'll ping kyleN in the topic [13:35] jdstrand: right... well in a sense it's not a brand store question since his snap exists in the global store. So if he doesn't make a good case for that, a simple "denied but you can register a snap name to your brand store and do it there - don't have one? talk to Kyle!" might be good. [13:38] roadmr: Ok, I'll adjust the wiki then [13:38] thanks jdstrand [13:38] jdstrand: \o/ [13:45] zyga: what was the command you wanted me to try? [13:47] Trevinho: ping [13:58] pstolowski: sudo /usr/lib/snapd/snap-update-ns gnome-calculator [13:58] mvo: re, I'm back home now, it was too hot in the sun [13:58] mvo: I'm mid-way through lunch (which doubles as bfast) [13:58] mvo: I'll give you an update soon [14:00] brunch. What even is brunch? [14:01] roadmr: how is this: https://paste.ubuntu.com/p/DbWDvmQGyG/ ? [14:02] mvo: Do you have sec for a quick call? [14:02] pedronis: You too if you have a moment [14:04] jdstrand: great, looks good! more informative about the prospect of brand stores [14:08] niemeyer: sure [14:08] mvo, pedronis: https://meet.google.com/dob-pjfr-rkz [14:10] zyga: this didn't help [14:11] willcooke: ping [14:13] pstolowski: that's consistent with what I suspected then [14:13] pstolowski: thank you [14:18] https://www.reddit.com/r/linux/comments/8waf37/ubuntu_1804_linux_kernel_update_causes_boot/ [14:21] zyga: np [14:22] pstolowski, hey [14:23] willcooke: hey, who is the best person to talk about gnome-calculator snap (and other gnome- snaps)? [14:23] pstolowski, kenvandine [14:23] willcooke: great, thanks [14:24] pstolowski, he's travelling this week to GUADEC, so he might not be active on IRC - if you get stuck drop an email our way [14:24] pstolowski, i'm arround, but in a meeting [14:24] pstolowski, and email would be best [14:27] kenvandine: sure [14:29] jdstrand: pardon the silliness, where's the wiki with the text you pastebinned earlier? [14:31] roadmr: https://wiki.canonical.com/AppStore/Reviews [14:32] jdstrand: thanks! We'll keep it as reference for the future [14:33] roadmr: I suggest also subscribing to the page [14:33] Done! good idea jdstrand, thanks [14:35] niemeyer: was afak having a break [14:36] pedronis: No worries, all good, we can sync tomorrow in the standup if we don't have an earlier opportunity [14:36] mvo: still iterating over this [14:36] mvo: I think the idea is sound but maybe not the direct implementation I went for [14:36] mvo: (large and boring change) [14:42] zyga: ok [14:45] mvo: tests are not failing anymore, let me see if spread works [14:49] * zyga -> coffee and more shade [14:49] my laptop is super hot from the sun [14:50] * genii slides zyga a fashionable parasol [14:53] genii: it's for the laptop, I bet zyga is happy to get some sunshine after the long polish winter :) [14:53] pedronis: are you ok with the current state of 5422, i.e. does the todo capture the plan correctly? [14:56] niemeyer: your opinion on 5440 would be great, no need for an in-depth code review (also that is welcome as well of course), more the question in the PR description. in a nutshell the question is: right now if refresh.timer is set we ignore refresh.schedule. should we do the same if "reresh.schedule=managed" is set? because in the old code we look at this special "managed" propoerty first before looking at refresh.timer/sc [14:56] hedule. it means we *might* break people with refresh.schedule=managed but refresh.timer=some-thing-else (hope the question make sense, the PR also explain it slightly more verbosely) [14:57] The question makes sense, but it's not clear what "should we do the same" means in this context [14:58] It could mean two different things: 1) Respect refresh.schedule=managed; 2) Respect refresh.timer=managed [14:58] PR snapd#5458 closed: tests: check catalog refresh before and after restart snapd [14:58] PR snapd#5467 closed: tests: stop restarting journald service on prepare [15:00] mvo: I think we should keep the invariant: if we set refresh.timer, the value of the old setting doesn't matter anymore, whatever its value [15:00] roadmr: yes, this year the summer has really arrived early, with the exception of last week it's a record-breaking year in many cases [15:00] zyga: like my neighbor says, "the weather is all f**d up" [15:01] mvo: Then, we should respect "managed" in the new setting, in a way equivalent to how we respected it in "refresh.schedule" before [15:01] record heat, then record cold... ti's all insane [15:02] roadmr: add more energy to a system and you're going to see more extremes to any oscillations you saw before (as long as you don't break it) [15:02] * Chipaca crosses fingers [15:02] Chipaca: oh we're well on our way to break it :( [15:03] roadmr: eh, probably not [15:03] roadmr: i mean, we might all die, but it looks like earth'll be just fine [15:04] we should start burying stuff for non-human archeologists of the future just to mess with them though [15:04] niemeyer: the PR implements the behavior that if refresh.timer is set the setting of refresh.schedule is ignored, so it seems the PR is fine and my questions is answered [15:04] Chipaca: https://wiki.canonical.com/Quotes#A_matter_of_rates [15:05] zyga: as expected, nothing interesting in my state.json wrt gnome-calc issue [15:07] mvo: Cool, I can review this afternoon it if you want, or LGTM if you think that's good enough info [15:07] PR snapd#5430 closed: tests: enable new fedora image with test dependencies installed [15:07] PR snapd#5448 closed: tests: start using the new opensuse image with test dependencies [15:08] pstolowski: can you corelate the mount/unmount logs you gave from journalctl with your reboot to check if _any_ of those happened since your last boot [15:08] PR snapd#5399 closed: tests: moving install of dependencies to pkgdb helper [15:08] pstolowski: I believe you can do this with journalctl -b -1 [15:08] * zyga checks [15:09] hmm [15:09] run journalctl --list-boots [15:10] actually it's just journalctl -b 0 [15:10] pstolowski: ^ [15:14] zyga: here you go, not sure if it's interesting: [15:14] https://www.irccloud.com/pastebin/aUJvZDwq/ [15:14] PR snapd#5242 closed: tests: new test for joystick interface [15:14] zyga: and my system was started on Jul 1, 20:48 [15:16] pedronis: 5197 looks good, I would love a test tweak but I'm inclinded to merge just to get it into 2.34 - or is there a reason not to have it there? [15:17] mvo: afaik the text hasn't been finalized [15:18] mvo: sparkiegeek should know more [15:18] pedronis: aha, I see he added a coment ~1h ago [15:19] pedronis: there is an updated text, I can update/push if you want. I readded blocked for now to ensure it does not get in prematurely [15:20] mvo: ah, I missed that, yes we have a message, yes please update [15:20] pstolowski: so according to this your system has booted on the 1st, started the two units and never stopped them [15:20] pstolowski: that is useful, thank you [15:20] pedronis: will do, thank you [15:21] pstolowski: I will do some experiments, this is all I needed now [15:21] * zyga forgot about the coffee and left it on the fire for too long [15:21] * Chipaca ~> cuppa tea [15:21] pedronis: are you ok with the current state of 5422, i.e. does the todo capture the plan correctly? (not sure if you saw this or if I missed the reply) [15:22] zyga: np. i'll keep it in the state it is now for some time in case we want to check something else [15:23] mvo: yes [15:24] pedronis: thanks [15:28] mvo: are you going to cut a new 2.34 tomorrow? [15:28] pedronis: yes, thats my plan, do final 2.34 tomorrow to ensure it can be tested over my vacation in beta/candidate [15:28] pedronis: anything from your side that should be in it? [15:29] mvo: I'm discussing with Chipaca about: https://forum.snapcraft.io/t/showing-edge-and-beta-in-search-results/4004/9 [15:29] Is there a list of games that are snaps on ubuntu on the net sommewhere ? [15:29] reviews for 5440, 5422 would be great [15:29] pedronis: thanks, let me look [15:30] mvo: we don't have a PR yet, it would be small, once we know what exactly needs to go in it [15:31] pedronis: ok [15:31] pedronis: it should be fine if its done until tomorrow evening [15:33] pedronis: 5197 is updated [15:33] mborzecki, to use amazon linux image [15:33] https://paste.ubuntu.com/p/Jt3fhhgYgP/ [15:34] you can build spread based on the PR [15:34] until it is merged [15:38] mvo: there? [15:40] zyga: yes [15:40] sorry, my reverse-i-search foo is rusty [15:40] what is the suite to run core18 tests against? [15:42] I want to run the suite that shows core18 with snapd.snap and try interfaces and see what is broken now [15:42] zyga: spread -v google:ubuntu-core-18-64 but you need to enable it in spread.yaml first, one sec [15:43] zyga: http://paste.ubuntu.com/p/pz2ksT63jw/ [15:43] thanks [15:44] what's a snap that's not devmode, but not in stable? if you know of one offhand [15:45] mmm [15:45] zyga: I get dinner but please keep me updated, I will read backlog [15:46] Chipaca: test-snapd-eds [15:46] Chipaca: only available for i386/amd64 though if that matters [15:46] mvo: ack [15:47] mvo: cheers [15:47] yw [15:49] [m]vo: tests are running now [15:49] zyga: woooooooooooooo [15:49] zyga: can't wait for results [15:49] haha, the point of [m]vo is so that you _dont_ read now, enjoy your dinner :) [15:49] zyga: once the interfaces tests work and are pushed I will push a new core18-all-tests-all-fixes PR so that we can run this in gce [15:50] zyga: ;) [15:50] ack [15:50] * mvo really goes now [15:50] zyga: or you can do that (push that PR), I don't mind :) === pstolowski is now known as pstolowski|afk [16:18] [m]vo: made some tweaks and re-started, I think it's a bit or a rabbit hole though, I stashed some changes that were going too deep === twobitsp1ite is now known as twobitsprite [16:37] PR snapd#5311 closed: tests: start active system units on reset [16:48] my network is not happy today [16:48] I ran out of my LTE plan [16:50] well, maybe not too bad [17:05] use buckets [17:07] this ISP has unlimited LTE that's just capped [17:08] but capping at 5Mbit is not that terrible actually [17:08] I will buy a new connection tomorrow as the contract is running out already [17:08] and the new one has an outdoor all-year antenna [17:08] and much better plan [17:09] with enough steel rod I can go above the treeline [17:10] (though not super sure about that as trees are up to 30m tall [17:10] (a bit tall) [17:11] 30-40 meters according to wikipedia [17:11] maybe not above treeline then [17:12] ran core18 tests and didn't notice I stashed the change with main re-enabling [17:13] running with those now [17:22] PR snapd#5477 opened: tests: change the poll interval used by the network-bind-consumer snap [17:22] mvo: hmm [17:23] https://www.irccloud.com/pastebin/63my3N4t/ [17:23] any ideas? [17:24] snap changes 11 (install basic snap) https://www.irccloud.com/pastebin/zcHdhpuE/ [17:25] mvo: other tests are running, I'll let you know once they finish [18:07] zyga: yes, snap install basic needs some of my core18 PRs, the problem is that the fake store does not have core and that is not installed by defalt on core18 [18:07] zyga: don't worry aobut this one, its understood and under control [18:08] * mvo would love reviews for 5197 5440 5422 [18:55] mvo: with my patches I got this far [18:56] hmm [18:56] some pastebin failures [18:59] zyga: how far? [18:59] zyga: awsome, push it === chiluk_ is now known as chiluk [20:16] * cachio afk [20:52] PR snapd#5478 opened: many: run core18 tests [22:51] PR snapcraft#2176 opened: [WIP] tests: use pytest as test runner [23:13] PR snapd#5479 opened: store, daemon, client, cmd/snap: expose "scope", default to wide