/srv/irclogs.ubuntu.com/2017/02/09/#snappy.txt

seshuzyga: Do you have the snapd documentation on snap refresh, first boot behavior.00:19
mupPR snapcraft#1054 closed: [WIP] snapcraft as a snap <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1054>00:50
mupPR snapcraft#1069 closed: snapcraft.yaml and building in snap directory <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1069>00:50
=== Mister_Q_ is now known as Mister_Q
=== chihchun_afk is now known as chihchun
mupPR snapcraft#1125 opened: tests: fix the env vars passed to the docker container in travis <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1125>01:38
eeightwow that much people, neat!01:52
eeightis it true that if i publish a snap on myapps.developer.ubuntu.com and send an update, people will get my update automagically after 24h?01:52
eeightalso I don't see the documentation for plugs: ... (need to access the webcam) https://snapcraft.io/docs/reference/02:01
mupBug #1663091 opened: Mir interface does not auto-connnet <Snappy:New> <https://launchpad.net/bugs/1663091>02:02
=== markusfluer1 is now known as markusfluer
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mupBug #1663060 opened: Add a title field to snap metadata <Developer registration portal:New> <Snappy:New> <gnome-software (Ubuntu):New> <snapcraft (Ubuntu):New> <snapd (Ubuntu):Triaged> <snapd-glib (Ubuntu):New> <https://launchpad.net/bugs/1663060>03:33
mupBug #1663103 opened: No snapd API to determine which plugs/slots an app uses <Snappy:New> <https://launchpad.net/bugs/1663103>03:36
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mupPR snapcraft#1117 closed: [wip] build and push the API docs to github pages <Created by elopio> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1117>04:30
mupPR snapcraft#1122 closed:  repo: cache stage packages for faster future use <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1122>04:52
=== chihchun_afk is now known as chihchun
mupPR snapd#2818 opened: Allow specifying another store via env variable for the download command <Created by morphis> <https://github.com/snapcore/snapd/pull/2818>06:05
=== durksauce_ is now known as durksauce
=== om26er_ is now known as om26er
=== mpontillo_ is now known as mpontillo
=== thomi_ is now known as thomi
=== eshlox_ is now known as eshlox
mupBug #1662817 changed: some snaps stop working after revert the core snap <Snappy:New> <https://launchpad.net/bugs/1662817>06:44
Mirvogra_: we have arm64, since the general idea was vivid/armhf/click -> xenial/arm64/snap. of course, armhf would be only a click^Wsnap away in Launchpad.06:46
Guesthi all here06:49
Guesti'm found some new ubuntu-core ami on aws, but i cannot connect to instances via ssh06:51
Guestmaybe i need some like `ssh_enabled: True` on instance user data?06:51
=== Guest is now known as p1gmale0n
=== Dmitrii-Sh_ is now known as Dmitrii-Sh
liuxgogra_,  so far, packageproxy works well. However, i find that it does not cache the packages for ppa:ci-train-ppa-service/stable-phone-overlay. when I build my app, this repository always re-downloaded. is this normal? thanks07:25
=== JanC_ is now known as JanC
mupPR snapd#2816 closed: interfaces/builtin/core-support: Allow modifying logind configuration from the core snap <Created by ssweeny> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2816>07:52
liuxgogra_, ping08:06
ogra_liuxg, edit /snap/packageproxy/current/config.yaml and add an entry to the "repos" list there ... then restart packageproxy or reboot08:23
liuxgogra_, really, I do not know the trick. thanks. let me try it :)08:24
ogra_i.e. like: [ubuntu-overlay,http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu]08:24
ogra_i must damit i never tried ppas, so no guarantee that it works ... but after all ppas are just archives08:25
ogra_*admit08:25
ogra_liuxg, in your sources.list on the client you then use something like: deb http://localhost:9999/ubuntu-overlay xenial main08:27
liuxgogra_, so, I need to use two places, right?08:27
mupPR snapd#2819 opened: packaging/ubuntu-14.04: inform user how to extend PATH with /snap/bin <Created by vosst> <https://github.com/snapcore/snapd/pull/2819>08:28
liuxgogra_, one is for the config.xml and the other is sources.list08:28
ogra_well, like you always do ... on the client you use sources.list and on the server the config.yaml08:28
liuxgogra_, ok. thanks08:29
liuxgogra_, , one problem here, /snap/packageproxy/current/config.yaml is read only.08:30
liuxgogra_, we cannot change the file mannually08:30
ogra_oh, right, there is a writable version in SNAP_DATA08:31
ogra_sorry, the above is indeed the wrong location08:31
liuxgogra_, so, var/snap/packageproxy/current$ , this is the location. but I think it is good to add it to your app by default08:32
liuxgogra_, so that everyone does not need to manually add it. what do you think?08:33
ogra_well, once i fixed the config hooks you will just use "snap set"08:33
liuxgogra_, yeah, I know.08:33
ogra_this used to work in 15.04 with snappy config, i just havent ported that part yet08:33
ogra_Mirv, i'd really appreciate that one click ;) i assume we might actually have some users using RPi's for kiosk apps or even with unity8 once it runs smooth08:55
kalikiana+109:01
ogra_(it actualyl runs very smooth btw (i got it running here) it is just still awfully buggy)09:03
kalikianaMeanwhile I'll ask once more: does anyone know about snapcraft on Trusty? The package doesn't seem to be there. I kinda expected snapd and snapcraft to be like a monogamous couple that won't be separated09:04
ogra_kalikiana, well, they are separate projects09:20
ogra_kalikiana, ask sergiuens or kyrofa09:20
mupBug #1663175 opened: chroot not allowed in devmode/strict <Snappy:New> <https://launchpad.net/bugs/1663175>09:20
mupBug #1663177 opened: "Bad System Call" when using "dbus" snapd interface <Snappy:New> <https://launchpad.net/bugs/1663177>09:20
ogra_(once they are up)09:21
t1mpkalikiana: I assume that even on trusty, the snaps run against the 16.04.1 ubuntu-core snap, so then they should be built on xenial?09:27
kalikianaYeah, I guess they are, I tend to see it as part of the same meta thing.09:27
=== chihchun is now known as chihchun_afk
kalikianat1mp: Right, I would expect the sources for 16.04 to be used.09:28
kalikianaNote: I'm saying this with my user hat on.09:29
kalikianaIt makes sense to my mind, but it could be blocking on some bugs.09:30
t1mpdidrocks: are the desktop helpers are pulled in from github when building a snap? So then https://github.com/ubuntu/snapcraft-desktop-helpers/commit/82ebfb53afa897f32ac029fd46fe4b7453319037 is effective immediately when I build a snap now?09:30
kalikianaTry it. The answer should be evident?09:31
=== chihchun_afk is now known as chihchun
t1mpright :)09:32
didrockst1mp: indeed, it's effective immediately. Only if snapcraft.yaml definition changed you need to snapcraft update first09:32
t1mpdidrocks: great, thanks.09:32
didrocks(or you will get older snapcraft.yaml content with newer git code)09:32
didrocksyw!09:32
kalikianadidrocks: Do you know if that'll be automated at one point? I find it confusing and potentially error-prone to have to 'snapcraft update' "in case something changed"09:33
didrockskalikiana: I think it's something to discuss with sergio09:33
didrockskalikiana: he wasn't against it latest time we did discussed about it09:34
didrocksand yeah, it's error-prone, I got caught myself once :)09:34
mupPR snapd#2820 opened: Add send/recv syscalls for upower-observe interface as required on ARM <Created by morphis> <https://github.com/snapcore/snapd/pull/2820>09:40
mupPR snapd#2821 opened: overlord/ifacestate: setup seccomp security on startup <Created by zyga> <https://github.com/snapcore/snapd/pull/2821>09:44
mupPR snapd#2822 opened: Added a linux framebuffer interface <Created by femdom> <https://github.com/snapcore/snapd/pull/2822>09:54
Mirvogra_: armhf platform snap now available in the store (candidate, beta and edge channels)10:12
* ogra_ hugs Mirv 10:13
ogra_(and his cat)10:13
kalikianalol10:15
tsdgeosjdstrand: are you the one to talk about apparmor/snap socket() call accepting/rejecting ?10:25
liuxgogra_, after I change the config.yaml and sources.list, it still fetches from the server. is there anything I did worngly? I have rebooted the machine. sources.list http://paste.ubuntu.com/23959907/, /var/snap/packageproxy/current/config.yaml http://paste.ubuntu.com/23959909/10:27
ogra_liuxg, looks all fine to me ... and you did apt update and removed the old ppa entries from the clients sources ?10:28
ogra_liuxg, note that the ppa bits might be in sources.list.d/10:30
liuxgogra_, previously, I used "sudo add-apt-repository ppa:ci-train-ppa-service/stable-phone-overlay" to add the ppa. do you mean I need to use "sudo add-apt-repository -r" to remove it?10:30
ogra_yeah10:31
liuxgogra_, ok. I got it. thanks10:31
ogra_as long as you have it in sources.list (or .d/ ) it will indeed be used10:31
liuxgogra_,  http://paste.ubuntu.com/23959927/, this is it. so I need to remove it, right?10:32
ogra_right10:32
ogra_and the next apt update should actually show it using ubuntu-overlay then10:33
zygare10:34
zygatsdgeos: hey, how can I help you10:37
tsdgeoszyga: so i'm trying to figure out if it's on purpose that we're denying this call without the network plug10:37
tsdgeossocket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_KOBJECT_UEVENT);10:37
zygadefinitely10:37
tsdgeosthis is basically udev connecting to it's socket10:38
tsdgeosso it's not a network connection10:38
tsdgeoss/it's/its10:38
zygatsdgeos: yes but before recently we didn't do argument filtering in seccomp10:38
zygatsdgeos: even now I don't think we will allow this in the network interface10:38
tsdgeoszyga: why?10:38
zygatsdgeos: there should be a dedicated netlink interface as netlink is rats nest of stuff10:38
zygatsdgeos: netlink is privileged10:38
tsdgeosso basically any app using udev won't be functional?10:39
zygatsdgeos: any app using netlink will need a correct interface10:39
zygatsdgeos: (security is hard)10:39
zygatsdgeos: what exactly do you need to do?10:39
zygatsdgeos: often there's an easier solution10:39
tsdgeosno :D10:39
tsdgeosyou know i'm using qml that uses the ubuntu-ui-toolkit that uses QtSystemInfo that uses udev10:39
tsdgeosand udev uses that socket10:40
tsdgeossure i can rewrite the world10:40
liuxgogra_, if I have another computer pointing to the server, does it need to have any authorization? I have not tried it yet.10:41
zygatsdgeos: I see, this needs to be discussed with the security team, my rough feeling is that it may require patches to qt or a review of what is allowed once you have a netlink socket10:41
zygatsdgeos: jdstrand is the right person for that, yes10:41
tsdgeosok10:41
ogra_liuxg, nope, it just acts like a http server10:41
ogra_no auth required10:41
tsdgeoszyga: so what's the best way to discuss this? a bug? an email? if a bug, where, in launchpad?10:41
ogra_but make sure your sources.list is correct indeed10:41
liuxgogra_, so, is there any security issue?: )10:41
liuxgyeah, I will have a try for it. thanks10:41
zygatsdgeos: bug is a first idea, yes, file it on launchpad.net/snapd, tag it with #snapd-interface tag10:41
ogra_well, some hacker could DOS your disk by downloading the whole archive i guess :)10:42
tsdgeoszyga: ok, will do, thanks10:42
liuxgogra_, yeah, that is what I am thinking :)10:42
ogra_but beyond that it is just a copy of deb packages in the end10:42
ogra_no risk in that10:42
tsdgeosMirv: meanwhile i guess you can patch qtsystems with my patch so we get reduced functionality instead of a crash :D10:42
liuxgogra_, yeah, I got it. just joking :)10:43
zygatsdgeos: I would love to know what happens after you have that netlink socket10:43
zygatsdgeos: if you can add that to the code it would be fantastic10:43
tsdgeosreads from it afaics10:43
zygatsdgeos: sure but what exactly is being looked for10:43
tsdgeoszyga: what do you mean? "what is being looked for"10:45
zygatsdgeos: so you read from it, what happens then10:45
zygatsdgeos: what information is being accessed10:45
zygatsdgeos: what's the goal of QtSystemInfo10:45
tsdgeosgives you system info10:45
zygawhich is what exactly?10:46
tsdgeosin this particular case it's telling us if you have keyboard/mouse attached10:46
zygatsdgeos: thanks, please attach this to the bug as well10:49
tsdgeoswill do10:51
liuxgogra_, you are right. the second time is super fast!10:54
ogra_;)10:54
liuxgogra_, previously, it took almost one hour to build it :(10:55
ogra_wow, bad10:55
liuxgogra_,  yes, this is why your solution is super. I will try to use another machine to access it.10:55
t1mpdidrocks: great, thanks.11:11
t1mpheh, I thought I sent that message 1.5h ago ;)11:11
t1mpwhy do I get DEPRECATED: Custom plugins should now be placed in 'snap/plugins'.11:12
t1mpwhen I don't have custom plugins?11:12
t1mpplugin: nil and plugin: dump don't seem custom to me.11:12
kalikianat1mp: Do you have a folder parts/plugins?11:14
t1mpkalikiana: no11:14
=== chihchun is now known as chihchun_afk
kalikianaHmmm maybe something in a cloud part?11:15
didrockscould be, desktop helpers don't have though11:16
didrocksunsure about the other you get11:17
t1mpI use after: [desktop-ubuntu-app-platform]11:18
t1mpit has plugin:make11:18
t1mpbut that doesn't sound like a "custom plugin" to me11:18
kalikianaRight, it's not11:20
didrocksyeah, there is no custom plugin in my helper11:23
didrockscould be a snapcraft bug, would be interesting to either report or retrace in the code what triggers it11:23
didrocksalso, having the plugin name in the deprecation notice would worth a bug :)11:24
didrocksto see what it's complaining about11:24
kalikiana+111:29
=== hikiko is now known as hikiko|ln
=== ronnie is now known as Guest72753
Guest72753Hi guys, I am trying to find out why an electron-based app works in devmode but not in strict, the logs show that a config file can't be written within the snap: /home/osboxes/snap/linkbox/x14/.config/configstore/linkbox-log.json12:02
Guest72753any clue on what i am missing here?12:02
zygaGuest72753: hey12:03
mupBug #1663220 opened: Add support to Secret Service APIs <snapd-interface> <Snappy:New> <https://launchpad.net/bugs/1663220>12:04
zygaGuest72753: can you pastebin: dmesg | grep DENIED12:04
Guest72753sure, just a sec12:04
tsdgeoszyga: took me a while but https://bugs.launchpad.net/snapd/+bug/166322112:04
mupBug #1663221: snap/apparmor default confinement rejects socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_KOBJECT_UEVENT); <snapd-interface> <snapd:New> <https://launchpad.net/bugs/1663221>12:05
tsdgeoszyga: anything else you'd like me to add?12:05
zygaGuest72753: and dmesg | grep type=132612:05
liuxgogra_, if it works for pips, that would be fantastic :)12:05
zygatsdgeos: thank you, that should be fine for now12:05
Guest72753zyga: http://pastebin.com/nTTuJSRf12:06
zygaGuest72753: it seems that the writeful snap wants to run "ip", that is not allowed by the base policy12:07
zygaGuest72753: if you disable that do you see any other issues?12:08
Guest72753how do I disable that?12:08
zygaGuest72753: it's your snap, don't ask me12:09
Guest72753electron app are chromium based12:09
zygaGuest72753: is electron shelling out to run /bin/ip?12:09
Guest72753so I don't really know why it needs ip12:09
zygaGuest72753: neither do I; you can use the network-observe plug on your app but it is reserved and your app will be blocked in store review12:09
zygaGuest72753: do you see anything in the second grep I asked for?12:10
Guest72753no, that one is empty12:10
ogra_zyga, why woulld it be locked ? will it not just be not connected by default ?12:11
zygaGuest72753: so that's the only problem12:11
zygaogra_: it's marked as reserved12:11
zygaogra_: there's a difference between not connecting and not allowing to have it12:11
ogra_ah12:11
zygaogra_: if you just don't connect it people will fall for simple sociological attacks "this is how you install my snap"12:11
Guest72753zyga: so if I add the plug to network-observe plug it will work but not accepted in the store?12:11
ogra_it will go into manual review12:12
zygaGuest72753: it will not go through automatic review, it will be flagged and will go to manual review12:12
Guest72753ok12:12
zygaGuest72753: I'm not sure, maybe there's a better idea; I don't have experience with electron12:12
zygasergiusens: ^^ any ideas (electron based app uses /bin/ip)12:12
zygasergiusens: is that electron itself?12:12
Guest72753I'll try doing that and see if it works at least12:12
zygaGuest72753: yeah, go ahead12:12
zygaGuest72753: don't forget to connect the plug12:12
zygapopey: hey, so apart from https://github.com/snapcore/snapd/pull/2815/files12:18
mupPR snapd#2815: release: don't force devmode on LinuxMint "serena" <Created by zyga> <https://github.com/snapcore/snapd/pull/2815>12:18
zygapopey: what else should we whitelist there?12:18
zygapopey: I saw you mention various distros in the os-release-zoo project but I'm not feeling very well and I wanted to confirm those with you12:18
Guest72753zyga: still doesn't work, this is all the output since I started it: http://pastebin.com/4Y3JRVmG12:18
zygaGuest72753: hmm, so now it wants to ptrace an unconfined process12:19
mupPR snapcraft#1125 closed: tests: fix the env vars passed to the docker container in travis <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1125>12:19
zygaGuest72753: can you tell me if that's stock electron or is this the app itself?12:19
zygaGuest72753: ptrace is very powerful and ptracing unconfined processes is a clear no-go12:20
zygaGuest72753: also based on this output I don't think you did the plug correctly (maybe it's disconnected) because /bin/ip is still denied12:20
zygaGuest72753: or maybe this is a new feature of recent snapd, I'd have to check12:20
zygaGuest72753: but can you ensure that "snap interfaces" shows that your snap is using the new plug?12:21
zyga(and that it is connected)12:21
zygapopey: ideally, can you please open a bug for each distribution that you know should be whitelisted12:22
Guest72753zyga: this is the app itself, and you're right the plug is still not there12:22
Guest72753i'll try again12:22
zygapopey: a distribution should be whitelisted iff: it uses the ubuntu kernel, it uses ubuntu packages (snapd/snapp-confine/...) *without* rebuilding them from source (some decisions are compile time and distro-based)12:22
zygaGuest72753: just rebuild the snap and install it again12:23
zygaGuest72753: if you are in try mode12:23
zygaGuest72753: you need to uninstall/try again12:23
zygaAFAIR12:23
zyga(we should have --retry or something)12:23
zygaChipaca: ^^ just an idea, have snap try --retry or just smarter try that updates meta/snap.yaml without dropping data)12:23
zygapopey: if you file those bugs please poke me with URLs12:24
Chipacazyga, a bare "snap try" should work; doesn't it?12:24
Chipacano uninstall needed12:25
Chipaca(granted it's a bit messy)12:25
zygaChipaca: won't it artificially stack more "revisions" (which feels wrong)12:25
zygaright12:25
Chipacawell, yes it will, but why would it feel wrong?12:25
zygamaybe try should use a "xx" revison12:25
zygaChipaca: people get into all kinds of mess with try12:25
Chipacazyga, ?12:25
zygaChipaca: you remove a directory and it's all wonky12:26
Chipaca`xx` as in not `x1`?12:26
ogra_hmm ? does try actually bump the revision unconditionally ?12:26
zygaChipaca: and the way to fix that is only sensible if you know how snapd works12:26
Chipacaogra_, of course12:26
* ogra_ wouldnt expect that12:26
zygaChipaca: yes, xx as a special-special revision12:26
Chipacaogra_, just like snap install --dangeroos ./potato.snap12:26
Guest72753zyga: this is it right? http://pastebin.com/1eHFpdzT12:26
ogra_ah, i thought try just spawns the snap12:26
Chipacaogra_, i'd love to know what spawning a snap means :-D12:27
zygaGuest72753: yes12:27
zyga"spawn more snaps"12:27
ogra_dunno, execute it and stuff in it12:27
zygaogra_: snaps are just zip files ;-)12:27
ogra_without actually installing over12:27
ogra_lies ! you cant unip them :P12:27
zyga(fancy zipfiles)12:27
ogra_*unzip12:28
Chipacaogra_, so, a snap is just a filesystem-in-a-file12:28
Guest72753zyga: it does show but at the end of snap interfaces: -                         writefull:network-observe12:28
ogra_yeah12:28
Chipacaogra_, "snap try" uses the directory directly12:28
Chipacaas if it were mounted already (it does a bind mount)12:28
ogra_right, so there is no reason to bump the revision every time12:28
mupPR snapcraft#924 closed: New plugin: jhbuild <Created by attente> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/924>12:28
Chipacaogra_, there totally is12:28
ogra_why is that ? if you end the try the revision is free again, no ?12:29
Chipacayes12:29
Chipacaand revert of a try would be fun12:29
ogra_so you could just re-use12:29
zygaGuest72753: you need to connect that now12:29
zygaGuest72753: snap connect writefull:network-observe12:29
Chipacaogra_, yes, we could reuse, but that would involve a bunch of special-casing for something that is trying hard not to be that different from installing the snap12:30
ogra_heh, k12:30
Guest72753zyga: yeah, that works and the app works again12:31
Guest72753zyga: will the user have to do this?12:31
imexilHi, it's been about 6 month since I last was building a snap package. At the time there was an issue that if your snap depended on TeXLive you basically had to include it yourself which makes the snap quite big. Does any one know if there is now a way to make use of an existing TexLive installation?12:32
ogra_we have a content sharing interface now so you could roll a texlive snap you can share ...12:32
ogra_and there is a way to build classic snaps ... whihc are essantially debs in a new dress12:33
imexilcould you point to some up to date docs on that sharing interface and how to use it?12:33
imexiloh the classic snap would be interesting too.12:34
ogra_but that will only work on classic systems (ubuntu-server, ubuntu desktop etc)12:34
imexilah right.12:34
ogra_using the content sharing stuff would make it more future proof for running on an all-snap image later12:34
ogra_i guess classic is a good quick start way though12:35
imexilwell upstream has already switched to appimage (because of the texlive issue)12:35
imexilI was hoping to make them consider snap again if this TeXLive thing was fixed12:36
ogra_to build a classic snap you can just use ""confinement: classic" in your snapcraft.yaml ... and make sure to not use any interfaces at all (they are not available in classic mode)12:36
imexilinterface == plug?12:37
mupPR snapcraft#1115 closed: kernel plugin: fix kernel snap layout <Created by lool> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1115>12:37
ogra_well, socket and plug ...12:38
imexilany doc you can link to?12:38
ogra_or i think we call them "slot" not socket now12:38
ogra_on the snpcraft side you only use plug though12:38
ogra_https://docs.ubuntu.com/core/en/reference/interfaces/index12:39
sergiusenszyga: seems app specific12:39
imexilso documentation is still spread around snapcraft.io and docs.ubuntu and dev.*** ? ;-)12:40
* sergiusens is not paying too much attention to irc these days as it is only open on one box, the one with fixed networking12:40
ogra_imexil, snapcraft docs are on snapcraft.io ... general docs are on docs.u.c12:40
imexilright.12:40
imexilBut interfaces are a snap thing right?12:41
ogra_https://snapcraft.io/docs/core/interfaces12:41
imexilOK thanks!12:41
ogra_so you might want tostart with snapcraft.io ... for more detauls you have then docs.u.c12:41
ogra_*details12:41
Mirvtsdgeos: your patch will land via https://bileto.ubuntu.com/#/ticket/245612:44
=== hikiko|ln is now known as hikiko
popeyzyga: https://bugs.launchpad.net/snapd/+bug/166304112:48
mupBug #1663041: Snap packages install but can't be run on Zorin OS <snapd:New> <https://launchpad.net/bugs/1663041>12:48
Guest72753does anyone know if there a way to automate `snap connect x:network-observe ` upon installation?12:49
ogra_popey, geez, you hand people your pinky and they want the whole hand ! should be happy they can install them !12:49
ogra_</trump sound off>12:50
popeyzyga: https://bugs.launchpad.net/snapd/+bug/166322612:51
mupBug #1663226: Snap packages install but can't be run on Peppermint OS <snapd:New> <https://launchpad.net/bugs/1663226>12:51
* popey builds a wall around ogra_ 12:51
* ogra_ turns the music up 12:51
imexilogra_: So I tried classic mode. But I have a conflicting ubuntu-core snap which snap won't remove. Any idea12:56
imexilhttp://pastebin.ubuntu.com/23960466/12:57
ogra_imexil, hmm, i thought that landed already, a new snapd should move you from "ubuntu-core" to "core" ... perhaps i'm wrong though and that version has not landed yet12:59
imexil"snapd is already the newest version (2.21)"13:00
ogra_yeah, might be the one in -proposed that has this13:01
ogra_iirc 2.2313:01
imexilWell it looks like I'm fighting a lost fight here anyway. Upstream has a working cross-distro solution which only takes up 30 MB for the image and no duplicate minimal TeXLive installation required. There is probably no point in putting more energy into snap :-(13:02
imexilThat's appimage based there.13:02
ogra_well, 2.23 should be released this week (or latest next)13:03
popeythe alternative is to remove snapd and reinstall13:03
ogra_alternatively you coudl uninstall snapod and reinstall that ...13:03
popeywhich is what I did to switch from ubuntu-core to core, as I was in a hurry13:03
ogra_but that makes you lose all existing snaps13:03
popeyyeah13:03
imexilclassic mode would not help since it means distro depending again which is kind of the opposite you want.13:03
popeyclassic mode isn't distro dependent13:04
popeyyou can install classic snaps on debian 913:04
ogra_yeah13:04
mupPR snapcraft#1127 opened: Release changelog for 2.27 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1127>13:04
imexilwell debian derivative dependent then13:04
imexilSo I see classic mode now the nicer alternative to build something for deb like systems without having to do deb packaging. Which is nice but does not help when distributing cross distro.13:06
popeyi only mentioned debian 9 because that is the only one I've tested. others may well work but i dont run them here13:06
ogra_theoretically it has no distro limits13:06
ogra_as long as the libs and binaries are on the host13:06
jdstrandzyga, Guest72753: fyi, in the advent of snap declarations, plugging (almost all) manually connected interfaces does not trigger a manual review13:06
ogra_jdstrand, thats how i understood it initially ... is that true for "reserved2 too ?13:07
ogra_*"reserved"13:07
jdstrandzyga: the 'Usage: reserved' stuff needs to get cleaned out. it is all in the base declaration now (I can do that)13:07
jdstrandogra_: you too ^13:08
ogra_ah13:08
imexilogra_, popey: yes. Well I might give classic a go when the next upstream version of Ipe comes out. For now the PR is send. Thanks again for the help.13:08
jdstrandGuest72753: as for electron using ip-- I have tested electron apps and none of them used ip. I'm not sure why yours is...13:08
ogra_np13:08
jdstrandogra_: there is no 'reserved' any more. it is all base declaration. there are only a handful of plugs that trigger a manual review because they are deemed 'super-privileged'. eg, docker-support, snapd-control. network-observe is not one of them13:10
ogra_ah !13:10
ogra_thanks !13:10
jdstrandnp13:10
Guest72753jdstrand, I think because we're trying to detect proxy though one of electron's packages13:10
jdstrandGuest72753: that would make sense. and with that, you should plug an appropriate interface that grants that13:11
jdstrandzyga: hey, so, on its own, https://github.com/snapcore/snapd/pull/2821 doesn't seem to fix anything because the seccomp profiles are always regenerated and that means they will be regenerated by the new snapd, which means the new policy that snap-confine may not understand. You mentioned a followup PR for compatible seccomp profiles. can you talk to me about that?13:12
mupPR snapd#2821: overlord/ifacestate: setup seccomp security on startup <Critical> <Created by zyga> <https://github.com/snapcore/snapd/pull/2821>13:12
Guest72753jdstrand: I plugged network-observer as suggested by zyga, and that works, but I was wondering if the user will have to do this manually, or if there's an automated way to do this13:12
ogra_the user has to do it13:13
jdstrandGuest72753: the user will have to do it manually because network-observe grants privileged access to network information13:13
ogra_unless you use your snmap inside an all snap image (i.e. an IoT install or such)13:13
jdstrandGuest72753: a gadget snap could also do it13:13
ogra_there you coudl define the pre-plugged interfaces in the gadget snap of the image13:13
jdstrandGuest72753: you might want to read https://github.com/snapcore/snapd/wiki/Interfaces13:14
Guest72753jdstrand: thanks I did a few hours ago13:15
Guest72753trying to figure out how everything works13:15
tsdgeosMirv: should "Use eg example 1 from en blog 2016 11 16 snapping-qt-apps but with plugs: network" be "Use eg example 1 from en blog 2016 11 16 snapping-qt-apps but *without* plugs: network"13:17
jdstrandGuest72753: ah, there is a blog you might want to read. /me finds it13:17
jdstrandGuest72753: https://blog.labix.org/2016/04/22/snappy-interfaces13:17
Mirvtsdgeos: thank you13:18
Mirvtsdgeos: yes13:18
zygajdstrand: o/13:26
zygajdstrand: noted, thank you13:26
zygajdstrand: question, how would you feel if a snippet of the base declaration was in each interface?13:26
zygajdstrand: right now it's a bit spread out13:26
mupBug #1663175 changed: chroot not allowed in devmode/strict <Snappy:Invalid> <https://launchpad.net/bugs/1663175>13:28
jdstrandzyga: I like the way it is because you can see all of them in one place. it is 'the base declaration' that anyone can see and the tests are in one spot. I don't personally view it as a security backend. I also think we have much bigger fish to fry13:29
zyganot a backend, a dedicated thing13:30
zygajdstrand: right now it is another thing that everyone has to patch in a secondary file, I wanted to streamline that to just the interface file13:30
jdstrandzyga: I know what you want :) you asked my opinion :)13:31
zygajdstrand: ack, thanks13:31
zygajdstrand: I really want to write a few tools like "snap internal policy-dump" or something like that (also for other built-in things)13:32
mardypstolowski: hi! I updated my snapd with your latest changes to the iface hook branch, but now I'm getting this wehn I try to connect: http://paste.ubuntu.com/23960586/13:33
mardypstolowski: did I do something wrong when rebuilding snapd?13:34
jdstrandzyga: we do need that, but the base declaration feels different to me. it is something that snapd applies to interfaces13:34
jdstrandzyga: as opposed to something interfaces provide13:35
zygajdstrand: kind of but you see why it is connected13:35
pstolowskimardy, no, there is a problem (I think it manifests itself if you used edge before) unrelated to my branch which is being adressed today. zyga can you take a look at that pastebin and confirm?13:35
jdstrandzyga: but, can we discuss https://github.com/snapcore/snapd/pull/2821 and the followup branch. I have a lot of concerns13:35
mupPR snapd#2821: overlord/ifacestate: setup seccomp security on startup <Critical> <Created by zyga> <https://github.com/snapcore/snapd/pull/2821>13:35
jdstrandzyga: first off-- you added quatactl-- that is bad. it was never there and is now granting far more than observe to mount-observe13:36
zygapstolowski, mardy: known issue: https://bugs.launchpad.net/snapd/+bug/166248913:36
mupBug #1662489: snap-confine failed with: hsearch_r failed: No such process <snapd:In Progress by zyga> <https://launchpad.net/bugs/1662489>13:36
zygajdstrand: ah, thanks I can correct that quickly13:36
zygajdstrand: thank you for looking at the current fire, I was about to ask for your review13:36
jdstrandzyga: but I'm quite concerned about the approach and where things are going13:36
zygajdstrand: yes, let's discuss this now13:37
zygajdstrand: do you know the context? right now snapd broke everywhere on edge13:37
jdstrandyes13:37
zygaok13:37
jdstrandI discussed this at length with mvo and in fact triaged the issue to snap-confine vs policy diversion13:37
jdstrandso I'm up on it :)13:38
zygajdstrand: not sure I follow13:38
jdstrandnm13:38
jdstrandI know the issue13:38
zygajdstrand: the issue is that snapd runs snap-confine from the system, right?13:38
zygajdstrand: and that's the old snap-confine13:38
jdstrandyes13:38
jdstrandyes13:38
zygaok, just checking13:38
* jdstrand understands the issue13:38
jdstrand:)13:38
jdstrandso this is only an issue on classic13:39
jdstrandbecause on all-snaps, everything is in the os snap. you get the old stuff, or you get the new stuff13:39
zygajdstrand: it is also an issue on core if you revert13:39
zyga(rollback)13:40
ogra_yeah13:40
ogra_writable is unversioned ...13:40
jdstrand(though on all-snaps, I think there is an issue of the policy not being updated on core refresh after reboot, but that is a separate thing)13:40
pstolowskimardy, i think the bug 1662817 which is a duplicate has a workaround13:40
ogra_not a new prob ...13:40
mupBug #1662817: some snaps stop working after revert the core snap <Snappy:New> <https://launchpad.net/bugs/1662817>13:40
zygajdstrand: it's not that separate, see what I wrote on the internal channel13:40
zygajdstrand: it's a required part of the fix in my eyes13:40
jdstrandzyga: so on core, to fix revert *and* updating policy on refresh, we need a way to say 'trigger policy regeneration for these affected snaps'13:41
ogra_or have writable live in SNAP_DATA of the core snap ;)13:41
zygajdstrand: we cannot do that cause the core you revert to doesn't know it should generate profiles and the current core cannot generate old security profiles13:42
jdstrandzyga: yes, I was typing the same thing as you were :)13:42
zygajdstrand: I think it is fine if stuff is broken for a short while (e.g. rollback now breaks) but we need to plan the general fix13:42
jdstrandzyga: you can if it is designed13:42
ogra_(that would just make updates really slow since you need to copy all of writable on upgrade)13:42
zygajdstrand: right, I agree; I just mean that nothing we can do now makes old cores capable of doing this13:42
zyga(this is what I meant by a short while)13:42
jdstrandof course13:42
zygajdstrand: ok, we're in agreement13:43
jdstrandzyga: but I suggest we talk about fixing core, and then see how fixing classic falls out of that13:43
zygajdstrand: I think the right fix is to refresh profiles as I described in the card *and* run snap-confine from core13:44
zygajdstrand: that's the generic solution that will always work when it lands13:44
zygajdstrand: what I proposed now was a short-term way to unbreak edge13:44
jdstrandlet me read the card13:44
mvozyga: how will that fix the revert problem?13:44
* mvo should also read the card13:44
zygajdstrand: let's chat over a HO13:45
zygahttps://hangouts.google.com/hangouts/_/canonical.com/snappy-devel?authuser=113:45
jdstrandzyga: your approach is too heavy13:45
jdstrandespecially when you add apparmor into the mix13:45
jdstrandcause every refresh/revert will unconditionally regenerate/recompile everything13:46
jdstrandthis is not theoretical. we have to be very careful with apparmor policy regeneration on arm with lots profiles (eg, on Personal)13:47
zygajdstrand: not really13:47
zygajdstrand: we only do that if it is different13:47
ogra_yeah, we have been bitten badly by that before13:47
jdstrandzyga: 'it' is the build id which is different for every refresh, no?13:47
zygajdstrand: sorry, I'm in a hangout with mvo here; it would be easier to discuss this together13:48
zygajdstrand: having two parallel conversations is too much for my head today13:48
mardypstolowski: thanks! Do you know what are the concrete steps for restoring the seccomp profiles?13:50
zygajdstrand: we lost you13:50
pstolowskimardy, nope, sorry. they live in /var/lib/snapd/seccomp/profiles but i'm not sure if they will be re-generated if removed manually. zyga will know13:52
zygapstolowski: they will not, I will make that happen today though14:25
zygajdstrand: can you re-review and hopefully adjust the outcome on https://github.com/snapcore/snapd/pull/282114:30
mupPR snapd#2821: overlord/ifacestate: setup seccomp security on startup <Critical> <Created by zyga> <https://github.com/snapcore/snapd/pull/2821>14:30
zygajdstrand: I removed quotactl entirely14:30
didrockssergiusens: hey! Do you have any idea on how I can avoid this workaround: https://github.com/ubuntu/booth-demo-manager/blob/master/snap/plugins/bower.py#L38 ? (with side-effects :/)14:31
jdstrandmvo: ok, fyi only, merged master for seccomp-mknod and pushed. My previous merge with master was 23 hours ago. fingers continue to be crossed :)14:33
elopiowililupy: ping, are you around to help me confirm that the change lool introduced fixes your problem? https://bugs.launchpad.net/snapcraft/+bug/165817714:34
mupBug #1658177: snapcraft kernel plugin puts module and firmware under 15.04-era lib/ directory <Snapcraft:Fix Committed by lool> <https://launchpad.net/bugs/1658177>14:34
loolelopio: hi14:35
loolsergiusens, elopio: I have yet to test whether resulting kernels work as expected; I can say I fixed the layout of the resulting snaps though14:36
ogra_lool, i think ppisati tried the fix14:37
ogra_(but had other issues)14:37
elopiolool: /buffer #ubuntu-mir14:38
elopiosorry, wrong command :p14:38
* ogra_ flushes #ubuntu-mir from lool again14:39
loologra_: thanks14:41
ogra_:)14:41
elopioogra_: why is it that the official kernel snaps are not built using the snapcraft kernel plugin? Is there something you are missing from our side?14:41
ogra_elopio, yes, and archive signing key :P14:42
ogra_*an14:42
loolppisati: just saw your debug on initrd boot with new kernel snap, did you find the issue?14:42
ogra_elopio, we need the signed deb kernels for secureboot to work ...14:42
loolelopio: the main difference is that they are built from the original debs14:42
ogra_elopio, so we cant build them from source14:42
loolinstead of from source14:42
loolalbeit I thought we had a plugin for that too14:42
ogra_we have a snapcraft.yaml ansd Makefile the kernel team maintains14:43
ogra_fvor the official kernels14:43
elopioI see. It would be nice to have a test that builds the official kernel from source, just to check our plugin. And that doesn't need signature.14:44
ogra_you can surely do that as long as you dont upload them to the store under the same name14:44
elopioof course :D I'll make sure this just builds, the runner won't even have credentials.14:45
ogra_note though that we also pull in extra binaries ... like the raspberry-pi wlan firmware package on the pi kernels and linux-firmware on the generic ones14:45
elopioogra_: do you know where is the source for the debs?14:45
mupPR snapd#2820 closed: interfaces/builtin: add send/recv syscalls for upower-observe interface as required on ARM <Created by morphis> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2820>14:45
ogra_the source for the debs or for the snap builds from debs ?14:45
ogra_the git trees are on kernel.ubuntu.com if you mean that14:46
ogra_ask the kernel team for the right branch etc though ... i never get that right :PÖ14:46
elopioyes, I meant that. Thanks ogra_, I'll ask.14:47
elopioppisati: ping. Can you please tell us about the kernel issues you are still having? We are trying to make a release soon, and it would be great to have all of that fixed.14:49
sergiusensogra_: to be fair you can do the same trick that's done with the deb but with the snap instead15:01
ogra_?15:01
mupPR snapd#2813 closed: tests: filter ubuntu-core systems for authenticated find-private test <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2813>15:01
ogra_trick ?15:01
ppisatielopio: loic: with loic's patch applied to snapcraft, i can build a correct kernel snap15:03
sergiusensogra_: the signing15:03
ogra_sergiusens, there is no trick15:03
ppisatielopio: loic: now i'm fixing the config of the 96boards's snapcraft snapcraft demos, sicne it was missing some required options15:04
ogra_sergiusens, the ubuntu-archive key which only gets used during archive builds needs to be used15:04
sergiusensogra_: I was told the deb was built, intercepted or pulled out of the archive, signed and resubmitted15:04
ppisatie.g. mmc_sdhci <- no mmc on boot15:04
ogra_sergiusens, nope15:04
sergiusensogra_: that's the summary steve gave me15:04
ppisatiand apparently it's missing something else, but i think it's the ext4=m being the problem here15:04
ppisatielopio: lool: i'll send a patch to snapcraft once i'm done15:04
ogra_sergiusens, i think you think about the way it is done if you need a *different* kernel15:04
sergiusensogra_: it can still be signed with snapcraft by using an `install` scriptlet15:05
ogra_sergiusens, how ?15:05
loolppisati: ok, so board specific issues - cool15:05
loolppisati: thanks for the update15:05
ogra_sergiusens, you need *all* the binaries signed with a key you dont have access to15:05
ogra_only the archive builders can use this key15:05
ppisatielopio: BTW, we have snapcraft.yaml in our kernel tree (at least for xenial)15:06
ogra_so you need a deb built in the archive in any case ... sure you can loop that through with snapcraft somehow ... but why15:06
ppisatielopio: if you clone the xenial tree, git checkout the raspi2 or snapdragon branch15:06
ppisatielopio: you can rebuild a kernel snap from there15:06
ogra_ppisati, oh, yeah, if you use ext4=m you need to include ext4 in the initrd with a snapcraft option15:10
zygare15:10
ogra_ppisati, can you file a bug, iirc your initrd was just hanging, we can add a check for /proc/filesystems and error out15:12
ogra_that would have made this clearer and saved debugging15:12
looldidrocks: sorry, might have asked this recently already, but where's the most recent electron snap template I can hand someone?15:13
loolmorphis_: hey, would you have a gadget.yaml example showing interface connections from gadget?15:14
lool(ideally of privileged interfaces)15:14
didrockslool: I don't think we have any. I didn't tackle one myself and was told that all electron apps are different15:15
didrockslool: I guess the telegram one from sergiusens could be handy15:15
looldidrocks: oh wow really15:15
didrockssergiusens: did you see my question btw about the bower.py workaround? :)15:16
looldidrocks: hmm I dont see electron anywhere in the telegram snap, isn't it qt?15:16
lool(https://github.com/sergiusens/telegram-snap/blob/master/snapcraft.yaml)15:16
didrocksit's Qt, but I really thought it was electron-based15:17
didrocksmy bad then15:17
seb128Trevinho and flexiondotorg worked on electron examples I think15:17
seb128Trevinho, flexiondotorg, ^15:17
Trevinholool: it's all qt...15:18
Trevinholool: check this for an upstreamable version which... I already have15:18
Trevinholool: https://github.com/3v1n0/telegram-snap/15:18
loolthis is to allow someone to create a webapp snap15:18
loolbasically they have the URL/HTML and they need to ship a runtime around it15:18
zygajdstrand: I've updated the PR as instructed15:19
ogra_lool, why not https://github.com/fcole90/fcole-hexgl-webapp15:19
ogra_(uses ubuntu-app-platform though)15:19
mupPR snapd#2815 closed: release: don't force devmode on LinuxMint "serena" <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2815>15:19
morphis_lool: what do you mean by that, a gadget with applications using plugs/slots or a gadget causing plugs/slot of certain snaps automatically connected?15:20
loolmorphis_: a gadget preinstalling snaps and connecting them to the right plugs/slots15:21
morphis_lool: you can't do both from a gadget15:23
morphis_preinstalling snaps is a thing ubuntu-image/snap prepare-image does by setting up the seed.yaml in your image15:23
lool(in old snappys we used to be able to force certain snaps to remain installed, might be where my confusion comes from)15:24
loolmorphis_: so I can preinstall snaps in my ubuntu-image call, and I can pre-connect them in the gadget yaml?15:25
morphis_that is what you do via an validation assertion15:25
morphis_no, no pre-connecitng in gadget.yaml15:25
morphis_that is handled via snap-declaration15:25
loolso it has to be per snap15:25
morphis_yes15:25
loolbut it could potentially be in the image only and not the store15:25
morphis_sure15:26
morphis_the image is build with a set of assertions and a set of .snap files15:26
loolI guess we can add authorities to the image15:26
looland sign the snap-declaration by whoever15:26
morphis_lool: not sure about this, right now the assertions are signed by canonical15:28
loolhttps://github.com/3v1n0/electron-quick-start-snap/blob/master/snapcraft.yaml looks like a good electrn snap template15:28
morphis_pedronis can comment on that maybe who is able to sign them15:28
loolmorphis_: ok15:28
loolI think if it's per snap it can probably come from the store anyway15:28
looleven if it's preloaded15:28
Trevinholool: I've probably to update it though15:29
TrevinhoI've not touched it for some time15:29
morphis_but as they express some kind of critical policy I guess its only the device maker or the store instance (canonical)15:29
Trevinhoas per https://github.com/3v1n0/electron-quick-start-snap/issues/1 ...15:29
Trevinhoprobably the launcher should be better to be desktop-gtk2 though,15:31
ppisatiogra_: it was more than a single issue15:32
ogra_ppisati, well, but missing ext4 is definitely one we can catch15:33
ogra_and print a pretty message for you so you dont need to dig15:33
ppisatiogra_: the hang was due to missing mmc, it couldn't find it so it was hanging in "wait-for-root" - there are 3 calls, one in fixrtc, another in resize and the third was in the main ubuntu-core fs logic15:33
ppisatithen there was ext415:33
ppisatiand now i'm having a15:33
=== verterok` is now known as verterok
ogra_but wait-for-root has a timeout15:33
ogra_it should have returned after 120sec15:33
Trevinholool: actually 've just thested that exampla and still works, so... yeah, you can start from that if needed15:34
ogra_or 180 or so15:34
ppisati"can't mount loop device: no space left on device" and i think it's the devloop min count too low ( = 8 atm)15:34
loolTrevinho: yeah, I actually think I handed it to some folks who told me it was working, wasn't sure it was this exact one15:34
ogra_wow, never seen that one15:34
ppisatiogra_: yes, but there are 3 in a row, so if you don't wait long enough, you never land in busybox15:34
Trevinholool: that is the one I did long time ago, I've updated it some time ago to use desktop launchers, but it should work15:34
ogra_yeah15:35
ppisatiogra_: i'm piling up config changes for the snapcraft kernel pluigin example15:35
ogra_i guess 180sec are also quite long ...15:35
ogra_even a spinning disk should be ready in less than 1min15:35
ppisatii put some prints inside initrd scripts to see where it was hanging15:35
Blu2_Out of curiosity, are (graphics) drivers snappable?15:38
ogra_Blu2_, tricky since they usually have a kernel side component ...15:41
looljdstrand: do we have an official position on a realtime interface for pthread_setschedparam()?15:43
looloutside of "just do it and that's privileged and needs a snap-declaration"15:44
ogra_Blu2_, but i.e. in case of a whole image it is easily possible ... i.e. the RPi images we have ship the vc4 driver in the kernel snap and snaps that include gallium can use DRM/KMS and GLES15:44
ogra_so it depends a bit on the context the snap is used in15:45
Blu2_hm.. would be awesome to use for example Open drivers for the desktop and proprietary for specific apps15:46
ogra_if that would be possible from a driver POV ... then you could already do it with debs :)15:46
ogra_if certain HW is driven by an open driver you wont be able to use the prop. one at the same time with it ...15:47
ogra_thats not snap specific though15:47
Blu2_Having multiple drivers installed and only grant one access to a snap or something15:47
ogra_just a limitation of HW and drivers15:47
flexiondotorgseb128 Yes, I'm working on electron stuff. They are a bit variable in terms of what is required.15:47
Blu2_I don't know, I'm not too knowledgable about this topic15:48
flexiondotorgelectron is still using GTK2+ despite lots of requests to move to GTK3+15:48
ogra_Blbut if the HW is already being used by one of them, how do you make the snap use the other ?15:48
loolBlu2_: what you can do is have two kernels snaps and chose one or the other15:49
ogra_yeah, but not dynamically15:49
loolor a kernel snap with a config/cli to swap, likely with reboot15:49
ogra_that isnt how garphics hardware works15:49
ogra_*graphics too15:49
naccright the hw (lowest layer) seems like it wouldn't support non-exclusive usage15:50
naccat least that i know of15:50
ogra_yep15:50
ogra_i guess you could make it work in SW if you had access to the source of the proprietary driver ... you could split out the common parts and make the higher level switchable ...15:51
ogra_but then you have two open drivers in the end :)15:52
ogra_(or two closed ones and a vendior that sues you :P )15:52
ogra_(because you broke your NDA)15:52
Blu2_Hopefully Valve and the community push open drivers further15:53
Blu2_btw, no steam snap yet :P15:53
ogra_go ahead !15:53
* ogra_ would use it 15:53
elopiojoc: ping. The plainbox provider snap fails to build now. https://travis-ci.org/elopio/snapcraft-de-noche/jobs/20000979915:54
elopiodo you know about that?15:54
Blu2_Maybe I'll give a try on the upcoming weekends15:55
mupPR snapd#2823 opened: interface/seccomp: sort combined snippets <Created by zyga> <https://github.com/snapcore/snapd/pull/2823>15:55
jocelopio: hi, sorry i've been away for a week, i saw i had a few more comments so i'll check it all15:55
jdstrandlool: pthread_setschedparam isn't a syscall so I'm going to assume that it is using varous sched_* syscalls. 2.23 will allow snaps to modify the scheduler for the calling process. process-control added several syscalls for adjust the scheduler for anything. so, it is available in process-control when you need more than what is in the template15:57
looljdstrand: yes, it's sched_set_params syscall I think15:59
jdstrandlool: yes, that was one that was added to template and process-control15:59
jdstrand(template for limited use, process-control for anything)15:59
elopioogra_: this one is for you: https://travis-ci.org/elopio/snapcraft-de-noche/jobs/200009811 We will make sure that snapcraft master builds your kernels every night.16:00
looljdstrand: I dont understand the "added as a template" part16:00
loolI see it in interfaces/seccomp/template.go16:00
looland in interfaces/builtin/process_control.go16:00
jdstrandlool: you can use sched_setparam(0, ...) in default template, sched_setparam(anything, ...) in process-control16:00
looloh ok16:01
loolI need to find what value RR is16:01
elopiojoc: hey, but this is not related to your branch :) It's the one in git.launchpad.net/~checkbox-dev/plainbox-provider-snappy16:01
jdstrandlool: again, this is 2.2316:01
loolack16:01
ryebotIs there any interface that will give a snap access to /proc/self/cgroup?16:02
ogra_elopio, sexy !16:03
mupPR snapcraft#1128 opened:  tests: support bzr branches for external tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1128>16:04
jocelopio: aah got you, didn't read that closely enough :)16:05
jocelopio: we don't maintain the packaging repo you are using anymore I'm afraid, we now have a dedicated project here: https://code.launchpad.net/checkbox-snappy16:06
elopiojoc: oh, good. I'll update the script. I think I will just build your master branch nightly, unless you think it would be good to build the others too.16:07
elopioppisati: sorry, I was in a meeting and missed your pings. I'm scrolling back and reading...16:08
jocelopio: well we are building master/edge and beta on every landing, and now have release flow for candiate and stable, so up to you16:09
ppisatilool: there's a bug in the "moving modules and firmare around" fix16:10
ppisatilool: http://paste.ubuntu.com/23961221/ - there are two fw directories now16:11
ppisatielopio: our xenial kernel tree contains a snapcraft.yaml, checkout raspi2 or snapdragon and it should be there16:11
ppisatielopio: so you can rebuild a kernel.snap from there, althougjh it will be slightly different from what we have in the store16:12
ppisatielopio: but it might be a good test for the kernel pluging16:12
elopioppisati: I see it \o/ http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/snapcraft.yaml Just what I was missing.16:14
ogra_ppisati, are you sure thats not from inside the dragonboard fw tarball ?16:14
elopioppisati: the default branch is for the pc image?16:14
ogra_iirc you unpack a tarball at snap build tiome in this case16:15
ppisatielopio: yep16:15
ppisatiogra_: yep, that come sfrom the firmware tarball, but if we move the /lib/firmware, we should move everything16:15
ppisatiogra_: else wifi won't work16:16
ogra_yes, but thats nothing the plugin can handle ... should it ?16:16
ogra_it will just untar16:16
ppisatiogra_: yep, what i mean16:16
ppisatiogra_: before we moved /lib/fw to /fw everything was in one place16:16
ppisatiogra_: ah16:16
ppisati...16:16
ppisatidestination: lib/firmware16:17
ppisatii didn't see that16:17
ppisatif*ck me16:17
ogra_:)16:17
ppisatiok16:17
elopio:D16:17
ppisatihttps://github.com/snapcore/snapcraft/pull/112916:17
mupPR snapcraft#1129: 96boards: fix the dragonboard example <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1129>16:17
ppisatithis fixes the dragonboard example16:18
ppisatimines the fw destination that i just noticed16:18
ppisati*minus16:18
mupPR snapcraft#1129 opened: 96boards: fix the dragonboard example <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1129>16:19
elopioogra_: before I forget to remind you, tomorrow 16UTC, bring your nice clothes.16:21
ogra_yeah, i'll iron them !16:21
elopioyou are going the extra mile! so nice of you.16:22
mupBug #1663303 opened: Running snapcraft on Ubuntu 14.04  fails with a traceback <isv> <Snappy:New> <https://launchpad.net/bugs/1663303>16:29
Cynervawe're trying to snap kubelet and hitting a lot of permissions problems, anyone available to look at these? https://gist.github.com/Cynerva/9150f379cdf1d41aac9ae233597c1f6416:48
Cynervalotta cgroup stuff, and a couple others16:49
Cynervai'm not seeing any obvious interfaces we can pull in16:49
Cynervaany assistance would be appreciated :)16:49
sborovkovHello, did anyone had an experience building a snap that's uysing python and girepository? I added python3-gi to stage-packages. But application using it fails at runtime16:55
kyrofaCynerva, are you familiar with the snappy-debug tool?17:09
elopiosborovkov: what's your error?17:27
sborovkovelopio: ImportError: cannot import name GLib, introspection typelib not found17:52
sborovkovelopio: and this ImportError: cannot import name Gio, introspection typelib not found17:52
sborovkovelopio: not sure what it's missing, I see that it has $SNAP/usr/lib/python3/dist-packages/gi17:53
zygaCynerva: today is a bad day for me but come back tomorrow, I'll help you out17:56
Cynervakyrofa: i haven't tried snappy-debug, but i see it in the docs now - thanks!17:58
Cynervazyga: will do, thanks17:58
zygamwhudson: hey, around? I have a question18:01
kyrofaCynerva, no problem, that will hopefully give you more helpful errors18:03
mupPR snapd#2821 closed: overlord/ifacestate: setup seccomp security on startup <Critical> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2821>18:10
mupPR snapd#2823 closed: interface/seccomp: sort combined snippets <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2823>18:10
King_InuYashasergiusens: around?18:12
elopiosborovkov: can't you install glib from the deb?18:14
sborovkovelopio: error is that introspection typelib is not found though? And I added python3-gi to stage-packages and it's installed.  I also added libglib2.0 to stage packages as well...18:16
kalikianaHrm, I wish Unity didn't remove snaps whenever they're updated. No idea, though, if that's an issue with Unity or what snapd might be doing with the files.18:17
kalikianas/snaps/launchers of snaps/18:18
kyrofakalikiana, I expect snapd is removing them when disabling, and generating new ones when activating18:18
kyrofakalikiana, if you run `sudo snap disable <snap name>` do they also disappear?18:18
kalikianakyrofa: Yep18:19
elopiosborovkov: I mentioned the debs because I remember something similar when I mixed debs and pip packages. But if you are using only debs, then scratch that.18:19
kyrofakalikiana, please report that18:20
kalikianaWill do18:20
elopiosborovkov: so, I don't know. Feel free to share the snapcraft.yaml with us. If you think this is something that snapcraft is doing wrong, please file a bug in bugs.launchpad.net/snapcraft18:20
kyrofaIt might make sense to remove them on disable, but not upgrade18:20
sergiusensKing_InuYasha: yes18:21
sborovkovelopio: I actually found similar question https://www.mail-archive.com/snapcraft@lists.snapcraft.io/msg01513.html18:22
King_InuYashasergiusens: did you have a chance to take a crack at refactoring the stage/build-packages backend over the weekend (you briefly mentioned to me last week you were going to take a stab at it)18:22
sborovkovelopio: going to try and see if that helps.18:22
kyrofajdstrand, how would you feel about making ping available in the default profile?18:22
sergiusensKing_InuYasha: I am going to get it signed off for next week as an official sprint task (yeah we are doing agile now :-/)18:22
sergiusensKing_InuYasha: I tried to spike it this week but ran out of time18:22
King_InuYashaoh dear :(18:23
sergiusensit is light weight, but still don't like it18:23
* King_InuYasha is not much of a fan of agile/scrum/sprint things18:23
kalikianakyrofa: Seems there's bug 1646912 for it already18:23
mupBug #1646912: Snaps disapper from the launcher after an update <Snappy:New> <https://launchpad.net/bugs/1646912>18:23
sergiusensme neither18:23
King_InuYashaI'm one of those "informally agile" people18:23
King_InuYashathe moment you're putting fixed process cycles, it's not really "agile" in my opinion18:23
mupBug #1646912 changed: Snaps disapper from the launcher after an update <snapd:New> <https://launchpad.net/bugs/1646912>18:27
kalikianaogra_: FYI seems there's a snapcraft snap in the store now (oddly enough not the one I wrote) and bug 1663303 is kind of answering my question18:32
mupBug #1663303: Running snapcraft on Ubuntu 14.04  fails with a traceback <isv> <Snappy:New> <https://launchpad.net/bugs/1663303>18:32
kalikianaAlthough I don't know how "sudo apt install snapcraft --classic --edge" is supposed to work18:33
elopiosborovkov: interesting.18:47
ogra_kalikiana, ah !18:47
ogra_ssweeny, bah ... i did miss that your second case option misses the ;;18:48
* ogra_ does a quick fix 18:48
ssweenyogra_: I've seen the ;; left out after an exit before18:48
ssweenyI thought it was valid18:48
kalikianafwiw even an actual "snap install --classic --edge" installs fine but doesn't run on Xenial either18:49
ogra_ssweeny, nope, isnt18:49
ogra_but at aleast all bits are there now18:49
ssweenyogra_: ah, my apologies then18:49
ogra_well, i reviewed it :P no need to apologize18:49
kyrofaHuh... I have a bug report some someone who seems to be unable to resolve domain names from within the snap. Has anyone run into that?18:53
ogra_nope18:54
zygakyrofa: yes18:55
zygakyrofa: on 14.0418:55
ogra_ah18:55
zygakyrofa: is that a classic confinement snap?18:55
kyrofazyga, no, strict, and on 16.1018:56
kyrofaMaybe it has something to do with 16.10, I'll fire up a VM18:56
mupPR snapd#2824 opened: overlord: make seeding work also on classic, optionally <Created by pedronis> <https://github.com/snapcore/snapd/pull/2824>18:57
zygakyrofa: then no18:58
zygakyrofa: strace would be useful18:58
kyrofazyga, unfortunately that requires bundling that in the snap, which I have not :P18:58
kyrofazyga, can't even ping. Figuring out the issue in the first place was awful18:58
kyrofaStill not completely sure that's the issue18:59
zygakyrofa: building what?18:59
zygakyrofa: just nsenter and strace ;)18:59
kyrofazyga, wait...18:59
kyrofaReally?18:59
zygakyrofa: strace is at /var/lib/snapd/hostfs/usr/bin/strace19:00
ogra_alll this new fangled stuff19:00
ogra_nsenter ... tsk19:00
kyrofaogra_, I didn't know about nsenter either :P19:00
ogra_yeah19:00
ogra_zyga keeps all the secrets !19:00
zygaogra_: job security19:01
zygaI just have to stop spilling them on irc :)19:01
kyrofasnapd hides the magic, which is cool. I just wish we _also_ hid the magical debug tools19:01
kyrofaHahaha19:02
zygaogra_, kyrofa: nsenter -m/run/snapd/ns/$SNAP_NAME.mnt19:02
zygajust don't add space between -m and the path19:02
zygaannoging thing19:02
zygathat runs without confinement19:02
ogra_stop spilling !19:02
zygaif you want confinement just snap run --shell19:02
zygaand then fire away19:02
zygayou will need to copy strace somewhere first19:02
zygabut it will work19:02
ogra_now all the hackers know our backdoors !19:02
zygasame with gdb19:02
zygaogra_: nah, WE HAVE FIREWALL ;)19:03
ogra_great FIREWALL ?19:03
zygadon't you watch TV19:03
zygait stops _everything_19:03
zygabased on the evil bit19:03
ogra_lol19:03
kyrofazyga, I wish technology had more boring names for things. Then tv shows would actually have to make up the NAMES for the technology they fabricate as well19:04
kyrofazyga, I want to hear one script that mentions iptables19:05
* ogra_ is slightly scrated by TV recently ... there is that reality TV clown in the news all the time ... i stream though :)19:06
zygakyrofa: isn't that old-school, iptables got replaced by that ... thing19:06
jdstrandkyrofa: that is a long standing discussion point. it mostly had to do with the fact that it is setuid, therefore we had to allow certain things in the profile that weren't appropriate for the default profile. then there was setuid-less ping made possible by upstream kernel, but it needs distro support (tyhicks would have to comment). I was going to see if a combination of apparmor child profile and seccomp arg filtering might make it possible. that 19:06
ogra_*scared19:06
kyrofazyga, you must be talking about ip6tables19:07
kyrofazyga, in all seriousness, are you talking about ufw? It's just a pretty wrapper19:08
jdstrandactually, I think mr robot may have mentioned iptables19:08
kyrofajdstrand, no way!19:08
jdstrandit may have just been on the screen, I can't remember19:08
jdstrandwhat would be cool is if mr robot used ufw :)19:09
kyrofajdstrand, and yeah, ping makes sense. I would also be happy with getent19:09
kyrofaI love ufw19:10
tyhicksthe setuid-less ping support has been in the kernel for a long time and support for the kernel feature was recently merged in upstream iputils19:10
jdstrandis getent missing? I think we could at least give it with network19:10
kyrofajdstrand, seems to be19:10
jdstrandor maybe it too as a child profile, but I don't want too many child profiles. I could to sibling profiles...19:11
tyhicksthere's a little bit of distro work needed to enable it but the more important piece of work to do is to understand what old features of setuid ping would regress19:11
jdstrandanyway, I'll think about it19:11
tyhickssetuid-less ping doesn't support everything19:11
zygakyrofa: no, there's something more recent in the kernel19:12
jdstrandtyhicks: sorta thinking snapd could ship profile snap.ping {} # cool profile name!19:12
zygakyrofa: something more generic19:12
mwhudsonzyga: hello19:12
zygamwhudson: hey!19:12
jdstrandtyhicks: then network could Px -> snap.ping19:12
zygamwhudson: I think my question has resolved itself, just bad reading on my part, I incorrectly assumed Elf64_Word is a uint64_t,19:13
jdstrandtyhicks: and maybe, ust maybe I can do enough with seccomp arg filtering to make it work19:13
mwhudsonzyga: ah haha19:13
jdstrands/ust/just/19:13
zygamwhudson: silly elf defined that as uint32_t *because THAT's why*19:13
tyhicksjdstrand: do you think spending them time to do that work would be better than enabling setuid-less ping in the distro?19:13
tyhickss/them time/the time/19:13
jdstrandanyway, it is something I plan to play with whenlooking at policy for setuid with @euid and @ruid19:14
jdstrandtyhicks: well, the problem is that while it would be fantastic to have setuid ping in Ubuntu, other distros won't have it19:14
jdstrandtyhicks: but, it would be in our core. I guess we'd just need a new enough kernel. that isn't something new for snappy...19:15
tyhicksjdstrand: agreed but no other distros are using confinement19:15
tyhicksoh yeah, it would be in our core snap19:15
jdstrandtyhicks: today. I suspect by series 18 that will change (pending upstreaming work). Debian and suse should be able to just get it19:16
zygajdstrand: it would be nice to have ping without the +s bit19:16
tyhickstrue19:16
jdstrandzyga: it would19:16
zygajdstrand: maybe just with the capability for the raw socket or maybe the special ping-something-socket (forgot)19:16
jdstrandwe could supply an alternate ping too, but people would have to know to use it19:17
tyhicksjdstrand: on other distros that haven't enabled unpriv ping themselves, snapd would have to write to the special sysctl that sets up the guid's that are allowed to use the unpriv ping19:17
jdstrandon core we could update-alternatives it19:17
jdstrandanyway, lots of options19:17
tyhicksyeah19:17
jdstrandtyhicks: ah yes, I forgot that. that is semi-difficult, though possible with snap-confine understanding thing like @ruid and @euid19:18
jdstrandthings*19:18
* tyhicks nods19:18
zygajdstrand: hmm, yeah19:19
tyhickszyga: fyi, it is just a special socket(2) domain although I can't remember the name of it right now19:19
zygatyhicks: right, I recall something similar19:20
zygajust-for-ping19:20
jdstrandkyrofa: I'm sure you know this, but ping is in network-observe if you are blocked19:27
kyrofajdstrand, oh no, not blocked, I'm sorry if I gave the impression19:28
jdstrandyou didn't, I just wanted to make sure you weren't19:28
kyrofajdstrand, I was trying to figure out what was wrong with someone else's system running my snap, and I realized I had no network debugging facilities!19:28
kyrofajdstrand, it seems like their DNS isn't working from within the snap, so I'm investigating that on my own now, hopefully I can duplicate19:29
sborovkovelopio: yeah that export helped. Also had to export PYTHONPATH for some reason with path to the dir it install girepository to (for some reason it's in a separate directory from all other python packages but whatever).19:31
sborovkovHi, what's the policy for naming dbus interfaces on core and on classic? I am getting this on core g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.36" is not allowed to own the service "org.screenly.playlist" due to security policies in the configuration file19:33
jdstrandsborovkov: use the "dbus" interface. see https://github.com/snapcore/snapd/wiki/Interfaces#dbus19:34
jdstrandsborovkov: you'll want to:19:35
jdstrandslots:19:35
jdstrand  dbus:19:35
sborovkovjdstrand: yeah, but I am in devmode. Seems like I am being prevented from registering this on the system bus by some policy. So I was wondering what's the policy. And what's the policy on the core as we are just in process of migrating to core.19:35
jdstrand    name: org.screenly19:36
jdstrand    bus: system19:36
sborovkovjdstrand: thanks, and this would help me in devmode as well?19:37
jdstrandsborovkov: are you using 'bus: session' or bus: system' in your yaml? also, is it a session or system service?19:37
sborovkovjdstrand: I was not using anything, just trying to get it running in devmode first. Hmm, we just have daemon: simple so might be that I should register on a session bus? Sorry, last time I was using dbus was like 5 years ago and back then I did not expose any interfaces :-)19:38
DedSecquick question, so i have snap created for rclone but iam trying to have my launchpad auto build use the classic containment so rclone can write to disk for the config files located in the home directory.  but as of right now Launchpad's auto build system wont even compile the snap if i use classic instead of strict or devmode19:39
jdstrandsborovkov: ok, if this is using 'daemon: simple', then you are running as root. that implies a system service, so you should use 'bus: system'19:39
jdstrandsborovkov: with devmode, you still need to specify the interface because the interface is what modifies the dbus bus policy19:39
jdstrandsborovkov: so while apparmor would allow it in devmode (it allows everything), dbus-daemon is still going to deny it. dbus-daemon has no concept of devmode, so you need to specify the interfac ein your yaml19:40
* jdstrand updates the wiki for that point19:41
jdstrandsborovkov: fyi, I updated https://github.com/snapcore/snapd/wiki/Interfaces#dbus for the devmode with system bus case19:46
sborovkovjdstrand: understood thanks19:47
sergiusensslangasek: hey, we added a new feature (plugin) in snapcraft that fails on zesty and it seems to be related to Qt itself and not snapcraft (https://github.com/snapcore/snapcraft/pull/1127). We are still running yakkety-armhf to verify this but I wanted to know what our options were19:51
mupPR snapcraft#1127: Release changelog for 2.27 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1127>19:51
sergiusensoh great, the yakkety one timed out... :-/19:52
sborovkovjdstrand: I did not use not auto-connected interfaces before. So do I need to connect my snap to core:dbus after installation to make it work?19:56
jdstrandsborovkov: actually, no. if you read the page you'll see that the slot implementation uses 'slots' to provide the interface to other snaps19:58
jdstrandsborovkov: the slot side policy for the dbus snap allows you to bind to the well-known name without have to use snap connect19:58
jdstrandhaving*19:58
sborovkovjdstrand: ok, understood. was confused about that.19:58
mupPR snapd#2825 opened: osutil/build_id: add package for reading Build-ID <Created by zyga> <https://github.com/snapcore/snapd/pull/2825>19:59
jdstrandsborovkov: a client snap that uses:19:59
jdstrandplugs:19:59
jdstrand  screenly:19:59
jdstrand    interface: dbus19:59
jdstrand    bus: system19:59
zygamwhudson: would you have a moment to review the build_id branch ^^19:59
jdstrand    name: com.screenly19:59
jdstrandsborovkov: would need to 'snap connect foo:screenly screenly:dbus'20:00
jdstrandsborovkov: which allows 'foo' to talk to your screenly service20:00
sborovkovjdstrand: but that's not needed if both services are inside the same snap?20:00
jdstrandsborovkov: with 2.23, no20:01
mupPR snapd#2707 closed: overlord/snapstate: prepare for using snap-update-ns <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2707>20:02
mupPR snapd#2776 closed: cmd: use per-snap mount profile to populate the mount namespace <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2776>20:02
sborovkovjdstrand: what if I wanted to make a call to dbus interface that is exposed by service not run as a snap? is that possible with this security implementation?20:03
jdstrandsborovkov: you'd have to be more specific. dbus is fully mediated by snaps and, like files, you need to use the proper interfaces to allow talking to the system dbus services or the services of other snaps20:04
sborovkovjdstrand: alright, understood. and if I have snapd 2.21 I need to use plugs:... code if client and server are both inside the same snap?20:05
jdstrandsborovkov: yes, you would need to plugs the slot you are providing. that is the normal case, but as it happens with dbus, 2.23 added a rule that says "any command within the snap can talk to any other command in the snap over dbus"20:07
jdstrand(caveat being the snap needs to use dbus interface or similar to bind to a well-known name)20:08
sborovkovjdstrand: thanks for assistance and have a good day :)20:08
jdstrandsborovkov: you too :)20:08
DedSecso iam kind of stuck with this snap i created for rclone,  rclone uses an .rclone.conf file located in an users home directory be deafult, but whenever i try to configure an remote cloud service with rclone, i get  2017/02/09 20:14:27 Failed to save config file: open /root/.rclone.conf: permission denied.  here is what iam using currently with launchbuild to20:19
DedSecautomaitcally build and upload https://github.com/Dedsec1/rclone/blob/master/snapcraft.yaml20:19
DedSeci meant launchpad not launchbuild lol20:19
zygajdstrand: can you please add this to your queue: https://github.com/snapcore/snapd/pull/2775/files20:25
mupPR snapd#2775: cmd: add functions to load/save fstab-like files <Created by zyga> <https://github.com/snapcore/snapd/pull/2775>20:25
zygajdstrand: it's for snap-update-ns, not setuid critical20:25
slangaseksergiusens: what are you looking for options on?  are you asking about releasing the sru before pushing to zesty-proposed?20:27
jdstrandzyga: added to queue. it won't be today though20:28
kyrofajdstrand, if you have a minute, I could use some advice20:29
kyrofajdstrand, I have a user of the nextcloud snap (strictly confined) on 16.10 who seems to have DNS issues only in the snap. I've reached that conclusion using only these tests: http://pastebin.ubuntu.com/23962576/20:30
kyrofajdstrand, do you agree with that conclusion?20:30
jdstrandkyrofa: the tracebacks at line 14 and 18 indicate something unrelated to dns. I'm not convinced that the traceback at 22 is dns20:41
jdstrandkyrofa: it could be, but it might not be20:42
jdstrandkyrofa: (ie, it could be a bad error message)20:42
kyrofajdstrand, how would you explain how the traceback at 44 seems to have gotten out, then?20:42
kyrofai.e. if it wasn't DNS-related, wouldn't it have a similar issue?20:43
jdstrandkyrofa: what if you stage-packages bind9-host and use 'host acme-staging.api.letsencrypt.org'?20:43
kyrofajdstrand, I guess I could host that on people.canonical and have him give it a try20:44
jdstrandkyrofa: there are no security denials?20:45
kyrofajdstrand, not unusual ones anyway (/proc/<pid>/mounts)20:45
kyrofaI get those as well and it works fine for me20:45
jdstrandkyrofa: it might be interesting to see the contents of /etc/resolv.conf and friends in the snap and outside20:45
mwhudsonzyga: looking20:46
jdstrandkyrofa: since you mentioned 16.10, that implies classic vs all-snaps since we have no all-snaps 16.10 images. is this correct?20:46
kyrofajdstrand, indeed20:46
jdstrandkyrofa: again, sure you know this, but the mounts stuff would go away if plug mount-observe20:47
kyrofajdstrand, yeah it doesn't actually seem to hurt anything, so I've left that off20:47
* jdstrand nods20:48
jdstrandit is usually harmless20:48
=== JanC is now known as Guest72742
=== JanC_ is now known as JanC
kyrofajdstrand, alright thanks for giving me a few more directions... I wasn't sure where to go next there20:49
kyrofaI hate debugging stuff that I can't duplicate20:49
zygamwhudson: thanks!20:58
zygajdstrand: thanks, that's all right20:58
mupPR snapd#2826 opened: overlord: optional device registration and gadget support <Created by pedronis> <https://github.com/snapcore/snapd/pull/2826>20:59
mterryjdstrand: I'm trying to test all the corners of the unity8 plug interface, and I'm having a hard time understanding why I'm seeing an apparmor denial: http://pastebin.ubuntu.com/23962778/21:07
jdstrandmterry: where did you put that rule? did you reload the apparmor profile?21:19
mterrythat rule is from the /var/lib/snapd/apparmor/ file21:20
jdstrandmterry: which one?21:20
mterry /var/lib/snapd/apparmor/profiles/snap.webbrowser-app.webbrowser-app21:20
mterryI thought it was reloaded -- let me reconnect interface and restart apps21:21
jdstrandmterry: ok, if you are reconnecting and stuff, it blows away custom rules21:21
* mterry does some testing21:22
jdstrandmterry: the rule in the paste is correct for the 2nd denial21:23
zygajjohansen: hey, do you know when can we expect the kernel with your fixes out in the wild (in ubuntu)?21:25
jjohansenzyga: 2 weeks21:25
jjohansenthe kernel has a 3 week cadence21:26
jjohansenunless you are talking zesty, and then who knows, it could be sooner21:27
mupBug #1545871 changed: Be able to query with multiple terms <Click Package Index:New> <snapd:Triaged by chipaca> <https://launchpad.net/bugs/1545871>21:30
mterryjdstrand: ok yeah I was just being dumb -- thanks21:31
jdstrandmterry: np. it isn't obvious that changes are blown away on enable/disable/refresh/etc21:32
zygajjohansen: thanks21:38
mupPR snapcraft#1130 opened: catkin plugin: produce build-ready staging area <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1130>21:38
mupPR snapd#2814 closed: cmd: add helpers for working with mount/umount commands <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2814>21:38
mupPR snapd#2827 opened: cmd: add helpers for mounting / unmounting <Created by zyga> <https://github.com/snapcore/snapd/pull/2827>21:38
zygajdstrand: please add this to your queue: perhaps before the mount entry (and it's shorter): https://github.com/snapcore/snapd/pull/282721:40
mupPR snapd#2827: cmd: add helpers for mounting / unmounting <Created by zyga> <https://github.com/snapcore/snapd/pull/2827>21:40
DedSecanyone know if launchpad supports snap auto build with an snap using confinement: classic?21:47
jdstrandzyga: added21:50
mupPR snapcraft#1131 opened: lifecycle: hardcode test_core_snap's PATH <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1131>22:08
kyrofaDedSec, not yet, but it will in the next snapcraft release (early next week)22:08
DedSecoh cool22:18
DedSecbut for now i can just build it manually and push when needed i guess22:19
kyrofaDedSec, indeed22:20
kyrofaDedSec, keep an eye out for the snapcraft 2.27 release announcement; you'll know to try again22:21
DedSecgotcha22:26
DedSeci mean, iam pretty certain i can get rclone to work fully if i can just get the home plug to allow it to read and write an .conf file to an users home directory22:27
lutostagif anybody can help, I've having trouble with launchpad building snaps for me on anything > xenial b/c of not being able to verify the gpg key... "NO_PUBKEY F1831DDAFC42E99D" https://code.launchpad.net/~lutostag/+snap/easy2fa/+build/21077/+files/buildlog_snap_ubuntu_yakkety_amd64_easy2fa_BUILDING.txt.gz22:59
kyrofalutostag, we don't recommend doing that anyway-- we don't have a core snap that corresponds to anything other than xenial23:00
lutostaghmm, so if I want to snap with some stage packages > xenial, should I make a ppa for them instead?23:01
kyrofalutostag, that's one way. Another would be to build them as another part23:04
lutostagI thought someone might say that... ;)23:05
kyrofalutostag, there are a few issues here. One is that you'll be building with a newer libc than the one on which you'll be running23:05
kyrofalutostag, another is that snapcraft uses the core snap corresponding to the release on which you're building to be smart and strip out libraries it knows are included in the core snap. But since there is no yakkety core snap, it won't remove anything23:06
lutostagkyrofa: ah, that's why I get the warnings for 'No libraries to exclude from this release', was curious about that23:11
lutostag(when built locally)23:11
kyrofalutostag, yep, that's it23:11
lutostagkyrofa: ok, I'll see if I can build the prereqs as a part, thanks23:14
kyrofalutostag, no problem. Give a shout if you need some help23:15
snapsterAnyone used bluez snap?23:55

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