[04:32] amurray: out of interest, was there some project in particular you wanted debug symbols for? [04:33] jamesh: I have a couple reports of crashes of my emacs snap and I am stumped how to easily enable users to get good backtraces [04:37] we definitely want debug symbols for the snaps seeded on the desktop [04:39] but there's not much to be done when they want a full design for snapcraft+store+snapd before considering any changes [04:52] jamesh: understood this is a "hard problem" ... but if folks want snaps to be first-class on the desktop there needs to be more focus on this IMO from all parties - it's not enough to have just you pushing on it (but I am glad you were) [04:55] amurray: sure. We've discussed it multiple times at previous dev summits, but when I've got more work to do than time available it is hard to prioritise something that gets ignored. [04:56] jamesh: i hear you [04:56] I have gone back to update the first PR (https://github.com/snapcore/snapcraft/pull/2229) a few times to save it from bitrot, but that's about it [04:56] PR snapcraft#2229: elf: extract build ID and presence of debug info [05:13] morning [05:13] wow, +11C outside :/ [05:39] Good morning [05:40] Wow, I have a few more so not that drastic yet [05:40] Brrrrrr [05:43] zyga: hey [05:48] Doing school walk, be in the office soon [06:03] do apps like signal-desktop, spotify, discord work for you on Ubuntu under Wayland? none of them start for me on SUSE under Wayland, and I'm wondering whether there's some low hanging fruit to grap. [06:04] FYI https://pastebin.ubuntu.com/p/bSjqrJDhtf/ [06:05] I tried to search for LP bug reports at one point but it didn't sound they'd be broken for everyone [06:05] Ubuntu defaults to X.org still so that makes it a bit different of course [06:06] Mirv: is Xwayland listening on the abstract namespace socket? [06:07] let me parse that for some time (or tell me how to check). it's running as /usr/bin/Xwayland :0 -rootless -terminate -accessx -core -auth /run/user/1000/mutter/Xauthority -listen 4 -listen 5 -displayfd 6 [06:07] i.e. @/tmp/.X11-unix/X0 in addition to /tmp/.X11-unix/X0 [06:07] I think you can check with ss. Let me work out the invocation [06:08] "ss -xl | grep X11" might be the best way to check [06:09] I see two listening sockets locally [06:09] zyga: ^^ opensuse & wayland [06:10] there's @ too: https://pastebin.ubuntu.com/p/QVKJpjP26R/ [06:11] I'm not sure then. The non-abstract socket is definitely blocked by snap confinement though [06:11] ok, let's wait for zyga then. I'm in no hurry, just starting my work day, happy to help debugging. [06:23] back in the office now [06:24] aha, I see the chatter about wayland and suse [06:24] I _guess_ I'm running tumbleweed under X11, let me recheck [06:26] logged back under wayland [06:27] it fails on [06:28] (and now no copy-paste, fun) [06:28] on /run/user/1000/mutter/Xauthority [06:28] I recall seeing this in a PR recently [06:28] hold on [06:31] Mirv: confirmed, adding an extra rule for that makes it work [06:31] Mirv: is there a bug report? I'll handle the rest [06:43] * zyga needs to work on reviews today [06:44] good morning mvo [06:44] hey zyga [06:44] zyga: good morning! I also need to do reviews [06:45] mvo: hey [06:46] hey mborzecki [06:48] morning! question about the content interface, is it possible to share only a file, or it must be a full folder? [06:48] abeato: currently it must be a file but I have a patch to share single files stashed [06:49] er [06:49] must be a directory [06:49] :D [06:49] zyga, great, nice that we will have one file sharing soon, that will be useful if you want to share just a socker [06:49] shocket [06:50] sockets are more tricky [06:50] not sure it'd work for sockets [06:50] I have not tried [06:51] hm, right, well, but in the end it is a file, right? mount bind should work too? [06:51] ish, [06:52] sockets have a tricky apparmor side [06:52] anyway, it's a matter of checking [06:52] right [06:59] PR snapd#7403 opened: cmd: use libtool for the internal library === pstolowski|afk is now known as pstolowski [07:02] morning [07:02] zyga: there was not, I now filed bug #1842615 [07:02] Bug #1842615 opened: Wayland apps not starting under openSUSE Tumbleweed [07:03] Bug #1842615: Wayland apps not starting under openSUSE Tumbleweed [07:03] pstolowski: hey [07:04] zyga: awesome :) meanwhile I checked the problem does not affect openSUSE Leap 15.0, so just Tumbleweed [07:04] zyga: can you take a look at https://github.com/snapcore/snapd/pull/7387 ? [07:04] PR #7387: packaging/fedora, tests/lib/prepare-restore: helper tool for packing sources for RPM [07:17] Mirv: thank you [07:17] mborzecki: yeah but I'll start with older PRs first [07:17] or I'll starve them again :) [07:19] zyga, hi, so I just ran into that issue again, and it doesn't have to do with snapcraft rewriting the prime dir: https://paste.ubuntu.com/p/BVDHmmCn48/ [07:20] ackk: that's interesting, can you mkdir /root/snap/maas/x1 yourself? [07:20] ackk: or will you get a EROFS error? [07:20] Mirv: I've updated the bug report and I'll be sending a PR to fix it later today [07:20] zyga, the dir already exists [07:20] ackk: is it a mount point? [07:20] ackk: can you write through it? [07:21] $ sudo ls -ld /root/snap/maas/x1 [07:21] drwxr-xr-x 1 root root 12 Sep 4 06:59 /root/snap/maas/x1 [07:21] Bug #1842615 changed: Wayland apps not starting under openSUSE Tumbleweed [07:21] zyga, yeah I can write it as root [07:21] I mean, write a file in it [07:21] it's not a mountpoint [07:21] let me look again [07:21] that's odd [07:22] ackk: can you please try this: [07:23] sudo strace -o /tmp/strace.log SNAP_INSTANCE_NAME=maas [07:23] /snap/snapd/4605/usr/lib/snapd/snap-confine snap.maas.maas /bin/true [07:24] not sure if free of typos [07:24] but give it a try [07:24] I'd like to see strace run of snap-confine [07:24] to see what was the error it failed on [07:25] zyga, that's all a single command right? [07:25] correct [07:25] strace: Can't stat 'SNAP_INSTANCE_NAME=maas': No such file or directory [07:25] that can't go there, it seems [07:26] I guess before the strace? [07:26] sorry, my bad [07:26] yes [07:26] :) [07:26] $ sudo SNAP_INSTANCE_NAME=maas strace -o /tmp/strace.log /snap/snapd/4605/usr/lib/snapd/snap-confine snap.maas.maas /bin/true [07:26] strace: exec: Permission denied [07:26] thank you zy_ga! [07:27] zyga, ^ [07:27] ackk: _hmm_ [07:27] did I get strace wrong somehow [07:28] ackk: and it didn't leave any log, did it? [07:29] zyga, just http://paste.ubuntu.com/p/5VW47nhgv9/ [07:29] why would it do that? [07:29] is that under lxd? [07:29] perhaps thats why :/ [07:30] can you check on your host, if you got a denial in dmesg? [07:30] hello [07:30] ackk: one more idea [07:31] I get this error: error: cannot add authorization: open /users/jonm/.snap/auth.json: permission denied [07:31] when my $HOME is on NFS [07:31] ackk: can you install an older snapd and check if this happens? [07:31] Jonno_FTW: hey, can you tell us the command you ran? [07:31] Jonno_FTW: and snap version, please [07:31] zyga, like, stable? [07:32] yes [07:32] sudo snap install redis-desktop-manager, snap version 2.39.2-1.fc30 [07:32] ondra: hey, do you want to push your "lk-next" changes to "lk"? it seems you adrdress issues found in the review from chipaca? [07:32] aha, fedora [07:32] yep [07:32] mborzecki: ^ can you render ideas on how to check denials for selinux + nfs? [07:33] mvo I will, once I test them :) [07:33] I'm just flashing test image [07:33] zyga: ackk: snap run --strace='--raw -o foo.log' maas if you can hit ^C in time [07:33] mborzecki: that likely wont help if lxd is in control on top and denies it already [07:33] mborzecki: I meant the case above from Jonno_FTW [07:34] Jonno_FTW: can you try ausearch -m AVC and look for anything with recent time stamp [07:34] mvo it is booting, so image prepare is working, I just want to run few core refresh tests [07:34] mvo I already tested snapd snap update and that worked as well [07:35] mborzecki: there's nothing recent [07:35] certainly nothing from around the time I started using snap (like 30m ago) [07:37] zyga, I can't switch to stable snapd as maas uses the system-usernames [07:38] ackk: well, just for a test, it doesn't really have to work all the way [07:38] just to see if this is something in 2.41 [07:38] Jonno_FTW: for the record, the error when you do snap login right? [07:38] s/error when/error pops up when/ [07:38] zyga, mborzecki https://paste.ubuntu.com/p/D7Ddt4rZ6X/ [07:39] zyga, well it doesn't work at all as I get https://paste.ubuntu.com/p/rJ4pWKvQkC/ from snapd [07:39] what's /snap/snap/bin/maas/current?! [07:39] ackk: try without /snap/bin/maas, just maas [07:39] I think that's snap run getting confused [07:39] zyga, that's the first try there [07:40] right, I just mean that /snap/snap is clearly wrong [07:41] $ snap run --strace='--raw -o foo.log' maas upgrade [07:41] /usr/bin/strace: exec: Permission denied [07:41] error: exit status 1 [07:41] ackk: on lxd host, can you run dmesg | grep DENIED [07:41] I'm sure it's lxd [07:45] zyga, https://paste.ubuntu.com/p/NPTRVQJtqQ/ [07:45] ackk: that's excellent [07:45] so that is confirmed [07:45] ackk: to move forward we should figure out how to switch lxd's own profile on your host into permissive mode [07:46] then we can debug forther [07:46] *further [07:46] ackk: do you think we can postpone until lxd developers are online? [07:46] zyga, sure [07:46] zyga, I don't have a real xenial host to test with unfortunately [07:47] ackk: that's fine [07:49] zyga, also when I tried installing maas snap from edge I didn't hit the issue, so i'm not sure what triggers it. I can run "maas init" and maas works fine, then something gets messed up [07:49] but it might only happen in "try" mode, IDK [07:49] the code where it fails should fail regardless of try mode [07:49] I'd like to get to the bottom of this later today [07:49] zyga, btw is there any chance that the snapfuse issue (taking 100%cpu in containers) could get fixed? that makes it impossible to install maas in a container [07:50] (install from a snap and not from "try') [07:50] zyga: pff the libtool patch fails on this https://paste.ubuntu.com/p/mGVnXnF5j6/ :/ [07:50] ackk: nobody on our team can fix that [07:50] zyga, is it a kernel or lxd thing? [07:50] ackk: please escalate that to get help [07:50] ackk: perhaps both [07:50] it's a fuse filesystem [07:50] maybe the bottleneck is kernel side [07:51] maybe userspace [07:51] zyga, you're saying it's a bug in squashfuse? [07:51] I don't think any of us really read that code [07:51] ackk: it's certainly not a bug in snapd, we just mount a filesystem [07:51] mborzecki: yeah I ran into that a number of times [07:51] mborzecki: load of garbage :/ [08:00] duh, obviously there's no way to have misspell skip files :/ [08:01] mborzecki: sed it [08:18] PR snapd#7398 closed: boot, etc: simplify BootParticipant (etc) usage [08:19] mvo: I think we should all review from oldest to youngest [08:19] it seems that the last two pages are like attic [08:24] brb, tea [08:27] zyga: added a workaround to #7403, other than that, all tests passed [08:27] PR #7403: cmd: use libtool for the internal library [08:30] a review for 7125 would be great, small, self-contained and open since jul [08:31] mvo: looking [08:45] back with tea [09:09] Chipaca: good morning! if you could have a look at 7383 that would be great (should be simple, just a msg tweak) [09:11] * Chipaca looks [09:11] mvo: good morning! I've been working for the last hour but having to restart x a few times to sort out some things [09:11] fun with nvidia :-/ [09:11] Chipaca: no worries [09:11] Chipaca: drivers? [09:11] Chipaca: and good luck with X, I kinda given up on nvidia for this reason :( [09:11] mvo: my ubuntu experience with 1030 was very good FWIW [09:12] mvo: not so much with 2080, LTS doesn't have the drivers for it yet, [09:13] zyga: to be fair my experience is ~1-2y old so I may be totally off [09:14] mvo: I think it depends on how recent the OS is, there have been some great strides lately [09:14] mvo: not sure if you remember this but a few weeks ago nvidia has opened a large number of specs for their hardware to aid nouveau [09:14] mvo: it looks like early days of amd shift, when the tactic was to open up, but it was still a long road towards benefits [09:14] mvo: zyga: i broke things by trying to update the drivers from a ppa, to get some games running … undoing it was less than fun [09:15] i'd forgotten how bad the quality of ppa debs was [09:15] Chipaca: does your system work with 19.10? [09:15] Chipaca: it's a good idea to just try that from a spare partition if it does [09:15] zyga: I'm still waiting for confirmation it works with 18.04 :-/ [09:15] Chipaca: weekend evening project to check? :-) [09:16] nu uh [09:16] zyga: i've got way more fun weekend projects than updating a machine that works :-) [09:16] that's fair :-) [09:16] Chipaca: I played one game recently, control, strongly recommend it if you have the 3 evenings to finish it [09:17] anyway, back to reviews :) [09:18] PR snapd#7396 closed: tests: don't guess in is_classic_confinement_supported [09:18] zyga: w8, 3 evenings? is that how long the game is? [09:19] mborzecki: I think I played 6 hours each time [09:19] well into past 3AM :D [09:19] mborzecki: I just finished the main plot, there's more to do but that's enough for me [09:20] mborzecki: or I'm just pretty good at aiming [09:20] ;-) [09:20] hahaha [09:20] mad quake skillz? :) [09:20] mouse sensitivity set to maximum, field of view 120, those things ;) [09:21] just kidding though [09:21] the game is story driven [09:21] the combat is challenging but doesn't feel like grind [09:21] and unlike most shooters I can remember, it is very rewarding to use the very first revolver you get all the game [09:21] anyway [09:22] something for evening :) [09:23] zyga: fwiw, double barrel works in through all of doom too :P [09:24] mborzecki: indeed, but that's an exception, here the game gives you one gun, sharing ammo across all forms, and as you play you unlock more forms that are more suited for specific type of combat; what it doesn't do is to give you a much better gun that obsoletes the first one [09:24] Chipaca: hey, you seem to know about snapshots, is it expected that `snap restore` does not restart the snap? is there something that can be done about that? [09:25] Saviq: yes, it's expected; stop all services / apps before restore, start them after [09:27] kk [09:27] Saviq: that is, if you need to [09:27] Saviq: you don't always need to -- same as you don't always need to stop for a 'save' [09:28] Chipaca: yeah, which is why it feels like there should be hooks for this :) [09:29] Saviq: would a hook be able to know whether an app in the snap is running? [09:29] (in general the answer is 'no') [09:30] Chipaca: an app, no, but a service, yeah [09:30] (zyga's work wrt deferring refreshes while apps are running might let us fix that) [09:31] there's also https://forum.snapcraft.io/t/automatic-snapshot-opt-out/12131 - a `save` hook could reduce the size of the snapshot, but maybe it'd be better to have a whitelist for this particular usecase [09:33] pstolowski: can you take a look at https://github.com/snapcore/snapd/pull/7387 ? [09:33] PR #7387: packaging/fedora, tests/lib/prepare-restore: helper tool for packing sources for RPM [09:34] mborzecki: sure [09:34] thanks! [10:03] jamesh: I finally reviewed https://github.com/snapcore/snapd/pull/6767#pullrequestreview-283483314 [10:03] PR #6767: wrappers: allow snaps to install icon theme icons [10:03] zyga: thanks. Looking [10:04] jamesh: I think my only comment that would warrant blocking are related to validation [10:04] jamesh: on non-compliant files in meta/gui/icons [10:04] jamesh: as well as on file sizes in that place [10:04] jamesh: everything else is something that is good for followup [10:05] jamesh: I'm moving on to the next review, please ping me with your opinion [10:05] jamesh: as I said, you have +2 and you can merge as is [10:05] jamesh: but I'm worried about opening a hole [10:05] zyga: FWIW we already don't do that sort of validation on icons [10:05] zyga: so it's independent from that work [10:05] Chipaca: yes but now we read them into memory [10:05] Chipaca: in this PR [10:05] we do? [10:05] where? [10:05] ReadFile [10:06] why do we ReadFile them? [10:06] * Chipaca goes to look [10:06] because Ensure* does that internally [10:06] but I made a proposal in one of my comments [10:06] https://github.com/snapcore/snapd/pull/6767/files#diff-1a7d1cbe7825f23c89fbefcac29f347aR82 [10:06] here [10:06] perhaps one way to solve this [10:06] PR #6767: wrappers: allow snaps to install icon theme icons [10:06] is to extend ensure [10:06] to give it a handle that knows what the content is [10:06] and the size [10:06] so they can be stream like [10:06] oh ! gpio-control ? who breeded that ? (thats beautiful ! ) [10:07] that's a good idea separately but I would not like to just let this silently merge without pointing it out [10:07] ogra: thank ondra [10:07] * ogra thanks ondra [10:07] I'll keep doing reviews to unblock people, I said my thing [10:07] ondra, beer for you in barcelona ! [10:11] pedronis: should I review https://github.com/snapcore/snapd/pull/6705 ? [10:11] PR #6705: bootloader: little kernel support [10:19] zyga: I'm looking at it right now, going a bit slowly [10:19] also lunch [10:19] ok, I'll pick up the next one [10:22] mvo: hey, is https://github.com/snapcore/snapd/pull/6839 something that's ready for review? [10:22] PR #6839: devicestate: allow remodel to different kernels [10:24] jamesh: this needs some comment feedback https://github.com/snapcore/snapd/pull/7073 [10:25] PR #7073: interfaces: OpenGL/Vulkan drivers provided by a base should be usable <⛔ Blocked> [10:26] zyga: I think the way forward for that PR was to relax the AppArmor rules for snaps using a base other than core/core18 [10:26] jamesh: indeed, can you please comment on it so that it's clear where we stand? [10:26] on the assumption that non bootable bases should only contain files that are intended for use by apps [10:27] yeah, I recall the conversation about that in Toronto [10:28] PR snapd#7404 opened: cmd/snap: don't append / to snap name just because a dir exists [10:29] zyga: #7159 is an easy one [10:30] PR #7159: tests: add functions to make an abstraction for the snaps [10:30] looking quickly [10:32] pedronis: #7005 got 2 +1s and i adressed your earlier high-level feedback re having 'snap debug state..', would you like to take another look or can it land? [10:33] PR #7005: debug: state-inspect debugging utility [10:50] pstolowski: it might be easier to land it and I play with it a bit once is in edge [10:50] pedronis: ok, ty [11:04] pedronis: i'm thinking of adding some kind of high-level simplified potential-conflict-checking command for it in the future, something rudimentary that doesn't try to replicate existing logic (because that could simply hide an existing problem), but rather list candidates for closer inspection. not sure if/how this will work in practice and how valuable it will be, but sometimes just filtering out irrelevant data [11:04] from the state and setting initial focus is helpful [11:06] jamesh: hey, question about https://github.com/snapcore/snapd/pull/7129#pullrequestreview-283531582 [11:06] PR #7129: userd: allow setting default-url-scheme-handler [11:06] I know it's not your PR but do you know why we need to add a "get set sub-property API"? [11:06] hm, tests are very red, shall we disable 19.10 for now? [11:06] mvo: what is failing if I may ask? [11:07] zyga: let me look again but pretty much everything is red [11:07] like all tests are failing? [11:08] I mean, there must be something that actually fails :) [11:09] zyga: the samples I looked at this morning were 19.10 but let me re-look to see if this is actually still happening [11:09] do you remember if a specific test was at fault? [11:10] zyga: iirc desktop-portal but let me look again [11:10] that fails uniformly though [11:10] it fails on me every day, or close [11:10] * mvo nods [11:10] I'd be happier if we can disable the test instead [11:11] and look at it really hard until we really understand why [11:11] https://travis-ci.org/snapcore/snapd/pull_requests <- looks sad [11:16] degville: hey! i'm looking for the best place to add documentation for snap unset and snapctl unset (and equivalents with 'set' subcommands followed by exclamation mark). seems like they need to go to https://forum.snapcraft.io/t/configuration-in-snaps/510 and https://forum.snapcraft.io/t/supported-snap-hooks/3795 ; do you know any better spot? [11:19] PR snapd#7405 opened: tests: disable interfaces-timeserver-control on 19.10 [11:23] zyga: re: 7129 my changes are almost entirely just repurposed existing code and style. i don't write go usually so feel free to make any stylistic changes you want [11:24] the reason i added GetSub was because i couldn't see a way in go to have multiple function heads with different numbers of arguments [11:24] (unlike say erlang) [11:25] without eliminating types and then doing dynamic type checks [11:28] jwheare: hey, thank you for explaining that. [11:29] I will look at this with new information after lunch [11:34] pstolowski: hello - thanks for looking! I think you're absolutely right about those locations - especially Configuration in snaps. We can always shuffle things around if the words fit somewhere better, but I think they're the best place for now. [11:35] degville: great, ty! ok if if i just edit it there (new paragraphs/subsections) and you take a look afterwards? [11:35] pstolowski: yep - sounds good! [11:36] ok [11:36] ogra always ready for beer :P [11:38] mvo sorry I was at dentist, back now and doing more testing [11:38] mvo so far looks good [11:38] mvo I will push changes from lk-next to PR branch [11:38] ondra: sounds great, thank you [11:39] mvo one more question, there is essential c header file, which should be implemented by corresponding bootloader, I was wondering where to host that header file [11:40] mvo one option is to have it in bootloader/lkenv/snappy-boot.h [11:40] hmm, is it always the same two 19.10 tests that are failing? [11:40] mvo do you have any better idea where to host it? [11:42] mvo OK there is problem with seeding with my test snap [11:43] mvo I will debug, but it could be kernel seeding, when it tries to install bootimg [11:44] a pox on google:ubuntu-19.10-64:tests/main/interfaces-timeserver-control [11:55] mvo interesting is that it seems to panic when applying core18 security profiles though [11:57] mvo I will need to create image with cloud init to log in though, first boot crash is a bit pain to debug as there is no good way to log in. So I will try update path now [11:58] mvo ignore me, i think it's kernel seeding, it just happens right after core [12:23] degville: i updated the snap get/set document, but the one about hooks & snapctl needs some more work i think, it's a little bare when it comes to snapctl [12:25] pstolowski: thank you! I'll take a look at set/get. [12:39] PR snapd#7406 opened: cmd/snap-confine: keep track of snap instance name and the snap name [12:39] thanks! [12:42] + '[' no = yes ']' [12:42] test failed [12:42] that's that ;) [12:42] what printed that? [12:43] zyga: google:ubuntu-19.10-64:tests/main/interfaces-timeserver-control [12:43] our favourite test [12:44] mborzecki: I saw the same thing on one of Chipaca's PR's last night [12:44] I think it's a bug with eoan [12:44] mhm, mvo has a PR disabling it [12:44] for 19.10 at least [12:44] mborzecki: also thanks for the review, I responded [12:45] ijohnson: many dragons in snapstate handlers :) remember when i first dug into that [12:46] yeah indeed! === ricab is now known as ricab|lunch [12:46] and yeah also not really sure about the `saveSnapDisabledServices` name either, it feels awkward, but I also need to do the same thing multiple places so I wanted to eliminate code duplication [12:46] mvo: ondra: commented on the lk PR [12:47] pedronis thank you :) [12:47] mvo found issue, we do not determeng run time mode correctly on device [12:47] determine [12:48] PR snapd#7405 closed: tests: disable interfaces-timeserver-control on 19.10 [12:53] * ijohnson will miss SU again today, need to go with someone taking the citizenship oath :-) [12:56] pedronis: thank you! [12:57] mvo: https://github.com/snapcore/snapd/pull/7405/files#r320742967 ;-) [12:57] PR #7405: tests: disable interfaces-timeserver-control on 19.10 [12:58] geee I wish I made coffee before the call [13:12] jwheare: so, a quick question on Get/Set DBus API [13:12] jwheare: can the "setting" attribute be like a obj.attr? [13:13] that would allow us to have one get and handle everything with it [13:13] jwheare: or perhaps / as I see the code already uses it [13:15] PR snapcraft#2698 opened: dirs: check for existence of required data directories [13:20] pedronis I asked already mvo, but since you commented on it. I'd like to add c header file into lkenv dir for reference, otherwise I'm struggling to think about better place for it [13:22] zyga: i tried not to change existing apis [13:22] PR snapd#7403 closed: cmd: use libtool for the internal library [13:30] degville, pedronis: https://twitter.com/jonworth/status/1169185705823735809 [13:33] zyga: the / is used mainly just for logging strings tbh [13:33] jwheare: I'm getting familiar with this area [13:33] Chipaca: ugh, thanks... if I squint, it looks like the sphinx. Riddle? Relic of lost civilisation? [13:33] my idea was to drop the Sub methods [13:33] and just allow more to be expressed by the property being interacted with [13:37] zyga: re timeserver-control test - fun: https://paste.ubuntu.com/p/skNwxPPGGn/ - it looks like a version mismatch of the tools with the systemd version running [13:38] if you'd rather the api just be e.g. Check("default-url-scheme-handler/irc", "ircclient.desktop") or Check("default-web-browser", "browser.desktop") that's your call [13:38] mvo: fun not [13:38] pedronis: yeah, so the timdatectl from the snap is 229 and does not (apparently) understand what 241 tells it [13:39] big mess actually, we'll need to think [13:39] i felt the more explicit separation of property/subproperty was a cleaner api, less magic, but i don't know the project [13:39] degville: right click, view image, zoom in -- or look for the post where jon links to the svg :) [13:40] personally, i don't see more functions as a bad thing, in general [13:40] Chipaca: yay, that's very helpful, ty ;) [13:41] but i have no strong feelings. if you think encoding the subproperty within the property string makes sense go for it :) [13:45] pedronis: mvo sorry for insisting, but I wanted confirmation that the snapd snap builds fine with snapcraft from edge to fix anything before another half complete release (I will start the release process with your green light) [13:47] pstolowski: do you think you could double check if snapcraft from edge is fine with the snapd snap type? [13:47] pstolowski: see the question from sergiusens [13:49] ah, right, I did build pstolowski branch, if that is all you need, then we should be good to go (but ssome form of sanity test that could be run would be ideal) [13:50] mvo, sergiusens i will [13:51] mvo, sergiusens is it critical to check all build methods (lxd, multipass, destructive)? [13:54] pstolowski: in general no, unless you use hardcoded paths (I fixed on in a PR last week)... if you do try either multipass (or lxd) and --destructive-mode [13:56] mvo: because of change in formatting? [13:56] I think I saw that [13:58] zyga: yeah, I'm looking at it now [13:58] zyga: hopefully not too hard to fix [14:00] sergiusens: ok, thanks, i'm going to check this in a moment (with my branch) === ricab|lunch is now known as ricab [14:11] re [14:15] mvo: any findings? [14:17] zyga: in a meeting, but I see [ 503.301852] audit: type=1400 audit(1567605570.552:74): apparmor="DENIED" operation="capable" profile="snap.test-snapd-timedate-control-consumer.timedatectl-timeserver" pid=31856 comm="timedatectl.rea" capability=12 capname="net_admin" [14:17] missing permissions, it seems [14:19] zyga: yeah, I look some more after the meeting [14:19] thank you [14:23] mborzecki, Chipaca hey, could you please take a look to #7401 [14:23] PR #7401: tests: add unstable stage for travis execution [14:23] cachio: yep [14:23] zyga, hey, yesterday I saw you were taking a look to a problem related to the snapd snap right? [14:24] cachio: nice [14:24] zyga, it is the only concern I have before promoting this to candidate [14:25] cachio: which specific problem, sorry - there were too many topics lately [14:26] zyga, the one related to maas [14:26] ah [14:26] sorry, yes [14:26] it's not a regression IMO [14:26] zyga, the issue which you were discussing with ackk [14:26] and it's specific to specific development flow [14:26] I'd not block on it [14:26] it's a UX issue, not a behavior change [14:26] zyga, perfect, thanks for the info [14:28] ackk: ^ FYI [14:29] PR snapd#7401 closed: tests: add unstable stage for travis execution [14:31] PR snapcraft#2699 opened: python plugin: add option to process-pipfile-lock for pipenv users [14:33] PR snapd#7407 opened: tests: run failing tests on ubuntu eoan due to is now set as unestable [14:42] zyga: do i interpret your latest comment to mean you're happy with Get and GetSub etc being separate? [14:42] yes, that's right [14:42] cool [14:42] I'm reviewing technical details now [14:42] it's close I think [14:53] PR snapd#7397 closed: tests: add --quiet switch to retry-tool [14:55] zyga, so you know what's causing that issue? [14:56] ackk: no, but if you are around we can work on exploring more [14:56] ackk: we need to switch the host's lxd profile to permissive mode [14:56] ackk: and try strace again [14:56] jamesh, hey, could you please take a look to the comment I left in #7351 [14:56] zyga, how do I do (and then revert) that? [14:56] PR #7351: tests: retry checking until the written file on desktop-portal-filechooser [14:56] ackk: I think you can do that in-memory [14:56] using ... [14:57] sergiusens: snapd from my PR built fine with multipass (i took a gooooood while to download all deps). i'm going to check destructive now [14:57] ackk: there's aa-complain [14:57] ackk: but really we want to find the profile on disk [14:57] pstolowski: if what it built works,, then we are solid for moving forward :-) [14:57] stgraber: where does lxd keep its apparmor profiles on disk? [14:57] ackk: we need to edit one profile and add one word to make it advisory, not enforced [14:58] zyga, how do I find it? I'm not very familiar with aa [14:58] sergiusens: yeah i don't expect problem with destructive since that's already coverted by spread test in my PR.. but i can check manually for piece of mind [14:58] ackk: unfortunately the kernel does not know so we just need to look around, hold on [14:59] zyga: /var/snap/lxd/common/lxd/security/apparmor/ [14:59] stgraber: thank you so much! [14:59] ackk: let's look at that path please [14:59] ackk: we want to change the profile that was denied [14:59] stgraber: perhaps there's an easier way to allow strace inside a container? [15:00] ackk: can you please remind me the DENIED line that you found then? [15:00] zyga: strace is allowed inside containers [15:00] zyga, https://paste.ubuntu.com/p/NPTRVQJtqQ/ [15:00] stgraber: we had a ptrace deny, perhaps it's more complex and two things together make it fail [15:00] stgraber, ^ [15:00] stgraber, also, hi :) [15:00] peer="unconfined" [15:01] ackk: when you ran snap-confine manually,that was inside the container, right? [15:01] ackk: along with sudo and strace [15:01] all inside? [15:01] yes [15:01] ok [15:02] do I read that right, that snap-confine itself is denying the trace? [15:04] ackk: can you show me how to get to this stage? I can explore this locally somewhat faster perhaps [15:04] zyga, well I'm not sure if you can get to that stage easily with the snap from the store [15:05] so we do have a ptrace restriction which prevents cross-profile ptracing to avoid cross-container security issues, I wonder if this is somehow triggering there [15:05] ackk: I'm happy to get some fresh stuff from git and play [15:05] stgraber: perhaps, I can just disable everything quickly locally to get to the bottom of the error that is masked behind this [15:06] ackk: "lxc config set NAME raw.apparmor ptrace," should allow everything [15:06] zyga, so. you'd have to git clone lp:maas; build the snap and snap try it [15:06] stgraber, I assume I need to reboot? [15:06] (the container) [15:06] yeah [15:07] * ackk tries [15:07] thanks [15:07] ackk: cloning [15:09] ackk: so having maas cloned [15:09] snapcraft? [15:09] zyga, of course, after rebooting the container the issue went away :/ [15:09] ackk: oh? [15:09] that's interesting [15:09] zyga, yeah, I use --destructive-mode in the container [15:09] can you rebuild maas [15:09] and see if that breaks it again [15:09] sure [15:09] and then, re-run the sudo snap-confine strace line [15:10] * Chipaca needs caffeine [15:10] * Chipaca looks for something intravenous [15:13] xnox: did timedatectl change in 19.10? when I run "timedatectl set-ntp no" (or yes) the "timedatectl status" output does not change regardless of yes/no [15:22] xnox: this is GCE so maybe this is relevant [15:30] xnox: aha! so it looks like we have chronyc on GCE [15:30] ooo [15:30] mvo: so ntp is always on? [15:31] ackk: any luck? [15:32] zyga: sort of, yes [15:32] zyga: anyway, I think I know what to do [15:32] zyga, no, I rebuilt and installed the snap (via snap try), but it seems to work so far [15:32] zyga, will try the strace if it happens again [15:33] ackk: thank you [15:33] zyga, still, that snap-confine line fails with permission denied [15:34] although "sudo maas" currently works [15:34] ackk: not with permission denied [15:34] it's confusing [15:34] $ sudo SNAP_INSTANCE_NAME=maas strace -o /tmp/strace.log /snap/snapd/4605/usr/lib/snapd/snap-confine snap.maas.maas /bin/true [15:34] if you look at the source [15:34] strace: exec: Permission denied [15:34] it has failed already [15:34] ah, sorry [15:34] that line does fail on strace and lxd [15:35] hmm, i'm seeing repeated failures for google:ubuntu-{16,18}.04-64:tests/main/proxy-no-core [15:35] that's strace being unable to execute snap-confine [15:35] $ snap run --strace='--raw -o foo.log' maas upgrade [15:35] /usr/bin/strace: exec: Permission denied [15:35] error: exit status 1 [15:35] zyga, ^ this one too [15:35] yes, it's the same thing really [15:35] mvo: that. [15:35] (snap run call strace) [15:35] mvo: they asked and we changed default to chrony [15:35] mvo: on gce [15:35] zyga, ok [15:35] can i change the default folder for snap configuration files? [15:35] what does chrony do? [15:36] JonelethIrenicus: which files? [15:36] but most likely no, it's not very easy to do [15:36] in ubuntu 19.04 it has a snap folder in the home directory [15:36] it isn't a dot file [15:36] there's a bug report for that [15:36] ahh ok [15:36] it's extremely hard to change [15:36] I'm sorry [15:37] all good [15:37] just was curious why it was in my home directory like that [15:38] JonelethIrenicus: this is bug https://bugs.launchpad.net/snapd/?orderby=-heat&start=0 [15:38] and I do intend to fix it [15:38] b [15:38] but to fix it properly I need to build enough infra to be able to move it first [15:38] awesome thanks [15:38] without breaking people [15:38] so it's a bit slow [15:38] right [15:39] xnox: thanks, I will fix our test then [15:39] I'm burned out with reviews today [15:39] I'll switch to coding [15:40] * Chipaca hugs zyga [15:40] thanks Chipaca [15:40] writing is easier than reading [15:40] you know what you meant up front :) [15:42] pedronis are you OK for me to resolve comments which I already addressed? like change of error messages? Or are you gonna resolve those yourself? [15:42] ondra: I can do it [15:43] Chipaca: mborzecki: I proposed something in #7402 inspired by maciej ideas [15:43] pedronis thanks, just want to clean it a bit, so I can see which comments still need work [15:43] PR #7402: daemon, client, cmd/snap: include architecture in 'snap version' [15:44] pedronis: we could think of (someday) adding cloud info there also [15:48] not sure if there's a uniform way of finding out what cloud you're on (maybe via cloud-init or sth) [15:49] mborzecki do you have good example of gadget yaml to update to update assets [15:49] mborzecki forum post seems to be missing good example [15:50] PR snapd#7408 opened: tests: fix interfaces-timeserver-control on 19.10 [15:53] ondra: done [15:53] Chipaca: we do get that info [15:53] hi! I'm trying to install snaps inside a xenial lxd, but getting "system does not fully support snapd: apparmor detected but insufficient permissions to use it". Is there a fix? [15:53] pedronis thanks [15:53] Chipaca: it's a bit too much info tough, people might want not to tell us [15:54] pedronis what do you think about option to add header file to snapd repo? [15:55] pedronis or what is best place to have that reference header file? [15:59] ondra: would that header file ship with snapd binary [15:59] ondra: or just in the source repo [15:59] zyga just in source [15:59] zyga it is reference which should be used by bootloader [15:59] I see [15:59] pedronis: fair [15:59] i'm off to the gym, will bbl [15:59] zyga so data structure used by snapd and bootloader is in sync [16:00] ondra: put it in a manual page [16:00] ondra: on the forum :) [16:00] zyga I want it somewhere from where it's easy wget [16:00] ondra: why? [16:00] sergiusens, mvo: both multipass and destructive-mode builds worked with type:snapd + build-base:core 👌 [16:00] would you expect people to wget it constantly? [16:00] because it changes all the time [16:01] zyga as this is also needed at gadget build time, when device pre-populated env should be generated [16:01] ondra: no, it's not [16:01] ondra: what is needed is the structure or other type it defines [16:01] ondra: hence my question [16:01] ondra: is it expected to change often? [16:01] ondra: what happens when it changes [16:01] zyga no it does not change, but file is used by around, and I want it to be in sync [16:01] ondra: keeping it in easy-wgettable place doesn't seem to solve any issues [16:01] ondra: you cannot have both :) [16:02] ondra: I think that's more important than where it is [16:02] ondra: what happens when, eventually, it must change [16:02] zyga if it changes, it will likely be new file, as it will have new version [16:02] ondra: then you don't need to wget it [16:02] it's fine to document as if it was a manual page [16:02] because it's fixed forever in stone [16:02] just make sure to name it, v1 [16:02] zyga so new version will be new file, this file is essentially set in stone once snapd adopts it [16:03] zyga that's why I want single place to get it from [16:03] I think that's the essential information [16:03] thank you [16:03] zyga OK where can I have it, so I can wget it? [16:03] ondra: anywhere, because it's a constant now [16:04] ondra: just make sure not to accidentally make go build it [16:04] zyga so can I add it to snapd repo? :P [16:04] ondra: go is tricky for that [16:04] ondra: include/ perhaps (we don't have it yet) [16:04] zyga if I only add it there, how do I make sure it's not go build? [16:04] ondra: don't add any go files there [16:04] zyga I though to have it right next to go version, so bootloader/lkenv/ [16:05] that's not godo [16:05] *good [16:05] it might get pulled for cgo build [16:05] zyga hmm [16:05] zyga so creating include directory? [16:08] ondra: yeah, it seems like that to me [16:08] zyga OK I will add it there [16:08] zyga goog idea [16:09] not a guarantee it will pass [16:09] but let's see [16:09] you could be tricky and add it to testdata [16:09] I hope my comments were not snarky in reception [16:09] I really did mean to point the light on the key issue of evolution [16:10] because that's the hard part of this problem [16:10] go ignores files in testdata, but it's not really test data so _shrugs_ [16:10] sharing an agreed structure is easy === pstolowski is now known as pstolowski|afk [16:11] I'm near EOD [16:12] looking at apparmor bits [16:14] spread is spreading [16:16] * ijohnson lunches [16:43] PR snapd#7409 opened: Allow a confined Wayland server running in a user session to work with Qt, GTK3 & SDL2 clients [16:45] so you can now run the gimp snap in Windows: https://usercontent.irccloud-cdn.com/file/SXwtQQGd/image.png [16:58] diddledan: is it stable? I had issues with the x server [16:58] I'm using the x server in mobaxterm [17:00] thanks pstolowski|afk [17:10] Chipaca please re-review my changes, I believe I have address those I commented on [17:51] sergiusens: is this error expected on a Pi? https://forum.snapcraft.io/t/building-for-core18-multipass-issue/8958/35 [18:19] ondra: will do (not right now tho) [18:19] Chipaca thanks :) [18:21] Saviq: I think ijohnson got the gist of it. This is why the meeting this Friday is important :-) [18:21] Saviq: I am leaning to having that same image that is produced for multipass to be used for lxd on all architectures [18:21] * ijohnson hopes the meeting on friday ends in snapcraft being able to make me a sandwich [18:23] Saviq, sergiusens, these images from friendlyarm are an awful hackish mess (and legal should really go after them for claiming this crap is based on UbuntuCore ... ) it is some self-debootstrapped rootfs with configs manually hacked up etc and somce home-brewed BSP kernel binary [18:24] ijohnson: it can already make you a sandwich! the yaml is tricky though [18:24] ogra: ah, interesting, but I will not go into any legal topic on a public forum :-) [18:24] i wouldnt judge that an "error is expected on a pi" just because it fails on these hacked up vendor images [18:24] I bet it uses those silly yaml anchors [18:25] sergiusens, yeah, i shouldnt either it is just the third person on the forum in a month that has issues due to this "based on core" claim ... starts to really annoy me :) [18:30] ijohnson: b̥̦̪̞ͅa̞̙̫ͅs̜e̫̬̱̠͈̬̬:̡̣̦ ̙͚̤͓̜̦̫{̷̟̥̱̺ ̝̣͉̦̞̥<҉̙̣̣̰<̪̟̪̘͡:̖̖̼ ͈̘̥̮*̛͈̜̙ͅs͎̺a̦n̙͔̫͓͡d̯w̧̪͖͍͈i̝͈̗̬̣c̷̤͔̻h̹̟͚ ͕̘̗̜̕}̷̳ [18:31] or something like that [18:31] * Chipaca is preparing dinner and might've gotten the zalgo wrong [18:32] perfect [19:17] jdstrand: hey, around? [19:17] jdstrand: https://bugs.launchpad.net/snapd/+bug/1842615 came up today, the fix is one liner policy change [19:17] Bug #1842615: Wayland apps not starting under openSUSE Tumbleweed [19:17] owner /run/user/*/mutter/Xauthority r, [19:18] I was meaning to add it but wanted to run it by you for a quick look [19:19] PR snapcraft#2700 opened: schema: build-base support for the kernel type [20:21] PR snapd#7410 opened: tests: support fastly-global.cdn.snapcraft.io url on proxy-no-core test [20:23] zyga, if you are there could tu please take a look to #7410 [20:23] PR #7410: tests: support fastly-global.cdn.snapcraft.io url on proxy-no-core test [20:23] it is blocking all the tests on travis [20:24] done [20:24] zyga, thanks!!! [21:52] PR snapcraft#2687 closed: colcon plugin: add ability to ignore packages [21:52] PR snapcraft#2694 closed: multipass: fix setup exception when multipass is not found in PATH [21:55] PR snapcraft#2698 closed: dirs: check for existence of required data directories [22:05] * Chipaca hugs cachio