/srv/irclogs.ubuntu.com/2015/11/12/#snappy.txt

csandersAnyone here?00:39
liuxgI am running a service in golang, in the code, there are some runtime outputs like fmt.Println. where can I find the output data?02:01
=== timchen1` is now known as timchen119
elopioliuxg: sudo snappy service logs <name of the snap>03:27
liuxgelopio, thanks. I just found it either :)03:28
elopiothat's good.03:28
liuxgelopio, snapcraft does not support local file compilation for go, right?03:29
elopioliuxg: not sure what you mean by that.03:29
liuxgelopio, I have a webserver project, and it is source code is in a github project. is it possible to compile a local go file https://github.com/liu-xiao-guo/go-webserver/blob/master/snapcraft.yaml03:30
elopioliuxg: sure, should be possible. There are two go projects in the examples: https://github.com/ubuntu-core/snapcraft/tree/master/examples03:31
liuxgelopio, looking in the snapcraft.yaml file, all of the sources pointing to the github. they are not local..03:33
elopioliuxg: so, I'm still not sure what you want. But you should be able a local path instead of a git location.03:35
elopioplugin: go03:35
elopiosource: path/to/src.03:35
liuxgelopio, I have changed path to local, it does not work.03:36
elopioliuxg: then that's a bug. Can you paste the error?03:36
liuxgelopio, https://bugs.launchpad.net/snapcraft/+bug/151513203:37
ubottuLaunchpad bug 1499240 in Snapcraft "duplicate for #1515132 User friendly error missing when using go's source entry incorrectly" [Medium,Triaged]03:37
elopioliuxg: ah, right. So it needs to ve a valid go path. Something you would use with go get.03:37
liuxgelopio, so, how can I correct the issue?03:38
elopiosorry for making it more confusing. I think we need to support your case, and that's a different issue.03:38
liuxgelopio, yes, it is reasonable usage case for most the developers.03:39
elopioliuxg: I'm not quite sure. In order to be importable, it needs to be in $GOPATH/src/03:40
liuxgelopio, would you please make my bug as a valid request?03:41
elopioliuxg: yes, tomorrow I'll talk about this with sergiusens.03:41
liuxgelopio, ok. many thanks :)03:42
liuxgelopio, do you mean that I need to set the $GOPATH myself to make it work?03:42
elopioliuxg: I really don't know. I'd had to look at the go plugin source to understand how it works, but I'm having dinner :)03:43
liuxgelopio, ok. thanks! have a nice dinner.03:43
elopioliuxg: for now you can push your source to github or launchpad.03:43
elopioif it's a valid source for go get, it should work with the git plugin.03:43
liuxgelopio, the thing is that some projects may not be open projects :) and also, in order to build it, we have to always push it, it is troublesome. yes, for the short term, github works.03:44
elopioyeah, your use case is valid. Take a look at the bug tomorrow morning03:45
BluefoxicyWhat's going on with snappy?03:47
Bluefoxicyis this going to be the new thing?  Am I going to install ubuntu-gnome under snappy one day?03:47
elopioBluefoxicy: one day, sure.04:06
Bluefoxicyelopio: want to see something from 2004?04:09
elopioBluefoxicy: I'm not particularly interested in 2004, no.04:09
Bluefoxicyheh04:10
Bluefoxicyso how does snappy work, anyway?  The root is read-only, you put an image on top, can roll back if it doesn't work?04:12
elopioBluefoxicy: you have two partitions. When you start, the two are the same, the latest image.04:14
elopioWhen you update, you put the new image in the second partition.04:14
elopioYou reboot to that other partition, and if it fails the system reboots on the first partition.04:14
elopioif it works but you don't like the new version, you can manually roll back to the first partition too.04:14
Bluefoxicyfinally.04:16
BluefoxicyNow maybe one day we'll get automatic just-in-time security updates.04:16
elopioliuxg: GOPATH is set to builddir. And pull always does go get. So there's no workaround for your case, we'll need to extend the plugin.04:16
Bluefoxicyelopio:  does the tech this runs on have the capability to detect and react to file access before it goes through, or is that still not part of the OS?04:17
liuxgelopio, ok. got it. so the bug is a valid bug, right? I think it is a little different from the said bug.04:17
elopioliuxg: I think it's valid, and shouldn't be duplicated. Need to convince Sergio, which shouldn't be hard.04:18
elopioand you also pointed to a case we had not considered. If the github or launchpad repo is private, we need to handle credentials.04:18
elopioBluefoxicy: not sure what you mean. The snaps, as we call the packages for snappy, have a local working space. They can only touch files in their working space.04:19
liuxgelopio, yes, thanks for your understanding04:19
Bluefoxicyelopio:  back in 2005 I wrote about plans I never got to for making an OS that essentially isolated the base installation from the rest of the system by using unionfs to mount over it.  It was crude.  One of the things I described was detecting access to files and responding accordingly--notably, with an integrated package manager that would recognize when you tried to access an executable or library from a package with a secur04:22
Bluefoxicyity update, and immediately install the update.04:22
Bluefoxicydon't ask me why I thought this was a good idea04:22
Bluefoxicyat the moment, I still think it's an interesting idea; actual merits are debatable.04:22
elopioBluefoxicy: it's interesting to check for updates just-in-time. What we have is a daily autoupdate.04:23
Bluefoxicyin any case, the technology going into things like coreos or snappy is ...better than what I Had on hand.04:23
Bluefoxicyelopio:  yes, but you have the obvious problem of a program halting for 10 minutes while it downloads and installs a bunch of dependencies04:24
elopioBluefoxicy: it would be interesting to have push notifications for security updates.04:24
elopioon the phone we have that.04:24
Bluefoxicyhaha.  Perhaps, but that's a whole different can of worms04:24
elopiowhen there's a new update, you get a message and you can manually install it. Or configure your phone to autoinstall updates on wi-fi.04:25
Bluefoxicyyeah.04:25
elopiowe'll have to get that working on top of snappy at some point.04:25
Bluefoxicydelta debs would be great.04:28
Bluefoxicydelta updates have been a topic of debate and salivation for over a decade04:28
BluefoxicyHas anyone thought of an unpatch-and-patch model yet, where you send the delta for both release base and installed, as well as the delta for current and release, so as to first build an as-installed deb, then make that a release deb, and patch that into a current deb?04:29
BluefoxicyI guess you can do the same with snaps04:29
BluefoxicyThe ability to send half a megabyte to update LibreOffice would make JIT upgrades reasonable I think04:30
elopioBluefoxicy: delta downloads works on the phone already. Needs some more thinking on snappy, because of the format of the snaps.04:46
Bluefoxicynice04:46
elopiobut there is no patching in snaps. You apply the patches in your repository, and then generate the snap from that repo.04:47
BluefoxicyHow will the desktop work?  Will it install all desktop applications in one container, or will it provide containers for Chromium and Thunderbird and such and somehow make application links in the desktop that just work?04:48
elopioBluefoxicy: that's still work in progress. There will be a snappy personal, which will work like the phone on desktop.04:50
elopiowe'll have to package thunderbird and chromium as snaps for them to work with all the security and isolation.04:50
elopiothere will be a classic mode in something more light than a container, that will let you install debs.04:51
elopioalso work in progress.04:51
Bluefoxicyinteresting.04:51
BluefoxicyI can't see why all this wasn't done years ago, other than that nobody thought of it.04:51
elopioBluefoxicy: go to github.com/ubuntu-core/snappy. You'll have fun there.04:51
elopioBluefoxicy: I think there were more important problems to solve years ago.04:53
Bluefoxicyperhaps.04:53
elopiothe users of desktop were happy with apt-get upgrades and not really interested in a certified bullet proof machine04:54
elopioand on the phone we were struggling to get linux running, like openmoko. Android changed everything.04:54
elopioand there was no beaglebone or raspberry pi.04:55
elopiothis is a great momment to be developing for linux. Lots of things to do.04:55
BluefoxicyI always wanted computers to be magic.04:55
BluefoxicyI remember configuring my PC and laptop to trade processes between them.  OpenMosix would let them send stuff over the network to execute on other machines.  Dragonfly BSD has this thing where you can freeze a program, then thaw it later--dump its entire execution to a file, boot a new kernel, then continue executing.05:00
Bluefoxicyand then there's Minix05:00
Bluefoxicynow we have PCs the size of credit cards what can run programs in isolated contexts, pop them in and out, and cluster together to move applications around to wherever there's execution space.05:01
Bluefoxicyelopio: and all this stuff is trying to target phones and desktops.05:02
BluefoxicyDo you know what I've been fantasizing in my head for the past 3 years?05:02
BluefoxicyYou're running Chrome on your phone, that little browser interface set up for it, the way it runs on android05:02
Bluefoxicythen, you pop it in the dock, and your 40 inch 4K display shows you an X or Wayland or whatever display, and taht little chromium window turns itself into a desktop window.05:03
Bluefoxicya phone display over here, a desktop display over there.05:03
elopioBluefoxicy: ah, but where have you been the past months? Let me look a video for you.05:04
Bluefoxicypeople are like, "We could have it reboot into a full desktop OS..." and I'm like "Screw that, you could have it reshape itself depending on what kind of terminal it's connected to!"05:04
Bluefoxicythey're actually doing this?05:04
BluefoxicyI've been awake too long.05:08
elopioBluefoxicy: https://youtu.be/hLYvy1tPKtQ?t=10m4s05:09
Bluefoxicyelopio:  I see that it plugs in and runs a program in a window05:16
Bluefoxicybut I don't see everything already running suddenly exporting its display to a desktop display on connection05:17
elopiomy slimport cable hasn't arrived, so I haven't checked it.05:18
elopiobut that should work, if not now, soon.05:18
Bluefoxicycool05:18
Bluefoxicyit's also weird that it gives that MegaBloks interface when plugged into an enormous tv with a mouse and keyboard, instead of a proper UI.  It's not a gigantic Android tablet.05:19
BluefoxicyI suppose the goal is eventually to make it behave like a PC when plugged into appropriate peripherals, instead of like a cell phone hooked up to a giant screen05:20
elopioBluefoxicy: that's because on a TV you will usually be far from it, so you need the icons and fonts to be big.05:20
elopiowhen you connect it to a monitor, the pixel density is different. The fonts will be smaller because you are expected to be closer to the monitor.05:20
BluefoxicyI didn't mean size05:21
BluefoxicyI meant the visual style is that of a child's toy.  I guess that's a minor complaint, considering just how bad modern UI design has become from a functional perspective.05:22
elopiowell, yeah, that's the ubuntu sdk style.05:22
elopioI like it.05:23
BluefoxicyThere was a time when everything was a mess; then we learned to put things in nice groups in front of the user, where expected, and to have advanced functions tucked away with sane defaults you could revert to if the user decided to go hunting for things to tweak.  Now all those advanced features are completely removed, and you get stupid crap like a phone that only sends a 200kbyte MMS on a carrier who allows 1Mbyte MMS, becau05:23
Bluefoxicyse nobody wants the user to raise the limit and break their MMS.05:23
BluefoxicyAndroid is particularly littered  with gems of bad UI design like that.05:24
BluefoxicyAnd here I am complaining about shiny boxes being too shiny.05:24
elopio:)05:25
elopioit's good. It's free software. If you don't like the shine, go and change it.05:25
elopiosome decissions are going to be hard to tweak. But even now you can put plasma movil on your ubuntu phone instead of unity.05:26
BluefoxicyYou do understand that's a false choice unless somebody else does it first, right?05:26
elopioother options will come too.05:26
elopioBluefoxicy: why somebody else?05:26
BluefoxicyMost people can't just go about changing things.  Hell, even Ubuntu and RedHat can't go about just changing things; they invest an immense amount of R&D into stuff like this.05:26
Bluefoxicyelopio:  a lot of people would have to invest a lot of labor time up front to develop the skills required to make any specific changes to open source software05:27
Bluefoxicyit's like saying if you don't like the trucks Chevrolet sells, why not build your own?05:27
elopioI'm not saying that it will be easy. I'm not even close to say that your change will look good. But it's possible, the only thing you need is time and an itch.05:27
BluefoxicyFinancial considerations aside, do you even know how to engineer an automobile?05:28
Bluefoxicyright05:28
elopioBluefoxicy: that's different. The Chevrolet also involves money.05:28
Bluefoxicyelopio:  even if it didn't, it would involve a lot of engineering knowledge.05:28
elopiobut if I have the money, I also have the potential to hack my car. And it will probably be a lot harder, because all the sources of it are closed.05:28
BluefoxicyI'll probably drive myself insane teaching myself to program so I can write video games.  Nothing I can't handle, although my mind is breaking under the strain already.05:29
elopioBluefoxicy: yeah, but engineering knowledge is something you can earn by investing time.05:29
elopioso not *you*. But anybody else with the time can do it.05:30
Bluefoxicyelopio:  to be precise:  anybody with the time and with nothing better to invest the time in can do it.  We're getting into an economics discussion, though.05:30
Bluefoxicywhich irritates me these days, ever since I figured out how to solve poverty and discovered nobody cares.  I've started to hate politics, but I guess I'm catching up to everyone else in that regard.05:31
* Bluefoxicy sleeps.05:34
elopiobye.05:34
liuxgelopio, ping05:44
elopioliuxg: tell me.05:44
liuxgelopio, I am now trying to cross-compile my project for armhf. I found a bug related to snapcraft at https://bugs.launchpad.net/snapcraft/+bug/151465005:45
ubottuLaunchpad bug 1514650 in Snapcraft "Building golang project on ARM board gets "imports runtime: C source files not allowed when not using cgo or SWIG" error" [Undecided,New]05:45
liuxgelopio, how do you normally compile a project for armhf so far? cross-compile is not supported by the tool.05:45
elopioliuxg: and probably won't be supported. The discussions so far point to running snapcraft on the target.05:46
elopioliuxg: so, get snappy running on an arm board, install lxd and start a lxc. Install snapcraft there.05:46
liuxgelopio, yes, that is currently what I am doing. I am using a docker, inside it, I install a armhf ubuntu05:46
liuxgelopio, lxd seems not supporting armhf so far.05:47
elopioso let me look at the bug.05:47
liuxgelopio, ok05:47
elopioliuxg: what does gvm do? How is it fixing it?05:49
liuxgelopio, I search for some posts, it asks me to do install sth go1.5. I just installed half way, and it started to work.05:50
liuxgelopio, I think the installation must have some problem with it for the golang for the image.05:51
elopioliuxg: could you try with an empty lxc, just with snapcraft installed? Just to rule out a problem in the docker container.05:51
liuxgelopio, have you tried that solution before? if you have the guide for me, please send it to me. thanks05:52
elopioliuxg: I have compiled some packages in lxc. I don't remember if I tried go.05:53
elopioliuxg: https://plus.google.com/+St%C3%A9phaneGraber/posts/aX6vogzEQ1X05:53
liuxgelopio, could you have a try for my project? it is a very simple one.05:54
liuxgelopio, if it does not work, it won't work in my place as well.05:54
elopioliuxg: I can triage your bug tomorrow. It's already midnight and flashing my bbb takes time.05:57
elopioI've been trying to leave since your first ping :)05:58
elopiodamn tests that don't want to be green.05:58
liuxgelopio, ok. many thanks. if you have any result of it, please update me :)05:58
elopioliuxg: sure, I'll comment on the bug.05:58
liuxgelopio, I am really sorry for that. have a good sleep!05:58
elopionot yet, but soon.05:59
liuxgelopio, :)05:59
chilukHey guys is there a how to on how to cross-arch snap?07:19
chilukbasically I'm trying to create a snap package on my amd64 machine that I'd like to put on my completely useless raspberry pi07:20
chilukpi 2 actually.07:20
chilukbasically when I go to stage my snap it just gets created for my local architecture... as this is intended for embedded I assume you guys have this figured out already since only a small percentage of us are using arm-books07:22
* chiluk goes to sleep and hopes answer is awaiting him in the morning.07:22
liuxgchiluk, I just got a Chinese article for it at http://blog.csdn.net/ubuntutouch/article/details/49780767? you may use google translate for help :)07:23
dholbachgood morning07:28
fgimenezgood morning08:03
davidcalleMorning o/08:40
=== chihchun_afk is now known as chihchun
JamesTaitGood morning all; happy Thursday, and happy Pizza With The Works Except Anchovies Day! 😃10:12
longsleepSo, since when does Snappy wait for networking on boot, seems like i missed that. snappy-wait4network.service does block until there is a default route .. :/10:17
mvoogra_: did you trigger a 15.04 build ? I noticed there is one running right now.10:46
mvoogra_: i.e. I would like to start with the stable release checklist and promote the current edge to alpha so that fgimenez can start the upgrade/rollback test process10:47
fgimenezmvo, ogra_ ping me when ready10:50
mvofgimenez: amd64 is ready in 15.04/alpha now10:53
fgimenezmvo, ok thanks, on it10:53
mvofgimenez: great, thanks10:53
mvofgimenez: armhf is ready in 15.04/alpha too10:59
mvofgimenez: and i386 in some minutes11:00
fgimenezmvo, ok thanks, having them in alpha make things easier11:01
ogra_mvo, see other channel11:17
=== kickinz1 is now known as kickinz1|lunch
fgimenezmvo, the update -> rollback -> update -> rollback ... went well for amd64, from 16 to 17; but there are problems with the integration suite, 11 tests are failing with "Error: another snappy is running, try again later"11:42
fgimenezmvo, i think that we hit this some days ago, i'll try to find the root cause of this, maybe we can make the tests more resilient11:43
mvothanks fgimenez, thats interessting, we did disable auto-pilot in the tests didn't we?11:55
fgimenezmvo, yes, it's disabled at the beginning of the suite after each reboot11:55
=== bigcat is now known as b[junior]|away
fgimenezmvo, it seems that the problem comes from https://github.com/ubuntu-core/snappy/blob/master/integration-tests/tests/autoupdate-msg_test.go, we are not stopping snappy-autopilot after the test12:18
fgimenezmvo, with that in place, and modifying the expected message, the suite seems to be running fine, i'll prepare a branch with the changes12:18
mvofgimenez: \o/12:20
mvofgimenez: thanks for digging and finding it!12:20
fgimenezmvo, np :) let's see if all goes fine with the suite12:21
=== kickinz1|lunch is now known as kickinz1
fgimenezmvo, yes, the complete suite in amd64 is ok, i'm currently with rollback -> update -> rollback in bbb, fine too so far12:25
fgimenezmvo rollback -> update -> rollback -> update .... worked well in bbb, now running the suite12:42
=== chihchun is now known as chihchun_afk
mvofgimenez: \o/12:58
=== chihchun_afk is now known as chihchun
mvofgimenez: I had to do another build for the image, its now in alpha for all arches. sorry for that, I'm afarid there is a re-test required. should be virtually identical to the last one but one never knows13:23
ogra_well, we are waiting for a system-image merge, this wont be the last13:23
ogra_and we really should only copy the last one to alpha since that is supposed to be for testing satble->stable updates13:24
=== chihchun is now known as chihchun_afk
fgimenezmvo, ok, np13:52
fgimenezmvo, the suite works fine in amd64 #18, now trying 16 -> 18 -> 16 -> 18...14:14
mvofgimenez: \o/14:15
fgimenezmvo, update+rollback ok too, on to bbb14:21
jdstrandbeuno, pindonga: ok, there is one last change for the vendor bug. instead of pulling r545, please pull r547 (or later)14:29
jdstrandmvo: hey, https://github.com/jdstrand/snappy/pull/6 has a merge conflict14:46
mvojdstrand: let me fix14:50
dholbachSTRAW POLL: Yes/No to a bot which shares new Askubuntu questions about Snappy in this channel?14:52
mvojdstrand: should work now, contains a bit of extra stuff because I merged master14:53
ogra_dholbach, yes14:55
ogra_(until the traffic gets high indeed)14:56
jdstrandmvo: thanks15:04
fgimenezelopio, the image validation goes good so far (suite and update+rollback on amd64), they are published in the alpha channel15:10
ogra_fgimenez, dont forget there are two more arches to test this time15:10
ogra_(once we actually have the final image)15:10
elopiofgimenez: nice, thanks.15:10
elopioogra_: wait, why two more? not just armhf?15:11
fgimenezogra_, plano and raspi2_armhf right?15:11
ogra_fgimenez, yeps :)15:11
fgimenezelopio, ogra_ i can go for raspi215:11
ogra_cool15:11
elopiowe don't have planos to test.15:11
ogra_we're just waiting for a final fix for system-image to actually make it pick the right device tarballs15:12
elopiothe certification team has been taking care of that.15:12
ogra_right15:12
ricmmmvo: did we ever land the u-d-f branches for 128 mb and the other thing?15:54
ricmmthe dst/target bit15:54
ogra_ricmm, i dont think so15:55
ogra_(or at least it didnt reach me ... my last weeks kvm image still has 64M)15:55
ricmmok15:55
ricmmWARNING: this option should only be used to build azure images15:55
ogra_yeah15:55
ogra_ignore :P15:55
ogra_we need to get rid of that15:56
longsleepHey, i just have the case where an snappy update did not clean up old systemd services from two snaps - so now there are the new and the old systemd service and the old fail to start - any idea what could cause this?16:20
longsleepi typed snappy update, and it updated a new ubuntu-core and two snaps in that order16:21
fgimenezelopio, the rollback test is failing on bbb 1504/alpha #17, could you please confirm? i'm going to try now the update + rollback from #15 to #1716:31
elopiofgimenez: ok, let me flash it.16:38
fgimenezelopio, there are other two errors, failover zerosize initrd (removing the check for mode=try works fine) and initramfs, but they are not related to the image16:41
mvoricmm: hrm, the branch did not land, there was a tarmac failure. *sigh* let me fix that16:46
ricmmhurgh16:47
mvoricmm: so the dst change landed16:48
mvoricmm: I land the 128mb one now16:49
mvo(or try to)16:49
ricmmoh, those, I thought you meant image16:49
ogra_mvo, there might be other u-d-f issues16:49
ricmmerr, snappy16:49
mvoogra_: hm?16:50
ogra_i cant get the rpi2 to boot16:50
ogra_it looks like the error i usually get if writable doesnt contain the cloud-init files16:50
ogra_trying to verify that atm16:50
ogra_yeah, writable is completely empty for me16:51
ogra_mvo, afaik u-d-f usually puts the cloud-init stuff there when creating the img16:53
mvoogra_: uh, so thats a regression? but it was not released in a while iirc16:55
ogra_yeah, thats werid16:55
ogra_i dont understand that16:55
elopiofgimenez: having problems here. The serial console only prints Cs. Have you seen that?17:06
elopiotrying again...17:06
fgimenezelopio, nope, here works fine17:09
jdstrandmvo: I'm unable to install docker with your branch17:11
elopiotried 17 and 18, with two different bbb, two different sd cards.17:17
elopiodamn it, what did I break?17:17
fgimenezelopio, 18? the tip of 1504/alpha is 17, right?17:20
elopiofgimenez: ahhhh, stupid. I'm flashing 18 amd64...17:21
elopionot enough breakfast today.17:21
fgimenezahh those Cs are pretty significant :)17:22
fgimenezelopio, 15 -> 17 -> 15 -> 17 -> 15 ... works fine, btw i've confirmed that snappy_mode doesn't change after snappy update http://paste.ubuntu.com/13240185/17:28
=== sarnold_ is now known as sarnold
fgimenezleaving, have a nice day o/17:32
kyrofaSo say I'm developing an app to be packaged in a .snap and I'm running into apparmor denials when installed. Is there a Snappy way to debug this? Normally I'd just set it to complain mode, but ubuntu-core-launcher is the thing enforcing the profile...17:41
jdstrandkyrofa: snappy install snappy-debug, then run in one console 'sudo snappy-debug.security scanlog' while exercising your app in another17:42
kyrofaOoo! Thanks jdstrand17:42
jdstranddpm_: fyi, that ^ is the sorta thing I'd love to point people to when the 15.04 developer doc is available (see snappy-app-devel@, 'Adding custom apparmor rules' thread (I was talking with dholbach, but he is eod now I guess))17:44
dpm_jdstrand, there is an easy way to point people at this in the meantime: why not make it an ask ubuntu question?17:45
jdstranddpm_: well, sure, but the larger point isn't that specific question, but that we need the 15.04 dev doc out there so people can tie everything together17:46
plarsmvo: Hi, are there any details regarding the changes to core images that gustavo mentioned in his email?17:47
plarsmvo: I'd like to know sooner than later if they will break our automated provisioning in any way17:47
dpm_jdstrand, gotcha, I hadn't seen the thread until now, now I can see the context of the question17:48
ogra_mvo, triggering a new 15.04 edge build for a fixed raspi2 device tarball17:58
rickspencer3jdstrand, hi, I am trying to run fsweb from a snap on my rpi2 and bbb, and fsweb says that it doesn't have permissions to open /dev/video018:10
rickspencer3does this look right for hw-assign?: sudo snappy hw-assign rest-cam.sideload /dev/video018:10
jdstrandrickspencer3: yes18:10
jdstrandI actually have to step away for an appt. if you have other questions, please feel free to ask tyhicks (or ask me and I'll answer when I get back)18:12
rickspencer3will do18:13
mvoplars: d you use ubuntu-device-flash? if so, you may not need anything, or maybe change the parameters how u-d-f is called slightly the details are not fixed yet. essentially you need to tell it what os and kernel you want18:20
mvoogra_: ta18:20
* ogra_ twiddles thumbs waiting for the importer18:32
* genii makes sure ogra_ has enough coffee to stay awake18:36
ogra_hah, always :)18:36
plarsmvo: yes, I do use udf, but just wondering if there were details yet18:40
mvoplars: we may make it transparent18:42
mvoplars: i.e. the gadget snap defines kernel/os so for you nothing changes18:42
ogra_sudo ubuntu-device-flash core --oem pi2.canonical --channel edge --enable-ssh --device raspi2_armhf -o rpi.img 15.0419:02
ogra_...19:02
ogra_Summary:19:02
ogra_ Output: rpi.img19:02
ogra_ Architecture: armhf19:02
ogra_ Channel: edge19:02
ogra_ Version: 5919:02
ogra_\o/19:02
elopio\o/19:03
geniiHm19:04
ogra_(RaspberryPi2)ubuntu@localhost:~$ snappy list19:10
ogra_Name        Date       Version Developer19:10
ogra_ubuntu-core 2015-11-12 59      ubuntu19:10
ogra_pi2         2015-11-12 0.16    canonical19:10
ogra_and it BOOTS !19:11
ogra_ok, rpi stable is ready for consumption :)19:11
elopioogra_: stable?19:20
ogra_mvo, elopio, i just copied the raspi2 59 edge image to alpha for testing19:20
ogra_alpha 3 is all yours :)19:20
elopiook.19:20
ogra_yeah, stable19:20
ogra_i'm not sure if rollback to 2 will or should work, given the images have been produced quite differently19:21
ogra_(but you can try indeed and all future images should support rollback/install)19:22
mvoogra_: worth re-testing the other ones too, just in case?19:27
* jdstrand -> back19:27
ogra_mvo, well, they shouldnt have any changes, but sure19:28
mvoogra_: did you promote the current candidates (latest build) to alpha?19:50
mvoogra_: nevermind, I just did that19:52
mvoelopio: if you could do a validation of alpha that would be great, I just promoted the latest build from ogra to alpha, if all is looking good I will promote to stable later tonight or tomorrow morning19:53
elopiomvo: I'm on it.19:53
ogra_mvo, oops, not yet19:53
ogra_thanks !19:54
mvoelopio: thanks! keep me updated :)19:55
elopiomvo: sure. Testing rpi alpha #3 now.19:55
kyrofajdstrand, snappy-debug only seems to work if apparmor is in audit mode... is that right?21:22
kyrofajdstrand, is there a reason for that?21:22
kyrofajdstrand, I don't know a ton about apparmor, but I needed to change the regex "audit: type=1400 audit" to just "type=1400 audit" . After that, life-saver tool man21:24
jjohansenkyrofa: where is that regex?21:27
kyrofajjohansen, snappy-security-scanlog line 7721:28
jdstrandkyrofa: oh, interesting21:28
jdstrandkyrofa: what kernel is this on?21:28
jjohansenkyrofa: ah, okay /me is not familiar with that tool, but it really shouldn't be directly scanning the log21:28
jdstrandjjohansen: it uses libapparmor but it filters slightly to grab just the seccomp and apparmor stuff21:29
jjohansenjdstrand: doesn't really matter, that change isn't a kernel thing21:29
jdstrandoh I guess not21:30
jdstrandI'll update the tool21:30
kyrofajdstrand, jjohansen before I lead you on a wild goose chase, this is part of the effort to get snaps running on the current phone image, so it may very well be a difference there21:30
jjohansenjdstrand: ah21:30
jjohansenkyrofa: not so much a wild goose chase, as a log prefixing issue that has been seen before in different configs21:32
jjohansenso its not just a phone issue21:32
kyrofajjohansen, ah, good deal. Yeah perhaps making that regex a little less specific would be good, then21:32
jdstrandthat is what I'm working on now21:33
kyrofaThanks jdstrand :)21:33
jjohansenjdstrand: I am not sure a prefilter at this level is worth it21:34
jdstrandjjohansen: we need to choose between seccomp and apparmor and we do that by looking for the regex. but, we can just do ' type=1400 ' and ' type=1326 '21:37
jdstrandrather than having the 'audit' bits around it21:37
jjohansenjdstrand: obviously doesn't know about the subversive plans to bring seccomp log parsing into libapparmor21:38
jdstrandheh21:39
jdstrandkyrofa: would you mind testing this: http://paste.ubuntu.com/13241898/21:40
jjohansenbut sure, what ever you need21:40
kyrofajdstrand, doing now21:40
kyrofajdstrand, the spaces are an issue. Here's a typical log for me:  [ 7486.263143]type=1400 audit(1447364595.911:238): apparmor="DENIED"21:44
jdstrandhuh21:44
jdstrandok21:44
jdstrandkyrofa: guessing this'll do the trick: http://paste.ubuntu.com/13241961/21:45
kyrofajdstrand, bingo! Works great21:47
jdstrandkyrofa: ok, snappy update should get you 0.5 with the fix21:49
kyrofajdstrand, best service in the business21:50
jdstrandhehe21:50
jdstrandwelcome to snappy :)21:50
kyrofaThanks : )21:50

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