/srv/irclogs.ubuntu.com/2018/06/12/#snappy.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mupPR snapcraft#2159 closed: many: extract lifecycle ordering into own module <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/2159>02:53
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== prime is now known as Guest35617
mborzeckimorning05:05
zygaGood day06:05
zygamborzecki: thank you for the review06:05
mborzeckizyga: hey06:05
mborzeckizyga: sorry for doing it late, went for a quick bike route, prepped the dinner and only then came back to do the review06:06
zygaNo worries06:07
zygakyrofa: found a bug in hook environment06:07
zygaThere is a pr06:07
zygaI think we need to respin 2.3306:07
mborzeckihmm, why were there newlines used in hook env?06:10
zygano idea06:12
zygaold bug06:12
zygaI think we used to have the same bug in app env06:12
zygabut it was fixed for apps06:12
mborzeckiright, it was fixed for apps back in 2.2306:21
mborzeckiand the \n was introduced in 2.1106:22
zygahey mvo06:42
zygasome bad 2.33 news perhaps06:42
mvohey zyga06:42
mvozyga: good morning - tell me more please06:43
zygathere's a small PR that fixes an embarrassing issue in hooks06:43
zygahttps://github.com/snapcore/snapd/pull/530206:43
mupPR #5302: snap: don't include newline in hook environment <Created by kyrofa> <https://github.com/snapcore/snapd/pull/5302>06:43
zygaso maybe new 2.33 needed06:43
mvozyga: what is the impact of the issue?06:44
zygahooks that use environment get broken values06:45
zygathe newlines mess something up apparently06:45
mvozyga: uh, ok. is this a regression?06:45
zygaha, good question06:45
zygaif so it is very old06:45
zygamborzecki found that it got broken in 2.1106:45
mvozyga: ok, thanks for the investigation!06:46
zygamvo: all the kudos go to kyrofa06:46
* mvo hugs kyrofa 06:47
mborzeckiintroduced back in 2.11, 2.23 fixed AppInfo.Env(), but hooks env was left intact (probably because \n seemed special to begin with)06:47
mvozyga: does http://paste.ubuntu.com/p/ggZryMrdQm/ ring a bell (cc mborzecki )06:52
mvozyga: i.e. [Mon Jun 11 13:21:08 2018] audit: type=1400 audit(1528723268.368:2393): apparmor="DENIED" operation="signal" profile="snap-update-ns.test-snapd-service-watchdog" pid=1 comm="systemd" requested_mask="receive" denied_mask="receive" signal=abrt peer="unconfined"06:52
mvothis is an autopkgtest failure on arm6406:52
zygathis says that "systemd" running with the snap-update-ns.test-snapd-service-watchdog label (I presume a C helper?) cannot receive SIGABRT from an unconfined process06:53
zygaso if something kills snap-update-ns it won't get the signal06:53
zygaI think that warrants a patch06:54
mborzeckihmm06:54
mborzeckithere were some changes recently to signals06:54
mborzeckifrom jdstrand, about receiving the signals from unconfined processes or somesuch06:54
zygamvo: I'll make a PR in a sec06:56
mborzeckinvm, that change from jamie was about signals from other snaps06:56
mborzeckimvo: is the system in which this happens super slow? maybe it hit the watchdog timeout already (i.e. while the snap is still starting) in which case systemd sends sigabrt06:59
zygamvo: #530307:00
mupPR #5303: interfaces/apparmor: allow killing snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/5303>07:00
mupPR snapd#5303 opened: interfaces/apparmor: allow killing snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/5303>07:00
mvomborzecki: its an arm64 it is probably not fast, not sure if super slow though, let me try to guestimate07:01
zygamvo: wait, did something enable the watchdog along the way?07:02
mvomborzecki: a full testsuite run take 3h15 which there, on amd64 its ~1:15h or so07:02
mvozyga: I think this is part of the test07:02
mborzeckizyga: it's part of the test07:02
zygaah07:02
zygaok07:02
mvomborzecki, zyga do you think this denial is just noice or could it be the reason for the failure?07:03
zygait's not noise for sure,07:03
zygaapparmor is fun07:03
zygayou can confine a process so that it cannot be SIGKILLed07:03
zygajust deny signals07:04
zygaand that's that07:04
mvomborzecki: we give it 20s to restart, no? so even slow shouldn't be that slow07:04
mvomborzecki: (?)07:04
mborzeckimvo: it's using update-ns profile, iirc that's suppsoed to be used when s-c runs s-u-n (zyga?)07:04
mborzeckiand then it switches to the app profile07:04
mvoits fun, the fatest is actually ppc64el afaict07:04
zygamborzecki: that's correct07:04
zygasnap run foo -> snap-confine -> snap-update-ns.foo -> snap.foo.foo07:05
zygathat's the profile transition chain07:05
mborzeckimvo: so what happens, is that it's still runnign with s-u-n profile while it gets abrt, hence the quesion about that host being super slow :P07:05
zygawhat I don't get is how it can run comm="systemd"07:06
zygathat's weird07:06
pstolowskimornings07:07
zygapstolowski: good morning07:07
mvozyga, mborzecki I upload it to comisc to get another autopkgtest run with this fix in07:07
mborzeckipstolowski: hey07:07
zygapstolowski: can you please look at #530207:07
mvohey pstolowski07:07
zygamvo: is you do a new upload then please consider the hook07:07
mupPR #5302: snap: don't include newline in hook environment <Created by kyrofa> <https://github.com/snapcore/snapd/pull/5302>07:07
mvozyga: yeah, I will mark it for 2.3307:07
zygalet pawel review it07:08
mvozyga: this will be a cosmic only upload07:08
zygaI think the patch can be reduced07:08
zygaKyle did some refactoring there as well07:08
mborzeckizyga: i'm looking at #5303 and #5174, the comment in 5174 mentions that we allow receiving signals from uconfined in the base abstraction (the template right?)07:08
mupPR #5303: interfaces/apparmor: allow killing snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/5303>07:08
mupPR #5174: interfaces/default,process-control: miscellaneous signal policy fixes <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/5174>07:08
zygamborzecki: base abstraction is something else07:09
* zyga looks07:09
mvozyga: just looked at it, fun bug (the env one)07:09
zygamborzecki: snap-update-ns is not including any abstractions07:09
zygathis is why (probably) it has this issue07:09
zygamvo: I think 5303 ought to be seen by jdstrand07:18
zygabut he won't be around until afternoon07:18
mupPR snapd#5302 closed: snap: don't include newline in hook environment <Created by kyrofa> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5302>07:40
pedronispstolowski: hi,  I need to reuse code similar doAutoConnect but checkConnectConflicts doesn't quite fit as it is, otoh I noticed there are some simplications that can be done there now that we moved the checks before/out of the connect bit, I'll propose a small PR with just that, that you can look at07:47
pstolowskipedronis: hey, sounds good, thanks07:48
mborzeckipeople seem to be building the aur package on most interesting setups, got one report that building fails, the guy is using clang (with ld), and ld is not there (?), another one https://paste.ubuntu.com/p/YbyN6Mtpvn/ i think it's behind some proxy that either cuts the network or does some bad stuff to the headers07:53
mvozyga: thats fine, no worries about 530308:03
mvozyga: afternoon is early enough08:03
mvozyga: so far its only an issue on arm6408:03
zygaack08:05
Chipacanack08:06
* Chipaca plays it safe08:06
zygaquack08:06
* Chipaca 's space bar is still not debouncing properly08:06
* zyga plays it eco08:06
* Chipaca plays 'It' in C#08:07
* Chipaca notes C# is D because # == ♯♯ but most people don't care08:07
Chipacahuh, wikipedia actually says # is 1.5 semis08:09
Chipacaoh well, i've been lied to before this08:09
Chipacaand by better people than my music teacher08:10
mupPR snapd#5304 opened: overlord/ifacestate:  simplify checkConnectConflicts and also connect signature <Created by pedronis> <https://github.com/snapcore/snapd/pull/5304>08:12
pedronispstolowski:  ^  ,  I will look over the disconnect one in a little bit08:13
cjwatsonI've certainly never seen double-sharp notated in any way other than ♯♯ or 𝄪08:13
pstolowskipedronis: thanks08:14
=== chihchun is now known as chihchun_afk
mupPR snapd#5299 closed: tests: publish test-snapd-appstreamid for any architecture <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5299>08:30
=== chihchun_afk is now known as chihchun
mborzeckipedronis: do you think i should push the store changes to #5253?08:44
mupPR #5253: snap: introduce new fields for parallel snap installation <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5253>08:45
* zyga -> brief walk08:47
pedronismborzecki: we need to think a bit08:48
pedronishow we want to proceed08:48
mborzeckipedronis: the renames and snapsup changes should be fairly benign08:48
mborzecki(or at least not break things)08:49
mborzeckiand subsequent reviews would be much smaller08:49
pedronismborzecki: but some bits are not just renames, those bits need tests of some form08:50
pedronisalso landing will disrupt Chipaca's work08:51
mborzeckipedronis: i think we should land Chipaca's pr first, pulling in master to my branch is not a problem08:53
pedronismborzecki: either you are not blocked, it's probably a good time to separately write some failing spread tests and mangers_test.go you want to pass at some point08:54
pedronismborzecki: I need to look at the rename PRs to see what is  doable there08:57
pedronismborzecki: John's PR need a 2nd review btw08:58
mborzeckipedronis: have it open already :P08:58
popeyif I build a snap against base: core18, will it automatically connect to the interfaces in core18?09:16
popeyI can't see any way to identify which base snap the app snap is connected to09:16
pedronispopey: that is still to be defined, but really core interfaces are system interfaces  (core was just use to attach them somewhere), so unlikely they would connect to a base in the new world09:17
popeyhm. i have a core18 snap which just dies on its arse, and I can't see what it's connected to09:18
pedronison classic system right now they connect ot core09:18
jameshmaybe you could hang the implicit interfaces off the snapd snap?09:18
pedronisthat's one of the ideas floating around09:19
pedronisbut I was confused, that discussion really applies to core systems09:19
pedronispopey: they will connect to "core", the problem is that nothing probably brings it in unless it's already there09:19
popeyi have core and core18 installed09:20
pedronisok, then they should connect to core09:20
zygare09:20
popeybut I want them to connect to core1809:20
pedronisnothing changed about that on classic09:20
pedronispopey: that doesn't mean anything09:20
popeyI built the app in an 1804 container09:20
pedronisthat's not releated to intefaces09:20
pedroniswhat interface is giving you problems?09:21
popeyi dont know, I'm trying to debug09:21
pedronisthere might be corner cases about intefaces that give access to binaries, but even connected to core, you would get the binaries in core1809:21
pedronis(of course the interfaces cannot give access to core18-only binaries)09:22
jameshpopey: interfaces like "desktop" are about connecting to the host system: they don't have a whole lot to do with the minimal root file system shown in the sandbox09:22
jamesha desktop snap based on "core" is doing pretty much the same thing as a desktop snap based on "core18"09:23
popeyhuh. okay. thanks.09:24
pedronisI mean there might be also an approach in which we do connect to the base (but it would be more about the base controlling the subset of host interfaces that make sense), that model though is quite a bit of changes from the status quo09:26
pedroniswe might do it at a later point (don't know)09:26
Chipacamborzecki: if spread fails, I'll add the validator09:26
Chipacamborzecki: otherwise I'll merge :-)09:26
mborzeckiChipaca: it failed, but i restarted the build already :) not a blocker though, i can add it with my changes09:27
Chipacamborzecki: hah. Well then, if it fails *again* :-D09:27
pedronismborzecki: I think what we should do is that I should look at the rename PR again (after I have done some other things I owe though), and then we should try to have a HO09:27
Chipacapedronis: rename as in rename a snap?09:29
mborzeckipedronis: ok09:29
mborzeckiChipaca: rename as in snap.Info.Name() -> snap.Info.(Instance|Store)Name()09:29
pedronisChipaca: no, s/Name/InstanceName/ and frieends09:30
Chipacaaww09:30
mborzeckiChipaca: 5253 if you want to take a look09:30
Chipacai got my hopes up for a bit09:30
mvopopey: what error do you see? could you pastebin or make the snap(craft.yaml) availabe? maybe we can help with the debug?09:38
popeymvo: thanks. It's kdenlive. I've built the snap in an 18.04 container. It just dies. Nothing useful on the command line. Nothing much in dmesg09:47
popeyonly an apparmor dnial trying to look at /proc/sys/kernel/core_pattern09:48
popeyso I presume it wants to core dump09:48
popeyI can send you the snap if you're interested09:48
mvopopey: yeah, if you could make it available that would be great, at least I could give it a poke09:49
popeydo you have wormhole installed?09:50
pedronispstolowski: I added some comments to the disconnect hooks PR10:15
pstolowskity10:16
pedronispstolowski: do take a look at my PR when you have moment, it will conflicts but should also simplify some stuff in that PR10:21
pstolowskipedronis: will do soon10:23
pedronismvo: did you see my comments in #5276 and #5301 ?10:28
mupPR #5276: devicestate: support seeding from a base snap instead of core <Created by mvo5> <https://github.com/snapcore/snapd/pull/5276>10:28
mupPR #5301: snapstate,ifacestate: remove core-phase-2 handling <Created by mvo5> <https://github.com/snapcore/snapd/pull/5301>10:28
mvopedronis: yes, will work on those in a little bit10:34
mupPR snapd#5305 opened: interfaces/policy: test that base policy can be parsed <Simple> <Created by zyga> <https://github.com/snapcore/snapd/pull/5305>10:44
mupPR snapd#5306 opened: cmd/libsnap-confine-private: introduce a helper for splitting snap name <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5306>10:45
mborzeckizyga: ^^10:45
zygaI just saw this while opening my own PR10:45
zygalooking10:46
pstolowskipedronis: +1 with one remark re auto name11:03
mborzeckigoogle:ubuntu-16.04-64:tests/main/interfaces-contacts-service started failing recently11:11
mborzeckihttps://paste.ubuntu.com/p/w9gC7PBWCX/11:14
=== pstolowski is now known as pstolowski|lunch
zygamborzecki: reviewed11:21
pedronispstolowski|lunch: I listed some options there, but I also agree  we could do  the rename later in your PR11:33
mborzeckizyga: thx, pushing fixes in a minute11:34
Chipacapstolowski|lunch: is #1776466 something you have on your plate?11:56
mupBug #1776466: snap get with multiple values does not return json <snapd (Ubuntu):New> <https://launchpad.net/bugs/1776466>11:56
pedronismborzecki: I did a pass over the whole 5253,  there are some open questions and it doesn't seem landable atm as it is, let me know when you want to chat12:06
mupPR snapd#5307 opened: cmd/snap-confine: allow hard-coded mounts to be optional <Created by zyga> <https://github.com/snapcore/snapd/pull/5307>12:20
mupPR snapd#5283 closed: snapstate: get rid of needsMaybeCore <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/5283>12:22
mupPR snapd#5286 closed: snapstate: fix assumptions about core in setup phase2 <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/5286>12:22
zygamborzecki: can you please look at 530712:27
zygamvo: 5303 needs a 2nd review12:29
zygajdstrand: thank you for the review!12:30
zygajdstrand: I need to make the list of hard-coded mount operations in snap-confine partially optional12:30
zygajdstrand: specifically the /mnt directory must not be required as some existing bases (probably just the test ones) don't have it12:30
zygajdstrand: I made a PR that makes this possible #530712:31
mupPR #5307: cmd/snap-confine: allow hard-coded mounts to be optional <Created by zyga> <https://github.com/snapcore/snapd/pull/5307>12:31
mupPR snapd#5308 opened: tests: skip "try" test on s390x <Created by mvo5> <https://github.com/snapcore/snapd/pull/5308>12:31
zygajdstrand: I chose to use mount directly to avoid adding a lot of boilerplate12:31
jdstrandzyga: I'd need to look at it more closely. it isn't exciting that it is broken out the way it is, but it also isn't that much and might even be cleaner the way you did it12:34
zygajdstrand: I implemented the "full" way initially, that is extra function that doesn't fail, propagates the error, etc12:34
zygabut then it could not do the nice error formatting anymore because as an utility it could not just drop privs12:35
zygaso I went this way12:35
zygajdstrand: I have two branches on GitHub that show where this is going, the one with the full history is feature/legacy-mnt-iface12:36
zygaI'm now adding spread tests to it12:36
jdstrandok12:36
zygathis is the rough diff12:37
zygahttps://github.com/snapcore/snapd/compare/master...zyga:feature/legacy-mnt-iface?expand=112:37
zygajdstrand: the only thing I wasn't sure about was the apparmor rule12:37
zygajdstrand: I used: +/mnt/*/** rwk,12:37
zygacoupled with /mnt/ r,12:37
zygaso that you cannot make new things in /mnt but you can see the existing ones and you can write to things there already12:37
zyga(that was my intent)12:37
pedronismmh, now I got:  + lxd.lxc stop my-ubuntu --force12:43
pedronisError: The container is already stopped12:43
pedronisTry `lxc info --show-log my-ubuntu` for more info12:43
pedronisfrom the lxd test12:43
jdstrandzyga: to achieve that in the most compatible way, you would want: /mnt/{,*/} r, /mnt/*/** rwk,12:44
pedronispstolowski|lunch: I adressed your comment in #522112:44
mupPR #5221: snap: parse connect instructions in gadget.yaml <Created by pedronis> <https://github.com/snapcore/snapd/pull/5221>12:44
=== pstolowski|lunch is now known as pstolowski
jdstrandzyga: I also don't think 'legacy-mnt' is right. the fhs defines it as "This directory is provided so that the system administrator may temporarily mount a filesystem as needed. The content of this directory is a local issue and should not affect the manner in which any program is run."12:46
jdstrandzyga: in practice, users use it for more than temporary access though12:46
zygajdstrand: are you suggesting that we don't do any new interface or just call it in a different way?12:46
jdstrandrename it12:47
zygaI used the word legacy because typically people don't really do things like that (or care about using /mnt specifically). Most users just get auto-mounts via /media12:48
zygado you have a suggestion for a better name?12:48
mvopedronis: I updated 527612:48
mvopedronis: and the other one (5301)12:48
mvopedronis: but no rush12:48
jdstrandI'm not sure what. mount-local? local-mount? mnt?12:48
jdstrandzyga: how about start with 'mnt' since it takes inspiration from 'home' with the understanding that it'll probably change in PR review12:49
zyga+112:50
jdstrandzyga: I understand why you chose legacy, but it isn't actually a legacy interface. it serves a real purpose in the modern world (users use it wrong of course)12:50
jdstrandanyway. I'll think about it12:51
jdstrandwe should all think about it :)12:51
zygajdstrand: sure, I don't mind changing the name at all12:51
zygajdstrand: once the prerequisites land I will rename it12:51
pedronismvo: I looked at 5301, the other one needs to wait, I have standup and then another meeting12:52
jdstrandzyga: just for completeness, I don't care for -support because it implies being able to do mount() operations and -observe isn't right cause it allows 'w'rite12:52
jdstrandzyga: -control also implies mount()12:53
jdstrandmore so than -support12:53
jdstrandso, yeah, not sure yet12:53
mvopedronis: ta12:58
Saviqhi all, can someone please comment on bug #1776295 whether it's by design or indeed a bug?13:30
mupBug #1776295: `stop` and `disable` should kill all processes regardless of daemon stop-mode <snapd:New> <https://launchpad.net/bugs/1776295>13:30
zygaSaviq: ack13:37
zygaSaviq: replied13:39
Son_Gokuzyga, mvo, niemeyer: https://src.fedoraproject.org/rpms/plasma-discover/c/31053b99061eb17bb29f7fd1142c9bd61424723813:42
zygaSon_Goku: very nice :)13:42
zygaany issues?13:42
Son_Gokuwell, discover no longer crashes when the plugin isn't installed :)13:43
Son_Gokuso that's a plus13:43
Son_Gokuhowever, the plugin crashes when no desktop portal implementation is installed13:43
Son_Gokuwe're fixing that now in the KDE Plasma 5.13.0 rebase going on now13:43
Son_Gokubut yeah, basically since the snap plugin isn't horrifically broken anymore, I figure it's worth enabling13:45
Son_Gokupeople using snapd on Fedora KDE will get the plugin installed automatically when they upgrade to Plasma 5.1313:45
cachiomborzecki, hey13:48
zygajoc: hey, you have some feedback on https://github.com/snapcore/snapd/pull/527913:52
mupPR #5279: interfaces/builtin: create socketcan interface <Created by jocave> <https://github.com/snapcore/snapd/pull/5279>13:52
mborzeckizyga: https://github.com/bboozzoo/aur-snapd/pull/713:54
mupPR bboozzoo/aur-snapd#7: snapd: use budled release pacakage, bump to 2.33-2 <Created by bboozzoo> <https://github.com/bboozzoo/aur-snapd/pull/7>13:54
zygamborzecki: +113:55
joczyga: yep thanks, did the fix for travis already, will address Jamie's comments now13:55
zygasuper, thank you13:56
=== chihchun is now known as chihchun_afk
mborzeckicachio: https://paste.ubuntu.com/p/SdQpcvyQWk/ line 1670 is when the timer is started, then gets stopped and never comes back14:16
cachiomborzecki, yes14:17
mborzeckicachio: 1662 snap-repair starts14:17
mborzeckithere's 2 instances of snap-repair running?14:17
mborzeckizyga: i've updated #530614:18
mupPR #5306: cmd/libsnap-confine-private: introduce a helper for splitting snap name <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5306>14:18
cachiomborzecki, it ran this test at thtat time14:19
cachiohttps://paste.ubuntu.com/p/yKYkVSyyDk/14:20
cachiomborzecki, I think the tst ubuntu-core-snapd-run-from-snap is causing that14:22
cachioI'll rereun just those two to see14:23
mborzeckicachio: ok, use the same seed, and just one worker14:24
cachiomborzecki, I am also running this to see how the env is after the test14:26
cachiospread -shell-after google:ubuntu-core-16-64:tests/main/ubuntu-core-snapd-run-from-snap14:26
niemeyerSon_Goku: Nice! Was it just a matter of enabling it or is this just the tip of a long series of patches?14:34
Son_Gokunow it's just a matter of enabling it14:36
Son_Gokuearlier iterations of the backend plugin were too unstable to use14:37
Son_Gokuthe implementation in discover is better than the one in gnome-software, which needs to be rectified14:37
Son_Gokuthere's a lot of issues with g-s because the work you guys have done in Ubuntu Software hasn't been getting upstreamed14:37
Son_GokuI checked recently in gitlab.gnome.org, and I haven't seen any proposals to submit those changes14:38
Son_Gokuand since hughsie maintains the Fedora package _and_ upstream g-s, my hands are tied unless the Ubuntu g-s/u-s maintainer upstreams those changes14:39
* zyga needs to handle some errands (accountant), ttyl14:39
Son_GokuI gotta go to work now...14:41
Son_Gokuniemeyer, could you try to follow up with the g-s maintainer in Ubuntu about getting the improvements upstreamed?14:41
Son_Gokueven the simplest thing of being able to see different tracks doesn't work in upstream g-s14:42
cachiomborzecki, confirmed14:42
mborzeckihah14:42
cachioubuntu-core-snapd-run-from-snap is the reason14:42
mborzeckicachio: so the quesion is now, is that test doing something wrong, or is it something else?14:43
cachiomborzecki, in the restore it is doint rm -f /run/systemd/system/snapd.*14:44
cachiomborzecki, not sure yet, it is a weird test14:45
mborzeckicachio: but it's rm -f units in /run14:45
mborzeckimaybe that daemon-reload is triggering this14:45
cachioI am running a shell session now14:46
cachioI'll debug it to see where it is making the mistake14:46
mborzeckicachio: ok, i see now14:46
mborzeckiso snap-mgmt stop will stop all units (snap-repair.timer) among them14:47
kenvandinezyga, to reproduce the theme mount problem, install gtk-common-themes from edge and gnome-calculator from candidate14:47
mborzeckicachio: and in restore only snapd.{socket,service} are started14:47
kenvandineand snap run gnome-calculator14:47
cachiomborzecki, yes14:47
zygakenvandine: what was the denial that you got?14:48
kenvandine2018/06/12 10:17:13.182049 main.go:192: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/319/share/themes/Communitheme /snap/gnome-calculator/172/usr/share/themes/Communitheme none bind,ro 0 0): cannot create writable mimic over "/snap/gnome-calculator/172/usr/share": permission denied14:48
cachiowe should restore all the snapd units14:48
cachiorestart14:48
mborzeckicachio: probably systemctl start snapd.snap-repair.timer in that test's restore section will be enough14:48
cachiook, let me try it14:49
mborzeckicachio: we know that the timer is started by default and gets stopped in the test, so starting it in restore seems fair14:49
cachiomborzecki, change made, testing now14:50
cachiolets, see14:50
zyga kenvandine what does “dmesg | grep DENIED” say?14:52
kenvandine[435791.168135] audit: type=1400 audit(1528813033.178:1735): apparmor="DENIED" operation="mount" info="failed mntpnt match" error=-13 profile="snap-update-ns.gnome-calculator" name="/tmp/.snap/snap/gnome-calculator/172/usr/share/" pid=20539 comm="3" srcname="/snap/gnome-calculator/172/usr/share/" flags="rw, rbind"14:53
kenvandinezyga, it doesn't like mounting it over /usr/share14:54
kenvandinewell $SNAP/usr/share14:54
kenvandineif i change it to $SNAP/share it's actually fine14:54
mupPR snapd#5305 closed: interfaces/policy: test that base policy can be parsed <Simple> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5305>14:55
zygaWhat is the content definition?14:55
zygaI will debug this asap but I need to run an errand now14:55
kenvandine  gtk-3-themes:14:55
kenvandine    interface: content14:55
kenvandine    target: $SNAP/usr/share/themes14:55
kenvandine    default-provider: gtk-common-themes14:55
kenvandinezyga, ^^14:55
kenvandinezyga, i can change my snaps to use $SNAP/share/themes instead14:56
kenvandinebut that also requires a change to the desktop helpers14:56
mupPR snapd#5309 opened: overlord/configstate: add watchdog options <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/5309>14:56
zygaThank you. I have all the information now14:56
jocjdstrand: was just working on the reply to the auto-connect question, it's there now14:59
jdstrandjoc: thanks!14:59
jdstrandjoc: yep, that was my thinking. thanks again :)15:00
=== leftyfb_ is now known as leftyfb
Chipacapedronis: you know this code better than I do: does  the snap action call need any fields beyond download for the "install" action?15:09
mupPR snapd#5310 opened: tests: fix snapd-repair.timer on ubuntu-core-snapd-run- from-snap test <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5310>15:15
Chipacapedronis: looks like it also needs name, revision, snap id at least15:16
pedronisChipaca: sorry, in a meeting15:29
Chipacapedronis: no worries, mostly answered myself15:29
mupPR snapd#5298 closed: store, image: have 'snap download' use v2/refresh action=download <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/5298>15:32
kenvandinezyga, you can ignore that issue... i found if i change the mount point it works fine and actually is probably more desirable15:35
pedronisChipaca: I'm not sure I understand the question, you mean in terms of the result? or what we put in the action?15:36
Chipacapedronis: currently we get everything, and we only need … a lot less than everything :-)15:37
Chipacaso looking at asking for just what we need15:37
pedronisChipaca: ah, we need quite a few things though, type, snap-yaml  probably more15:37
pedronisit's a bit hard to tell15:37
zygakenvandine: ack, though I will get to the bottom of this anyway15:37
Chipacapedronis: what do we need type and snap-yaml for?15:38
pedronisChipaca: sorry, you were maing for "download", not for "install" ?15:39
pedronis*meaning15:39
Chipacapedronis: :-/ yes15:40
pedronisChipaca: you need to consiser the code in image.go too15:41
Chipacapedronis: I added fields until it stopped complaining, because that's the sort of deep analytical work I do15:41
Chipacahmm, that code does seem to use type15:42
pedronisChipaca: I see at least Type and Contact15:42
pedronisand whatever is needed to compute NeedsDevMode15:43
pedronisI also expect soon we will need base and snap-yaml15:43
pedronis(to grab the base and default-providers)15:43
pedronisarguably we could also change the code though, to open the downloaded file once we have checked the assertions15:45
Chipacapedronis: this only asking for the fields we want is what we want to do, right?15:45
pedronisit's reasonable, but then what I suggest, reopening in the snap in image after the assertion check15:46
pedronisis probably the best of both15:46
pedronisworlds15:46
pedroniswe don't have to update the list15:47
Chipacapedronis: hmmmmmmm15:47
pedronisChipaca: it's not a complicated change I think15:47
Chipacapedronis: I'll try15:49
pedronisChipaca: notice that you want also all the fields to populate sideinfo likely15:49
pedronisI mean consulting the store and not asking those is probably wrong15:50
Chipacapedronis: yeah15:51
mupPR snapd#5308 closed: tests: skip "try" test on s390x <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5308>15:51
pedronisChipaca: any particular reason to do this btw?  it's reasonable but prepare-image/download are propbably not super common in the gran scheme of things15:52
mupPR snapd#5303 closed: interfaces/apparmor: allow killing snap-update-ns <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5303>15:52
Chipacapedronis: this felt like a low-hanging fruit and it turned out to be an araucaria15:53
pedronisit's not a low hanging fruit15:53
pedronissorry15:53
* cachio lunch15:53
pedronisalso because image.go will need to learn more tricks soon15:53
Chipacagrmbl15:53
ChipacaI'll just use it for conncheck then15:53
Chipaca¯\_(ツ)_/¯15:53
Chipacai mean, i still want to give actions the optional fields thing15:53
Chipacabecause, conncheck just wants the 'download' field15:54
Chipaca(and that one happens more often than snap download :) )15:54
pedronisyes15:54
pedronisthere is makes full sense and we are more in control15:54
mvoyay autopkgtest for cosmic green!16:00
pedronismvo: re-reviewed #527616:12
mupPR #5276: devicestate: support seeding from a base snap instead of core <Created by mvo5> <https://github.com/snapcore/snapd/pull/5276>16:12
pedronispstolowski: did you forget, could you re-vote in #5221 ?16:13
mupPR #5221: snap: parse connect instructions in gadget.yaml <Created by pedronis> <https://github.com/snapcore/snapd/pull/5221>16:13
pstolowskipedronis: done16:15
pedronisthx16:15
pedronisah, mvo looked at the first version only:  niemeyer or mvo: I need a re-review of #522116:16
mupPR #5221: snap: parse connect instructions in gadget.yaml <Created by pedronis> <https://github.com/snapcore/snapd/pull/5221>16:16
mvopedronis: sure16:19
niemeyerpedronis: My main blocker there was the syntax, which we agreed on that call. If that's sorted per discussion and you're happy about the other points, LGTM16:23
pedronisniemeyer: yes, I changed the syntax to be as the last update in the topic16:23
binarycreationsHello there, I am attempting to create my first snap. I am running Arch Linux with the 4.14.48-1-LTS kernel, I am trying to get my head around how all the concepts work. Is my current host OS going to be supported by snapcraft?16:34
binarycreationsI am getting a mount error when attempting to run snapcraft cleanbuild when following the getting started documentation16:35
mklvrIs the recommended build host for snaps still 16.04?16:51
kyrofamklvr, today, yes16:53
mklvrkyrofa, Thanks!16:53
pedronismvo: thx17:02
cachioniemeyer, hey, when you have time, could you please take a look to this one?17:48
cachiotx17:48
niemeyercachio: Which one?17:48
cachiohttps://github.com/snapcore/spread/pull/6017:48
mupPR spread#60: Garbage collection for google backend <Created by sergiocazzolato> <https://github.com/snapcore/spread/pull/60>17:48
cachiozyga, when you have 5 minutes #531018:37
mupPR #5310: tests: fix snapd-repair.timer on ubuntu-core-snapd-run- from-snap test <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5310>18:37
cachiothanks18:37
zygaAck18:38
cachiotx18:38
zygacachio: looking18:46
cachiozyga, tx18:47
=== Sir_Gallantmon is now known as Son_Goku
mupPR snapd#5310 closed: tests: fix snapd-repair.timer on ubuntu-core-snapd-run- from-snap test <Created by sergiocazzolato> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5310>18:48
gouchiHi, I tried using controller with a snap app but it is not recognized18:51
gouchiWe connect joystick and hardware-observe interface and we are using udev18:51
gouchiusing /dev/input/jsX and /dev/input/eventX18:52
gouchiI tested on 16.04 and 18.0418:53
gouchiit seems something from here https://nopaste.xyz/?905527d7c2931bd4#pN7KjJSL5qdrVAzy4T5IhZ2yr7/q/0Uh6mzFM4mcN2w=18:53
gouchiwhich is blocked but I don't have anything in the log18:54
gouchiany idea ?18:56
gouchiof course using --devmode it is working18:56
zygaHey gouchi19:11
zygaThere is a branch that improves this19:11
zygaCan you try “snap refresh —edge core”19:11
zygaAnd see if that fixes it19:12
=== phoenix_firebrd is now known as phoenix_firebrd_
=== phoenix_firebrd_ is now known as phoenix_firebrd
gouchizyga: thank you I will try it19:40
gouchizyga: nice it is working ! Thank you very much !19:58
gouchizyga: when this branch will be moved to stable ?19:58
zygagouchi: I need to check, either very soon or in the next month19:59
zygayou can keep using edge for now19:59
=== phoenix_firebrd is now known as phoenix_firebrd_
=== phoenix_firebrd_ is now known as phoenix_firebrd
mupPR snapcraft#2152 closed: many: automatically redo step for specified part <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2152>20:25
gouchizyga: thank you20:41
=== jkridner|pd is now known as jkridner
=== chihchun_afk is now known as chihchun
=== georgeowell is now known as kawaiipunk
mupPR snapd#5311 opened: tests: start active system units on reset <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5311>21:43
mupPR snapd#5312 opened: store: switch connectivity check to use v2/info <Created by chipaca> <https://github.com/snapcore/snapd/pull/5312>21:45

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