/srv/irclogs.ubuntu.com/2017/04/03/#snappy.txt

zygagood morning06:54
mvohey pstolowski! I'm keen to land #3119 (once tests are green). I assume the API is alreaady agreed on with niemeyer? i.e. the high level part does not need review?07:25
zygahey mvo07:26
pstolowskimvo, hey! thanks for looking at it. well, it was briefly discussed long time ago. I think niemeyer may still want to take one more look at it07:28
JamieBennetthey jibel, how did testing snapd 2.23.6 go last week, I didn't hear anything back.07:29
mvopstolowski: ok, then I will wait with the merge07:32
mvohey zyga!07:32
jibelJamieBennett, we had some tests to re-run due to the issue with the kernel in candidate, but everything should be ok by now. I'm checking the results07:35
fgimenezhey mvo good morning :) now that we have the expect snap in the staging store i'm preparing a branch for enabling the tests that use it and were disabled for ubuntu-core systems, these are the initial results with some errors http://paste.ubuntu.com/24305344/ could you please take a look when you have a moment?07:45
zygafgimenez: I think I have a branch like that ...07:46
zygahttps://github.com/snapcore/snapd/pull/306307:46
mupPR snapd#3063: tests: re-enable tests for /dev/pts on core <Created by zyga> <https://github.com/snapcore/snapd/pull/3063>07:46
zygafgimenez: feel free to take it :)07:47
fgimenezzyga: thanks! in my case we actually install the expect snap, this is the current wip https://github.com/snapcore/snapd/compare/master...fgimenez:expect-snap?expand=107:49
mvofgimenez: thanks, just looked over it and it looks like it needs more investigation. the expect output seems to be slightly different :/ ?07:50
zygafgimenez: right, I my branch didn't have the expect snap07:51
fgimenezmvo: yep, in some cases it seems to wait for more input, looking into it right now, you can reproduce with "SPREAD_REMOTE_STORE=staging spread -v ..."07:52
morphisSon_Goku: great work on getting all the bodhi requests up for snapd!07:58
morphiszyga: you have some time testing snapd on fedora 24/25/26 in the next days?07:58
morphisSon_Goku, zyga: would like to send out a call-for-testing on forum.snapcraft.io soon, what do you guys think?07:59
zygamorphis: yes08:00
morphisgreat!08:00
fgimenezmvo: superlow priority but we are getting errors in the 2.21 -> edge reexec scenario about missing dependencies https://travis-ci.org/snapcore/spread-cron/builds/216619076#L376 in this case we get snapd from a ppa but i get the same error getting it from https://launchpad.net/ubuntu/+source/snapd/2.21, snap-confine and ubuntu-core-launcher are requested as dependencies of snapd at the same version of the latter (which doesn't exist for snap-08:06
fgimenezconfine nor ubuntu-core-launcher)08:06
mvofgimenez: oh, of course. we need to tweak our tests to install those two (snap-confine,ubuntu-core-launcher) when testing with older versions of snapd08:09
morphismvo: can you tag https://github.com/snapcore/snapd/pull/3089 for inclusion in 2.24?08:09
mupPR snapd#3089: interfaces: drop udev tagging from framebuffer interface <Created by chunsangjeong> <https://github.com/snapcore/snapd/pull/3089>08:09
mvomorphis: sure08:10
morphismvo: and didn't know about exec.LookPath, nice one :-)08:10
mvomorphis: its very well hidden08:10
morphisyeah ..08:10
mvomorphis: like google golang find path will not find anything08:11
fgimenezmvo: ok, but the requested version, in the 2.21 case, is (= 2.21), where can we get that version of snap-confine?08:11
morphismvo: yeah, did exactly that08:11
mvofgimenez: where are we getting it currently from? its a ppa?08:11
mvofgimenez: or do we build it? (pardon my ignorance here)08:12
mvomorphis, zyga: my reviews this morning were a bit over nitpicky, sorry for that, I guess I need to switch to a stronger type of tea or something :)08:12
morphismvo: no problem, much appreciated :-)08:13
fgimenezmvo: np :) we are getting it from https://launchpad.net/~snappy-dev/+archive/ubuntu/snapd-2.21/+packages, i see the additional packages there, thanks!08:16
zygamvo: thanks for the review, I'm still working on that code08:42
zygamvo: trying to make cgo/go parts work nicely with testing08:42
zyga  hmmm08:45
zygamvo: do you have an idea why .a file is not made in $GOPATH/pkg/$arch/... if I "go build" something that uses cgo?08:46
mupPR snapd#3089 closed: interfaces: drop udev tagging from framebuffer interface <Created by chunsangjeong> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3089>08:47
zygago/cgo bridge has some rough edges :/08:48
zygamvo: I need to *not* run the bootstrap code for testing08:51
zygamvo: but *do* run it in production08:51
zygamvo: cgo cannot be used in tests08:51
zygamvo: we cannot do anything in Go land to enable/disable the C code08:52
zygamvo: I tried setting a flag to zero and hang the bootstrap code on that value being 108:52
zygamvo: (so it would never run by default or in testing)08:52
zygamvo: and then use a 2nd constructor, with higher priority, in the main code to actually set the flag to 108:52
zygamvo: but whatever go does to link things it doesn't seem to allow any C symbols to be seen in other go packages08:53
zygamvo: I'll try putting this all in one package next08:53
=== JanC_ is now known as JanC
morphiszyga: about the xauth thing, it would be the best if we loop through each xauth cookie in the file XAUTHORITY points08:56
morphiszyga: which would either require us to link against libx11 (not what we want) or to reimplement functions like XauReadAuth (https://www.x.org/archive/X11R6.7.0/doc/Xau.3.html)08:57
zygamorphis: hmm, lovely08:57
zygamorphis: let's start a thread about this08:58
morphiszyga: flatpak does a few more things and also ensures that the confined app only gets access to cookies for local X11 servers08:58
zygamorphis: my 0.02 is to implement this in go08:58
morphiszyga: yeah wnated to do this08:58
zygamorphis: and call a helper if needed08:58
morphisfrom snap-confine?08:58
zygamorphis: we can _maybe_ exec a helper in go08:58
zygamorphis: or do this in snap-run even08:58
morphissnap-run is before snap-confine in the chain, right?08:59
zygamorphis: we probably cannot fork too much from snap-confine in case that systemd expects a forking daemon08:59
zygayes08:59
zygamorphis: I'd do it like this though:08:59
zygamorphis: think of snap-confine as one thing08:59
zygamorphis: and think about some parts that you can write in go08:59
zygamorphis: before/after the main low-level part08:59
zygamorphis: if we do it like this we may write a go program08:59
zygamorphis: that execs a helper in C09:00
zygamorphis: that helper execs the go program again (after setting a flag or something)09:00
zygamorphis: so you can do all go code09:00
zygamorphis: and a predictable system level code in the middle09:00
morphisso point is that we need to have a place we can share data through, do we have a dir which is available in the confinement and outside?09:00
zygamorphis: I think that is sufficient for snap-confine09:00
zygamorphis: yes, /run is one such place09:00
zygamorphis: we have /run/snapd/ns today09:00
morphiszyga: do we have a private dir in there?09:01
morphisah09:01
morphisa per app dir?09:01
zygamorphis: does it have to be per app?09:01
zygamorphis: (it can be)09:01
morphisit has to09:01
zygamorphis: we can make a per-app file09:01
zygamorphis: and restrict it with apparmor09:01
morphisthink about multi-user systems09:01
morphisthen doing this inside snap-run sounds like a good idea09:02
mupPR snapd#3121 closed: WIP: cmd/snap-confine: always pass xauth file through regardless where it is located <Created by morphis> <Closed by morphis> <https://github.com/snapcore/snapd/pull/3121>09:03
mupPR snapd#3125 opened: tests: download and install additional dependencies when using prepackaged snapd <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3125>09:05
fgimenezmvo: ^ should fix the dependency problems in the 2.21 -> edge reexec scenario, thanks09:05
zygamorphis: aha09:05
zygamorphis: so it has to be in xdg somewhere09:05
zygamorphis: there's unfinished code that sets XDG_RUNTIME_DIR09:06
zygamorphis: I think it fits there09:06
zygamorphis: (mkdir the XDG_RUNTIME_DIR, somewhat tricky because part needs to run as root, part as user)09:06
fgimenezmvo: i've updated https://github.com/snapcore/snapd/pull/3105 to download the additional dependencies too (with this branch we don't need to maintain ppas for specific old versions), it works fine on local executions09:07
mupPR snapd#3105: tests: download previous snapd package from published versions instead of specific PPA <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3105>09:07
morphiszyga: who says the auth file needs to be in XDG_RUNTIME_DIR?09:07
mvofgimenez: excellent, thank you. I have a look09:08
mvozyga: thank for the update on the cgo stuff, this does indeed sound tricky :/09:09
morphiszyga: who sets up /run/snapd/ns at the moment?09:12
zygamorphis: I think it makes sense as that is per user and ont in home09:14
zygamvo: I have a hacky solution09:14
zygamvo: just commiting now09:14
zygamorphis: only snap-confine09:14
morphiszyga: I think the copy needs to be more per instance09:16
morphisrather than per app09:16
morphiswhat if the XAUTHORITY file changes over time and a second instance of an app is started, then we would override that file in /run/snapd09:16
morphisso I think putting this into snap-confine makes most sense and then placing the content after parsing in the snap own /tmp09:17
zygamorphis: why per instance?09:17
zygamorphis: aha09:17
zygamorphis: we can overwrite the old value too09:17
morphisyes09:17
zygamorphis: (since apps probably just read it on startup)09:17
zygamorphis: if you do it per instance there's no easy way to clean up09:18
morphisif you do per instance you have it in /tmp09:18
zygamorphis: note that /tmp is per-snap, not per user or instance09:18
morphisah09:18
morphiszyga: quick and dirty fix would be a bind-mind into /run/snapd09:18
morphiss/mind/mount/09:18
morphis+ setenv("XAUTHORITY", "/run/snapd/xauth.<uid>")09:19
morphisif we want parsing of that file + skipping cookies for remote X11 instances then we need more logic09:19
zygamorphis: wait, bind mount what into that?09:19
zygamorphis: I think bind mount of anything is tricky09:20
morphiswhatever XAUTHORITY points to on /run/snapd/xauth.<uid>09:20
zygamorphis: I'm -1.5 on bind mount as that tends to make /home live forever and I'm not sure if systemd will untangle this09:20
zygamorphis: why does flatpak filter remote connections?09:21
morphisyeah .. that's why I said quick and dirty09:21
morphiszyga: to make the app local-bound09:21
zygamorphis: I'd rather just copy it to /run/user/$UID/snap.$SNAP_NAME/.Xauthority09:21
morphishm09:22
morphiszyga: let me play with that and then start a discussion09:24
zygamorphis: sounds good, thank you09:24
zygamvo: morphis: can you please have a 2nd look at https://github.com/snapcore/snapd/pull/3095/files09:29
mupPR snapd#3095: cmd/snap-update-ns: add C preamble for setns <Created by zyga> <https://github.com/snapcore/snapd/pull/3095>09:29
morphissure09:31
zygaofftopic: somewhate appropriate now that we are doing all the mount craze: https://lwn.net/Articles/718638/ -- I'm looking forward to see this evolve09:31
zygapstolowski: hey, I think you need to merge master into: https://github.com/snapcore/snapd/pull/311909:32
mupPR snapd#3119: interfaces: API additions for interface hooks <Created by stolowski> <https://github.com/snapcore/snapd/pull/3119>09:32
zygafgimenez: should I close https://github.com/snapcore/snapd/pull/3063 ?09:32
mupPR snapd#3063: tests: re-enable tests for /dev/pts on core <Created by zyga> <https://github.com/snapcore/snapd/pull/3063>09:32
fgimenezzyga: yes please, we need to use the expect snap for that to work, it is covered in my branch09:33
mupPR snapd#3123 closed: osutil: introducing GetenvInt64, like GetenvBool but Int64er <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/3123>09:36
zygafgimenez: ok, thank you09:38
mupPR snapd#3063 closed: tests: re-enable tests for /dev/pts on core <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/3063>09:39
fgimenezzyga: np thx :)09:39
mupPR snapd#3087 opened: overlord/snapstate: introduce tasks for aliases v2 semantics with temporary names for now (aliases v2) <Critical> <Created by pedronis> <https://github.com/snapcore/snapd/pull/3087>09:48
mvofgimenez: do you have any idea what is going on with the autopkgtest currently? looks like all are failing. do you know if anyone has looked into this yet?09:48
pstolowskizyga, indeed, will do in a moment, thanks09:48
fgimenezmvo: yes, we are building spread on each autopkgtest execution, and this started to fail on friday09:49
mvofgimenez: oh, ok09:49
fgimenezmvo: i've proposed a branch for using spread from the snap, but this only works for amd64, no spread snap on i386 nor ppc09:49
mvofgimenez: and I see there is a branch already09:49
mvofgimenez: hrm, hrm, ok09:49
fgimenezyep09:49
fgimenezmvo: maybe there's a better approach of course, not sure of what is the root cause09:50
fgimenezmvo: fwiw it seems that if you try to build spread in an up to date xenial, the resulting binary is not able to ssh to the testbed09:51
* zyga fires spread tests for snap-update-ns and takes a break 09:52
mvofgimenez: ta09:52
morphisSon_Goku: we have to fix all the rpmlint/rpmgrill errors, right?09:53
mvofgimenez: I wonder if we can just mirror spread and lp build snaps - but we need gustavo to share the snap with us or ask him to setup the snap build recipe09:53
pedronismvo: hi, btw Gustavo has asked to turn them off (the autopkgtest) if we don't find a quick solution09:54
mvopedronis: ok10:02
zygapstolowski: can you review https://github.com/snapcore/snapd/pull/3095 again please10:23
mupPR snapd#3095: cmd/snap-update-ns: add C preamble for setns <Created by zyga> <https://github.com/snapcore/snapd/pull/3095>10:23
pstolowskizyga, will do in a bit.. running to school in a moment10:25
pstolowskihah, I think I got the the bottom of EOFs in store/retries10:26
morphiszyga: https://forum.snapcraft.io/t/migrate-x11-authentication-cookies-into-snap-environment/11610:26
zygapstolowski: oh, what was it?10:28
pstolowskizyga, we get url.Error, need to convert into that an inspect its Err member10:30
pstolowskicrazy10:30
zygapstolowski: aha10:30
zygapstolowski: well, I'm +100 on having sane downloads :)10:31
pstolowskithe simple return err == io.ErrUnexpectedEOF || err == io.EOF check we have doesn't cut it10:31
pstolowskibbiab10:31
nanodronewhats the smallest sized snap ever? do snaps share installed libraries between packages?10:32
clobranohey there, I was wondering where is the best place to submit a (possible) bug in konversation snap package10:35
zygananodrone: smallest size is the size of snap/meta.yaml + empty application that may be a tiny elf file or a shell script saying "hi"10:36
ogrananodrone, the smallest one is probably a few bytes10:36
zygananodrone: snaps don't share anything unless that is designed by snap author10:36
ograwell10:36
ograthey all use libc and some basics from the core snap10:36
zygaclobrano: I think you can to that on the forum, using the "snap" category: https://forum.snapcraft.io/t/about-the-snap-category/55/210:37
nanodronebut they can cut down on their size if needed?10:37
ograbut usually snap dont chare anything among each other ... that would break the security model ... you *can* make them share bits on purposes though10:37
zygaogra: iff they want to :)10:37
nanodronei dont understand the security part... :(10:37
zygananodrone: note that you may be limited by the size of an empty squashfs file :)10:37
ogrananodrone, a snap can only see its own parts of the system10:38
zygananodrone: I can explain that if you want to10:38
ogrananodrone, there is a mechanism called interfaces that allows to extend this10:38
ogrananodrone, one of these interfaces is the content interface ... that would for example allow you to have a shared library snap that your apps can make use of10:38
nanodroneplease do10:38
clobranozyga, thanks!10:39
zygananodrone: snapd uses several kernel mechanisms to constrain what application code can do10:39
zygananodrone: we limit the system calls you can use10:39
zygananodrone: we limit some of the arguments to some of the system calls10:39
morphisSon_Goku: I've snapd now building with relro, a bit hacky but works: https://paste.fedoraproject.org/paste/TcD8VNEWY~aV9-0eW~wUIF5M1UNdIGYhyRLivL9gydE=10:39
zygananodrone: and we limit the set of files you can read, write, map, lock, etc on10:39
ograppisati, soo ... no broccoli for me regarding bluetooth ... not even with your new kernel :(10:39
zygananodrone: we also limit the IPC between all the apps and the rest of the system10:39
zygananodrone: so by default every application gets a sane set of rules that define the sandbox10:40
nanodronethat sounds nice. can i package a node app using snap10:40
zygananodrone: if the app tries to use more it either gets an error or gets killed (depending on some technical details)10:40
zygananodrone: yes10:40
zygananodrone: the system of "interfaces" is how we model extensions to the default sanbox10:40
ogrananodrone, if you want to dig really deep into the security models ... https://developer.ubuntu.com/en/snappy/guides/security-whitepaper/ has all the dirty details ;)10:41
zygananodrone: you can say that your application needs to talk to the network by adding a "network" plug in your applicatoin10:41
zygananodrone: interfaces work in pairs "plug" wants to consume something that a "slot" provides10:41
nanodronehow do i update the snap...10:41
zygananodrone: only when a plug is connected to a slot is the actual permission granted10:41
zygananodrone: once connected (some are auto connected, some need to be connected by the user) your app can just access more of the system10:42
nanodronealso, do i have to publish the snap somewhere or can i distribute it offline10:42
zygananodrone: that's the overview, let me know if you have any questions10:42
zygananodrone: you can publish your snap into the store, if you push more versions everyone will update automatically10:42
zygananodrone: you can use channels (stable, candiate, beta, edge) to publish multiple stability levels at the same time; everyone installs stable by default10:43
zygananodrone: if you publish your snap e.g. on a 3rd party web server anyone can download it and install locally10:43
zygananodrone: but that means there will be no updates10:43
zygananodrone: and that removes the possiblity of using some more privlieged interfaces10:43
nanodronelike?10:43
zygananodrone: in the store your snap can be free (gratis) or priced, so you can also sell it10:44
ograand you can indeed also install local snaps during development ...10:44
zygananodrone: all that require an assertion (a signed document) saying that your snap can use a given privileged interface10:44
nanodronei dont think i'll need too many privileges, just like internet/network access and filesystem access..10:44
zygananodrone: some interfaces give a lot of power so we want to control who has access to them10:44
zygananodrone: "filesystem access" is very broad10:44
zygananodrone: each snap gets a portion of the filesystem it can access by default10:45
nanodronei just need to write/read files from the app's own directory10:45
zygananodrone: that is placed inside each users home directory10:45
zygananodrone: that's allowed by default10:45
nanodroneyup that'll suffice10:45
zygananodrone: but you won't be able to read arbitrary user files this way10:45
nanodronearbitrary user files?10:46
nanodroneyou mean i'll be limited to my own files?10:46
zygananodrone: yes10:46
nanodronethat's ok i dont need that.10:47
zygananodrone: your application will not see any user files that don't belong to your snap10:47
zygananodrone: great, good luck :)10:47
zygananodrone: note that your snap will work on many distributions but you will most likely need to use ubuntu or debian to build it (for now, we're working on making this better)10:47
nanodronebut i can optionally access user files somehow?10:47
zygananodrone: if you use the home interface you can access certain files10:47
nanodroneall my "app users" have ubuntu.10:48
zygananodrone: we're looking at allowing file-picker like thing as well but that's not implemented10:48
zygananodrone: your app will also work on fedora, suse, debian and other distributions though,10:48
zygananodrone: and it will be visible in things like gnome-software there (if it is properly described in the desktop file)10:48
morphismvo: btw. do we have milestones on launchpad for snapd releases?10:48
zygamorphis: nope10:48
nanodronehere's a scenario, like the user puts files in a user specified directory and the app can access just that directory.10:48
zygamorphis: we stopped using those10:48
zygamorphis: I think we could / should do that and mirror github milestones10:49
zygananodrone: yes10:49
morphiszyga: so how do we know when a bug is fixed / targetted to be fixed?10:49
nanodronethats all i need.10:49
zygananodrone: yes, e.g. $HOME/snap/yoursnapame/common10:49
zygamorphis: I spoke with mvo about this but we don't usually say when it was fixed10:49
nanodronenetwork access plus file access like that. i can't think of anything else.10:49
zygamorphis: I'd love to have those milestones10:49
nanodronecan i still show my app's indicator or menu entries in the sound/messaging menu + notifications?10:50
zygananodrone: note that if you upload your snap to the store it will be far easier to install10:50
morphiszyga: yeah ..10:50
zygananodrone: we have mpris interface for that10:50
zygananodrone: notifications are probably handled by the unity interface10:50
zygananodrone: give that a try10:50
nanodroneit's using notify osd for basic notifications for now.10:50
zygananodrone: in your app you can say: plugs: [network, unity7]10:50
zygananodrone: for mpris there's a more interesting example to look at AFAIR10:51
zygananodrone: i think `vlc' snap uses it10:51
nanodroneis snap = ubuntu or is it available on arch and gentoo as well10:51
zygananodrone: it's available in many distributions, have a look at https://github.com/snapcore/snapd/wiki/Distributions10:52
zygamorphis: ^^ that is out of date10:52
zygananodrone: fedora and opensuse are now supported10:52
ograand should move to the forum :)10:52
zygamorphis: can you edit and fix that quickly10:52
zygaogra: yeah, I think that's sensible as long as it is up-to-date10:53
nanodroneokay this is enough reading for me for today. i'll be back later ( i didn't think i'd get this quick an answer to all of my questions )10:53
nanodroneputting #snappy on autojoin haha10:53
morphiszyga: Fedora rawhide is supported now, yes10:53
ograyeah, it is more likely that it is kept up to date in the forum i guess :)10:53
ogra(more eyes)10:53
zygananodrone: good luck :)10:53
nanodronethanks everyone. zyga ogra...10:53
ogra:)10:53
nanodronetruly grateful convert.10:54
morphiszyga: however supported == included in the distribution archive, isn't it?10:55
morphiszyga: https://bugs.launchpad.net/snapd/+bug/1657100 can be closed with the work Son_Goku did, right?11:01
mupBug #1657100: snapd needs a SELinux profile to run on Fedora <snapd:Confirmed> <https://launchpad.net/bugs/1657100>11:01
zygamorphis: no, supported is something we just support11:04
zygamorphis: feel free to make that clearer11:04
zygamorphis: it's an arbitrary choice11:04
zygamorphis: (of words)11:05
morphisok11:05
morphissomething I need to work through, don't feel well maintain all these version numbers etc. on a wiki page11:06
zygamorphis: yes, I wanted a dynamically generated table but the wiki lets us start with something quickly11:07
morphiszyga: I think we need to drop the version numbers there alltogether at one point in the near future11:07
=== hikiko is now known as hikiko|ln
zygamvo: can you re/review https://github.com/snapcore/snapd/pull/3114 please11:42
mupPR snapd#3114: interfaces/mount: add function for saving fstab-like file <Created by zyga> <https://github.com/snapcore/snapd/pull/3114>11:42
zygamvo: if you want I can make the extra rename11:42
zygamvo: I'd like to propose more useful stuff on top11:42
mvozyga: I would like the naming part for gustavo, I'm not great at names11:47
zygamvo: ok, let's wait for a 2nd review for it11:51
mvozyga: but I will go over it again11:53
Son_Gokumorphis: rpmgrill errors can be fixed later, some of them can be ignored too12:00
mupPR snapd#3126 opened: store: handle EOF via url.Error check <Created by stolowski> <https://github.com/snapcore/snapd/pull/3126>12:04
pstolowskimvo, this should be the final blow at EOFs, hopefully ^12:04
zygaChipaca: hey12:06
zygaChipaca: do you know any snaps that use ubuntu-app-platform12:06
zygaChipaca: I'm looking and snap-update-ns hand-testing12:06
morphisSon_Goku: ok, good to hear12:06
Chipacazyga— I don't, but give me a mo'12:06
mvopstolowski: very nice!12:06
zygaChipaca: I'll write spread test based on the existing content stuff next but I want to have something at hand to play with12:07
zygaChipaca: I don't know if there's a way to ask the store "what works with this snap"12:07
morphisSon_Goku: so anyone we need to fix before the first release?12:07
Son_GokuI think I fixed all the things that were actually important, I think12:07
zygamorphis: \o/12:08
morphisSon_Goku: nice!12:08
Son_Goku* Fri Mar 31 2017 Neal Gompa <ngompa13@gmail.com> - 2.23.6-212:08
Son_Goku- Fix the overlapping file conflicts between snapd and snap-confine12:08
Son_Goku- Rework package descriptions slightly12:08
Son_Goku* Sat Apr 01 2017 Neal Gompa <ngompa13@gmail.com> - 2.23.6-312:08
Son_Goku- Fix profile.d generation so that vars aren't expanded in package build12:08
morphisSon_Goku: are you ok with me writing a call-for-testing on forum.snapcraft.io?12:08
Son_Gokuplease do12:08
Son_GokuI'm so tired...12:08
morphisget some sleep :-)12:09
Son_GokuI spent literally all weekend hacking at this, because snapd is too complex for its own good...12:09
zygaSon_Goku: thank you! You made a lot of this happen!12:10
morphisSon_Goku: great work!12:10
Son_Goku:/12:10
zygahmm12:10
zygamvo: `-                             core:core-support12:10
zygamvo: I didn't do anything12:10
zygamvo: and it got disconnected12:10
zygamvo: when core support is disconnected snapd is really wonky12:11
zygamvo: like a "be broken" switch12:11
Chipacazyga— lonewolf, neverbore, extia-webapp, mendiapp, facebook-webapp-mardy, chronoburn, soracom-console12:11
Son_Gokuzyga, morphis: there's still so much to go12:11
mvozyga: core:core-support got disconnected?12:11
zygamvo: yes12:11
zygaChipaca: thanks!!12:11
morphisSon_Goku: yeah, one of the next major milestones after this one is that we get CI up and running for fedora so nothing breaks it12:12
mvozyga: out of the blue? geh12:12
Son_Gokusnapd needs to properly support generating selinux policies at runtime for snaps... splitting base from core and being able to swap both of those is also missing12:12
mvozyga: what if this happens in the wild?12:12
zygamvo: not sure, I just noticed now12:12
Chipacazyga— curl to get the raw yaml, python to filter12:12
zygamvo: yeah12:12
zygamvo: ensure connecting core:core-support?12:12
Son_Gokuand of course, nobody can create snaps on Fedora :(12:12
zygaSon_Goku: base/core will happen as we approach 1812:12
Son_Gokuthat's far too long from now12:13
zygaSon_Goku: and once we have that we may try fedora-based sonps12:13
zygasnaps12:13
morphisSon_Goku: there is a snapcrat snap already these days, something you can use12:13
zygaSon_Goku: not when 18 hits, I'm sure it will be started soon12:13
Chipacazyga— more exactly, curl -H "Accept:application/hal+json" -H "X-Ubuntu-Wire-Protocol:1" "https://search.apps.ubuntu.com/api/v1/snaps/search?q=&fields=package_name,snap_yaml_raw"12:13
Chipacazyga— and then12:13
Son_Gokumorphis: can't, because lxd doesn't work12:13
Chipaca", ".join([i["package_name"] for i in json.load(sys.stdin)["_embedded"]['clickindex:package'] if "ubuntu-app-platform" in i.get("snap_yaml_raw", "")])12:13
Son_Gokumorphis: the problem with snaps right now is that everything has a built-in assumption for Ubuntu12:14
morphisSon_Goku: sounds like we need another backend in snapcraft for cleanbuild12:14
Son_Gokuand that makes things more rickety than I wish it did12:14
mvofgimenez, pedronis: fwiw, I'm investigating the autopkgtest issues12:14
Chipacaprobably expressable in jq, but ¯\_(ツ)_/¯12:14
zygaChipaca: thanks, this will make my experiements happy!12:14
Chipacahth12:14
Chipacazyga— also there's probably more, as that's just looking at the first page of results12:15
Chipacabah, might as well get the whole thing12:15
* Chipaca tweaks12:15
morphisSon_Goku: yeah that is really a problem but something we need to work torwards too, however lets fix the basic things first12:15
Chipacazyga— lonewolf, neverbore, extia-webapp, mendiapp, facebook-webapp-mardy, chronoburn, soracom-console, wuziqi, google-webapp, fcole90-hexgl-webapp, volleyball2d, qcheckers, ubuntu-app-platform, quassel-kalikiana, ubuntu-calculator-app12:16
pstolowskizyga, looking ar 3095 now; quick question - did you decide not to be paranoid wrt close(fd) return values after all?12:18
fgimenezmvo: thanks, greaat finding in https://forum.snapcraft.io/t/autopkgtest-broken/12112:19
mupPR snapd#3127 opened: use github.com/mvo5/spread/cmd/spread until https://github.com/snapco… <Created by mvo5> <https://github.com/snapcore/snapd/pull/3127>12:20
morphisSon_Goku: one thing I've found is the that snapd.socket isn't started after I've installed the snapd pkg, is that expected?12:23
Son_Gokuno12:23
zygapstolowski: no12:23
zygapstolowski: because of what I referenced12:23
zygapstolowski: close return values are bogus12:23
Son_Gokuit's supposed to be started, since zyga and I got it added to the preset for Fedora 2512:23
zygapstolowski: and checking them makes no sense12:23
Son_Gokuactually, no12:24
Son_Gokuit's just enabled12:24
Son_Gokumorphis: afaik, you shouldn't need anything more than enabling a socket for it to work?12:25
Son_Gokuhmm, I guess not12:26
morphisSon_Goku: I had to start it12:27
Son_Gokumorphis: fixed12:28
morphisSon_Goku: great!12:28
morphismwhudson: ping12:28
morphiszyga: so just confirmed, we have: INFO: snap "core" has bad plugs or slots: core-support (unknown interface) on debian too12:30
ogramvo, a second review for the PRs at https://github.com/snapcore/core-build/pulls would be appreciated (if you find a spare minute)12:36
mvoogra: sure, I have a look. I can't merge there it seems12:42
ogramvo, only niemeyer can, i hope we get that fixed today ... i want to merge the initrd scripts source into that tree after we got thie set of PRs in12:42
=== hikiko|ln is now known as hikiko
zygamorphis: yeah, expected12:53
Son_Gokumorphis, hughsie has discovered issues with the snap backend in gnome software and is hacking on that now12:53
Son_GokuI expect he'll enable it in gnome software shortly after snapd lands in the repos12:54
Chipacaeverything is terrible. Let's go back to netbsd.12:56
ogra+112:57
mupPR snapcraft#1227 closed: docs: remove docs and link to snappy-docs <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1227>12:57
Son_Gokualso, why is snappy-docs in Canonical's github org rather than the snapcore one?12:58
Son_Gokuthat's not an obvious place at all12:58
niemeyerMornings12:58
morphisSon_Goku: great!12:58
Son_Gokuniemeyer: morning12:58
morphisniemeyer: morning!12:58
niemeyerogra: Ah, sorry, let me get that fixed12:58
* Son_Goku grumbles12:58
* ogra hugs niemeyer 12:58
morphisSon_Goku: good question for davidcalle12:58
* Son_Goku jumps off a cliff12:58
niemeyerogra: Should be working now12:59
ograSon_Goku, video or it didnt happen (and we want to see some fancy gymnastics !)13:00
niemeyerJust added the usual snapd-committers team there13:00
Son_Gokuogra: I'm too fat for that13:00
ograSon_Goku, nah, that just makes it extra funny (i'm not much slimmer than you iirc :P )13:00
Son_Gokuhaha13:00
ograniemeyer, yep, worked, thanks13:00
niemeyerSweet, np13:01
mupPR core-build#4 closed: Remove snapd.generate-network-conf.service <Created by zyga> <Merged by ogra1> <https://github.com/snapcore/core-build/pull/4>13:01
ograniemeyer, i'll creat an initrd/ subdir in there this afternoon to merge the initramfs-tools-ubuntu-core source in there then ... or would you prefer a different dir name ?13:02
mupPR core-build#3 closed: Remove 10-ubuntu-core-secure-path <Created by zyga> <Merged by ogra1> <https://github.com/snapcore/core-build/pull/3>13:02
mupPR core-build#1 closed: adjust README file to proper reflect repo content <Created by ogra1> <Merged by ogra1> <https://github.com/snapcore/core-build/pull/1>13:03
mupPR core-build#2 closed: Rename snappy-set-hostname to snapd-set-hostname <Created by zyga> <Merged by ogra1> <https://github.com/snapcore/core-build/pull/2>13:03
davidcalleSon_Goku: because it predates it :) But this will be fixed, agreed13:14
mupPR snapcraft#1228 opened: nodejs plugin: switch to the newer LTS <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1228>13:15
Son_Gokuniemeyer: what happens to "channel" in a snapd json blob when someone sideloads a snap?13:27
jdstrandcachio: did someone answer your question re reinstalling without downloading?13:31
niemeyerSon_Goku: On the standup call.. will be with you shortly13:33
mupPR snapd#3127 closed: use github.com/mvo5/spread/cmd/spread until https://github.com/snapco… <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/3127>13:36
niemeyerSon_Goku: Okay, so.. can you open a topic in the forum with more details about the question?  (not sure about what "snapd json blob" means there)13:44
Son_Gokuniemeyer: hughsie is asking me about this for gnome-software in the #gnome-software channel on gimpnet13:44
niemeyerSon_Goku: Easier to explain things there and sticks around for others to participate and learn from13:44
Son_Gokuhe's trying to fix the snappy integration in gnome-software13:44
zyganiemeyer: I could use a simple review on https://github.com/snapcore/snapd/pull/311413:45
mupPR snapd#3114: interfaces/mount: add function for saving fstab-like file <Created by zyga> <https://github.com/snapcore/snapd/pull/3114>13:45
Son_Gokuit's not really forum appropriate since the target audience isn't there13:45
niemeyerSon_Goku: Chicken and egg13:45
Son_Gokuin this case, the chicken won't go across the road :)13:45
niemeyerSon_Goku: It's okay, they don't have to.. they can simply learn from what the two of us discuss there13:46
niemeyerSon_Goku: And others will too13:46
niemeyerSon_Goku: The important thing is not losing these interesting discussions to IRC logs13:46
Son_Gokuis this really all that interesting?13:47
niemeyerzyga: Looking13:47
zygaSon_Goku: I think thre are other front-ends to install stuff13:47
zygaSon_Goku: I bet it will be interesting13:47
* Son_Goku sighs13:47
niemeyerSon_Goku: if you don't want to, I'm happy to make a monologue there.. just provide more details about the question and I'll write it all13:48
Son_Gokusure, one sec13:48
mupPR snapd#3128 opened: interfaces/mount: fix golint issues <Created by zyga> <https://github.com/snapcore/snapd/pull/3128>13:49
cachiojdstrand, the solution I got is to download the snap and then install as many times as I want13:52
cachiojdstrand, is it the best way to do it?13:52
Son_Gokuniemeyer: here: https://forum.snapcraft.io/t/how-to-determine-source-of-snap/12513:53
jdstrandcachio: that is the way to do it. snap download foo. sudo snap ack ./foo*.assert ; sudo snap install ./foo*.snap13:53
niemeyerSon_Goku: Thanks so much13:53
niemeyerSon_Goku: Going there right now13:53
* Son_Goku is tired13:53
jdstrandcachio: if you ack the assertion, you don't need --dangerous13:53
niemeyerSon_Goku: I've heard you did some great work over the weekend.. thanks a lot for that!13:54
cachiojdstrand, great, I'll do that13:54
* Son_Goku sighs13:54
cachiojdstrand, tx13:54
jdstrandI'm not sure if you were told that, but that is handy and is equivalent to an install from the store13:54
Son_Gokuniemeyer: I really hope it isn't going to be as hellish in the future13:54
Son_GokuI spent all weekend on it :(13:54
jdstrandwhere --dangerous is not in terms of base declaration checks13:54
niemeyerSon_Goku: Yeah, it probably won't.. the integration points with the distribution don't really change all that often.. very seldom we need to touch the package13:55
=== lazyPower is now known as lp|swap
Son_Gokuniemeyer: of course, that's easy for you, since you mainly care about it working on Ubuntu and Ubuntu Core13:56
Son_Goku:)13:56
Chipacahttps://go-review.googlesource.com/c/39207/ <- log.Fatal(http.Serve(autocert.NewListener("example.com"), handler)) <- i.e. letsencrypt oneliner13:56
Son_Gokuzyga: did you see my response to the cgroups bug?13:57
niemeyerSon_Goku: That's misjudging what I care about.. :)13:57
zygaSon_Goku: not yet, I just replied to it in the morning13:57
* zyga looks13:57
zygaSon_Goku: noted13:58
zygamorphis: I think we want to talk to Zbigniew there to understand what we need to do13:58
zygamorphis: https://bugs.launchpad.net/snappy/+bug/167834213:58
mupBug #1678342: snapd udev rules are incompatible with unified cgroup hierarchy <Snappy Launcher:New> <snapd:New> <Snappy:Incomplete by zyga> <snapd (Fedora):Unknown> <https://launchpad.net/bugs/1678342>13:58
zygamorphis: if you initiate the conversation I'm happy to make all the changes required13:58
Son_Gokuzyga: he's zbyszek in #fedora-devel13:58
Son_Gokumorphis ^13:58
zygamorphis: maybe Zybszek is on IRC around as he seems to be in the same timezone13:58
zyga:D13:58
zygaSon_Goku: I was typing the same thing :)13:59
jdstrandkyleN: I answered on the list13:59
kyleNthanks jdstrand13:59
jdstrandpekkari: hey, 'ubuntu-kernel' is a very official sounding name for a kernel snap. you might want to run the name of your snap by JamieBennett, et al14:02
morphiszyga, Son_Goku: yeah saw that bug earlier today, and its on my list to look into14:03
Son_Gokumvo: is the focus now on snapd 2.24?14:03
jdstrandpekkari: I put a comment in the snap asking for feedback14:03
jdstrandin the store*14:03
pekkarijdstrand: got it, thanks for reviewing!14:04
pekkariI'll ask Jamie14:04
zygaSon_Goku: yes14:06
Son_Gokuzyga: does snapd-login-service require snapd to be installed?14:07
mupPR snapd#3129 opened: interfaces/mount: add InfoEntry type <Created by zyga> <https://github.com/snapcore/snapd/pull/3129>14:07
zygaSon_Goku: I don't know, I think it talks to snapd over the socket14:08
Son_Gokuhmm14:08
zygaSon_Goku: if you just install it those calls will fail14:08
zygaSon_Goku: but it should be OK14:08
Son_Gokuthen I should drop the Requires14:08
Son_Gokubecause Fedora Workstation is going to be pissed if gnome-software pulls in snapd when they don't want it14:09
zygaSon_Goku: what happens when you don't have snapd and you have the login package14:11
Son_GokuI have no idea14:11
zygaSon_Goku: does gnome-software work correctly?14:11
Son_Gokuagain, no idea14:12
zygamorphis: ^ something to try14:12
zygaSon_Goku: as long as it just works droping the Requires is correct14:13
zygaSon_Goku: if it breaks we should see so that it doesn't14:13
jdstrandogra: hi! I see linux-generic-bbb has 71 in edge-- when do you plan to release that to stable?14:13
Son_Gokuwell, the Requires was originally written by you, I think, so hell if I know14:13
zygaSon_Goku: (maybe offer a GUI action to install snapd)14:13
Son_Gokuzyga, uhh wut? [10:15:49 AM]  <hughsie>Son_Goku, so, a packaging error? http://imgur.com/a/CowmR14:16
Son_Gokuany explanation for the random Turkish?14:17
zygaSon_Goku: woah14:20
zygaSon_Goku: no, something very very weird indeed14:20
ograjdstrand, oh, sorry, forgot about the extra click ... doing now14:20
* zyga waves hi to Richard and his fantastic hardware :)14:21
Son_Gokuzyga: morphis: someone needs to hop into #gnome-software on irc.gimp.org14:21
ograjdstrand, done14:21
zygaI think we should find Robert that wrote that part14:21
morphisSon_Goku: I am on the way14:22
jdstrandogra: thanks!14:22
zygamorphis: ^ can you hop into #g-s there14:22
zygamorphis: thanks!14:22
zygaSon_Goku: meanwhile I'll be working with mount more until it works14:22
Son_GokuI gotta go to work, but I can't leave hughsie hanging14:22
zygaSon_Goku: I think morphis will take over, thank you for keeping an eye out for this!14:23
morphisSon_Goku: #g-s or #gnome-software?14:24
morphisah have the right one14:24
niemeyerSon_Goku: Answered14:31
niemeyerSon_Goku: Sorry, answering it properly took a little while..14:31
niemeyermorphis, zyga: ^14:32
morphisniemeyer: an answer to what? :-)14:32
niemeyermorphis: Sorry, I thought you were following the conversation.. I suggest reading the backlog from 1h10min ago that we had here, as that's relevant for the conversation you'll have in #g-s14:33
morphisniemeyer: ah I see, you're referring to the "How to determine “source” of snap?" thread14:37
niemeyermorphis: Are you on top of these exchanges?14:38
mvoSon_Goku: yes, the next release will be 2.24, 2.23.6 is hopefully in good shape now. if you have anything that you need in there, please add a reply to the topic14:38
morphisniemeyer: I am on it, yes14:38
Son_Gokumvo: I'll add a reply soonish, as there's *a lot* I need to be in 2.2414:38
mvoSon_Goku: oh, ok :)14:39
Son_Gokumvo: http://pkgs.fedoraproject.org/cgit/rpms/snapd.git/tree/snapd.spec#n52 :)14:39
Son_Gokuactually, not so much I guess14:40
Son_Gokujust a couple more PRs14:40
Son_Gokuanyway, bye for now14:41
morphismvo: 2.24 is targetted for this thursday?14:43
mvomorphis: no ETA yet, we should discuss that14:44
mvomorphis: we can target anything that Son_Goku needs in GH so that its on the radar14:45
mupPR snapd#3130 opened: overlord/devicestate: switch to keygen for device key generation <Created by vosst> <https://github.com/snapcore/snapd/pull/3130>14:45
pedronismvo: are we cutting 2.24 tomorrow?14:45
morphismvo: there are some he has in his list I am currently prepping to be ready14:46
mvopedronis: I think we should discuss in the standup, JamieBennett also has a say in this of course.14:46
* zyga goes to merge https://github.com/snapcore/snapd/pull/3114 with 2 +1 already14:46
mupPR snapd#3114: interfaces/mount: add function for saving fstab-like file <Created by zyga> <https://github.com/snapcore/snapd/pull/3114>14:46
mupPR snapd#3114 closed: interfaces/mount: add function for saving fstab-like file <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3114>14:47
JamieBennettmvo: pedronis:, morphis: Well, it would be good to push out this release asap as it contains a lot of changes, so sooner rather than later. What is a sensible cut off day for the release?14:47
pedronismvo: zesty will not have 2.24 either way out of the door right?14:48
morphisJamieBennett: if there are more important things we don't have to block on the PRs King_InuYasha pointed out, having them included would only allow us to drop all these patches on the distro packages14:49
JamieBennettmorphis: what is the eta for these landing?14:49
morphisJamieBennett: I am trying to finish these as we speak14:50
mupPR snapd#3131 opened: interfaces/mount: add OptsToFlags for converting arguments to syscall… <Created by zyga> <https://github.com/snapcore/snapd/pull/3131>14:50
morphisniemeyer: https://github.com/snapcore/snapd/pull/3039 needs another review from your side14:51
mupPR snapd#3039: many: add support for partially static builds <Created by zyga> <https://github.com/snapcore/snapd/pull/3039>14:51
mupPR snapcraft#1077 closed: Shout -> Lounge, the official fork <Created by MaxLeiter> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1077>14:51
mupPR snapcraft#1225 closed: channels: Fix staging store test for Tracks <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1225>14:51
mvopedronis: probably not, final freeze is thursday, highly unlikely. I'm pretty sure there will be a 0-day SRU for this one14:55
pedronismvo: anyway if we cut it tomorrow is unlikey that new aliases will make it, maybe slightly more likely if Thu, but not sure (depends on reviews)14:56
pedronisotherwise they will be in 2.2514:57
mvopedronis: ok, thank you. we can hear what JamieBennett thinks about cutting the release thur/fri, preparing everything in beta and moving forward with candidate on monday maybe? if it means that new aliases may make it this way14:58
niemeyermorphis: Reviewed15:06
niemeyerand lunch time.. back in a bit15:06
mupBug #1679210 opened: snap install --revision tracks stable by default <Snappy:New> <https://launchpad.net/bugs/1679210>15:10
morphisniemeyer: thanks!15:12
zyganiemeyer: can I get a trivial review for: https://github.com/snapcore/snapd/pull/3131/files15:51
mupPR snapd#3131: interfaces/mount: add OptsToFlags for converting arguments to syscall… <Created by zyga> <https://github.com/snapcore/snapd/pull/3131>15:51
zygaI could use a review of https://github.com/snapcore/snapd/commit/26ebf0c2866e14ab14099d550e723dc78561536d16:01
zygaI'll propose it after https://github.com/snapcore/snapd/pull/3131 lands16:01
mupPR snapd#3131: interfaces/mount: add OptsToFlags for converting arguments to syscall… <Created by zyga> <https://github.com/snapcore/snapd/pull/3131>16:01
niemeyerzyga: I need to have a look at pending topics and PRs first, but will be there soon16:01
zyganiemeyer: sure, thanks!16:01
zyganiemeyer: I'll take a break now, I have a few more useful bits and I'll try to land most that I wrote today16:01
zyganiemeyer: if you can please focus on https://github.com/snapcore/snapd/pull/309516:02
mupPR snapd#3095: cmd/snap-update-ns: add C preamble for setns <Created by zyga> <https://github.com/snapcore/snapd/pull/3095>16:02
zyganiemeyer: after that in any order16:02
zygapstolowski: ^^ can you please review this again as well16:02
zygapstolowski: you are also blocking it ATM16:02
pstolowskik16:02
pstolowskizyga, blocking? i aproved it last time16:03
zygapstolowski: oh, I need to refresh :)16:05
pedronisniemeyer: it seems we never had to delete a top key in state, is there a use case for state.Set(key, nil) not to mean delete?16:06
zygapstolowski: indeed, thank you :)16:06
pstolowskizyga, :)16:06
niemeyerpedronis: Ideally those would mean the same thing16:08
pedronisniemeyer: it's not implemented like that atm, but it seems the right thing (instead of growin state.Del or state.Delete)16:08
* zyga -> off16:11
niemeyerpedronis: https://forum.snapcraft.io/t/should-missing-state-keys-and-null-keys-be-the-same/12816:13
morphiszyga, King_InuYasha, Pharaoh_Atem: if you don't follow the conversation in16:16
morphis#gnome-software, looks like we miss gettext support in policykit on other distros16:16
morphiszyga, King_InuYasha, Pharaoh_Atem: https://bugs.freedesktop.org/show_bug.cgi?id=2963916:17
morphisRobert filed that ages ago16:18
morphiswill go a little bit more in the details tomorrow but the easiest we can do is dropping all other languages from the .policy file and only keep en there16:18
morphisas it always picks the last one16:18
morphis(which is turkish in the default case)16:18
ogramorphis, how lame, so fedora has no zulu translations ?16:20
ogra:)16:20
cmarsis it possible to publish snaps in such a way that they're private to a list of users, or maybe a LP team?16:25
=== elfgoh_ is now known as elfgoh
mupPR snapd#3132 opened: overlord/state: make sure that setting to nil a state key is equivalent to deleting it <Created by pedronis> <https://github.com/snapcore/snapd/pull/3132>16:48
ograpedronis, http://paste.ubuntu.com/24307672/ thats an image using ssh-keygen i just tested ... 17:08:57 Generate device key ... 17:09:45 Mark system seeded ... lots faster :)17:19
* ogra goes afk 17:20
mupPR snapcraft#1221 closed: pluginhandler: factor out state bits into the state package <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1221>17:27
mupPR snapcraft#1226 closed: Better check of the error code in StatusTracker <Created by facundobatista> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1226>17:30
=== JanC_ is now known as JanC
niemeyerTaking a break for exercising, then back for more reviews..19:04
datajerkhi all, i'm trying to get snaps working on the nvidai tx2, i patch the kernel config so that snap would mount, etc..., but am now getting the following error with snap install hello-world: Run configure hook of "core" snap if present (run hook "configure": execv failed: No such file or directory).  Google not much help with this one.  Thanks.19:31
datajerkfrom syslog: /usr/lib/snapd/snapd[3391]: snapmgr.go:807: Reported problem as c3074eec-18a3-11e7-a49b-fa163ebeb28a OOPSID19:32
mupPR snapd#3128 closed: interfaces/mount: fix golint issues <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3128>19:33
kyrofadatajerk, does the kernel include apparmor?19:40
zygadatajerk: hey19:42
zygadatajerk: can you tell me more about your system, I assume you have the tx2 devkit (nice, how did you get one?)19:42
zygadatajerk: can you tell me if this is a classic system? (with apt-get and such) and snapd as an extra or just snapd (no apt, dpkg, just snaps)19:43
datajerkCONFIG_SECURITY_APPARMOR=y19:43
datajerkCONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=119:43
datajerkCONFIG_SECURITY_APPARMOR_HASH=y19:43
datajerkCONFIG_DEFAULT_SECURITY_APPARMOR=y19:43
datajerkkyrofa ^^19:43
zygadatajerk: which kernel are you running?19:44
zygadatajerk: and which version of snapd?19:44
datajerkzyga tx2 devkit, yes, ubuntu classic 16.04.02.  nvidia kernel 4.4.15, patch kernel to support docker and snap (just .config).19:44
zygadatajerk: aha19:44
zygadatajerk: so19:45
zygadatajerk: you need either bleeding edge snapd that understands you don't have the full apparmor patchset19:45
zygadatajerk: or you need to patch the nvidia kernel to contain all the apparmor ubuntu sause19:45
kyrofadatajerk, snapd requires apparmor patches that aren't available upstream just yet19:46
kyrofaYeah, that19:46
datajerkzyga which is recommended, faster?19:46
datajerkURLs?19:46
zygadatajerk: I think trying to get apparmor patches may be better, one sec19:47
zygadatajerk: http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/log/19:47
zygadatajerk: try to see what's in security/apparmor that is not in 4.419:48
zygadatajerk: the execve failure is very curious though19:49
zygadatajerk: I think we should see that error report19:49
zygadatajerk: can you run "snap changes" and then "snap change 123" where 123 is the ID of latest change19:49
zygadatajerk: quick search shows about three pages of apparmor patches http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/log/security/apparmor?qt=grep&q=SAUCE:+apparmor&ofs=10019:51
jdstrandtyhicks: iirc you have a more up to date list? ^19:51
zygajdstrand: oh, thank you19:51
zygajdstrand: I'd love to have this19:51
zygatyhicks: if you have a better list can you please post that on a forum and refer to the forum here19:52
jdstrandwell, I think the canonical (little 'c') list of patches is in the porting guide19:52
tyhicksjdstrand: I don't have a list19:52
zygajdstrand: where is the porting guide?19:53
zygajdstrand: last time I looked at sample kernels it was vary out of date19:53
zygavery*19:53
Pharaoh_Atemthere's a porting guide?19:53
tyhicksa list isn't really maintainable because the patches needed are ever-changing19:53
jdstrandtyhicks: I actually meant the porting guide19:53
zygatyhicks: yes, exactly19:53
* jdstrand is looking19:53
zygatyhicks: I think having a branch against 4.x (some important releases) would be fantastic19:54
tyhicksoh, that's not really helpful19:54
tyhickshttps://github.com/snapcore/sample-kernels/blob/master/README.md19:54
tyhicksthat's the porting guide19:54
Pharaoh_Atemthat's not helpful at all19:54
tyhickszyga: that's what the samples-kernel tree is supposed to be but it would take quite a bit of time to backport, maintain and test19:54
zygatyhicks: I think what people start with is a kernel (various versions) and they keep asking "how do we get apparmor support in this kernel"19:55
jdstrandthat's it. jeez, I could not find it :P19:55
zygatyhicks: aha19:55
zygatyhicks: is there more than the apparmor sauce required?19:55
tyhickszyga: yes, depending on what kernel version you're backporting to19:55
datajerkzyga changes output: http://termbin.com/8esh19:56
zygatyhicks: we commonly see 4.x (including mainline) and 3.4 (some android support kernel I suspect)19:56
Pharaoh_Atemzyga: for example, depending on which point in time of the CentOS 7 kernel you're porting to, you may or may not have to just do apparmor stuff19:56
kyrofaseccomp filters was only v3.5, but I think it's its own config option19:56
zygadatajerk: thank you, checking19:56
Pharaoh_Atemand 3.4 is the ancient kernel required for loads of old Android devices :(19:57
tyhickszyga: I doubt 3.4 is possible without serious amounts of work19:57
kyrofaPharaoh_Atem, yeah I backported seccomp filters to v3.4. Super fun19:57
zygadatajerk: huh, that's curious19:57
sborovkovjdstrand: Hi. I answered your request for clarification about dbus issue in the mailing list. Could you take a look when you have time please.19:57
zygadatajerk: I'd love to see what is there (the error report)19:57
zygatyhicks: and mainline?19:57
Pharaoh_Atemkyrofa: the only time I have to work with v3.4 is when some ass decides that Android hardware is Good for Regular Linux(TM)19:57
zygatyhicks: (this will be often the story of another distribution that may choose to take our patches)19:58
kyrofaHaha19:58
zygaPharaoh_Atem: android hardware is, android software is not19:58
datajerkzyga location of error report?19:58
Pharaoh_Atemright, but uninformed people confuse and conflate19:58
tyhickszyga: maineline should be possible19:58
Pharaoh_Atemtyhicks: last I checked (4.9), it wasn't19:58
zygadatajerk: I'm afraid I cannot see that, it goes to errors.ubuntu.com, it's pretty restricted as some reports may be sensitive19:59
zygatyhicks: I think that would be very useful19:59
zygatyhicks: who is maintaining sample kernels? kernel or security team?19:59
jdstrandsborovkov: you have two services? that offer dbus interfaces?19:59
Pharaoh_Atemzyga: according to readme, no one?19:59
tyhickszyga: kernel team set it up - nobody is maintaining it19:59
zygaaha19:59
zygaperhaps jjohansen could maintain a mainline + patches branch as he probably has that already for upstreaming20:00
tyhickshe periodically does that20:00
zygatyhicks: do you think that would be low cost?20:00
zyga(useful without a lot of extra burden on the security team)20:00
sborovkovjdstrand: well one exposes it. the second one just does some IPC calling those methods from system bus. I actually have more services that expose dbus interfaces. But they are in another branch at the moment.20:00
tyhicksjjohansen: let me save you some backscroll reading - zyga and Pharaoh_Atem were curious if you have the apparmor kernel delta forward ported to Linus' tree anywhere?20:01
sborovkovjdstrand: I meant only one exposes dbus interfaces :-)20:01
zygatyhicks: thank you! :)20:02
Pharaoh_Atem:)20:02
jdstrandsborovkov: so you have something like a <-> b <-> c, where 'a' is a dbus service that binds to a well-known name, 'b' talks to it and exposes to other things, like 'c'?20:02
NicolinoCurallihi all i need to chanche the systemd timer for snap.refresh: is it possibile by setting a configuration option with snap set command?20:03
jdstranddatajerk: to circle back to you, what kernel are you wanting patches for?20:03
jdstranddatajerk: 3.4 based, 3.10, 4.4, ...?20:03
sborovkovjdstrand: I am not familiar with dbus therminology, so I've got this basically. Service 1 - exposes interface. Service 2 - gets the bus and makes a call to the exposed interface20:03
jdstrandsborovkov: so, client and server, nothing else?20:03
datajerkjdstrand 4.4.15 is what nvidia provides with *their* patches, so i have to patch that kernel, cannot use stock20:04
jdstrandsborovkov: service 1 binds to com.screenly.playlist and service 2 talks to it?20:04
sborovkovjdstrand: at the moment, nothing else. In the future there will be a few more services that will be client and the server at the same time, i.e. expose some stuff and call some other stuff.20:04
sborovkovjdstrand: correct20:04
jdstranddatajerk: ok, so with 4.4 you can look at the Ubuntu delta for 16.04, since that is a 4.4 kernel20:04
datajerkjdstrand thanks, do you happen to have a url for that, i'm not familiar with where ubuntu stores all their patches and deltas, thanks20:05
jdstrandsborovkov: ok, and in your yaml, playlist binds to the well-known name and websocket talks to it?20:05
jdstrandsborovkov: I thought I saw a url go by. I'll refer you to tyhicks to verify20:06
sborovkovjdstrand: yes, see my first mail I quoted that yaml subsections20:06
jdstrandsborovkov: right, I am looking at that email. I wanted to verify your code did that too20:06
Pharaoh_Atemjjohansen: main reason for this is because I considered pushing for AppArmor to be enabled in 4.9 for Mageia20:06
Pharaoh_Atembut there's no value if the patches aren't upstreamed20:06
zygaPharaoh_Atem: they are, look at mainline man, it's just not _all_ ready20:07
Pharaoh_Atemzyga: I don't know what to look for20:07
tyhicksPharaoh_Atem: 60 patches went up for 4.11 and some more should go up soon for 4.1220:08
zygaPharaoh_Atem: changes in security/apparmor20:08
tyhicksPharaoh_Atem: good progress is being made20:08
Pharaoh_Atemexcellent20:08
jdstrandsborovkov: I was a bit confused about the phrasing in the last email. I don't understand how websocket, ie, service 2 (the client of playlist) can 'get system bus without any issues' if service 1, playlist, can'20:08
Pharaoh_Atemthen that means that when the next longterm kernel rolls around this fall, it'll all be there20:08
jdstrandt register on dbus20:08
sborovkovjdstrand: well second service obtains system bus. When it tries to call method from "com.screenly.playlist" I get an exception that the name was not provided by any service file. In the server though the same line bus = SystemBus() triggers an exception (I am using pydbus)20:09
NicolinoCuralliall: Hi, a question about snapd.refresh timer: is it possibile by setting a configuration option with snap set command?20:10
sborovkovjdstrand: https://hastebin.com/lezozujaxi.sql20:10
jdstrandsborovkov: ok, so playlist didn't start because of an apparmor denail, and then websocket can't connect to it because it didn't start?20:10
sborovkovjdstrand: yup20:10
zygaNicolinoCuralli: hey, no but that timer has a purpose differen from what you may think20:11
tyhicksdatajerk: the patches for a 4.4 are here: http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/log/security/apparmor20:11
jdstrandsborovkov: what is the apparmor denial you see when playlist doesn't start?20:11
zygaNicolinoCuralli: that is a failover refresh20:11
Pharaoh_Atemzyga: the other reason is for figuring out if I wanted to attempt the backport, what I need to look for to get enough working for snapd20:11
jdstrandsborovkov: let's look at playlist first, then look at websocket20:11
zygaNicolinoCuralli: snapd does refresh internally and there's work (branches) in progress that will allow to configure how / when the refresh happens20:11
tyhicksdatajerk: you'll need them all back to "UBUNTU: SAUCE: (no-up) apparmor: add parameter to control whether policy hashing is used"20:11
sborovkovjdstrand: https://hastebin.com/pakuciqide.go20:12
sborovkovjdstrand: and this is   from python: GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.7" (uid=0 pid=1478 comm="python3 -m screenly.client.playlist -c /var/snap/s") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (20:12
sborovkovbus) (9)20:12
jdstrandwhy is there an overlay in the upper right that is covering important info?...20:13
sborovkovyou mean on hastebin? I have 2560x1440 resolution so I never noticed that20:14
jdstrandsborovkov: can you paste the denial here?20:14
jdstrandline 220:14
jdstrandsborovkov: nm, I went to https://hastebin.com/raw/pakuciqide20:16
NicolinoCurallizyga: i need to understand the algorithm used for update the snap : after a publication on store how many time i need to wait for update on my board? i just test it and no autoupdate happen20:16
mupBug #1679295 opened: Interface to access /sys filesystem <snapd-interface> <Snappy:New> <https://launchpad.net/bugs/1679295>20:17
tyhicksjdstrand: it looks like an incomplete paste to me20:17
jdstrandsborovkov: well, I take that back. it seems the log entry was truncated20:17
jdstrandsborovkov: look at interface="org.freedesktop.20:17
zygaNicolinoCuralli: I think it is randomized 6 hours20:17
zygaNicolinoCuralli: you can refresh manually20:17
jdstrandsborovkov: that is incomplete. can you paste the complete denial?20:17
NicolinoCurallizyga: my board run unattended: it is not possibile to run manually snap refresh on the board20:19
sborovkovjdstrand: oh one sec20:20
sborovkovjdstrand: https://hastebin.com/nijayemime.scala20:21
zygaNicolinoCuralli: setup ssh and log in20:22
zygaNicolinoCuralli: you had to install your snap somehow right?20:22
jdstrandsborovkov: that denial is saying an unconfined process is trying to introspect the playlist. is this on Ubuntu classic distro or all snaps?20:25
sborovkovjdstrand: it's on core20:25
NicolinoCurallizyga: yes, my problem is after first installation : after this moment i can't login on board20:25
jdstrandsborovkov: ok. what is introspecting playlist?20:25
zygaNicolinoCuralli: did you setup ssh on your launchpad account?20:25
NicolinoCuralliyes20:26
jdstrandsborovkov: (because on core there are no rules allowing introspection by unconfined)20:26
zygaNicolinoCuralli: can you ssh ubuntu@IP-of-the-board?20:26
sborovkovjdstrand: I've no idea. I have nothing else running there especially in unconfined. Image was created by ubuntu-image. With confinement set to strict in screenly-client snap20:27
jdstrandit looks like maybe dbus-daemon is introspecting it20:27
NicolinoCurallizyga: i will have several board ( thousand ) i can't ssh into all of them: this is the reason about my question on snap refresh mechanism20:28
jdstrandsborovkov: does your playlist code Introspect()?20:30
sborovkovjdstrand: not manually. pydbus might be doing that I guess?20:30
jdstrandmaybe20:31
sborovkovjdstrand: yeah I am pretty sure it does that, because it required library that supported introspection. gio something. or it's dependency.20:31
jdstrandsborovkov: can you add to /var/lib/snapd/apparmor/profiles/snap.screenly-client.playlist this rule before the ending '}'20:32
jdstrandsborovkov: http://paste.ubuntu.com/24308617/20:33
datajerktyhicks thanks!20:33
tyhicksnp!20:33
jdstrandsborovkov: after you add that you need to load it into the kernel with: sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.screenly-client.playlist20:33
sborovkovtrying20:34
jdstrandsborovkov: after you do that, please stop and start your service (eg, sudo service snap.screenly-client.playlist stop ; sudo service screenly-client.playlist start20:35
zygaNicolinoCuralli: the mechanism is as I described, for development you should have one board with working ssh20:35
jdstrandsborovkov: and let me know if there are any more denials20:35
jdstrandsborovkov: whoops, I meant: sudo service snap.screenly-client.playlist stop ; sudo service snap.screenly-client.playlist start20:35
sborovkovjdstrand: why not just restart it?20:36
sborovkovis there any difference?20:36
jdstrandsborovkov: I just wanted to make sure of a clean start. it shouldn't matter20:36
sborovkovjdstrand: getting the same denial it seems.20:36
jdstrandsborovkov: you loaded the profile with apparmor_parser?20:37
sborovkovyes20:37
jdstrandsborovkov: can you paste the new denial as well as /var/lib/snapd/apparmor/profiles/snap.screenly-client.playlist?20:37
sborovkovjdstrand: sure one moment20:38
jjohansenPharaoh_Atem, zyga, tyhicks: they exist again 4.10 in the bacport tree http://kernel.ubuntu.com/git/jj/linux-apparmor-backports/log/?h=v4.10-aa3.6-backport-base20:38
jjohansenI have not done an updated diff to 4.11 yet20:38
NicolinoCurallizyga: i want to use snappy on a production environment : i tested it on my development board and i find that snapd don't upgrade automatically after publication on store ; what mean it?20:38
sborovkovjdstrand: Denial - https://hastebin.com/jahisohuba.scala apparmor file - https://hastebin.com/upuminowup.pl20:39
jjohansenthe plan is to maintain a backwards/forwards port until everything lands upstream, then well just backports20:40
jdstrandsborovkov: oh, well, yes, the rule I gave was for 'receive', it should've been for send. let me rewrite the rule20:42
Pharaoh_Atemjjohansen: is aa3.6 referring to userspace utils version?20:45
Pharaoh_AtemI don't recall a 3.x series existing20:45
sborovkovjdstrand: after replacing receive with send it works. Or does it need more changes?20:45
jjohansenPharaoh_Atem: no, its the versioning for the dev kernels20:46
jdstrandsborovkov: it needs an additional change. please remove that rule and try: http://paste.ubuntu.com/24308686/20:46
NicolinoCurallizyga: i would like understand that what happen is it a bug? how could I help you to understand?20:46
jjohansenPharaoh_Atem: it wasn't supposed to be that way, and we will get back to things being more in sync,20:47
Pharaoh_Atemjjohansen: any idea on the timeline for that? as it is, I get pretty confused trying to figure out what I need for aa20:47
sborovkovjdstrand: done. it works.20:48
jjohansenPharaoh_Atem: hrmmm, this year sometime, we have agreed in principle to spin a 4.0 release for userspace, and what goes into upstream will be referred to as 4.x20:49
jdstrandsborovkov: ok, this is a bug in snapd. I'll prepare a PR and respond to the list20:49
sborovkovjdstrand: thanks for your assistance! Is there some workaround meanwhile?20:49
jdstrandsborovkov: in the meantime, you can workaround the issue by adding that rule and loading the policy. note that snapd occasionally refreshes the security policy so your changes may disappear at any time20:49
jjohansenI am hoping for 4.13, for everything landed20:50
jdstrandjjohansen: everything? that would be awesome :)20:50
sborovkovjdstrand: hmm, I can't use that. Since we would distribute images created with ubuntu-image to clients who don't have access to it. Guess I will need to wait for snapd update.20:51
Pharaoh_Atemjjohansen: that would make things really nice20:51
Pharaoh_AtemopenSUSE Leap will rebase on the next summer longterm kernel for 42.320:52
Pharaoh_Atemor actually, it might be frozen now, I'd have to check20:52
jdstrandsborovkov: like I said, I'll have the PR up in a few minutes and it should be in 2.24. you can go through your normal channels and see if someone wants to backport it to 2.2320:52
Pharaoh_Atembut openSUSE Leap 43.1 and SLE 13 would be in good shape (both are under development now)20:52
sborovkovjdstrand: understood. thanks again :-)20:53
jdstrandsborovkov: I don't know the snappy team's plans for 2.23 update vs 2.24 otherwise I could be more specific20:53
* jdstrand goes to fix the bug20:53
jjohansenPharaoh_Atem: I have been meaning to provide a kernel for suse in the obs, would that be of interest to you?20:55
Pharaoh_Atemjjohansen: for my purpose of figuring out AppArmor, yes20:55
sborovkovjdstrand: At least I can go to sleep knowing that this is going to be resolved. Just 5 minutes from midnight here :-)20:55
Pharaoh_Atemjjohansen: good news is, openSUSE maintains their kernel tree publicly in git, so you can work from it20:56
jjohansenPharaoh_Atem: okay, I'll see what I can do sooner than later20:56
Pharaoh_Atemjjohansen: https://github.com/openSUSE/kernel-source20:56
Pharaoh_Atemhttps://github.com/openSUSE/kernel20:56
jjohansenPharaoh_Atem: hehe, yeah I know though its only sort of git, they still use the old build patch queue system, they just shoved that into git. Well at least for the obs build sources I have played with, when building test kernels for cboltz20:57
Pharaoh_Atemjjohansen: yeah, it's really weird20:57
jjohansenits okay, I understand the old system, I used to work for suse on the kernel :)20:58
Pharaoh_Atemjjohansen: it's good someone understands it21:05
Pharaoh_AtemI certainly don't21:05
mupPR snapd#3133 opened: interfaces: allow slot to introspect dbus-daemon in dbus interface, allow /usr/bin/arch by default <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3133>21:08
jdstrandondra: fyi, https://github.com/snapcore/snapd/pull/3133 has the 'arch' fix21:11
mupPR snapd#3133: interfaces: allow slot to introspect dbus-daemon in dbus interface, allow /usr/bin/arch by default <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3133>21:11
zyganiemeyer: any chanece for a re-review on https://github.com/snapcore/snapd/pull/3095 ?21:23
mupPR snapd#3095: cmd/snap-update-ns: add C preamble for setns <Created by zyga> <https://github.com/snapcore/snapd/pull/3095>21:23
=== JanC is now known as Guest6267
=== JanC_ is now known as JanC
ondrajdstrand o/ thanks!21:32
mupPR snapd#3133 closed: interfaces: allow slot to introspect dbus-daemon in dbus interface, allow /usr/bin/arch by default <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/3133>22:09
mupPR snapcraft#1229 opened: source: add bazaar tracking <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1229>22:18
mupBug #1679432 opened: Bluetooth SCO connections don't work on Dragonboard 410c <Snappy:New> <https://launchpad.net/bugs/1679432>23:36
=== wxl is now known as lubot
=== lubot is now known as wxl

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