[05:04] PR snapd#7598 closed: test/lib/names.sh: make backslash escaping explicit [05:12] morning [05:19] mborzecki: good morning [05:20] yay 7536 landed :P [05:20] PR snapd#7536 closed: gadget: accept system-seed role and ubuntu-data label [05:20] mvo: thanks! [05:20] mborzecki: yes, finally :) [05:24] i've updated #7593 [05:24] PR #7593: recovery-tool: add sfdisk wrapper [05:24] and there are some comments from zyga too [05:24] hmm, new kernel, i better reboot [05:24] brb [05:28] and back on 5.3.6 kernel [06:50] PR snapd#7599 opened: gadget: refactor ensureVolumeConsistency === pstolowski|afk is now known as pstolowski [07:04] morning [07:08] pstolowski: hey, good morning! [07:18] pstolowski: hey [07:21] hello? [07:21] is this thing on? [07:21] I think I connected now [07:23] sorry for starting late, lucy was sleeping hugging me all the time and got grumpy the second I tried to put her to bed [07:24] zyga: hey [07:24] mborzecki: hey, question on how to proceed for you [07:24] mborzecki: I removed the guts of snap-update-ns so that I can create other tools with the same logic [07:25] mborzecki: I moved it to system/mount for lack of a better name [07:25] mborzecki: some bits can go to sandbox/cgroup [07:25] mborzecki: but most has no good place to go [07:25] mborzecki: ideas? [07:26] mborzecki: I'm mainly after plan-writable-mimic and execute-writable-mimic [07:26] mborzecki: this pulls in change, assumptions, restrictions and tresspassing [07:27] mborzecki: along with loads of tests [07:27] mvo: i'm looking at 7593, perhaps our consistency checks are too strict, in particular the len(volumes) != 0 only counts when constraints are used, but once there's a system-seed structure defines and SsytemSeed is not true, then we bail out, why not allow this case? [07:28] zyga: that's part of mount related logic though? [07:28] zyga: or hmm we call it namespace (or whatnot) often [07:28] mborzecki: mainly yes [07:28] zyga: system/mount/namespace? [07:29] mborzecki: I'd go for system/mount really, it would help abbreviate the API names and would look nice [07:29] mount.Change [07:29] mount.Assumptions [07:29] mount.Restrictions [07:29] etc [07:29] system/mounts stgm too [07:29] though [07:29] my main question is: can we use main :) [07:29] er [07:29] system/ [07:29] or is that too vague [07:29] I want to have this because otherwise debugging some issues is very hard [07:30] and having an interactive tool where you can do stuff is very useful to understand things misbehaving [07:30] and sadly it's forbidden to import from "main" packages [07:30] zyga: hm we have osutil which kind of is system like already, and there's some mount related stuff in there too [07:31] mborzecki: yeah but any existing package may trigger import loops [07:31] zyga: osutil/mount ? [07:31] I can tryt [07:31] *try [07:31] let's see if that works [07:31] mborzecki: do you know if go has some rules on what is in a binary [07:31] if there's a package foo/bar [07:31] and I use only bar.Symbol [07:32] does it include all of foo? [07:32] zyga: no, bar is bar, foor is foo [07:33] mborzecki: so foo does _not_ bloat a binary using bar? [07:33] mborzecki: and the reverse case? [07:33] mborzecki: is presence of foo/bar affecting a binary that only uses symbols from foo? [07:33] zyga: same, no effect unless you import it, or it's imported internally [07:33] zyga: or you created an import loop :P [07:34] ok, let's give it a try [07:37] mvo: simply put, if i have a gadget yaml with system-seed and system-data, and use an empty ModelConstraints (just want to have consistency checked), this will error out [07:44] mborzecki: I need to look, could you please add a note in the PR? maybe we are too strict .) it seems like the refactor helped to reason about this easier [07:44] mborzecki: I'm in the middle of 7593 right now [07:44] mvo: ah ok, started to play with thhis code too, i'll leave a comment in the PR then [07:48] mborzecki: or feel free to propose a pr on top if you feel this should be ok, either way is fine with me :) [08:02] ackk: hey, in snapd 2.42 we improved the fuse performance in lxd, I heard maas is using this a lot, did you see improvements? [08:06] 👋 [08:08] hello Chipaca [08:09] mborzecki: the easy branch https://github.com/snapcore/snapd/pull/7600 [08:09] PR #7600: sandbox/cgroup: move freeze/thaw code [08:09] PR snapd#7600 opened: sandbox/cgroup: move freeze/thaw code [08:26] pedronis: 👋 [08:27] pedronis: did you see my question about the quotes in the repair script? [08:27] yes, but I didn't understand it [08:27] maybe mvo does [08:28] pedronis: you didn't understand the question, or the origin of the quotes? :) [08:29] Chipaca: good morning! I did not see the quotes at all [08:29] Chipaca: oh, fun! [08:29] mvo: snap known --remote repair brand-id=canonical repair-id=1 [08:29] mvo: the script has typographic quotes [08:29] Chipaca: I think it's copying from a gdoc [08:29] Chipaca: haha - I see it now [08:29] mvo: that might be intentional, but I doubt it [08:29] that did that [08:30] Chipaca: yeah, it was not [08:30] yeah, that would do it [08:30] Chipaca: we need to improve the way we sign assertions [08:30] Chipaca: or let assertion sign :) [08:30] Chipaca: THANKS for spotting this [08:30] it's silly that I worry about this, but I worry because although "echo" doesn't care, there's not a lot more that is as amicable [08:30] Chipaca: oh, totally [08:31] Chipaca: we need to improve our process here [08:31] that's all i needed to hear to stop worrying about it :-) [08:31] Chipaca: I'm editing a gdoc now so that we don't use gdocs for this :) [08:34] mvo: added a bunch of comments in #7593, i think some relate to how the seed/recovery is supposed to work, can you take a look and maybe we could discuss that with whoever is interested before/after the standup? [08:34] PR #7593: recovery-tool: add sfdisk wrapper [08:36] mborzecki: I'm stuck [08:36] mborzecki: the challenge is as follows: [08:36] mborzecki: there's lots of tailored mocking going on [08:36] mborzecki: in osutil/ snap-update-ns and now in osutil/mount [08:37] mborzecki: then there's the general mocking all syscalls that are used in snap-update-ns [08:37] mborzecki: if you try to reconcile all of that it's a big mess [08:37] mborzecki: thinking about it, I see the following way forward and perhaps out of the problem as well [08:37] mborzecki: we can make a new package syscalls/ that has just the system calls and a means to mock them [08:38] mborzecki: as things move out of snap-update-ns, they get updated to use this package over the private mocking code used locally [08:38] mborzecki: then some parts of snap-update-ns, for example all the mk{dir,file,symlink} and openpath code move to osutil/ [08:39] (or osutil/mk... if that helps to scope it) [08:39] mborzecki: while the real essence of mount, like secure bind mount, mimic logic, can move to osutil/mount [08:39] or even osutil/mimic [08:39] mborzecki: moving everything in bulk might help in the short term [08:40] mborzecki: but won't change how those things are messy internally when considered along with the rest of osutil [08:41] heh, if you move some of the calls to osutil there's probably going to be some funky import dependencies [08:42] mborzecki: there already are, much of the code uses osutil already [08:43] mborzecki: how would you feel about the syscalls package? [08:43] mborzecki: the public API would be various system calls [08:43] mborzecki: and a means to mock them all (e.g. with the recorder already present in another package) [08:44] zyga: there's stdlib syscalls already, could those wrappers just live in osutil instead? [08:44] mborzecki: yes but I'd like them not to [08:44] osutils is already kind of large [08:44] but most importantly it already has a number of them and some mocking [08:45] mborzecki: (mock-this, mock-that, not in general) [08:45] mborzecki: the idea is that eventually, over time, code could move to use the new pakcage [08:45] and drop its own mocking [08:45] mborzecki: this is why I think a new package would help [08:45] mborzecki: if we move them over to osutil right now you will see a number of separate mocking systems that need to be reconciled [08:46] zyga: osutils/syscalls? with a godoc that 'here lie the syscalls we can mock' ? :) [08:46] :D [08:46] mborzecki: that works for me [08:46] mborzecki: importantly, mock in bulk [08:46] not one by one [08:47] mborzecki: osutil/sys [08:47] ? [08:47] right, avoids a name clash with stdlib's syscalls [08:48] would gadgets on top of debian work or is there any special-casing-code that only allows them on ubuntu classic ? [08:49] Chipaca: would you prefer if this was in osutil/sys? [08:59] brb [09:12] zyga: i'm not sure quite what you're asking, but, probably? the difference between osutil/syscall[s] and the existing osutil/sys escapes me [09:19] zyga: what are the changes to snap-update-ns about ? [09:28] pedronis: being able to expose the internals for interactive debugging [09:28] zyga: what's the context? are you chasing a bug? [09:29] Yes, correct. [09:29] which one? [09:29] I did that yesterday and thought that some of those could land [09:29] Not all changes are easy though [09:31] zyga: I fear I still don't have enough context, maybe you need to propose the mess as is, and I can look what to do with it [09:31] when I have a bit of time [09:33] I think some bits are easier than others but the main value already exists. In a branch I can build mimic-tool to experiment and see where the kernel behavior is coming from [09:34] zyga: still no context [09:39] Finishing breakfast, I’ll be back soon [09:41] mborzecki: I addressed a bunch of your comments in 7593, I am looking into using "-apend" now [09:42] mvo: thanks! btw. that's an interesting find about blockdev [09:43] mborzecki: thank you for pointing this out! [09:43] mborzecki: blockdev seems to be part of busybox fwiw [09:43] mvo: ah, that makes sens [09:44] mborzecki: also thanks for the comment about -apend, I was wondering about this myself but wasn't aware of -append :) [09:44] PR snapd#7601 opened: overlord/ifacestate: use SetupMany in setupSecurityByBackend [09:45] mborzecki: what's the status of #7079, is it being absorbed by the snap-recovery work? [09:45] PR #7079: [RFC] cmd/snap-image: tool for building UC images [09:47] pedronis: not really, parts of it probably affected snap recovery work, but iirc claudio did not pull in any patches directly [09:47] mvo: are we going to do a 2.42.1 ? mvo, pstolowski: when should we try to land #7092, it's unblocked now? [09:47] PR #7092: packaging: use snapd type and snapcraft 3.x [09:47] pedronis: though, the sfdisk parts should be consolidated into the gadget package since we alredy have some code there [09:48] mborzecki: it sounds like we would redo it on top of the recovery work at this point, no? [09:48] should it be closed? [09:48] pedronis: other than that, the tools are run in different environment and differnt part of the cycle [09:50] pedronis: i can close it for now and we can discuss what to do witht he tool separately [09:50] ok, sounds good [09:51] mborzecki: to be clear, the medium term plan is still for ubuntu-image to be a thin wrapper around snapd code, but I don't we want to land two codebases doing partions into snapd, we probably want to get to one codebase surface maybe in two slightly diffferent ways [09:52] PR snapd#7079 closed: [RFC] cmd/snap-image: tool for building UC images [09:53] pedronis: yes i think we should land 7092. going to deconflict it [09:54] * Chipaca brb [09:55] mborzecki: I think 7593 is good for now, I want to do a followup with some real sfdisk tests but that will probably become quite a bit bigger [09:56] mvo: do you think it'd make sense to move the code that creates a LaidOutVolume out of sfdisk dump into gadget/partition.go ? [09:57] PR snapd#7222 closed: tests: show just the last log as part of the debug output when check journal logs [10:00] mvo: mborzecki: volmgr is a strange name, it makes one think LVM [10:01] makes me think of androids vold ... :) [10:03] Voldmgrd [10:03] ;-) [10:03] pedronis, do you knwo off the top of your head if it is seamlessly possible to use gadget snaps on debian systems (i.e. to attach to a brand store or add certain interfaces) or does snapd currently restrict this to ubuntu systems ? [10:06] pedronis: we could move it to osutil/fdisk ? [10:06] PR snapd#7600 closed: sandbox/cgroup: move freeze/thaw code [10:07] mvo: probably not osutil given it uses types from gadget [10:07] it could be under gadget [10:07] pedronis: good point [10:08] pedronis: or just cmd/snap-recovery/fdisk ? [10:08] that's fine too [10:08] mostly against the volume manager terminology [10:09] pedronis: cool, I will rename to fdisk for now, I think it will later grow luks and stuff but even that seems to be ok to put under fdisk [10:10] mvo: gadget/partition ? [10:11] (I'm fine with fdisk as well) [10:13] pedronis: yeah, partition works for me, shall I keep it under cmd/snap-repair for now or do you prefer gagdet? [10:13] mvo: as your prefer, discuss with mborzecki [10:14] pedronis: thanks, will do [10:26] got ubuntu-core-18-64:tests/core18/snapd-failover failure in one of my PRs: 2019-10-15T10:05:40Z INFO Waiting for restart... [10:26] error: cannot perform the following tasks: [10:26] - Mount snap "snapd" (unset) (remove /etc/systemd/system/snap-snapd-x2.mount: no such file or directory) [10:26] - Automatically connect eligible plugs and slots of snap "snapd" (there was a snapd rollback across the restart) [10:46] Bug #1835024 changed: Links triggered within most snap apps open in a separate browser session [10:50] Bug #1801201 changed: Installed snap icons missing if using pixmap [10:50] Bug #1809729 changed: Removing a snap triggers 'Starting scheduled backup' notification [10:56] Bug #1773416 changed: Interface from Thunderbird/Firefox to LibreOffice/VLC [10:56] Bug #1797745 changed: "ln: failed to create symbolic link" in deepin 15.7 [10:59] it is frustrating when lxd and snapd use different bug trackers [10:59] and that launchpad does not automatically ping-back the other bug when an URL is mentioned. [11:00] stgraber: hello, could you kindly look at https://bugs.launchpad.net/snappy/+bug/1773044 and if appropriate, convert it to an LXD bug on github please. [11:00] Bug #1773044: Can't get snap gui apps (notepadqq and firefox) to run in LXD/LXC container [11:02] Bug #1773044 changed: Can't get snap gui apps (notepadqq and firefox) to run in LXD/LXC container [11:05] zyga: doesn't look like a bug, just misconfiguration by the user. I suspect they've bind-mounted the X11 socket which works fine for everything but snaps as snaps need the abstract Unix socket instead [11:05] Bug #1763071 changed: Error message installing a paid snap as unauthenticated user [11:05] Bug #1765979 changed: snap applications icons missing in launcher wayland [11:05] Bug #1766079 changed: ripgrep installed via snap fail to work in /lib/systemd/system folder [11:06] zyga: I kind of wish that snapd didn't use launchpad as the bug tracker [11:06] diddledan: Dear Tea., … ? [11:06] it's surprisingly difficult to locate bugs in launchpad [11:06] Eighth_Doctor: that makes 1002 of us [11:07] Eighth_Doctor: at least we're looking now :) [11:07] Eighth_Doctor: progress! [11:07] yeah [11:07] the only really useful feature of launchpad is multi-tracker aggregation [11:07] that's actually a powerful feature if it worked more... [11:08] Bug #1758465 changed: snapd doesn't upgrade on bionic when a local installed snap mount is failing [11:08] hmm? [11:08] diddledan: https://forum.snapcraft.io/t/need-to-add-our-product/13694?u=chipaca [11:08] aha [11:09] yeah, I think they missed an M [11:09] zyga: but does this mean I need to clone rhbz bugs to LP to get them fixed? ☹️ [11:10] Eighth_Doctor: why would you do that? [11:10] ah [11:10] I see [11:10] are you saying that we should look at RHBZ bugs as well? [11:10] yes [11:11] Bug #1750856 changed: snapd on s390x tried to run locationd tests, which does not exist on s390x [11:11] Bug #1752916 changed: Desktop interface should allow accessing to recent files and xdg dirs [11:11] I've been doing some of the triage for a while now, but if there's an actual code problem, it's a bit difficult to escalate because I don't know how to get people's attention on it [11:11] zyga: we do look at ubuntu/+source/snapd bugs, so why not rhbz bugs? [11:11] mvo: could you kindly check if the bionic task of this bug is still valid https://bugs.launchpad.net/snappy/+bug/1750856 [11:11] Bug #1750856: snapd on s390x tried to run locationd tests, which does not exist on s390x [11:11] Chipaca: I agree, it's just a matter of manpower and gardening the mess first [11:12] Eighth_Doctor: we have a recurring triage work, at some point we'll run out of overflowing NEW bugs and can look at existing bugs [11:12] Eighth_Doctor: can you point me to the list of snapd bugs in RH bugzilla please [11:12] Eighth_Doctor: I'll add that to our laundry list [11:13] http://bugz.fedoraproject.org/snapd [11:13] I need to write a script to mass-close all these SELinux bugs [11:13] WONTFIX :-p [11:13] I'm pretty sure a large chunk of those are from before the policy rewrite that mborzecki did in May [11:14] how do we feel about snaps that tell users to do things that could easily trick them to run things unconfined? [11:14] Bug #1748510 changed: shell's test gives false positive on readability of files [11:14] Chipaca: RUN THIS SNAP WITHOUT PESKY ERRORS WITH THIS ONE TRICK [11:14] Chipaca: that sounds dirty [11:14] zyga: you'll never believe what happens next [11:14] diddledan: I know, I know [11:14] zyga: protip, all Fedora packages actually have a BugURL property set on them ;) [11:14] sudo wget | sh [11:15] 'loopchain' (brought to my attention by requesting a track) is like this [11:15] it's always like tat [11:15] *that [11:15] love those instructions appearing everywhere because macOS [11:15] `rpm --query --queryformat "%{BUGURL}" snapd` [11:15] it doesn't seem to be immediately bad, but it makes me feel a little uncomfortable [11:16] "to install, first snap install this, then apt install rabbitmq, then run thesnap.init, then run the scripts it wrote in $SNAP_COMMON [11:16] " [11:16] zyga: thankfully all these Fedora 29 bugs go away when F29 EOLs next month [11:16] * Chipaca would NOPE out of that really fast, but some users are perseverant... [11:16] or "run `$(thesnap.init)` [11:17] Bug #1747200 changed: console conf crashes on dragonboard [11:17] diddledan: sudo $(thesnap.ok) [11:17] Chipaca: you didn't think snaps would actually stop people from doing dumb things, did you? 😶 [11:17] Eighth_Doctor: that's a bit annoying on the user side but that's very convenient for the developer side :) [11:17] diddledan: they will all need to change to curl | zsh [11:17] well, it's the only way I maintained my sanity with snapd bugs [11:18] and sudo won't help since macos is locked down more than ever now [11:18] macOS has become an annoying platform to be a developer on [11:18] Eighth_Doctor: https://www.youtube.com/watch?v=TL0dfzK3Aqs [11:19] love that song [11:19] it's a good song [11:19] and very appropriate here [11:19] BUT THE SUDO COMES AT NIGHT [11:19] Eighth_Doctor: i'm quite sure there's still a bunch of things popping up when installing snaps :/ [11:20] is lxd security.nesting enabling nested apparmor? [11:20] Bug #1744584 changed: Exclude Snap .cache from Dejadup backups [11:20] yeah [11:20] it's a lot less nowadays, thankfully [11:20] and some of the warnings I don't want to fix [11:20] Eighth_Doctor: i should try installing some snaps on my wife's lapotp to catch them all :P [11:21] there are cases where it's actually bad behavior it's blocking, and I'm okay with the denial status [11:21] zyga: sure, done [11:23] mborzecki: the issue right now is that Silverblue users are upset that snaps using the "home" perm fail to start because of `/var/home` [11:24] there's a symlink for `/home` to `/var/home`, but that isn't enough for snapd, I guess [11:24] mvo: thank you [11:24] Eighth_Doctor: there's been some patches to make /var/home work already [11:24] Eighth_Doctor: though we obviously lack the full test [11:25] zyga: oh cool, can I cherry-pick that into 2.42 release for Fedora? [11:25] Eighth_Doctor: it's not the full fix yet, just initial patches [11:25] I haven't pushed it yet because this bug just came up as I started working on it [11:25] Eighth_Doctor: base snaps will have /var/home so we can start binding onto it [11:25] ah, I see [11:26] we'll need to keep that in mind for fedora base as well [11:26] Bug #1732494 changed: Impossible to manage package after Trusty --> Xenial upgrade [11:26] mvo: do you have access to launchpad.net/snapd project description? [11:26] mvo: it would be good to change the first line [11:26] mvo: now it reads "code hosted at URL" [11:26] mvo: but if you re-assign bugs between projects all you get is "code hosted at" period [11:27] mvo: we could change it to say something nice, like "snapd is the best way to manage snap packages" :) [11:28] zyga: updted [11:28] mvo: super, thank you [11:29] can you edit again to replace the word "snap ..." with snaps [11:29] the message gets cut off at "snap" [11:29] Bug #1647333 changed: adduser misses extrausers support for group management [11:29] sorry :) [11:30] zyga: done [11:30] haha, now it says: the best way to manage snaps. Code\n [11:30] and that's all :D [11:30] oh well, it's good enough [11:31] "a good enough way to manage snaps" ? [11:32] Bug #1662452 changed: snap install squid-gary failed on Ubuntu Core [11:35] * Chipaca breaks all the tests again [11:35] where are ubuntu-image bugs reported? [11:35] ogra: "a good enough way to" [11:35] mborzecki: do you know? ^ [11:36] zyga: lp? or github project maybe [11:36] zyga: snaps@canonical.com ? [11:36] zyga: https://github.com/CanonicalLtd/ubuntu-image/ ? [11:36] thanks [11:36] popey: does email to that address reach you? [11:36] or who? [11:36] zyga: https://launchpad.net/ubuntu-image apaprently [11:36] wait [11:36] no issues there [11:37] Chipaca: no, mvo [11:37] oh the horror [11:37] thanks [11:37] zyga: yeah, there's this message that points to LP [11:37] zyga: it has no bugs! \o/ [11:37] Chipaca: I wish it was easier to find :) [11:37] Chipaca: no reported bugs :P [11:37] Chipaca: ship it! [11:37] * Chipaca ships everyone with everyone [11:37] Chipaca: i lamented this back in malta [11:37] Chipaca: do you remember when I first wanted to join the team [11:37] Chipaca: I was supposed to create ubuntu-image [11:38] Chipaca: and maybe help with "resources" aka "capabilities" aka "skills" [11:38] zyga: my memory is a two-week round-robin database [11:38] Chipaca: what? [11:38] ;-) [11:38] Chipaca: journalctl --vacuum-time=2w ? :P [11:38] [11:38] Bug #1649839 changed: unknown snap and snapd version when image created via ubuntu-image [11:38] Bug #1655060 changed: snapcraft doesn't support the dbus daemon type [11:39] actually it's more like rrdtool but close enough [11:40] popey: was your lament about the fact that the email is there, or that it only goes to the m of the v.o.? [11:40] both [11:40] it should go to a project github page, or home page [11:41] see lxd for the pinnacle of snapcraft store pages [11:41] Bug #1655593 changed: chattr code (tests/main/chattr/task.yaml) fails on ppc64el [11:41] Bug #1659523 changed: console-conf doesn't work well if using screen on Mac [11:42] mvo: can we put the snapcraft logo on snapd? [11:42] mvo: WDYT about having snaps@c.c also go to advocacy? [11:42] zyga: that's far too sensible [11:43] mvo: and, WDYT about pointing ubuntu-image's contact to something better than an email address? [11:43] zyga: the snapcraft logo but in asciiart [11:44] Chipaca: in black and white [11:44] maybe that's too sad though [11:44] we have one of those [11:44] nah, sad is grey on grey [11:44] or is that depression [11:44] mborzecki, hey [11:44] Bug #1679739 changed: System-User Assertions and the system time [11:44] Bug #1683823 changed: snapstore returns multiple instances of the same publication (was snapcraft list-revisions showing multiple publications in the same channel) [11:44] mborzecki, I m with the #7551 [11:44] PR #7551: tests: fix the how the systemd-journald.service is restarted during the prepare [11:44] Chipaca, isnt u-image foundations child now ? [11:45] ogra: je ne sais pas, je ne sais plus, je suis perdu, etc [11:45] pedronis: something for your awareness: https://bugs.launchpad.net/snapd/+bug/1679739 -- perhaps assertions should be loaded and only re-validated (and actually take effect) once we have system time synchronized [11:45] Bug #1679739: System-User Assertions and the system time [11:46] cachio: do you have more details about those journal failures? [11:46] mborzecki, yes [11:46] cachio: i have a hunch that it's the stop that fails [11:46] mborzecki, basically what happens with restart [11:46] is that it stops [11:47] but sometimes it makes a flush [11:47] during stop [11:47] and while it is flushing [11:47] Bug #1679210 changed: snap install --revision tracks stable by default [11:47] it tries to start [11:47] and it can't [11:47] yeah, probably when there's a lot of data bc snapd is chatty with debugs enabled [11:48] so retries many times until it reaches the starts limit [11:48] cachio: w8, so it didn't stop, is still flushing and nother journald instance starts up? [11:48] and fails [11:48] mborzecki, it doesn't finish the stop and it is trying to start [11:49] wow [11:49] mborzecki, if you see the log there, the error is Active: failed (Result: start-limit-hit) since Thu 2019-10-03 [11:49] mborzecki, it is just happening on core18 and sometimes on core16 [11:50] I could not reproduce is on classic [11:50] mborzecki, I am creating a debug session now [11:52] what on earth is "ubuntu-snappy" source package [11:53] Old name for the snapd source package [11:53] ah [11:59] Bug #1657552 changed: [spread] install-sideload:reexec0 failure [11:59] Bug #1662772 changed: systemd[1]: Failed to start Set the hostname to the value stored on the writable partition [12:01] zyga, dont kill it in case you want to go back to a python based snapd :P [12:02] ogra: maybe one day we can snap install snapd0 ;) [12:02] haha [12:02] Bug #1684343 changed: For candicate release is appearing on dragonboard the message "ERROR hal_remove_bsskey response failed err" [12:05] Bug #1671778 changed: failover:emptysystemd test fails [12:05] Bug #1679432 changed: Bluetooth SCO connections don't work on Dragonboard 410c [12:05] Bug #1679747 changed: Cannot send bluetooth SCO packets with Raspberry Pi 3 internal bluetooth module. [12:07] * pstolowski lunch [12:08] Bug #1666690 changed: Dependency issues when sharing a library through content interface [12:14] Bug #1705985 changed: snaps fail to install on juju1 deployed lxc container === ricab is now known as ricab|lunch [12:43] kenvandine: hello, could you please enqueue this bug report https://bugs.launchpad.net/snapd/+bug/1661626 -- there's some things related to gsettings and dbus signal for notification on changes. I could use some help in understanding how the desktop stack works in this area. [12:43] Bug #1661626: GSettings/dconf reports incorrect values on setting change under confinement [12:44] Bug #1661626 changed: GSettings/dconf reports incorrect values on setting change under confinement [12:44] Bug #1662962 changed: 'snap find' does not allow channel specification [12:48] Bug #1665683 changed: Strictly confined snapped desktop applications can't toggle Launch at Login [12:51] Bug #1689302 changed: Can't set program_usb_boot_mode pi-config option [12:51] sil2100: could you please enqueue this bug to your list https://bugs.launchpad.net/snappy/+bug/1740655 -- I'm not sure what to do about it [12:51] Bug #1740655: Using dtoverlay=pi3-disable-bt to disable Bluetooth results in unbootable system [12:59] * Chipaca stands up [13:00] morning folks, I think that https://github.com/snapcore/snapd/pull/7431 is basically ready, if folks want to take a really quick look and see if there's anything obvious that I could split out into different smaller PRs that would be great [13:00] PR #7431: overlord/snapstate: don't re-enable and start disabled services on refresh, etc [13:04] PR snapd#7602 opened: overlord/many: extend check snap callback to take snap container [13:10] hey zyga [13:10] hey [13:11] how are you? :) [13:11] i'll look at it [13:11] weird failure with current master https://paste.ubuntu.com/p/8P6hYK5PcJ/ [13:11] good, recovering from a long weekend :) [13:11] kenvandine: thank you, it's not urgent, just something that came out of our bug gardening [13:12] mborzecki: two comments [13:12] mborzecki: how big is that deb?!?! [13:12] mborzecki: and maybe systemd became a virtual package somehow? [13:12] zyga: idk [13:16] cachio: can you please look at https://bugs.launchpad.net/snapd/+bug/1847665 -- it seems one snap that we get from the store is not published for i386 - perhaps we need to nuke the test or perhaps we need to publish the test snap but it looks like it should work (the test snap name is multi-arch) [13:16] Bug #1847665: snapd autopkgtest fails on i386 [13:16] cc mvo ^ not sure who has access to those [13:18] marcustomlinson: can you look at bug 1661626 ? [13:18] Bug #1661626: GSettings/dconf reports incorrect values on setting change under confinement [13:19] mvo: can you please look at https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1844498 -- you were participating in the discussion there and I'm not sure if the snapd package task is something that is still accurate - should it change to triaged or invalid? [13:19] Bug #1844498: 18.10+ cloud images have the LXD group as gid 1000 [13:19] kenvandine: ok [13:19] marcustomlinson: thanks [13:24] zyga: yes, something related to it is actually in the works [13:24] pedronis: hey, would you mind giving me an updated list of pulseaudio.snap-ids? if you don't have time, perhaps describe the query to roadmr (or me and I can find someone if he can't do it)? [13:24] sil2100: excellent, thank you [13:25] zyga: so how it's most probably going to be resolved is for us shipping two different image flavors - one with bluetooth enabled, one with disabled [13:25] Since from what I've been told on most pi's you can't actually have both serial and bluetooth enabled at the same time [13:26] sil2100: you can, it's just shifting the serial around to other pins [13:26] pedronis: I don't need it *immediately* since I can look in the snap usns dump and continue working, but I want to make sure I didn't miss any new ones [13:26] sil2100: AFAIK [13:26] jdstrand: hey :) [13:27] jdstrand: welcome back [13:27] zyga: I'm not a pi expert so I can't really say, waveform would have more info about that [13:27] ;) [13:27] pedronis: plan is, get through all current ones, propose a pr to manually connect, then right before 2.43 lands, do one more query and fill in any more [13:27] cool, I'm sure he knows more than I do [13:27] hey zyga, thanks! :) [13:27] just happy to see progress [13:28] jdstrand: I can try to look tomorrow morning [13:28] zyga, I'll take a look [13:28] pedronis: thanks [13:28] cachio: thanks! [13:29] Chipaca: something that feels like a papercut and I agree with the reporter [13:29] https://bugs.launchpad.net/snapd/+bug/1830183 [13:29] Chipaca: related to how we log [13:29] Bug #1830183: Absence of updates is labelled a critical error in syslog [13:29] zyga: papercut, indeed [13:30] Chipaca: though not sure how to technically solve it [13:30] easily :-) [13:30] Chipaca: maybe we should talk to journald natively so that we can send those nice log properties [13:30] whoa [13:31] zyga: maybe, possibly, if there's a reasonable library for it, but that's not this bug [13:31] PR snapd#7603 opened: dpdk and hugepages interfaces [13:31] this bug is just "don't log no-refreshes-available with INFO" probably :) [13:31] zyga: that's what makes it papercut [13:31] Chipaca: IIRC the format is simple so it's just about formatting the error "text" correctly, I think we'd prefer to carry that code instead of depending on it [13:31] Chipaca: yeah :) [13:31] Chipaca: (and talking over the right FD) [13:32] yeah, and keeping up with changes, and and and [13:32] mvo: are you around? [13:34] roadmr: yes === ricab|lunch is now known as ricab [13:38] Chipaca: no, it's not like that actually [13:39] Chipaca: http://0pointer.de/blog/projects/journal-submit.html [13:39] zyga: are you really advocating for NIH'ing a systemd library [13:40] Chipaca: not a systemd library, a public protocol [13:48] i got lxd spread test failure again on 18.04, fails with "snapd : Depends: systemd but it is not going to be installed", has anyone seen this? 18.04 image needs updating? [13:53] pstolowski: maciek did IIRC [13:54] maybe apt database is empty? [13:55] pstolowski: this is interesting [13:55] https://errors.ubuntu.com/problem/5e58e04cdc647a1fd50f71f02724dd0b5b8c1f4b [13:55] pstolowski: udev netlink hotplug panic [13:55] the bug behind it is https://bugs.launchpad.net/snapd/+bug/1824162 [13:55] Bug #1824162: /usr/lib/snapd/snapd:11:runtime:runtime:runtime:runtime:runtime [13:55] can you please enqueue looking at it [13:56] mvo: can I close https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1824237 now? [13:56] Bug #1824237: snap 'core' broken/missing and causing autopkgtest failures [13:59] zyga: yes, all autopkgtest related bugs can be closed [14:00] mvo: _all_? I found one that looks like a real bug [14:02] * zyga is done with triage for the day [14:02] * zyga -> break / food [14:03] zyga, I dont have test-snapd-hello-multi-arch under my control [14:03] cachio: it probably belongs to mvo [14:03] zyga, not sure who created this one [14:04] someone from the store can probably help you move it? [14:04] zyga: hmm, i think i see where the problem is on the very high level.. go routine running in the background. will check, thanks for pointing out [14:04] roadmr: ^ test-snapd-hello-multi-arch, do you know who is in the collaborators? [14:04] I can check [14:04] pstolowski, roadmr: cool, thank you for looking [14:05] (one messgage, two topics, take that tracking AI overloards) [14:05] zyga: nobody 🦀 [14:05] oh crab :D [14:05] roadmr: can you please give it to cachio and mvo perhaps, following all protocol [14:06] zyga: the current owner (the "canonical" account, not sure if this is mvo?) has to add collaborators. I can't do it administratively :( [14:06] I see [14:06] is there an email address? [14:06] mvo: are _you_ secretly all of canonical? :D [14:07] does anybody have an example of scanning journald in spread tests for something specific in the logs? is there a helper for "discard everything in the log from x point later on" to just check something in the logs happened after a certain point? [14:07] ijohnson: plenty [14:07] we nuke the journal between tests [14:07] so anything that uses 'journal' helper functions is likely a candidate [14:07] right but which journal helper there are several [14:08] I can find a specific example but the main principle applies [14:08] yeah [14:08] but they all do the same thing [14:08] with various quirks on how [14:08] I agree that multitude of functions is confusing [14:08] all I need to do is check for a certain message in the log happening after a certain line in the test [14:08] thanks btw! [14:08] I think this is a buggy area [14:08] and the helper that we use most often has some loops inside [14:09] some journal versions have a marker concept [14:09] so you can cat the whole log since a marker was emitted [14:09] then grep that [14:09] * zyga needs to break for some back pain relief [14:09] that feels like the right thing, do you have an example I can look at zyga? [14:10] or maybe cachio knows [14:10] ijohnson: sorry, leaving now [14:10] I can later [14:10] if you don't get it before [14:11] zyga: np get better I can figure it out [14:11] ijohnson, what we do in some scenarios [14:11] is to count the number of ocurrencies before and after [14:11] and compare the number is iscreased [14:12] ijohnson: just ward of caution, it's all good except on 14.04 :D [14:12] *word [14:12] ijohnson, take a look to test catalog-update [14:12] trusty seems not so trustworthy anymore with respect to features :-/ [14:12] perhaps it could help [14:12] cachio, thanks looking [14:13] cachio: that looks like the easiest way to check this, thanks [14:13] ijohnson, yaw [14:16] * Chipaca takes a break [14:34] I saw some failures in current PRs related to the lxd test, looks like systemd was not installable in there, anyone know more ? [14:45] mvo: what's the public interface of 7593 ? most things seem unexported [14:46] you create a SFDisk manually? [14:51] mvo: I put some questions there [14:51] * cachio lunch [15:02] pedronis: public interface is just partition.NewSFdisk() and you go from there, two exported methods on it, DeviceInfo and CreatePartitions [15:02] pedronis: I will check in the PR [15:02] mvo: that new is private atm [15:02] anyway see comments [15:03] pedronis: yeah, everything is spot on - I think we don't really need the interface, *might* be handy for tests later, I check the full branch from claudio - but we can always add it back once we need it so I'm +1 to remove it [15:04] ok [15:05] what does "grandfathering" mean in context of https://forum.snapcraft.io/t/upcoming-pulseaudio-interface-deprecation/13418 ? [15:08] PR snapd#7604 opened: many: address issues related to explicit/implicit channels for image building [15:09] Chipaca: mvo: ^ [15:09] thresh: that a declaration will be setup in the store to keep them working (for now at least) with pulseaudio as they did so far [15:14] pedronis, good, thank you! [15:14] (i suck at idioms) [15:21] thanks pedronis [15:51] zyga: i think i found the bug in the upstream go-udev code that causes the crash [16:16] commented on the bug === pstolowski is now known as pstolowski|afk [16:17] PR snapd#7605 opened: tests: configure the journald service for core systems [16:19] PR snapd#7551 closed: tests: fix the how the systemd-journald.service is restarted during the prepare [16:20] pstolowski|afk: woot, great [16:20] makes bug gardening worthwhile :) [16:21] yes :) [16:21] slightly terrible we had this bug for a while [16:25] cachio: can you please have an eye on master in travis? I just noticed some failures in recent PRs related to lxd. would be great if we can get master green again (if its something real and not just transient) [16:25] pedronis: I updated the sfdisk PR now and addressed your points [16:41] * ogra notes pstolowski|afk must have looong arms [16:58] Chipaca: hey, you gave me a cool command for downloading the snap.yaml (with caveats) of a snap in the public store. do you happen to know a command otoh to get the snap decl for a given snap name? [16:59] Chipaca: snap download would do it, but I don't want the snap, just the decl (I'll be doing hundreds of downloads) [17:09] * jdstrand looks at 'snap download' [17:11] ogra: now you know ;) [17:14] jdstrand: which revisions do you need ? [17:15] pedronis: the latest [17:15] pedronis: well, I just need the snap decl, which is shared across revisions [17:15] jdstrand: ? do you nee the snap.yaml or the snap decl? [17:15] not the same thing [17:15] pedronis: the snap decl [17:16] jdstrand: do you have the snap name or the snap id ? [17:16] pedronis: both [17:17] jdstrand: something like: snap known --remote snap-declaration series=16 snap-id=KTe2wdAu5JKdRDUgYBuXXGjDXyzobvFI [17:18] pedronis: that is perfect, thanks! (cc Chipaca) [18:01] PR snapd#7606 opened: tests: run apt update in lxd containers [19:33] cachio: have you been able to figure out the issue with the lxd tests? I see it keeps failing consistently, and mvo's patch apt update still failed [19:34] err, mvo's patch to call apt update before doing the install of snapd in the container still fails (see #7606) [19:34] PR #7606: tests: run apt update in lxd containers [19:34] ijohnson working on that [19:34] ack ok [19:36] ijohnson, I just finished a task and started with that one [19:36] ijohnson, currently debugging [19:38] cachio: I looked into it a little bit but didn't find anything if you weren't looking into it I was going to, but if you're on top of I'll work on other things [19:38] ijohnson, I'll try to fix it [19:39] otherwise I'll ping you in case I need help [19:41] jdstrand: will you have some free time this PM? [19:42] cachio: ack sounds good [20:11] joedborg: if by 'this PM' you mean now, sure :) [20:12] zyga: hey, it looks like solus is still at 2.39.3 and parrot os at 2.37. curious when you think they'll get updated to 2.41+ [20:14] popey, Wimpress: hey, can one of you talk to electron about https://github.com/electron-userland/electron-builder/issues/4234? [20:18] jdstrand: excellent. Very basically, I'm still seeing times where containers are getting filesystem permission denied [20:18] joedborg: what are the denials? shall I login somewhere? [20:20] jdstrand: let me copy your ssh keys [20:23] jdstrand: ubuntu@34.201.205.205 [20:24] I'm in [20:25] jdstrand: we can move this to 1:1 if we're worried about spamming. Basically, this is an EKS node where I've ripped out the EKS provisioned kubelet and stopped docker, replacing it with our snap [20:25] ok. yes, let's privmsg since this isn't interesting to others [20:25] jdstrand: the only pod that's having a problem is the aws-node pod, which tried to create `/host` in its namespace [20:26] PR snapd#7607 opened: tests: taunch the lxd images folowing the pattern ubuntu:${VERSION_ID} [20:27] ijohnson, if you want to take a look, there is a PR to fix the lxd issue [20:27] #pull [20:27] #7607 [20:28] PR #7607: tests: taunch the lxd images folowing the pattern ubuntu:${VERSION_ID} [20:28] joedborg: I privmsg'd you [20:55] ijohnson: hi! [20:56] jdstrand: hey [20:56] ijohnson: joedborg and I are looking at a denial when running kubernetes-worker under strict mode on EKS [20:56] ok [20:56] Oct 15 20:31:57 ip-192-168-91-85 audit[21757]: AVC apparmor="DENIED" operation="exec" profile="snap.kubernetes-worker.containerd" name="/app/install-aws.sh" pid=21757 comm="sh" requested_mask="x" denied_mask="x" fsuid=0 ouid=0 [20:56] ijohnson: containerd is triying to run /app/install-aws.sh which corresponds to https://github.com/aws/amazon-vpc-cni-k8s/blob/master/scripts/install-aws.sh [20:57] ijohnson: the fact that it is at /app (and later /host) means we can't use a layout [20:57] right [20:57] ijohnson: and I thought I remembered you facing similar issues with greengrass [20:58] yeah so first I'll say what we did for the docker snap is that we patched dockerd (in your case probably containerd) to not run pivot_root and instead just do a chroot [20:58] ijohnson: this is what we were talking about with perhaps needing to patch containerd's app armor template [20:58] :) [20:58] joedborg: jdstrand: is there a reason why you need to do pivot_root? [20:59] * ijohnson goes and finds the dockerd patches [21:00] ijohnson: I don't know what is doing a pivot_root [21:00] joedborg: ^ [21:00] jdstrand: when the container is launched, it's rootfs is actually somewhere writable like `/var/snap/.../storage-drivers/....` [21:00] joedborg: is this a pivot_root or does EKS actually ship /app and /host? [21:01] jdstrand: and to start the container containerd/dockerd will do a pivot_root into that storage-driver dir [21:01] jdstrand: that's what containerd does when the kubelet asks it to run a workload [21:01] this is all behind the scense [21:01] ijohnson: I should also reiterate this is classic, not core [21:01] *scenes [21:01] jdstrand: same problem on core as classic though [21:01] ah ok [21:02] so, in theory, container do could mv /var/snap/.../storage-drivers/..../app, then symlink from /var/snap/.../storage-drivers/..../app to /var/snap/.../storage-drivers/..../somewhere/deeper/app [21:02] anyways the issue that happened with the docker snap is that if dockerd ran pivot_root then all of the container fs accesses that the container thought were at `/app/...` were really actually at `/var/snap/.../storage-driver/some-big-uuid/app` [21:03] but how we solved that was do instead just not do a pivot_root and instead just do a chroot [21:03] ijohnson: right, makes sense [21:03] then apparmor doesn't see the container processes as accessing /app it sees /var/snap/.../app [21:03] ijohnson: is the chroot a configurable thing? [21:03] no :-( [21:03] ijohnson: yep [21:03] hence why we had to patch it [21:03] here's the patch we did: https://git.launchpad.net/~docker/+git/snap/tree/dockerd-patches/snappy-real-chroot.patch [21:03] ijohnson: ah, so you patched docker to do that [21:03] I'm trying to find where in containerd you would do the same patch [21:04] ijohnson: cool, thanks! [21:05] it might be in runc actually, it's been a while since I've looked at thsi stuff [21:06] ijohnson: jdstrand: just as a (probably stupid) question, is there no way for apparmor to know that a process is being containerised and to apply different rules? [21:06] ijohnson: yeah it'll almost certainly be runc [21:07] well for dockerd it is in fact in github.com/moby/moby aka "real dockerd" [21:08] but there has to be an equivalent thing in runc/containerd [21:08] joedborg: re apparmor: apparmor absolutely knows stuff, but containerd/runc is doing things to complicate things [21:09] joedborg: ie, it is containerdc/runc that is putting the container into the cri-containerd.apparmor.d [21:09] joedborg: do you know offhand if containerd just runs the `runc` binary directly? or does it use the opencontainers go library ? [21:09] jdstrand: ah i mean can't apparmor be told "this proc is being called by containerd so should be allowed free range of the FS"? [21:09] joedborg: and that profile is what your snap is loading [21:09] ijohnson: almost certain that it calls the binary [21:09] jdstrand: but for that specific denial you showed me with /app that's for a snap ? [21:09] joedborg: ack thanks [21:09] because the runtime binaries are dropped in via config [21:10] joedborg: so you can put whatever is needed for the container. *but* this denial is not for the container, but for containerd, and its doing something post pivot_root(). depending on your pov, apparmor doesn't handle pivot_root well [21:11] jdstrand: yeah, i guess that was me question; can't it handle pivot root like it does chroot [21:11] yeah I can see apparmor's pivot_root handling being a bug right now but being a savior in other cirumstances so yeah ... I dunno [21:12] joedborg: it cannot [21:12] ijohnson: we have an upstream bug on it [21:12] * jdstrand is trying to find it [21:12] I think I've seen the bug before [21:13] ijohnson: iirc, I think we want full mediation of the whole path with something like an alias mechanism to make it convenient and flexible [21:13] yeah that sounds right [21:17] I haven't been able to find the bit in containerd you need to patch, but I have to EOD now, I will resume looking tomorrow, if you can't wait, I found that there's already an option to specify disabling pivot_root when creating a container, referenced in the oci options [21:17] i.e. https://github.com/containerd/containerd/blob/master/runtime/v2/runc/options/oci.pb.go#L27-L28 [21:17] I'm not sure how to use that, but that might avoid needing to patch things [21:17] this is the bug: https://bugs.launchpad.net/apparmor/+bug/1791711 [21:17] anyways good luck, I will resume looking tomorrow to try and find the stuff y'all need [21:17] Bug #1791711: path-based AppArmor controls for snap-confine are ineffective due to pivot_root [21:17] I thought there was another one [21:18] but that is what we reference in the snapd sources too [21:18] thakns ijohnson, i'll ask on their slack [21:18] have a good evenign [21:18] thanks you too [21:18] ijohnson: big thanks! [21:19] joedborg: ok, so with the plugs changes we discussed and this, I think we are set for the moment [21:19] jdstrand: yeah, thanks for pointing out the k8s-support needing to be with containerd too, i'll test that tongiht [22:24] yusss [22:24] got a PR this PM as promised \o/ [22:24] PR snapd#7608 opened: o/snapstate, etc: SnapState.Channel -> TrackingChannel, and a setter [22:24] * Chipaca had *more than half an hour* to spare before it was no longer technically PM [22:24] * Chipaca now goes to wash the dishes