/srv/irclogs.ubuntu.com/2015/06/18/#snappy.txt

stgraberworking LXD snap: https://plus.google.com/+St%C3%A9phaneGraber/posts/aX6vogzEQ1X00:13
stgraberjust got to work on making a more restrictive policy so that it's acceptable for the store00:13
mikenWow, that's pretty exciting stgraber . Nice work!00:29
sergiusenselopio: for later lp:~sergiusens/snappy/upgradeBlockedSelfTest02:50
sergiusenselopio: but I can't run adt on trusty02:50
sergiusenselopio: 2015/06/17 23:49:21 Error while running [adt-run -B --setup-commands touch /run/autopkgtest_no_reboot.stamp --setup-commands mount -o remount,rw / --setup-commands dpkg -i /tmp/snappy-debs/*deb --setup-commands sync; sleep 2; mount -o remount,ro / --override-control debian/integration-tests/control --built-tree /home/sergiusens/go/src/launchpad.net/snappy --output-dir /tmp/snappy-test/output --copy=/tmp/snappy-test/debs:/tmp/snappy-debs --- ss02:50
elopiosergiusens: you probably need adt from the ppa.03:36
elopiohttps://packages.debian.org/sid/autopkgtest03:42
elopionot the ppa, the deb ^03:42
elopiosergiusens: I don't fully understand everything you are doing in your test, but instead of writing the installYaml file, can't we call ubuntu-device-flash with a device-part and deploy that to the testbed?04:44
elopiosnappy team, for when you get up, we seem to have a regression: https://bugs.launchpad.net/snappy/+bug/146631104:59
ubottuUbuntu bug 1466311 in Snappy "selftests fail with: ubuntu-core-launcher: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such file or directory" [Undecided,New]04:59
elopio@nothal help05:01
nothalelopio: No such command!05:01
elopionothal -h05:01
elopio@nothal -h05:01
nothalelopio: No such command!05:01
elopio@nothal info05:02
nothalelopio: No such command!05:02
dholbachgood morning06:51
fgimenezgood morning07:01
=== erkules_ is now known as erkules
=== chihchun_afk is now known as chihchun
JamesTaitGood morning all; happy International Picnic Day! 😃09:04
Chipacapicnic \o/09:27
dholbachhey JamesTait - picnic today would be fantastic :)09:39
dholbachJamesTait, I'm looking at the oem snap bits again today and I'm not quite sure how I'm supposed to use the API :)09:41
dholbachJamesTait, http://pastebin.ubuntu.com/11734613/ is the bits of information I extracted from our discussion yesterday09:41
dholbachbut I'm not quite sure where to go09:41
ogra_bah, couldnt they pick a day with better weather at least :P09:42
JamesTaitdholbach, what is it you're wanting to find, exactly?09:45
dholbachall snaps of the type oem09:46
dholbach(not sure if we're going to rename them to gadget snaps at some stage?)09:46
JamesTaitdholbach, I think `curl https://search.apps.ubuntu.com/api/v1/search?q=content%3Aoem -H 'X-Ubuntu-Frameworks: ubuntu-core-15.04-dev1'` should get what you want?09:48
dholbachcool thanks JamesTait - I'll play around with that a bit more09:51
=== chihchun is now known as chihchun_afk
JamesTaitdholbach, it's a bit awkward, because we want queries to be additive - adding more terms to the query should match more documents, with those matching more terms scoring higher so coming first in the results (simplifying a bit) - but filters need to be subtractive - i.e. "don't show me anything I can't use with these frameworks/this architecture/etc."09:54
dholbachyep, ok09:55
Chipacaanybody know what restrictions apparmor places on package names / versions / etc, if at all?10:03
jjohansenChipaca: apparmor it self? minimal if any, however the are guides for what is allowed in the name10:05
jjohansenhttps://developer.ubuntu.com/en/snappy/guides/packaging-format-apps/10:05
Chipacajjohansen: yep, i'm aware of what we've documented10:06
Chipacajjohansen: i'm documenting what we actually restrict10:06
jjohansenChipaca: apparmor does have a few limits on its profile names, the first character is restricted and // is used as name separator similar to how / is used in filenames10:06
jjohansenChipaca: so I am not sure the exact mapping of snap name to profile name10:07
Chipacajjohansen: ok, ta10:07
jjohansenChipaca: currently profile names, require an alpha-numeric or '/' start character10:07
jjohansen\0 is not allowed as a valid character in the name, and // is interpreted as a name separator10:08
jjohanseneg.  profile_name//child_name10:08
Chipacajjohansen: alphanumeric is [a-zA-Z0-9], yes?10:09
jjohansen+, &, : are allowed as a leading character in some cases (as compound labels) but not actual profile names10:09
jjohansenso you might seem them reported by say ps -Z10:09
jjohansenChipaca: its actually wider than that10:10
Chipacawhat even is ps -Z10:10
Chipacanot in the manpage :)10:10
jjohansenChipaca: ps -Z will show the security label on a process10:10
jjohansen$ ps -Z10:11
jjohansenLABEL                             PID TTY          TIME CMD10:11
jjohansenunconfined                       3253 pts/1    00:00:01 bash10:11
jjohansenunconfined                       6951 pts/1    00:00:00 ps10:11
Chipacayep10:11
Chipacajjohansen: how is the security label connected to the apparmor profile?10:11
jjohansenthat label is mostly likely a profile name, but it could be a compound label10:11
jjohansena profile is a label, but a label could be composition of multiple profiles10:12
jjohansenA//&B10:12
jjohansenis the intersection of profile A and profile B10:13
Chipacawoh10:13
Chipacainteresting10:13
jjohansenthis can show up on stacked tasks (not landed yet)10:13
Chipacai'm going to just leave it at "starts with alphanumeric or /", and pretend the other cases are for people who know what they're doing10:13
jjohansenbut also on sockets, and files that have been shared between apps10:13
Chipacaas what i'm trying to document are the limitations and checks put on a package from its metadata10:14
jjohansenChipaca: that is a good idea, at least for now10:14
Chipacak10:14
rsalvetisergiusens: ogra_: http://cdimage.ubuntu.com/ubuntu-core/vivid/daily-preinstalled/pending/ seems all good for vivid as well10:24
Chipacamvo_: sergiusens: documenting what we actually do with metadata is making me sad10:30
rsalvetiChipaca: lol, why?10:35
Chipaca`name`: documented as `[a-z0-9][a-z0-9+-]`. The `package.yaml` parser requires it to be non-empty (all-whitespace is ok) and that it doesn’t contain a `.`, but otherwise doesn’t care. `ubuntu-core-launcher` requires that appname match `^[a-z0-9][a-z0-9+._-]+$` (this includes the origin though). Apparmor requires the profile name (derived from the package name) start with an alphanumeric (or /). Click review checks against `^[a-z0-9][a-z0-9+-]+$`10:35
mvo_Chipaca: meh, sounds like a good opportunity to fix it10:36
Chipacamvo_: concentrating on writing it out10:36
Chipacamvo_: then we can see what/how we fix10:36
Chipacait's not just name :)10:36
mvo_Chipaca: ok, thanks for finding that10:36
Chipacaand arguably, maybe the checks do belong just in the review tools and snappy should be laxer?10:36
Chipacai don't know10:37
Chipacai'm just documenting so we can have the discussion :)10:37
Chipacatrying not to get too bogged down though10:37
rsalvetiyeah10:37
Chipacabut things like the service's name not being required by the tools are already catching people off guard (because things break)10:37
ogra_rsalveti, yeah !10:42
sergiusenselopio: that's what I mentioned in the standup; I wanted a full e2e test but how do I trigger this, where do we store the alternate device.tar (it's not small), etc...11:29
sergiusenselopio: shouldn't we have adt in a ppa?11:36
mvo_barry: good morning! I'm curious, what happend here https://code.launchpad.net/~barry/ubuntu-system-image/trunk ? it says "11:47
mvo_This branch has not been pushed to yet." - I wantd to look at fixing this one bug we talked about yesterday11:47
Chipacajdstrand: you around?11:53
sergiusenshmm, I can't run our integration tests/adt on trusty, it logs me out12:07
ogra_might be a security feature :)12:08
sergiusensogra_: right...12:10
sergiusensfgimenez: any ideas?12:10
sergiusensfgimenez: btw lp:~sergiusens/snappy/upgradeBlockedSelfTest12:11
sergiusensfgimenez: but elopio wants to run the E2E test from the start (I guess he wasn't paying attention to what I said during standup :-P)12:11
jdstrandChipaca: I am here but I am heading into a meeting in a few minutes. can I circle back to you?12:42
fgimenezsergiusens, no ideas atm :( we can talk with elopio later12:43
fgimenezsergiusens, your branch looks great! now we can split the related tests in different files for instance https://code.launchpad.net/~fgimenez/snappy/failover-tests/+merge/26219112:44
sergiusensChipaca: you should go back to square one until he circle's back with you :-P12:47
mvo__rsalveti: could you commit the recent changelog entries from the upload to trunk please? or if you don't have it I handy can do it too, but currently the daily builds are not updated because of the version number difference12:51
rsalvetimvo__: oh, creap12:51
rsalveticrap12:52
rsalvetiI always do that12:52
rsalvetigive me a minute12:52
rsalvetimvo__: done, sorry for that12:54
mvo__rsalveti: no worries12:54
rsalvetiyou get that feeling that dput is the end result and forget to run bzr push :-)12:54
rsalvetiwould be better if a bzr push would automatically cause a dput (or similar)12:54
rsalvetibut well :-)12:55
mvo__rsalveti: yeah or if we could simply sync our ppa version to hte archive or something12:59
mvo__rsalveti: fwiw, I'm starting the 16.04 filesystem and packaigng format docs, I noticed they are in the sprint agenda with my name on them12:59
Chipacasergiusens: you dieded13:01
Chipacasergiusens: hangouts don't like people talking nasty things about grub13:02
mvo__Chipaca: haha - oh grub13:05
mvo__Chipaca: anything interessting that is more interessting than trying to write about fs layouts?13:05
Chipacamvo__: https://plus.google.com/hangouts/_/canonical.com/theGoodTheBadAndTheUgly?authuser=113:06
* sergiusens suggests mvo__ to run /nick mvo13:07
barrymvo__: i'm a bad person: https://code.launchpad.net/ubuntu-system-image/+git13:08
davmor2sergiusens: but he has been growing that pony tail for so long13:08
=== mvo_ is now known as mvo
mvobarry: heh, excellent13:15
rsalvetimvo: the problem with package sync is that the archive police will complain that the changelog contains only "auto build"13:19
rsalvetimaybe we could improve that with our build scripts13:19
rsalvetimvo_: the problem with package sync is that the archive police will complain that the changelog contains only "auto build"13:19
rsalvetiseems you're having a personality issue13:19
rsalvetibarry: nice13:20
rsalvetimvo: thanks, got a link for the doc?13:20
barryrsalveti, mvo: yep, it's great until i tried to land the package through the train.  i feel like i've derailed, or more accurately, tried to drive on a railroad with a different gauge ;)13:21
rsalvetioh right, not train compatible13:21
barryrsalveti: except that i have a separate packaging branch and that is still bzr.  the problem is that `bzr merge-upstream` on the resulting orig.tar.gz doesn't do the same thing if you can't merge in the upstream branch too, and that's where i'm going off the rails.  I've got one or two more things to try and then i'm going to punt and do a "normal" distro upload13:26
rsalvetibarry: looks painful, wonder how hard would be for the train to actually support git13:40
barryrsalveti: i got the impression from robru that it wouldn't be terribly difficult, it's just that they really, really, really need to kill the spreadsheet first13:41
rsalvetihahaha13:41
rsalvetiindeed13:41
sergiusenskilling the spreadsheet is getting old :-P13:41
rsalvetidon't think it will die13:41
sergiusensseems like a myth13:41
rsalvetiyeah13:41
barrynaw, it just has enough lives to keep 3 or 5 kittens dancing on rainbows13:41
kyrofasergiusens, ping13:44
sergiusenskyrofa: pong13:46
kyrofasergiusens, morning! Quick question: the webdm api uses both DownloadSize and InstalledSize. Knowing which to use if the package is either installed or not installed is easy, but which do I use when Installing/Uninstalling?13:47
kyrofaA quick glance at the code makes me think installed -> InstalledSize, everything else -> DownloadSize13:48
kyrofaBut I wanted to double-check13:48
sergiusenskyrofa: that is the right logic13:48
sergiusenskyrofa: btw, do you have time today to discuss the new api?13:48
kyrofasergiusens, sure! I have standup at in about 45 minutes, but I'm free otherwise13:49
sergiusenskyrofa: so in 10'?13:51
kyrofasergiusens, sounds good13:53
=== mvo_ is now known as mvo
kyrofasergiusens, I sent you an invite with a video link13:59
mvohrm, we really need to kill this global lock, autopilot preventing instlaling apps is anoying14:00
sergiusenskyrofa: one more sec14:01
kyrofasergiusens, no hurry :)14:02
sergiusenskyrofa: btw, you can make up links as you go14:02
kyrofasergiusens, you mean for the hangouts? Yeah, I'm still new at this :P14:03
sergiusenskyrofa: https://plus.google.com/hangouts/_/canonical.com/[whateveryouwant]14:03
kyrofasergiusens, heh, good to know, thanks :)14:03
elopiogood morning14:07
elopiofgimenez: I'm in the call. talky.io seems nicer than firefox hello.14:07
fgimenezelopio, mine says connecting...14:08
elopiofgimenez: I can see you... So not much better.14:08
elopiofgimenez: yes, I can hear  you.14:09
elopiowell, not anymore.14:09
fgimenezelopio, wait, i'll try again14:09
alecutedg: hi! Is there something similar to click hooks in the snap installer?14:24
alecutedg: also, is there something preventing snaps from shipping old fashioned .desktop files?14:25
elopiofgimenez: it could be talky killing my connection :(14:27
tedgalecu, Not yet, I've made a proposal on that, but it hasn't be ratified.14:37
tedgalecu, It will definitely be needed for the Ubuntu Personal use-cases14:37
elopioTeam, can you please look at this: https://bugs.launchpad.net/snappy/+bug/146631114:38
elopiobreaks the selftest14:38
ubottuUbuntu bug 1466311 in Snappy "selftests fail with: ubuntu-core-launcher: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such file or directory" [Undecided,New]14:38
elopiorsalveti: ^14:38
tedgalecu, They can ship a desktop file in the package, but it's not clear whether they have to or not. The thing that won't be possible is to write the temporary ones to ~/.local/share/applications/, those will die.14:39
* tedg does a happy dance14:39
rsalvetielopio: against which image/channel?14:39
elopiorsalveti: rolling edge.14:39
elopiodoesn't happen on stable 15.04 that was the other I tried.14:40
elopioChipaca: you said building the snappy for arm was simple. How do you do it?14:51
Chipacaelopio: you mean snappy the commandline tool?14:56
elopioChipaca: yes.14:56
Chipacaelopio: http://bazaar.launchpad.net/~snappy-dev/snappy/snappy/view/head:/docs/cross-build.md14:56
elopioI was looking in the readme :)14:57
Chipacaelopio: qué bruto, póngale cero14:57
elopio:D14:58
elopioChipaca: but to get the arm deb, well have to make a chroot, right?14:58
Chipacaelopio: unless you _really_ enjoy playing with ar, yes14:59
Chipacawell, dpkg-deb could probably do it :)14:59
=== tvoss is now known as tvoss|test
=== tvoss|test is now known as tvoss
alecutedg: sounds good, thanks!15:09
jdstrandChipaca: hey, what's up?15:16
Chipacajdstrand: hey! um.... i think i got my questions answered :) thanks!15:17
jdstrandok15:18
sergiusensfgimenez: elopio maybe you ca merge my branch into yours15:18
sergiusensfgimenez: elopio or maybe move that branch you are working on to be owned by snappy-dev15:19
Chipacajdstrand: i think the last one was about click-review, wrt what ran check_framework, but i found the inspect call15:28
elopiofgimenez: sergiusens: +1 to merge this rev: http://bazaar.launchpad.net/~sergiusens/snappy/upgradeBlockedSelfTest/revision/51015:29
elopioI would like to keep the test in a separate MP.15:29
sergiusenselopio: sure15:29
* elopio gets a trusty vm15:38
sergiusensLaney: http://paste.ubuntu.com/11735924/15:41
sergiusenscan you take a look and fix that please?15:42
fgimenezsergiusens, elopio ok merged into lp:~fgimenez/snappy/go-functional-tests15:47
roadmrhey snappers! I hooked up a webcam to my rpi2 and installed the webcam snap but it gives a permission denied error. I already 666'd /dev/video0, where else could I look? http://paste.ubuntu.com/11735959/15:48
sergiusensroadmr: you need to hw-assign to the snap15:49
sergiusensroadmr: https://developer.ubuntu.com/en/snappy/guides/appliance-builder-guide-webcam/15:50
roadmrsergiusens: oh! cool, let me do that15:50
roadmrsergiusens: haha thanks, that was my next question: "where would one find out about this?"15:50
* roadmr just deleted the webcam snap by mistake - reinstalling haaha15:51
sergiusensroadmr: I fear we don't have specific docs about security things at a user level, do we jdstrand ?15:51
elopiosergiusens: but I still need the -uc -us to avoid the signing.15:51
sergiusenselopio: sure, add that back15:51
jdstrandsergiusens: we do not afaik. hw-assign should be documented somewhere15:52
jdstrand(in all its forms)15:52
elopiofgimenez: and we need a better handling on the command line arguments. For now we could support running in beaglebone by passing the debDir.15:52
sergiusenselopio: I added the "provide my own bzr bd'ed debs" since this did something weird with my system (http://paste.ubuntu.com/11735996/)15:53
plarselopio: so I was thinking more about our discussion and got to wondering... could we use the a-b booting of snappy to try new images with automatic recovery if things go badly? Do we have enough control from within snappy to make that happen?15:53
sergiusenselopio: just use the flags package or what we use15:53
fgimenezelopio, i had a branch somewhere that used flag, worked pretty well15:53
sergiusenselopio: http://golang.org/pkg/flag/ or http://godoc.org/github.com/jessevdk/go-flags (which we use everywhere now)15:54
plarselopio: so in other words, keep system-a as a stable image that we never really need to change, use it to flash the new stuff (even possibly a different channel, release, etc) to system-b, reboot, see if we are in the new one, run tests, and force it back to system-a when we are done?15:54
fgimenezelopio, http://bazaar.launchpad.net/~fgimenez/snappy/cross-compile-debs/view/head:/_integration-tests/main.go15:54
elopioplars: we want to test upgrades, so we need to put in a version n-1 and in b version n.15:55
jdstrandsergiusens: I was going to do an MP for hw-assign and then decided not to because I didn't feel I had all the details for the oem part bits and wasn't sure if there was something beyond oem and the hw-assign command15:55
plarselopio: oh I see, that would break upgrade testing15:56
elopioplars: for that to work, we would need a c partition, with the pristine factory approved image. Which is something I think sergiusens is planning for.15:56
roadmrsergiusens: thanks, it works \o/ I'm now reading that doc you pointed me to15:56
plarselopio: can we have a system-c for that? :)15:56
plarshah, that's what I was just wondering15:56
plarsso the pristine image in c would be our "stable" image that we always go back to for flashing the other ones?15:57
plarssergiusens: how would all that work exactly?15:57
elopioplars: https://docs.google.com/document/d/15nqsGbqxSzArRoqjnydsUYfbqHDYNtVayo6WlrmVGG0/edit#15:57
plarssergiusens: right now I'm planning some hard-wired boot control with relays to select whether we boot from emmc or sd on bbb, but something like this would give us a better mechanism that could work even in the absence of emmc15:57
sergiusensplars: my plan is for a snappy-factory partition15:58
sergiusensplars: elopio and now I get to say ricmm has ignored my proposal so far ;-)15:59
* sergiusens drops a smoke bomb to go get some lunch16:00
elopiosergiusens needs a hug. He's feeling ignored often these days :)16:00
Laneysergiusens: ok, done16:00
sergiusensLaney: thanks16:01
plarssergiusens: it sounds like this would give me exactly what I'm looking for, as long as I could force booting into recovery somehow, it can even be used to flash a completely new image on the non-recovery part right?16:02
sergiusensplars: yeah, it can be a deploy/installer thing as well16:03
sergiusensplars: and no more u-d-f complications either :-P16:03
plarsricmm: how many beers can we bribe you with to look at this? ^ :)16:03
=== kickinz1 is now known as kickinz1|away
=== rickspencer3_ is now known as rickspencer3
plarssergiusens: elopio: so how does that work if it fails to boot the image that you flash (or upgrade to)? Does it automatically failover or do you have to take some action?16:06
ogra_plars, beers dont work, try lagavulin16:07
plarsogra_: that works too, as long as I can help drink it :)16:07
ogra_:)16:07
elopioplars: currently, you have to reboot to failover to the good image.16:07
elopioI think that should happen automatically.16:07
sergiusensplars: http://blog.sergiusens.org/posts/Snappy_rolling_back_on_kernel_panic/16:08
ricmmricmm: this is being looked at and spec'd16:08
ricmmthe factory partition that is16:08
plarselopio: that could be handled by waiting a reasonable amount of time to boot and triggering the reset if you don't hear back in time. And on reboot it would automatically boot the other one somehow? /me looks at the post16:09
elopioplars: yup. Or you could even perfor a factory reset by pressing buttons if the board is unresponsive.16:11
fgimeneznice evening everyone o/16:12
zygaogra_: what's needed to get raspberry pi to upgrade normall?17:00
ogra_zyga, all kernel code upstream, all uboot code upstream17:00
zygaogra_: hmm, but if I have a normal os snap and rpi specific snaps for the rest17:01
zygaogra_: should it not be possible to upgrade in-image?17:01
zygaogra_: I see that the kernel code is not in mainline kernel17:01
ogra_you could update these two parts manually perhaps17:01
zygaogra_: I see, thanks17:01
ogra_but snappy upgrade will still not give you an upgrade of ubuntu-core via the store17:02
zygaogra_: btw, for beagle, have you tried USB-booting?17:02
jkridnerzyga: with BBBlfs?17:02
zygajkridner: yes17:03
ogra_nope, Pi kept me busy the last weeks, i havent touched my beagle for a while17:03
zygajkridner: there are other tools but that's the one I thought about17:03
jkridnerzyga: yeah. that's the one I think has the most attention now...17:03
jkridnerI'm in the process of trying to setup a test bench using bbblfs.17:04
ogra_zyga, it shouodnt be a prob to switch the writable partition to USB actually17:04
ogra_the initrd mounts everything by labels ...17:04
zygaogra_: no, not like that17:04
zygaogra_: flash remotely via usb-otg17:04
ogra_oh17:04
ogra_like the panda17:04
zygajkridner: what are you doing this for?17:04
zygaogra_: yes17:04
zygaogra_: probably _exactly_ the same ;-)17:04
longsleepogra_: Have you looked into available entropy on the RPi2 when it generates ssh keys on first boot?17:04
ogra_:)17:04
zygajkridner: I'n looking at working with a few people to set this up for the testing lab17:05
ogra_longsleep, not yet, nope17:05
ogra_i'm still figthing with dtb overlay support ...17:05
ogra_why cant every board be as nice as the beagle *sniff* :(17:05
longsleepogra_: DTB overlay - what do you need it for?17:05
zygajkridner: what is your goal?17:05
zygajkridner: perhaps we can work together17:05
jkridnerzyga: I'm also looking at using the BeagleBone Black's ability to cut power to the USB.17:06
ogra_longsleep, the Pi doesnt allow using the extension headers with i2c if you dont add the right dtb overlay ... etc etc ... (there are more overlays for other HW parts)17:06
longsleepogra_: well i guess Snappy needs a way to handle any messy U-Boot and Kernel :)17:06
ogra_yeah17:06
ogra_thats what i'm fighting with17:06
zygaogra_: actually, I was meaning to ask you about one thing17:06
jkridnerI'm trying to build a test infrastructure for the http://github.com/beagleboard/linux and http://builds.beagleboard.org with a bunch of capes attached.17:06
jkridnerbeaglebone-per-cape.17:07
zygaogra_: can we try to formalize remote flashing for snappy core17:07
jkridnerso that we can make sure all the capes are supported in the mainline kernel.17:07
zygaogra_: we'll need that a lot for the lab17:07
zygajkridner: oh, fantastic17:07
longsleepogra_: I see - i have a similar "problem" - i need to remove certain stuff from the DT based on boot settings - can that be done with overlay too?17:07
zygajkridner: so I have to ask, have you tried lava?17:07
zyga[I used to hack lava a lot in the past]17:07
* jkridner looks around for rcn-ee17:07
ogra_zyga, well, you wont do it fully remote unless you have some MMC or other storage with the bootloader onboard17:07
zygaogra_: for beagle and some others that's true17:07
zygaogra_: but let's think big17:08
zygaogra_: for products17:08
ogra_yes, thats the prob :)17:08
zygaogra_: something we could require at snappy level17:08
ogra_thinking big means taking tons of cases into account17:08
zygaogra_: android wouldn't go far without fastboot/adb17:08
zygaogra_: or forcing standards17:08
ogra_so we need to start actually small to be flexible ;)17:08
jkridnerwe plan to overwrite the bootloader in eMMC using the ROM bootloader.17:08
rcn-eejkridner, never touched lava. ;)17:08
ogra_rcn-ee, its hot !17:08
longsleepI will be adding a couple of issues to the Snappy tracker soon, regarding entropy, customization of boot and such - or is it too early to push for stuff like this?17:08
zygajkridner: I'm starting to build a lab-as-a-service17:09
zygajkridner: with a few other people17:09
ogra_longsleep, no, keep the bugs coming17:09
ogra_longsleep, we might not solve it immediately, but having it tracked is important17:09
zygajkridner: our first use case is exposing beagle's for testing anything17:09
jkridnerright now, we are just trying to establish we can power cycle and boot/flash a downstream board.17:09
ogra_longsleep, i need to try your image on my odroid too :)17:09
jkridnertrying to minimize cost and complexity, leveraging whatever Beagles give us.17:09
zygajkridner: we have a lot of experience with that, plars can tell you about it :)17:09
longsleepogra_: Great - then i will just keep adding them once i have understanding what i would need17:09
zygajkridner: there's a trick that we used in lava and that works well for mostly anything17:10
longsleepogra_: Yeag that would be awesome. I heard reports from all over the world that it seems to be working.17:10
ogra_well, plars wrote lava ... essentially :)17:10
zygajkridner: all that you need is a way to power the board17:10
zygaogra_: hey, I wrote a lot of it too :P17:10
ogra_oh, right :)17:10
plarsindeed, zyga was right there sharing the blame :)17:10
ogra_i always forget that you were on the other side of the fence for a while17:10
zygaogra_: (and gave it the failed launch-control name)17:10
zygaogra_: nah, there was no fence17:11
jkridnerrcn-ee: if I reflash bone1 with the 5/1 image, I should at least have a gserial connection, so I'm going to do that now.17:11
ogra_lol17:11
plarsogra_: in fact, that's where he started17:11
zygayeah17:11
ogra_oh17:11
ogra_i thought you started in canonical :)17:11
rcn-eejkridner, correct..17:11
jkridnerzyga: yeah, we need some ideas for power.... we can cut USB power, but we'll need some additional juice a couple boards down the test chain.17:11
zygaogra_: well, I kind of did start in linaro and canonical but back then linaro didn't have a nme17:11
zyganame*17:11
ogra_oh, i remember17:12
* ogra_ is getting old 17:12
zygajkridner: I think if you are serious about it you should just get a controllable power strip and focus on the hard bits17:12
Chipacahmm, ssh doesn't let me in in rolling/edge #8017:12
plarsjkridner: what are you trying to do exactly? I'm trying to sort through the backscroll. Right now I have a modified uboot on my emmc to use the gpio connected to s2 to boot from the right place. The default gave me some funny behavior where if you pressed s2 it would load uboot from the sd card, and boot the image on emmc, with s2 unpressed it would load17:13
plarsuboot from emmc and boot the image on the sd17:13
plarszyga: but for snappy purposes, it looks like we may soon have a WAY easier solution to all this, that works even if you don't have emmc17:13
jkridnerrcn-ee: ugh, I just realized 5/1 is a 4GB image. :(17:13
zygaplars: oh, tell me?17:14
zygaplars: a-b?17:14
zygaplars: or something else17:14
plarszyga: right, I was discussing earlier17:14
plarszyga: a-b-c actually17:14
zygaplars: but for17:14
zygaoooooh17:14
zygayes17:14
zyga yes17:14
zygaI see this17:14
plarszyga: with c being recovery17:14
zygawell17:14
jkridnerzyga: why shouldn't I try to find something cheaper?17:14
zygaabc is just master17:14
plarszyga: http://blog.sergiusens.org/posts/Snappy_rolling_back_on_kernel_panic/17:14
zygaproper17:14
rcn-eejkridner, i'm setting up a 2gb image right now. ;)17:14
zygajkridner: it's not expensive and your time is probably always more expensive17:14
plarszyga: right, done officially rather than hacking around it and screwing with the images like we had to do in linaro17:14
rcn-eejkridner, flasher is here: https://rcn-ee.com/rootfs/bb.org/testing/2015-06-17/lxqt-2gb/BBB-eMMC-flasher-debian-8.1-lxqt-2gb-armhf-2015-06-17-2gb.img.xz17:15
zygaplars: I wrote about something like this17:15
zygaplars: let me find a link17:15
zyga(for snappy actually)17:15
zygaa few months back17:15
plarszyga: istr at the time telling people it wasn't so crack as they wanted to think - it's what android does too really17:15
jkridnerrcn-ee: downloading.17:15
jkridner4.1?17:15
rcn-eeyeap! ;)17:15
jkridnersweet.17:15
zygaplars: do you know when it will be ready17:16
* zyga looks for the link17:16
plarszyga: no, sergiusens has a proposal but I don't think it's actually been reviewed/approved yet17:17
elopioChipaca: let me know if you figure out the ssh in rolling edge. It works from my laptop, but doesn't from my desktop.17:17
plarswriteup of the proposal, not a merge proposal :)17:17
Chipacaelopio: you broke it!17:17
Chipacaelopio: personally, i think it's a sign from olympus that i should go get dinner moving17:18
sergiusensplars: so ricmm owns the solution, I just had a proposal to make thing look a lot simpler from a builders perspective17:18
elopiosome things are broken on my laptop, some things are broken on my desktop.17:18
ogra_so you just painted it over ?17:18
elopiowhy can't they just break equally, so I can go to sleep?17:18
sergiusenselopio: siesta time?17:19
elopiosergiusens: no, too early.17:19
sergiusenslol17:19
zygasergiusens: is the solution any different from what plars talked about?17:19
rcn-eejkridner, pushed, so the x15 is now set for 2gb/jessie/v4.1.x *.img builds ;)17:19
zygagaah17:19
zygahow do I find a bug17:19
zygathat I commented on17:19
zygaa while ago17:19
sergiusenselopio: I have my siesta when Europe has dinner; but that was when I was the only team member in the americas17:19
zyganot on checkbox17:19
zygaprobably system-image-server17:19
zygagoogle17:19
zygadamn you17:19
sergiusenszyga: I can't even find bugs by title sometimes17:19
ogra_geez ...17:20
sergiusenszyga: it's like commenting into the void17:20
ogra_go to your own LP page17:20
sergiusensor irc... :-P17:20
ogra_click on bugs ...17:20
ogra_and then invest 2h17:20
sergiusensogra_: bugs you commented on?17:20
zygahahahaaha17:20
zygaogra_: I've been there17:20
sergiusensor created?17:20
zygaogra_: 2 of 276 pages17:20
zygaright17:20
ogra_sergiusens, yes17:20
elopiosergiusens: I have my siesta after lunch, which should be in an hour.17:20
elopiobut I might have to change my schedule, it feels lonely to work here during my night. I miss veebers.17:20
plarselopio: what's up with ssh? it's not just the /etc/ssh/sshd_not_to_be_run thing right?17:21
plarsChipaca: ^17:21
sergiusenselopio: lol; yeah, rsalveti always wondered why I started to wake up earlier, he's doing the same now :-P17:21
roadmrzyga: https://bugs.launchpad.net/~zyga/+commentedbugs and then click on "date last updated" to see more recent updates first?17:21
sergiusensplars: if cloud init runs and ssh: on is not set in meta-data you get that file17:21
sergiusensfyi17:21
sergiusensogra_: Chipaca simple MP https://code.launchpad.net/~sergiusens/goget-ubuntu-touch/warnDevice/+merge/26236917:22
zygaroadmr: I'm there now, I just also added some advanced options to show closed bugs17:22
roadmrzyga: awesome :)17:22
zygaI only wish I could _not_ see checkbox bugs17:22
sergiusenszyga: please, I want out of that team, it's too verbose :-P17:22
ogra_sergiusens, approved17:22
zygasergiusens: do you get checkbox email traffic?17:23
zygafound it17:24
zygahttps://bugs.launchpad.net/ubuntu-system-image/+bug/1371703/comments/417:24
ubottuUbuntu bug 1371703 in Ubuntu system image "No fallback if the system update process fails at any point" [Wishlist,Triaged]17:24
zygaplars: ^^17:24
rcn-eejkridner, can we glue s2 down? or short a pin to always force s2, (for BBBlfs)17:25
zygarcn-ee: yes17:25
roadmrsergiusens: next time you get a checkbox bug, check the headers and let us know the x-launchpad-rationale, we can figure out why you get it and if you can be spared (assuming you really don't want it :)17:25
zygaroadmr: x-launchpad-rationale: it's a bug17:25
roadmrx-launchpad-message-rationale zyga haah but yes it'll tell us why he is getting notifs for checkbox bugs. Is he in the checkbox team? he may want out. Is he part of a subteam? he may be in trouble :)17:26
sergiusensroadmr: I think zyga added me to the team17:27
* sergiusens checks17:27
zygasergiusens: I stopped reading most email because of the insane volume of email this generates17:27
plarsrcn-ee: jkridner: I just use a jumper (or relay if I want control) from the lcd_data02 gpio to gnd17:27
zygaplars: what's the current that this sinks?17:28
rcn-eethanks plars, i'm shoving a jumper in it..17:28
jkridnerrcn-ee: like plars said, I think we can tie something else on the board....17:28
* zyga should move his @ss and check17:28
jkridnerbut....17:28
zygaplars: do you think that a small resistor would be safer there?17:28
jkridnerif we just corrupt the image, we should get a USB boot attempt, I believe.17:28
zygajkridner: usb and serial boot always take priority17:28
zygajkridner: the boot order is AFAIR serial -> usb -> emmc -> sd17:28
* jkridner would need to look at the boot order.17:29
zygajkridner: with s2 pressed it is  serial -> usb -> sd -> emmc17:29
jkridneroh!17:29
jkridnernice.17:29
zygajkridner: the reference manual is huge so I cannot check unless I remember how I found that17:29
* jkridner wonders if bbblfs will catch the USB boot in time.17:29
rcn-eeweird, i was just referencing bbblfs readme.. ;)17:29
rcn-eeadding bbblfs to the default build too...17:29
zygajkridner: no, I think you need to have something more automated to do that17:29
zygajkridner: you have very little time to do the serial boot handshake17:30
* jkridner is dealing with stupid uSD adapter not working on laptop. :(17:30
jkridnerzyga: we are doing USB.17:30
zygajkridner: usb is just serial protocol over usb really17:30
jkridnerzyga: not true.17:30
jkridnerzyga: it uses RNDIS.17:30
jkridnerit shouldn't, but it does.17:30
jkridnerit was a silly design decision.17:31
zygajkridner: hmm, I'm pretty sure that the usb boot protocol sends a few magic packets17:31
jkridnerit is essentially TFTP over RNDIS.17:31
zygajkridner: and later on you do anything from the payload you copied over17:31
jkridnerzyga: if it does, then it'd be breaking RNDIS, but I guess that is possible.17:31
zygajkridner: the low level stuff is probably identical to the serial boot17:31
zygajkridner: at least it was on panda17:31
jkridnereither way, agreed something has to happen fast.17:31
zygajkridner: AFAIR17:31
jkridnerzyga: this is a different bootloader. :(17:31
zyga(at least TI pulled out of APs so that won't be a problem :P)17:32
zygaI would worry about all the allwiner, mediatek and whatever boards17:32
jkridnerk, my dd has finally started.17:33
rcn-eejkridner, bmap! ;)17:33
rcn-eereal2m23.500s17:33
zygaplars: I think we need to stay on top of this17:36
zygaplars: the a-b-r model is perfect for our needs17:36
zygaplars: for certification and automation17:36
zygaplars: and we should mandate that17:36
zygaplars: and get it into stone17:36
* jkridner wishes http://www.amazon.com/Mikrotik-5VUSB-power-injector-USB/dp/B00D84L5IQ would cut power when USB power was cut.17:36
plarszyga: indeed, I just learned about it after asking if it was a possibility this morning. I'm hoping that sergiusens will keep me in the loop :)17:36
zygaplars: I think he mentioned that ...17:36
zygasomeone17:37
zygaI cannot find it now17:37
zygahttp://linux-sunxi.org/FEL/USBBoot17:43
zygaallwinner is good for remote booting17:43
jkridnerrcn-ee, zyga: here's what I want: http://www.eeweb.com/blog/extreme_circuits/usb-power-injector-for-external-hard-drives17:45
jkridnerhmmm... http://www.altronics.com.au/p/k2910-usb-power-injector-kit/17:46
plarsjkridner: these shut down the port completely when you remove the external power source?17:48
jkridnerthey shut off power to the port when the upstream power goes away.17:49
jkridnerthis way, I can inject one of these every 2-3 boards when power starts to run low and still use BeagleBone's ability to cut power to the USB port to control power to the downstream board.17:49
jkridnerthis makes it easy for people to reproduce the test setup in a one-off condition, without buying any special hardware....17:50
jkridnerand still allows me to scale up to as many boards as I want to test.17:50
plarsoh, so you are chaining these together?17:50
jkridneryes.17:50
plarsinteresting17:50
jkridneri have about 40-50 capes to test.17:50
jkridnerso, I will use a BeagleBone-per-cape.17:50
plarsbut what does chaining them together do for you?17:51
jkridnerI really don't want to get a whole mess of expensive power switches.17:51
plarsah, I see17:51
jkridnersaves me on Ethernet cables, switches, etc.17:51
plarsbut if you have problems with an upstream one, that risks taking down everything downstream from it right?17:51
jkridneryeah, first failure brings down the rest of the chain.17:51
jkridnerso, we'll only know about the first failure...17:52
* plars suddenly has flashbacks of christmas lights17:52
jkridnerthen have to fix it before we can test down the line.17:52
jkridnerbut, we'll know exactly where the failure is.17:52
plarstrue17:52
jkridnerrcn-ee: I'll switch back over to #beagle for more follow-up. Was just thinking for a second there might have been some overlap in what zyga was asking.17:54
=== alex-abreu is now known as alex-abreu|afk
stgraberjdstrand: so say I wanted to make the lxd snap official with the next LXD release (on Tuesday), what would you need from a security point of view to make it acceptable for the store?18:23
stgraberjdstrand: I can't really give you any seccomp filtering since we need to be able to set our own (and in fact do by default). But I can do something similar to the lxc-start profile and so restrict the lxd process itself.18:23
stgraberjdstrand: with the understanding that this profile does allow change_profile, so it's of limited value18:23
stgraberjdstrand: I'd also need to know how to ship extra apparmor profiles as we'll need the usual set of LXC profiles and abstractions in there (currently my hack is to run everything unconfined in userns only, but I'd like to have apparmor support there if possible)18:24
jdstrandstgraber: I don't think there is anything we can really do for confining lxd itself-- it needs the permissions it needs. however, are you shipping framework-policy for apps to consume?18:26
jdstrandstgraber: that said, what we did for docker is have a quite lenient policy that I will say 'encourages' honoring the snappy fhs. ie, normal usage under the profile wouldn't allow writing into app directories18:27
jdstrandstgraber: abviously, 'encourages' because with change_profile, you can hop out of confinement18:28
jdstrandstgraber: is lxd creating/using apparmor profiles that are named a particular way? eg, we can limit what lxd can change_profile to (but, since these are system containers, that policy is going to be wide open anyway), but it would encourage that it is doing the right thing18:29
stgraberjdstrand: so we usually ship profiles named lxc-* and that's what we allow in the lxc-start profile18:32
stgraberjdstrand: however we also do allow unconfined18:32
stgraberjdstrand: so in effect you can switch to whatever profile you want, or none at all18:33
jdstrandalright, so bare change_profile18:33
jdstrandstgraber: what about framework-policy?18:33
jdstrandare you shipping policy for apps that depend on your framework to consume?18:33
stgraberjdstrand: not at this point, but we probably should. The only thing we'd have to allow is communication with our unix socket.18:34
jdstrandso, for tuesday, ok good18:34
jdstrandstgraber: however, is that unix socket give you full range over lxd? ie, can it handle untrasted, malicious apps?18:34
jdstranduntrusted*18:35
jdstrandie, are you assuming the process connecting to it is trusted?18:35
jdstrand(eg, an admin on the system)18:35
stgraberyeah, so I'm not sure about that part yet, we may want to only let apps talk to the tcp socket and not allow communication with the unix socket except for the local shell itself18:36
stgraberbecause indeed, having access to the unix socket, lets you reasonably easily escalate to root18:36
stgraberas you can create containers, execute command in them, change their configuration (including apparmor profile, bind-mounts and turn off userns)18:36
jdstrandright18:37
stgraberover the tcp socket, you have to be trusted by using a ssl client certificate which the user has to add to LXD (or provide the client with a password so they can do it themselves)18:37
jdstrandstgraber: what you expose in framework-policy needs to prevent that. right now, docker is doing that wrong and it needs to be fixed18:37
stgraberok, so specifically deny all access to the framework path and data path in the profile?18:38
jdstrandit sounds like the tcp socket allows everything if the cert verifies?18:38
stgraberright, protocol is identical but the tcp socket requires SSL auth18:38
jdstrandstgraber: well, today, you don't have to do anything. apps are already blocked from your socket18:38
jdstrandstgraber: it is just that when you want to say something like 'We should allow app-store apps to add a container' that things get interesting18:39
stgraberok, so not even providing a framework policy would be fine for now18:39
jdstrandyou would probably want a reduced api or something. ie, don't want to allow a malicious app to escalate via lxd18:39
jdstrandstgraber: yes, exactly18:39
stgraberwe define tcp/8443 as an external port, so presumably apps can talk to this already if they want to and if they have been specifically allowed by the local administrator18:40
jdstrandstgraber: right, that would all work18:40
jdstrandand that is fine18:40
stgraberok, I think the only question I still have is how do I ship additional raw apparmor profiles18:40
jdstrandI'm talking about the cool integration stuff people will want to do18:40
jdstrandlike, I'm going to upload this 'app' to the store that will talk to lxd to create a container for me and run stuff18:41
jdstrandfor now, everything is fine18:41
jdstrandto support that use case, then need to have something that can deal with untrusted users18:41
jdstrandusers, apps, etc, etc18:42
stgraberso I expect the initial use case to be people using snappy+lxd as a sort of compute node, so install lxd on it, then drive it remotely, using regular LXD images from a LXD image store.18:42
jdstrandbut, thumbs up for no framework-policy and uploading on tuesday18:42
stgraberjdstrand: ok and how do I ship and get apparmor to load, extra apparmor profiles? Do I need to call apparmor_parser and the usual stuff manually from my startup script?18:44
jdstrandstgraber: yes18:44
jdstrandlet me get you a link to the docker policy18:45
stgraberok18:45
jdstrandhttp://bazaar.launchpad.net/~snappy-dev/snappy-hub/docker/files/head:/package-dir/meta/18:46
jdstrandhttp://bazaar.launchpad.net/~snappy-dev/snappy-hub/docker/view/head:/package-dir/meta/docker-daemon.apparmor18:46
jdstrandline 109 should give you a head start18:46
jdstrandoh but you are unconfined18:46
jdstrandyeah, you are probably fine. if you go the 'encourage fhs' route, see that ^18:47
stgraberok, will look at those, thanks!18:47
jdstrandnp :)18:48
stgraberI vaguely remember running into troubles manually loading our apparmor profiles in the past, but I'll bug you when I get the error message again :)18:50
barrymvo: whenever you see this, si 3.0.1 is landing in wily right now18:50
jjohansenstgraber: it could be that for manual load you need to make sure its a single atomic write18:52
Chipacaplars: about ssh, i see a sshd running so i presume not19:12
sergiusensplars: Chipaca check if the host keys were generated19:13
Chipacasergiusens: yes, they're there19:18
Chipacasergiusens: this was after an upgrade, so i would've hoped so anyway :)19:18
bschaeferhello, so has there been any work or issues someone has ran into getting a session dbus daemon setup?19:30
tedgbschaefer, That's not really as much a snappy thing as something that would be implemented by a framework on top. Like Unity8.19:38
tedgbschaefer, So that's probably handled in the Ubuntu Personal image that is being worked on.19:38
bschaeferbut in a sense we want a bare bone system that runs qml/sdk apps... we'll need a dbus session for that19:38
rsalvetielopio: yeah, I'm waking up at 6am now (done for 4 days already, big win)19:38
tedgbschaefer, I'm not sure what state it is in, but it should get to the point of a desktop, which needs a session manager.19:38
bschaefertedg, right... is there a simple way to hack a session dbus daemon to start up :)?19:39
tedgbschaefer, That's a different problem. If it is dependent on system services (i.e. dbus services) it'll need to those to exist in frameworks.19:39
rsalvetisergiusens: plars: we're going to discuss next week (iom sprint) about the factory image/reset and so on19:39
rsalveticheck the requirements and such we have from other projects, and then try to identify the path we want to take19:39
bschaefertedg, i see, yeah that'll have to be looked at...19:40
plarsrsalveti: awesome!19:40
rsalvetithen we can just implement it :-)19:40
bregmabschaefer, Snappy Personal is using LightDM right now, so it works like the regular desktop in that respect19:40
tedgbschaefer, So I think that your best bet is to use the personal image today. It should do that for you.19:40
bschaefertedg, bregma sweet, thanks! Ill have to find this personal image...19:40
bregmatedg, we can't use the personal image, that's the whole point19:40
bschaeferbut this will be an issue on arhmf19:40
tedgbregma, Why not?19:42
bregmabschaefer, shouldn;t be (any more of) a problem on armhf19:42
bschaeferbregma, true...i suppose the main issue being getting a bare bone system to run what we need19:42
bschaeferwould be more of the issue here vs a full fledge desktop19:42
bregmatedg, because we're trying to raise the red-headed bastard stepchild of Snappy Core and Snappy Personal19:42
tedgbregma, I'm confused, who let them date?19:43
bregmathey kept digging a hole under the fence19:43
tedgbregma, So what are you trying to build, I'm confused. A snappy core that installs an app that runs in the session?19:45
bregmatedg, pretty much: a Snappy Core that runs a dedicated GUI-based app, probably in a session because root, well, because root19:46
bregmano Unity 8, no general-purpose user shell19:46
ollimterry_, are you around19:46
bschaefernothing, just mir + sdk + qml/qt app19:46
mterry_olli, sure am19:46
tedgbregma, So I think that kgunn has an app that does that19:46
bschaefertedg, its missing the SDK19:46
tedgI don't think it's running the sdk parts though.19:47
bschaefer(which requires the session dbus i guess)19:47
bschaeferyeah19:47
tedgYes, the SDK won't really work without the services that it needs behind it.19:47
bschaeferthats what im working on :)19:47
bregmatedg, kgunn has a team putting it together.....19:47
ollimterry_, gto a couple of qmlscene questions/issues, want to do here or in /query?19:47
tedgSo either you have those services (Ubuntu Personal) or you don't (Ubuntu Core)19:47
mterry_olli, either works19:47
mterry_olli, there's already a convo here19:47
tedgI mean if you just want it to error and say "services not found" you could just use dbus-test-runner19:48
bregmawe'll shut up19:48
bschaefertedg, i mean...there has to be a way to run a dbus session...or figure out if the SDK *needs* it19:48
* bschaefer be quites19:48
tedgAnd that'll wrap it in a session bus, it just won't have the services to make things work.19:48
bschaefertedg, cool ill try the test runner...no clue how it works but something will happen :)19:49
bschaeferthanks!19:49
ollimterry_, gathering some information, brt19:49
olliwasn't there a pastebinit on the core image?19:50
tedgbschaefer, I think it comes down to your desired behavior, if you just want a dummy session bus that's easy. If you need all the services, I think you'll want Ubuntu Personal.19:50
bschaeferim not sure what the services are19:50
bschaeferlike...talking with unity8? Then i dont need them19:50
bschaeferor if its talking with the net, then ill need it19:51
tedgbschaefer, Yes, all the trusted services that are part of a standard unity8 session. Content hub, URL dispatcher, etc, etc19:51
* bschaefer isn't 100% sure what dbus is used for in unity8/sdk19:51
bschaeferURL dispatcher could be an issue for say, weather19:51
bschaeferif thats what i think the url dispatcher does... the weather app will fail19:51
tedgbschaefer, Those features are built into the SDK, so when the SDK has a feature to say "share" it knows how to talk to content hub.19:51
bschaefertedg, but requires dbus :) (to work)19:52
tedgbschaefer, It's just "requires dbus" it is "requires content hub and dbus and configuration" basically "requires a Unity 8 user session".19:52
tedgDBus is the easiest part of that19:52
bschaefertedg, sooo the weather app does not expect to work outside of a unity8 session?19:53
bschaeferunless a dbus/content hub are all configured correctly?19:53
tedgbschaefer, I would say no, but it might work for some cases.19:53
bschaeferout side of the session?19:53
tedgThe SDK is designed to work in a Unity8 session.19:53
bschaefertedg, well that'll be the fun part i suppose :)19:53
tedgDoesn't mean you couldn't use some of the widgets successfully. But it's going to be touch-and-go.19:54
bschaeferright19:54
tedgbschaefer, So if you need a Unity8 session, that's what Ubuntu Personal is.19:54
bschaeferwe could attempt to make a new content hub wrapper..19:54
* bregma doesn't like the phrase "touch and go" it sounds like it needs gesture recognition first19:54
bschaefertedg, ... well i dont think we *can*19:54
bschaeferif we want a bare bone kiosk system image19:55
bschaeferwe dont want a unity8 shell session19:55
tedgYou still want to swap out Unity8 for another Mir Server.19:55
tedgI guess you could use the system compositor.19:55
tedgBut you'll need to avoid the widgets in the SDK that do integration stuff.19:56
tedgSo a "standard app" won't work. That doesn't mean a custom app won't work.19:56
bschaeferso the system compositor would start up the session but wont do anything kind of unity8 stuff19:56
tedgNo, the system compositor doesn't start a session.19:56
bschaeferit just starts the server?19:56
tedgYes, it just provides a socket that gets routed to HW.19:57
bschaefertedg, soo we'll need to figure out what parts of the SDK are off limits19:57
bschaeferin a sense...19:57
bschaeferbut guessing that a button depends on dbus ... i would assume almost all of the SDK depends on it19:58
tedgYeah, you should be fine with buttons and the such, but "smarter" widgets will fail.19:58
tedgThe base application class tries to init dbus.19:58
tedgSo for that you can just do a dbus-test-runner wrap19:58
bschaeferright cool, ill give that try for now19:58
tedgIt'll init and be happy.19:58
bschaefersoo pretty much a clock should work19:58
bschaefertedg, awesome thanks for all the info! (was missing a pretty bug chunk there)19:58
tedgMaybe, it sets alarms and such in EDS19:58
tedgSo not the standard clock we ship, but a custom clock would.19:59
bschaeferhmm19:59
bregmabschaefer, were you using the Mir demo server?19:59
bschaeferthis will have to be discussed a bit more19:59
bschaeferbregma, yeah19:59
bregmaah19:59
bschaeferbregma, but i have dbus session on my main machine19:59
bschaefer(which still works19:59
bschaefer)19:59
bschaeferon the snappy image the mir demo server fails with the SDK19:59
tedgBasically if it is an app that we ship on the phone, it probably uses session services as we've fleshed a bunch of those out with those apps :-)20:00
bregmayeah, there is no argument we'll need a session D-Bus20:00
bschaeferyeah20:00
bschaefersome how...20:00
bregmaand all the fun frameworks like content hub20:00
bschaeferyeah :(20:01
tedgDo you need content hub?20:01
bregmatedg, content hub is magically going to appear as a snappy framework20:01
tedgI mean, it is a pretty advanced interaction.20:01
tedgbregma, Not anytime soon. 1+ years atleast.20:01
bregmaso if an application snap needs it, it will just add it in its manifest20:01
bregmaand it will all just work20:01
tedgIt's unclear whether content-hub will be it's own framework or we'll just have a mega-Unity8 framework.20:02
* bregma is waving his hands in a "not my job" fashion20:02
bschaeferhaha20:02
tedg(which would include content-hub)20:02
bregmawe'll worry about niceties like content hub if and when we get paid to worry about that20:03
* tedg saves his loonies20:04
bregmaright now I just need to turn my BBB or Raspi2 into a clock so I can tell the time20:04
kgunnimprovement from paperweight20:04
* bregma needs a nixie tube driver for the BBB20:05
bschaeferhaha20:05
bschaeferhow easy is it to get chrome working on mir?20:05
bschaeferpretty easy? Try to get netflix working haha...20:05
tedgMir → XMir → Chrome20:06
bschaeferhaha, i thought racarr had chrome working directly on mir20:06
bschaefermaybe that was a long time ago20:06
=== alex-abreu|afk is now known as alex-abreu
rickspencer3Chipaca, https://code.launchpad.net/go-service-template20:18
rickspencer3ParseDuration turned out to be really useful20:19
rickspencer3thanks for your help earlier20:19
kgunnbschaefer: that was ozone-mir, and yeah you could get chrome on mir, chad miller took that over, i know it requires active updates20:23
kgunnbschaefer: i'm pretty sure willcooke mentioned it was being actively worked too20:23
bschaeferkgunn, would be interesting to see that on a beaglebone or a raspi20:23
bschaeferwith netflix20:23
kgunn:)20:24
bschaeferkgunn, thats just my out side of work want atm haha20:24
ollinot sure if the drm blob is available on arm20:26
bschaefer:( yeah20:28
ollikgunn, may I distract you20:29
kgunnolli: yo20:29
ollikgunn, nevermind for now20:32
ollimterry_, ^20:32
mterry_olli, hah20:32
mterry_olli, what was the question?20:32
olliwhere to export the mir socket env var20:33
mterry_olli, --mir does that for you20:33
mterry_olli, did you export LC_ALL=C.UTF-8?20:33
ollimterry_, I did20:33
mterry_olli, you will get a socket error if you don't20:33
mterry_oh huh20:33
mterry_olli, in your bin/digitalsign that deb2snap put in for you, do you see a mir-run script being used?20:34
mterry_It should be inserted on your behalf20:34
olliyep, it's there20:35
Chipacarickspencer3: what editor do you use?20:41
ollikgunn, I got mir running as a process but no socket in /run20:42
ollifrom a mir snap that I created from your blog20:42
olliany thoughts?20:42
kgunnolli: you're lauching with the "server" script20:44
kgunn?20:44
kgunnolli: you see the black mouse cursor  in the vm ?20:45
ollikgunn, actually I don't20:45
olliI have not actively started mir in the vm20:45
olliI used deb2snap --mir20:45
kgunnolli: so you didn't build through make ? but did the deb2snap command line ?20:46
ollikgunn, I built mir.snap as per your blog20:46
ollikgunn, upon reboot, I have the process running but no socket20:47
kgunnolli: ok, so you branched lp:~mir-team/mir/snappy-packaging and did make20:47
kgunnolli: what's the process name running ?20:47
olli721 ?        Ss     0:00 /bin/sh /apps/mir/snap1/bin/server.real20:47
kgunnolli: ok, that's just the script trying to launch it20:47
olligot a "good" mir.snap lying around?20:48
kgunnactually :)20:48
kgunnolli: this should be good20:49
kgunnhttps://drive.google.com/a/canonical.com/file/d/0B4GvOYxwuvpFeHVxN0t5UFpua3c/view?usp=sharing20:49
kgunnolli:  just curious when did you pull and update that branch ?20:50
olli~Mo20:50
ollimaybe Tue20:50
ollikgunn, with your snap I see the same process running20:50
kgunnok...there was a moment where i had it confined....20:51
olliand ... with your .snap I also don't have a /run/*mir* socket20:51
kgunnolli: what bzr commit are you on ?20:51
kgunnok...lemme replicate20:51
olliI am on your .snap20:51
* kgunn can almost do it in sleep20:51
olli:)20:51
ollikgunn, do I need to start the vm differently?20:52
kgunnolli: did you get any erros when you installed VMM and loaded a vm into it?20:53
kgunni do recall getting an odd error, reboot fixed it20:53
kgunnupon installing VMM and first use20:53
ollihah20:54
olliI was using kvm cli20:54
kgunnolli: ah, yeah, VMM has some gfx voodoo in it20:55
kgunnvmware also has nice gfx voodoo i believe20:56
olliyeah20:56
ollibetcha there is no GFX card in my vm ;)20:56
olliface.palm20:56
* kgunn halts replicant effort20:57
kgunnand changes dirtied britches20:57
olliat least we ahve established a POC of gg drive as archive replacement20:58
kgunnlol20:58
kgunnolli: call it "kg's store"20:58
ollibeuno, ^20:58
beunofree store for kgunn?20:59
ollikgunn, and now we are in business21:09
ollimterry_, ^21:09
mterry_olli, yay21:10
mterry_olli, you see a pretty qml app now?21:10
olliI see mir21:10
ollibabysteps21:10
ollimterry_, close21:12
olliI see a lot of qt modules I am missing21:13
ollimterry_, I guess that's some additional -p magic for deb2snap21:13
ollii.e. install/bundle the modules via -p $Mymodule21:13
* olli wanders off for today21:14
olliwill play with it tonight21:14
ollithink I can figure it from here21:14
ollithx guys!21:14
rickspencer3Chipaca, gedit21:19
Chipacaah21:19
Chipacamterry_: you didn't find a good gofmt plugin for gedit in the end?21:19
mterry_olli, oh yeah, deb2snap doesn't know enough to search your qml files for imports and match them up to debs21:21
mterry_olli, that would be magic!21:21
mterry_Chipaca, oh naw didn't try super hard, but no I didn't21:21
Chipacak21:22
Chipacarickspencer3: you know 'gofmt'?21:22
rickspencer3Chipaca, nope21:22
sergiusensgofmt is THE thing!21:22
Chipacarickspencer3: check you've got it in your path21:22
rickspencer3cool21:23
Chipacarickspencer3: and then, in the source tree, find -type f -name \*.go -print0 | xargs -0 gofmt -w21:23
Chipacarickspencer3: and look at the resulting diff21:23
rickspencer3Chipaca, ok, I'll check it out tomorrow21:23
rickspencer3trying to eod here :)21:24
Chipacafair :)21:24
rickspencer3Chipaca, thanks for the tips, though21:26
rickspencer3Chipaca, what did you think of my code?21:26
rickspencer3other than the formatting?21:26
Chipacaonly looked at main.go21:27
Chipacanot bad though21:27

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