/srv/irclogs.ubuntu.com/2016/03/25/#snappy.txt

ccfielhello guys02:57
=== chihchun_afk is now known as chihchun
ccfielhello04:26
=== chihchun is now known as chihchun_afk
ccfielhello anybody here? :)04:46
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
renatHi all! It's Renat from Screenly.09:45
renatHello, jdstrand. I created a bug report with the issue I get: https://bugs.launchpad.net/snappy/+bug/156192009:45
ubottuLaunchpad bug 1561920 in Snappy "Seccomp error on recent builds of snappy" [Undecided,New]09:45
kyrofaGood morning11:20
didrockshey kyrofa!11:43
didrockshow are you?11:43
kyrofaHey didrocks! Doing well, and yourself? Keeping busy?11:44
didrockskyrofa: yeah, just back from Paris (stayed a couple of days for some event and meetup)11:45
kyrofaSounds like fun! I plan on trying to go there next time I'm in london11:47
didrockssweet! :)11:48
didrocksI demoed there the ascii as a service that I teased you about: https://twitter.com/didrocks/status/71291685118614323211:48
jdstrandrenat: ok, thanks11:49
ccfielhello guys!12:45
kyrofadidrocks, haha, that's awesome :)13:12
jdstrandrenat: before you said that this worked on a previous image. what did you mean by that?13:25
jdstrandrenat: what kernel, what os, etc13:26
ccfielhello13:33
ccfielanybody here? :)13:33
kyrofajdstrand, so I'm snapping a codebase that makes a call to setpriority(). That's denied under seccomp and the execution is aborted13:47
=== chihchun_afk is now known as chihchun
kyrofajdstrand, my current patch is to just comment out the setpriority(), but I'd like to suggest an upstream patch. Is there any way to check and see if setpriority() can be called before calling it?13:48
kyrofaccfiel, people are always here :) . If you have a question, just ask!13:48
ccfielkyrofa: hello! i know snappy has a copy plugin thats copy single file. how about multi files?13:49
kyrofaccfiel, the copy plugin can copy many files13:50
jdstrandkyrofa: not otoh. if you use it you get killed. if you could introspect your seccomp policy, perhaps, but you can't13:50
kyrofajdstrand, hmm...13:50
kyrofajdstrand, so in the case of seccomp-restricted calls, there's no upstream patch we can suggest huh?13:51
kyrofaThat's a bummer13:51
jdstranda compile time option or a runtime option to not use it could work13:52
ccfielkyrofa, where can I find a format in copy plugin? any tips?13:52
kyrofajdstrand, ah, yeah compile-time flag, good idea. Not sure why I didn't think of it, thanks!13:52
kyrofaccfiel, yeah that plugin doesn't have documentation, huh!? Please log a bug on that. Until we fix that, have a look at this example: https://github.com/ubuntu-core/snapcraft/blob/master/examples/webcam-webui/snapcraft.yaml13:55
kyrofaccfiel, note the `files` key. Just add more items to it13:55
josephtI filed bug #1562000 against snapcraft.  I was starting to worry when I got an email yesterday about a snap I uploaded to the store but didn't upload a snap to the store.13:56
ubottubug 1562000 in Snapcraft "when running runtest.sh while logged in uploads a snap to the store" [Undecided,New] https://launchpad.net/bugs/156200013:56
jdstrandolli: hey, mentioning this to you because mvo is offline. bug #1561920 seems to be a problem with the raspi2 kernel13:56
ubottubug 1561920 in Snappy "Seccomp error on recent builds of snappy" [Critical,Confirmed] https://launchpad.net/bugs/156192013:56
jdstrandolli: see my comment #213:57
ccfielkyrofa, ok. I have already tested it. So we need to do for now specify each of the files. There is no option for wild cards *.py  :) is that correct?13:57
jdstrandolli: summary-- rpi2 cannot launch confined apps13:58
jdstrandolli: I'm not sure who this would be assigned to, so coming to you13:59
ollijdstrand, looking14:00
ollitrying to assign to ogra_14:00
ogra_boo14:00
ogra_:P14:00
olliI hear you do things with dem RPis14:01
ogra_yeah ... assign to me ... most likely a kernel issue though14:02
jdstrandI'm going to try the previous kernel now14:02
ogra_(thought i'm not sure what the --enable-ssh and --developer-mode options do to the all-snaps image ... afaik they are obsolete and might break stuff)14:02
kyrofaccfiel, that should work14:03
ogra_there is a new kernel in -proposed ... but we need to wait til it migrated14:03
kyrofaccfiel, the copy plugin does globbing14:03
* ogra_ notes that he isnt officially here :)14:03
kyrofaRight, ogra_ out today and Monday, yeah?14:03
ogra_yep14:03
ogra_(finally some time to play with kodi on the rpi ;) )14:04
kyrofaogra_, snapping? Or that custom distro?14:04
jdstrandogra_: where is canonical-pi2-linux?14:04
jdstrandI don't see it in the shared account14:05
jdstrandoh, I might have a way to find it14:05
ogra_jdstrand, pick the right package type at the top14:05
* ogra_ *always* runs into that 14:05
jdstrandoh there it is14:06
ogra_:)14:06
kyrofajosepht, yeesh, sorry about that14:06
ogra_daily is at http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/xenial-preinstalled-core-armhf.raspi2.kernel.snap14:06
jdstrandthat's weird, the shared account looks like it is showing snappy stuff, and then you click on core apps and you get different snappy stuff14:06
ogra_yeah14:06
* ogra_ would appreciate a cookie that just saves your last view14:07
ogra_after login it defaults to click ...14:07
jdstrandogra_: I guess your on holiday (sorry). I'm going to run down those kernels and see which one last worked14:07
ogra_LD      kodi.bin14:07
ogra_-----------------------14:07
ogra_Kodi built successfully14:07
ogra_-----------------------14:07
ogra_(classic)ubuntu@localhost:~/xbmc$14:07
ogra_:D14:07
olliwhut?14:07
olliseriously?14:08
kyrofaogra_, good luck _running_ it14:08
ogra_only built the git tree yet and running it under xorg in classic ...14:08
kyrofaAh!14:08
ogra_cleaning that up for snappification comes later :)14:08
ccfielkyrofa, i tried *.py: bin/*.py14:09
olliogra_, mind grabbing that bug from Jamie, apparently I am not smart enough to assign you14:09
ccfielbut error " expected alphabetic or numeric character, but found '.' on line 22 of snapcraft.yaml"14:09
ollihttps://bugs.launchpad.net/snappy/+bug/156192014:09
ubottuLaunchpad bug 1561920 in Snappy "Seccomp error on recent builds of snappy" [Critical,Confirmed]14:09
ogra_olli, done14:09
ollithx14:09
kyrofaccfiel, try *.py: bin/14:11
kyrofaHmm... that still may not work14:12
jdstrandhrmm, installing canonical-pi2-linux.canonical_4.3.0-1006-6_armhf.snap hosed my install14:14
jdstrandogra_: is there a minimum kernel snap version I need to use with latest os/udf/etc?14:14
ogra_nope, shouldnt14:14
ogra_thats indeed 4.314:15
ogra_4.4 waits for elopio to approve14:15
jdstrandogra_: in the bug you can see that 4.4 is in the store14:15
ccfielkyrofa, when I add in files. in copy it does not executed. do I need to do snappy clean always if I change something?14:15
ogra_(though i think we should simply release the whole set untested as alpha for now ... so we finally have something usable )14:15
jdstrandoh, it is starting to come up14:16
ogra_jdstrand, 4.4 is on cdimage and uploaded to the store into edge14:16
kyrofaccfiel, indeed, Snapcraft doesn't currently notice changes in the yaml. It's something we're working on14:16
ogra_but not moved to stable14:16
jdstrandI see what you mean14:16
jdstrandoh, I think rollback may have worked14:16
jdstrandI'm back into the 4.4 kernel14:17
* jdstrand regenerates with udf14:17
jdstrandkyrofa: fyi, I found myself doing this a lot lately with dirs in different locations and not wanting to overlay '/': http://paste.ubuntu.com/15496227/14:19
jdstrandkyrofa: I imagine you probably already scripted that, but if not, there you go14:19
jdstrand./overlay-dir /lib14:20
jdstrand./overlay-dir /usr14:20
jdstrandetc14:20
kyrofajdstrand, awesome, thanks! I hadn't actually-- haven't had to use it recently, but I'll keep this in my back pocket14:20
kyrofaSuper useful14:20
jdstrandit is quite handy14:20
ccfielkyrofa, clean and doing staging again takes long to finish :(14:37
kyrofaccfiel, try just `snapcraft clean -s build` to only clean back to the build step14:38
kyrofaSo you don't need to pull again etc.14:38
kyrofaAlthough I guess that depends on what version of snapcraft you're on14:38
jdstrandhmm, that 4.3 kernel will not boot14:44
ccfielkyrofa, I will try that next time I do a clean14:44
* jdstrand move to next one14:44
renatjdstrand, hello!14:46
renatIf you want to boot previous version of the kernel you need to use canonical-pi2.canonical version 3.014:47
jdstrandrenat: this one: https://myapps.developer.ubuntu.com/dev/click-apps/4284/rev/3/14:48
renatjdstrand, access denied=(14:49
jdstrandrenat: canonical-pi2-linux.canonical_4.3.0-1006-2_armhf.snap14:49
jdstrand?14:50
renatcanonical-pi2-linux.canonical_4.3.0-1006-6_armhf.snap14:50
jdstrandI tried that one. it wouldn't boot14:50
renatThis gadget snap will boot canonical-pi2.canonical_3.0_all.snap14:50
jdstrandrenat: what udf invocation are you using with that kernel?14:50
renatYes, you need appropriate gadget snap.14:50
renatI don't know=(14:50
jdstrandoh, which gadget snap?14:51
jdstrandoh I see14:51
jdstrandman, these packages names are quite similar14:51
renatPrevious version. 3.0: https://public.apps.ubuntu.com/anon/download/canonical/canonical-pi2.canonical/canonical-pi2.canonical_3.0_all.snap14:51
renatThis may work. I create our gadget snap from it.14:51
* jdstrand is trying14:54
=== chihchun is now known as chihchun_afk
ogra_you can use any gadget btw ... but need to manually copy the dtb from system-boot/canonical..../dtbs to system-boot/15:06
ogra_(by default 3.0 uses the dtb from kernel 4.3 and 3.1+ uses 4.4)15:07
jdstrandah15:09
jdstrandthat explains that them15:10
jdstrandthen*15:10
jdstrandogra_: I can confirm that 4.3.0-1006-6 works. would it help if I went farther?15:10
ogra_jdstrand, nah ... i'll talk to ppisati15:16
jdstrandok15:16
ogra_and we should also wait for the kernel from -proposed15:16
ogra_jdstrand, can you run dmesg without sudo on 4.3 ?15:17
ogra_i noticed i cant on 4.415:17
ogra_might be related15:17
ogra_ppisati, could you take a look at bug 1561920 ... seems kernel related15:23
ubottubug 1561920 in Snappy "Seccomp error on recent builds of snappy" [Critical,Confirmed] https://launchpad.net/bugs/156192015:23
ppisatiogra_: added it to the pile, i'm finishing one thing with the dboard ATM15:31
ogra_no hurry ftrom my side :)15:31
josephtI'm trying to build a armhf version of my snap on my rpi2 but I'm getting a checksum mismatch when it's reviewed in the store.  https://myapps.developer.ubuntu.com/dev/click-apps/4710/rev/7/15:57
ccfielkyrofa, it works just need to put qoute '*.py': bin/16:11
ysionneauhttp://paste.ubuntu.com/15498365/ < where can I find the "AppArmor 2.4 compatibility patches"?16:51
ysionneauah seems to be there http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/apparmor/vivid/files/head:/kernel-patches/3.10/16:52
josephtkyrofa: do you have any idea why I'd see that? ^19:27
stgraberjdstrand: new LXD rc uploaded to the store22:11
jdstrandapproved22:15
stgraberthanks22:19

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