/srv/irclogs.ubuntu.com/2016/04/20/#snappy.txt

nessitasergiusens, hi! I can not migrate, but you can just register the name for the series 16 do a new upload (you can use an existing binary)01:41
=== chihchun_afk is now known as chihchun
netpheakmorning, guys!04:39
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mvoogra_: I updated everything for new images, but my rip2 image does not boot, I wonder if there is some kernel issue maybe? not output after Starting kernel ...06:51
mvoogra_: image created with the latest u-d-f from people.c.c:~/mvo/all-snaps06:51
davidcalleMorning o/06:53
davidcalleI'm getting "error: can't remove "foo": snap "foo" has changes in progress" for any refresh/remove action. What's going on under the hood? Is there a way to check the status of these "changes"?07:01
nhainesdavidcalle: morning!07:01
mvodavidcalle: try "snap changes"07:02
mvodavidcalle: and good morning to you as well!07:02
davidcallemvo: hah, thanks, I missed this one in the help :)07:02
jibelmorning07:03
jibelmvo, snapd 2.0.2 should have fixed the "snaps vanish on reboot" on desktop?07:03
mvojibel: yes, only for new installs though, snaps installed with pre 2.0.2 are still affected, it does not "repair" those07:06
mvoogra_: I also pushed http://people.canonical.com/~mvo/all-snaps/dragon-all-snap.img.xz now would be nice if you could verify it (my dragonboard appears to be broken :/07:06
mvo(or anyone else with a dragonboard)07:06
jibelmvo, all right. I'll reinstall and try again. thanks07:10
kalikianaHow come this snap https://uappexplorer.com/app/nethack-amd64.ogra cannot be found via "snap find nethack" on Xenial and "sudo snap install nethack-amd64.ogra_0.1.0_amd64.snap" says "error: change finished in status "Hold" with no error message"? The error doesn't tell me what's wrong.07:13
mvojibel: thanks07:14
davidcallemvo: another quick question, can't install webdm, can't remove it: http://paste.ubuntu.com/15942446/ (bonus question: when installed, how do you start it? I used to do snappy service)07:21
mvodavidcalle: that sounds like webdm got installed with snappy <2.0.2 :/07:22
mvodavidcalle: sudo systemctl start snap-<tab> hopefully gives you the mount unit07:22
mvodavidcalle: once you started the mount unit manually you can remove and reinstall it (make sure you have snapd 2.0.2 installed when you do that)07:23
mvodavidcalle: the <tab> should give you a list of completions hopefulyl and one of them should be webdm07:23
davidcallemvo: it worked, thanks. I also see a few snappy-* services, leftover cruft? (autopilot.timer, autopilot.service, webdm.snappyd.service, workaround-apparmor.service)07:25
dholbachkalikiana, https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/157217507:33
ubottuLaunchpad bug 1572175 in snapd (Ubuntu) "change finished in status "Hold" with no error message" [Undecided,New]07:33
mvodavidcalle: it sounds like it, yes07:34
davidcallemvo: alright, thanks07:35
kalikianadholbach: Thanks07:37
zygagood morning07:53
jibeldholbach, I cannot find the ubuntu-{clock,calculator} in the store. anything changed?07:54
jibelthey were here yesterday07:54
dholbachjibel, that has to do with version 1607:58
zygajibel: yes, the store was moved, there's a new series (16) and snaps need to be uploaded there (remember to register the name first)07:58
dholbachseries, sorry07:58
dholbachI sent dpm a mail about it07:58
dholbachjibel, if you want to test locally, maybe build it from lp:snappy-desktop-examples for now (just run snapcraft)07:58
jibelzyga, dholbach thanks. I'lll build a snap or 2 and wait until they're uploaded07:59
pjoeis there a release schedule for next version of snappy ubuntu core? .. what is the target for 16.04?08:12
zygapjoe: we will do SRUs regularly to fix issues and add new relevant features08:13
zygapjoe: (especially new interfaces :-)08:13
pjoeok, but there will be a 'stable' 16.04 sometime soon?08:18
* pjoe is still quite new to snappy, so have tons of questions :)08:18
pjoeI've been testing with 15.04 .. but found that bridge-utils are missing so I can't properly setup the network configuration with bridges into lxd containers08:19
pjoehowever on rolling 16.04 the lxd snap is missing :(08:19
pjoealso how would I go about to getting a kernel module patch in to my snappy install08:25
pjoecould that be done in an oem-gadget?08:29
jibelwillcooke, when I click on a snap in nautilus should it open gnome-software?08:34
willcookejibel, it should but it doesn't.  Known bug08:35
jibelk08:35
jibelwillcooke, bug # please?08:35
jibelwillcooke, is there another way to install a local snap with gnome-sfotware?08:36
willcookejibel, nope08:36
willcookejibel, https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/157018208:37
ubottuLaunchpad bug 1570182 in gnome-software (Ubuntu) "Support sideloading snap packages" [Medium,Triaged]08:37
jibelthanks08:38
willcookenw08:38
* pjoe reading trhough the porting guide08:40
dpmmorning mvo! Quick question: I noticed you uploaded ubuntu-clock-app-mvo to the store - was that for testing purposes or do I need to change anything in ubuntu-clock-app?08:44
dholbachdpm, the former08:45
dpmthanks dholbach :)08:45
dholbachdpm, see my mail from this morning on how to do a new upload08:45
dholbachdpm, it'll be required to get clock/calc working on series 1608:45
dpmdholbach, yeah, I saw it. I'm packaging calendar now to see the process from the start and see what needs to be changed in the documentation08:45
dholbachcool08:45
dpmdholbach, thanks for testing it and the summary!08:45
dholbachanytime08:46
* pjoe scratches head ... ahs partition layout changed? ... the 16.04 i tried only has system-boot and writable .. no system-a/b08:48
zygapjoe: yes08:50
pjoeis the new layout documented somewhere?08:50
zygapjoe: everything is different, we now mount snaps directly from squashfs08:50
zygapjoe: maybe :)08:50
pjoe:)08:50
* pjoe still trying to get my head wrapped around all this08:51
pjoeany pointers for how I would get a patched kernel module into my install?08:51
pjoewe have this hw watchdog that isn't supported out of the box in the kernel driver08:51
pjoeonly a few lines of change in driver code ... but need to figure out how to get it in08:52
ogra_mvo, try the rpi on a monitor ... the serial being broken with the shared uboot is known ...08:53
pmpogra_: oh, are there any news concerning rpi2?08:54
pmpogra_: is the os-image working again?08:54
ogra_again ?08:54
ogra_did it not work ?08:55
pmpogra_: it boots, but I cannot use any snap I installed08:55
pmpogra_: wait I'll get the link of my mail to the mailing list08:55
pmphttps://lists.ubuntu.com/archives/snappy-devel/2016-April/001746.html08:56
ogra_pmp, ah, that might be fixed with the img mvo mentioned above (or if you simply build your own from todays snap packages in the store)08:58
zygaogra_: thanks for sharing my article!09:00
ogra_thanks for writing it !09:01
pmpogra_: thanks, that's the information I was looking for to hear09:03
mvodpm: just testing, ubuntu-clock-app-mvo can go, I will unpublish/remove09:04
mvoogra_: aha, if rpi2 is otherwise ok I will upload it as well09:05
dpmthanks mvo, no worries. I was just wondering if you were uploading a hotfix to the existing clock or something09:05
mvoogra_: once you (or someone else) verifies that the dragon works I will send a mail to the mailinglist about the new images09:08
pjoehow can I see what is inside a snap file?09:08
pjoedo I have to mount with squashfs .. or is there some other way09:08
mvopjoe: unsquashfs -ls (or -ll) snapfile09:09
mvopjoe: or unsquashfs snapfile to unpack it09:10
pjoethanks .. for now manage to mount it09:10
Marco___hi guys, I just booted the new amd64-all-snap.img. there's stil an issue with eth interface. "ip addr" lists enp2s0 as interface, but in /etc/network/interfaces.d/ it's still called eth0 .. renaming eth0 to enp2s0 (and all stuff inside file) works meanwhile for me ..09:11
ogra_Marco___, file a bug please (we should hanlde it the same as on all other images where we enforce old names)09:15
pjoebtw. I'm testing on a pc with 2 NICs .. trying to unplug cable from one and insert into the other seemed to work pretty badly :(09:18
pjoelike the address of eth0 was never released and routes would still default to the dhcp IP eth0 had gotten09:18
Marco___ok, I'll do so.09:19
pjoeso even though eth1 was up no traffic would work .. at is was still trying to route everything through eth009:19
pjoewhat is the mechanism for handling dhcp and link states?09:19
zygapjoe: that looks like ifupdown, I don't think it handles that at all, you need network manager09:19
zygapjoe: the good thing is, it will be snapped soon, with a supporting interface09:20
pjoeheh ... oh don't get me started on nm09:20
jamiebennettmvo, ah, I missed it, do we have new rp2 images?09:20
zygapjoe: well, you're out of options then09:20
pjoebut suppose I can live with it09:20
pjoeso nm will only be a snappy install away?09:20
* pjoe has been fighting with various nm bugs in the past .. so know some of the code (all too well)09:21
mvojamiebennett: yes, since this morning09:22
mvojamiebennett: I prepared an annoucement mail but I wait for someone to confirm that the dragonboard image actually works, my dragonboard is unfortunately broken09:22
pjoeis there a readme or something for how to build image with the new alyout?09:22
jamiebennettmvo, I have one here09:22
mvojamiebennett: nice!09:23
pjoelunchtime .. bbl09:28
=== pjoe is now known as pjoe_afk
zygamvo: I can check09:34
zygamvo: mine is operational09:34
zygamvo: what is the gadget snap for dragonboard?09:36
zygamvo: canonical-dragon is not in the store09:36
mvozyga: the image is on people.c.c09:36
mvozyga: http://people.canonical.com/~mvo/all-snaps/dragon-all-snap.img.xz09:36
zygamvo: I tried building it09:36
zygamvo: (ubuntu-image)09:37
zygamvo: latest udf but it prints this error instead:09:37
mvozyga: it should work, you need to build it from the 16 series now, one sec I paste my cmdline09:37
zygaDetermining gadget configuration09:37
zygaexpected a gadget snaps: snap not found09:37
zygaahhh09:37
zygathanks!09:37
mvozyga: http://paste.ubuntu.com/15943880/09:37
zygayes, updated ubuntu-image, thansk09:38
mvozyga: :)09:38
ogra_mvo, waiting for dd ... do we have any working smaple package ?09:49
mvoogra_: hello-world, xkcd-webserver, go-example-webserver should all work09:52
mvoogra_: hm, maybe not go-example-webserver09:52
zygaogra_: links :)09:53
mvoogra_: I thnk dholbach uploaded moon buggy too and links from zyga09:53
mvozyga:  :)09:53
zygaogra_: though no armhf build09:53
zygaogra_: I can make one in ~30 minutes if you need one09:53
ogra_hello-world is enough :)09:53
ogra_so we got a shiny store update but i'm still offered the canonical-pi2 gadget in snap find on arm64 ... tsk09:55
ogra_(and -i386 and -pc)09:55
mvoogra_: they are all arch indep09:55
mvoogra_: we really need to filter gaget from default searches09:55
ogra_yes, thats what i mean ;)09:55
ogra_or have a --filter option for package types :)09:56
mvoogra_: lets put it on the pile 223434 items we want to polish ;)09:56
ogra_mvo, thumbs up for the dragon ... serial, monitor and ssh logins work, i can install, find, list and remove snaps09:58
mvoogra_: \o/09:58
ogra_why is it not upgradeable btw ?09:58
ogra_(you say that in etherpad09:58
ogra_)09:58
mvoogra_: it is upgradable, it will just not do it by itself09:58
mvoogra_: the auto update timer job is broken because we have only snap refresh <snap>09:59
ogra_oh, right, my bad09:59
mvoi.e. no "refresh all"09:59
ogra_you wrote auto-update09:59
mvoogra_: feel free to correct in the pad so that its clearer09:59
ogra_i thihnk we should mention the dropped config interface ... beyond that i think it is fine09:59
=== pjoe_afk is now known as pjoe
mvoogra_: good idea, let me add this10:00
mvoogra_: I actually think I should get these images on cdimage instead and remove the current (outdated) ones, will clarify with the release team10:02
ogra_mvo, oh, see Marco___ above ... no auto config of network interfaces on amd6410:02
mvoogra_: really? that works for me in kvm, I have eth0 with a valid IP10:02
ogra_(we need net.ifnames=0 on the commandline)10:02
ogra_mvo, not on real HW where the interface wont be called eth010:03
* pjoe is on amd64 device .. so at least don't need xcompile :)10:03
ogra_its a simple addition to the kernel commandline to enforce the ethX names10:03
pjoeis this the place to find newest image: http://cdimage.ubuntu.com/ubuntu-snappy/15.04/edge/ ... or is it better to build image myself?10:04
ogra_pjoe, if you want to help testing http://people.canonical.com/~mvo/all-snaps/ is the place ;)10:04
pjoeok, will give it a try10:05
ogra_we'll release these als 16.04 alpha soon10:05
pjoenice10:05
mvoogra_: meh, I thought we had code that detects the interface name in firstboot. oh well, I release note it, thank you10:06
* ogra_ wonders if there isnt a way to enforce a werid name in kvm ... would make sense to have that in the tests 10:07
* pjoe reads more about how to make snaps ... wouldn't mind trying to get lxd up on latest img10:08
ogra_wow10:14
ogra_so booting kvm with: -net nic,model=e1000,name=foobar0 ... makes it hang on boot10:14
ogra_(firstboot and sys-subsystem-net-devices-eth0 give an unlimited systemd counter in the shell)10:15
ogra_ah, the eth0 job timed out now ...10:16
ogra_doesnt look like firstboot will ...10:17
ogra_mvo, "boot will hang" in the etherpad should probably get added "forever" (doesnt seem like it will move on here with the mangled nic setup in kvm)10:18
mvoogra_: added, thanks10:18
ogra_bah10:18
ogra_and as i saw you writing it it moved on10:18
* ogra_ deletes again10:19
ogra_added a correct time estimage instead :)10:19
ogra_mvo, heh, webdm ?10:21
ogra_(currently broken )10:21
ogra_i'm surprised you installed it10:21
pjoehmm that amd64-all img doesn't boot for me :( sad panda10:27
ogra_how do you try to run it ?10:27
mvoogra_: well, *maybe* we will update to something that works later ;)10:27
ogra_mvo, yeah, but i see it only on amd64 :)10:27
pjoedd to usb and boot on device .. looks like it kind find or load the snaps10:28
ogra_how does the boot hang ?10:28
pjoegetting no such file or dir for the ubuntu-core and canonical-pc-linux10:28
ogra_damn10:28
pjoecould this be the missing squashfs boot param?10:29
mvoogra_: indeed, silly me, fixing my build scripts10:29
ogra_mvo, i guess i need to re-enable MODULES=most for the initrd :/10:29
mvoogra_: :/10:29
ogra_pjoe, no, most likely a missing module for your disk controller10:29
mvoMarco___: re bug #1572466 when the machine boots snappy, does ifconfig show anything at all beside the "lo" interface?10:29
ubottubug 1572466 in Snappy "eth interface naming" [Undecided,New] https://launchpad.net/bugs/157246610:29
ogra_(or USB in your case ... i added usb-storage to the initrd but i fear there are lower level bits missing)10:30
pjoeok ... will try to look for more info ... unfotrunately this device doesn't have serial tty .. so I'm limittede to what hasn't already scrolled off the screen :(10:30
ogra_yeah, i know what you mean :)10:30
pjoehmmm wondering if it's because I also have an ssd disk on the device ... with old snappy 15.04 installed10:33
pjoemaybe it's trying to mount from there10:33
ogra_oh !10:33
pjoetime to get the screwdriver out :D10:33
ogra_well, you could boot from some other mediaq and just remove thje "writable" label from the partition on the SSD10:34
ogra_that is all we look for10:34
pjoewill try simple disconnected ssd first ... should be fastest way to test for me10:34
ogra_heh, ok10:35
ogra_let us know how it goes10:35
pjoewill do10:36
pjoefwiw I didn't have that issue with the image from: http://cdimage.ubuntu.com/ubuntu-snappy/15.04/edge/10:37
ogra_the image design changed quite a lot10:37
ogra_(single partition, everything is a snap)10:38
pjoeokbut that one still has only writable part ... no sys-a/b10:38
pjoeand it also said 16.04 when it booted (even though the download is from 15.04) :D10:38
* pjoe got the device open now10:39
ogra_that cant really be ...10:40
ogra_ogra@nusakan:~$ ls -l /srv/cdimage.ubuntu.com/www/full/ubuntu-snappy/15.04/edge/*10:40
ogra_-rw-r--r-- 1 cdimage cdimage 144411420 Jul  7  2015 /srv/cdimage.ubuntu.com/www/full/ubuntu-snappy/15.04/edge/ubuntu-15.04-snappy-amd64-generic.img.xz10:40
ogra_i dont think we had teh single partition layout on Jul 7th10:40
pjoeweird ... pretty sure that was where I found it10:41
pjoeok booting now without the ssd ... looks more promising :)10:42
ogra_phew10:42
pjoeit even got ip addr :D10:42
pjoeand ssh works .. so far so good :)10:43
pjoebut there is no snappy .. only snap command10:44
ogra_ok, then the initrd isnt faulty ... phew10:44
pjoethat 15.04 edge I tried before had both ... guess it might have been mid transition :D10:44
ogra_heh, yeah, it was mid transition for the last 4 months or so :)10:45
pjoebut still no lxd snap :S ... will need to dig into how to get that done for 16.0410:46
ogra_yeah, now that the setup is final all the snaps need to be adjusted for it10:46
pjoehuh .. but nic interface name is back to eth0 ... before was en1sp010:46
pjoeoh well10:46
ogra_ah, thats actually good10:47
* pjoe testing if the other interface then is eth110:47
pjoehmmm10:48
pjoemaybe needs a reboot10:48
pjoeahhh can see on console other nic is en2sp0 ... always good to mix things up10:49
popeydholbach: dpm got qtox working!  😃10:49
* pjoe really misses vim on snappy ... will have to manage with just vi10:50
popeydholbach: dpm we finally have a GUI example http://bazaar.launchpad.net/~snappers/snappy-playpen/trunk/files/head:/qtox/ :)10:50
dpmpopey, nice, good work!10:51
pjoebtw. any tricks for optimizing boot time? .... coming from coreos it seems to boot quite a bit slower10:52
pjoehuh .. after reboot no network ifs came up10:54
pjoethink I saw in console eth0 had become en1sp010:54
popeyyeah, nics have new names in recent kernels10:54
pjoewell first time it booted it was eth0 and got an IP10:55
pjoehmm10:56
Marco___mvo: bug #1572466: on first boot ifconfig shows up eth0. all following boots it only shows lo. ip addr shows enp2s0 additionally to lo10:57
ubottubug 1572466 in Snappy "eth interface naming" [Undecided,New] https://launchpad.net/bugs/157246610:57
pjoesounds like what I'm seeing10:59
pjoeheh had a typo ens1p0 instead of enp1s0 ... think things are coming up now11:02
ogra_pjoe, echo "set nocompatible" >.vimrc11:02
ogra_;)11:02
ogra_that gives you normal vim behaviour in vi11:02
pjoeahh so it is the full vim binary ... sweet11:03
ogra_its stripped down ... but at least it behaves like normal vim11:03
ogra_(you can use cursor keys in insert mode etc)11:03
* pjoe is still trying to learn vim ... guess that will always be an ongoing process :D11:03
dpmsergiusens, hi! If I'm creating a local snapcraft plugin, is there any way to specify the launch command, other than me having to ship a separate app.launch script?11:03
pjoeI can see both nics now :D ... as enp1/2s011:05
* ogra_ curses ... why is LP timing out for me 11:06
pjoesnap find '*' is a pretty short list now though :S11:07
* pjoe tries if my network bridging setup at least now wroks and persists11:08
* ogra_ updates info on bug 157246611:09
ubottubug 1572466 in Snappy "net.ifnames=0 missing on kernel commandline in amd64 images" [Undecided,Confirmed] https://launchpad.net/bugs/157246611:09
pjoeheh doing 'mount' show a pretty long list11:09
ogra_yeah, thats the "bind mount farm" ... that gives you some writable files11:10
pjoebtw. how does path work? ... does all snaps get inserted in path or do they put things in liek /usr/bin11:11
pjoeoh btw. when connecting through mikrotik routers I get weird errors like this: - Download snap "nmap" from channel "stable" (Get https://068ed04f23.site.internapcdn.net/download-snap/McFtwWmHVzBWwYSVtXzCdJ6Rt4STQPtl_17.snap?t=2016-04-21T11:12:20Z&h=0078afbef70454c19e106b106682012950b32e9c: dial tcp: lookup 068ed04f23.site.internapcdn.net on 192.168.88.1:53: cannot unmarshal DNS message)11:13
pjoenever seen that kind of thing before11:13
pjoeis snap implemented in go? ... it sounds a bit like this: https://github.com/golang/go/issues/1107011:17
pjoeI'm guessing the router has some kind of dns proxy doing some funny biz11:18
ogra_pjoe, yes11:18
pjoekool11:18
* pjoe has been very fond of go so far11:19
ogra_wow, nmap works really nicely11:19
* ogra_ guesses he should get nethack ported to the new world ... 11:19
* pjoe using beego framework for some backend stuff11:21
ogra_mvo, no pi3 image btw ?11:23
ogra_i also dont see pi3 in snap find :/11:23
pjoedoing 'snap install nmap' when using openwrt router works just fine ... again must be the other router doing funny dns proxy stuff11:23
ogra_yeah11:24
ogra_mvo might be able to tell you if/how you can set up a proxy11:24
* ogra_ imagines you can use http_proxy like on other ubuntus 11:24
pjoeno worries ... stil just trying to understand what works and what doesn't ... and how things work11:26
pjoee.g. how do snaps get their binaries into path ... can see from nmap that it ends up in /snap/bin11:26
pjoebut it isn't bind mounted there .. is it just linked?11:26
zygapjoe: those executables are wrappers generated by snappy11:28
zygapjoe: they are not the real executable11:28
pjoeahh, I see11:28
hdtveedoes anyone know whats going on with ubuntu snappy desktop ? i remember reading about plans to eventually make snappy the default package management system on desktop and was quite excited about it but i havent come across any news on this ever since11:28
ogra_hdtvee, where did you read that (not true)11:29
hdtveehold on11:29
zygahdtvee: it has been added to 16.04 as as a default install, you can use the new snaps alongside the good old debs11:29
zygahdtvee: 16.04 is not snap-based though11:29
ogra_hdtvee, deb will stay the default, but snaps are supported by default as well11:29
ogra_the system is (and will stay) deb based11:30
oparoz_Will it be possible in 2.0 to run a config script at install time to set things up? Things like creating folders and files for the various services installed with the snap11:30
ogra_by 16.10 there might be snappy based desktop images too ... but they wont replace the existing desktop11:30
hdtveehttps://www.maketecheasier.com/ubuntu-snappy-what-you-need-to-know/11:30
ogra_oparoz_, you can do that today in your snap startup scripts (you wont be able to create dirs in the system, and why would you though)11:31
zygaoparoz_: no11:32
zygaoparoz_: you can do that when your service starts11:32
ogra_hdtvee, thats nonsense ... the existing desktop installs wont go away11:32
zygaoparoz_: but you cannot run any scripts at install time11:32
oparoz_Thanks zyga. The problem is that scripts are started at random, so each and every daemon needs to include the setup script11:32
ogra_hdtvee, as i said, tzhere might be additional snappy based desktop images at some point, but we would be insane to stop providing the existing stuff :)11:32
zygaogra_: that article talks about frameworks :-(11:33
ogra_too many people use it and depend on it11:33
zygaoparoz_: you should patch your daemon to use the snappy dirs11:33
oparoz_zyga, they do already11:33
zygaoparoz_: each snap has a snap-wide data and per-user data (which daemons don't really use since they run as the root user)11:33
ogra_zyga, yeah, some research might have helped :)11:33
oparoz_zyga, but we have to re-create everything on the writable partition in order to organise things11:33
zygaogra_: internet journalism ;)11:33
ogra_yep11:33
zygaoparoz_: ?11:33
ogra_as long as it pays off :P11:34
oparoz_zyga, create var/log, var/tmp var/run11:34
oparoz_zyga, create folders for apps to put their files in11:34
oparoz_zyga, typically something you only do once11:34
zygaoparoz_: snaps cannot do that, you cannot write to /var/log or /var/tmp or /var/run, you have to patch the daemon code to use s$SNAP_DATA11:35
zygaoparoz_: those directories *are* set up for you by snappy11:35
oparoz_zyga, yes, but those folders would be $SNAP_DATA/var/tmp, etc.11:35
oparoz_zyga, so we know where all logs files, sockets, etc. are11:36
zygaoparoz_: well, you can just organize that space in some way, note that /var/tmp won't be removed on reboot, the socket can be just directly in $SNAP_DATA/foo.socket, etc11:36
zygaoparoz_: if you reorganize the code around snappy concepts it should be easier11:36
* zyga -> lunch11:36
ogra_oparoz_, just add a startup wrapper that creates them if they dont exist11:37
ogra_underneath your snap dir11:37
ogra_and make sure all bits you need are in that snap and know that they should write there11:37
ogra_thats the proper way to do it in snappy11:37
oparoz_ogra_, that's what I'm doing today. I call a filesytem_setup script, but I thought it would be more efficient to be able to call it once at install time, because that's when changes will happen11:38
oparoz_I don't like the idea of polluting $SNAP_DATA with log files, sockets, pids, app folders, etc.11:38
ogra_oparoz_, just check for SNAP_VERSION ... and comparie it to a stamp file11:39
ogra_then you can call it only on upgrade11:39
oparoz_ogra_, good idea :)11:39
ogra_though dont forget that people can roll back :)11:40
ogra_your check needs to cover that11:40
oparoz_true11:40
oparoz_ogra_, but with snap version, the script will be run every time a service is started when the snap is first installed11:41
MichaelTunnellhdtvee: I am making a video that explains Snappy, that might be of interest to you :)11:41
oparoz_overall it's not a big deal, but that means adding something to the documentation of a snap, telling people that every daemon as to include a call to that script11:41
oparoz_*has11:42
ogra_oparoz_, well, it can be a two liner ... wont really be noticeable11:42
oparoz_ogra_, Indeed11:42
hdtveeMichaelTunnell, alright link it when it's ready11:42
* pjoe got persistent network bridge working :)11:52
pjoealso looks like it would be possible to have custom kernel modules in a oem-gadget-snap11:53
pjoeat least canonical-pc-linux looks to have kernel moduls :)11:53
ogra_not really, you want them in a custom kernel snap instead11:53
pjoeahh you can do that11:54
ogra_gadget (formerly oem) = bootloader and specifications11:54
pjoethings slowly starting to fall into place for me11:54
ogra_kernel = all the other HW bits11:54
ogra_note that both are in the process being re-defined though11:54
ogra_(but i guess the basics above wont change)11:55
pjoeso you can have a custom kernel snap .. with patched kernel modules and what not ... and you can update that at your own pace independently of ubuntu-core snap11:55
ogra_if you would ship a graphics driver it would be in the kernel snap ... together with the libs it needs11:55
kyrofaGood morning11:55
pjoeI 'just' need to patch a whatchdog drive module to support specific chipset11:56
pjoedriver11:56
mvoogra_: proxy is a tiny bit tricky, needs a systemd environment setup, I can post details if someone needs them11:56
ogra_mvo, pjoe might11:57
mvoogra_: pi3 - how do we make those? whats the gadget/kernel? happy to build some11:57
pjoeso canonical-pc-linux is the default kernel snap11:57
ogra_mvo, same as pi2 but with the canonical-pi3 gadget (note it is identical to pi2 currently, but i'll change that soon11:57
ogra_)11:57
ogra_pjoe, right11:57
mvoogra_: would be nice to clarify with e.g. jamiebennett if we should host pi3 images under the .canonical namespace or if those should be a different namespace (more community oriented)11:57
mvoogra_: aha, ok11:58
ogra_i wanted a generic pi image ... but neither ppisati nor I got serial to worjk on the pi2 with the pi3 uboot11:58
jamiebennettmvo, ogra_, I'd like to move out the community builds to their own space, just to improve the clarity11:58
ogra_that means we need two separate gadgets ... beyond that the image is identical11:59
zygaogra_: didn't pi3 change serial lines around so that it can talk to bluetooth?11:59
zygaogra_: debug serial moved to then next one11:59
ogra_jamiebennett, the querstion is weather pi3 should be a community build :)11:59
jamiebennettogra_, something to discuss at the sprint ;)11:59
ogra_zyga, right ... and sadly it does that inside uboot11:59
zygaogra_: ahhh11:59
ogra_jamiebennett, we support the pi as default arch ... and i suspect the pi2 deliveries go down over time ... so i'd definitely keep it supported12:00
ogra_(and rather drop pi2 after a while)12:00
jamiebennettogra_, agree (although keep pi2) but whether is it officially blessed or part of the community is up for discussion12:01
jamiebennettI suspect it is more the former though12:01
ogra_especially since the pi3 is better suited for IoT with wlan and BT by default12:01
* pjoe goes reading about how to build snaps ... to try and figure out how much it would take to get lxd up12:03
ogra_you want to read about snapcraft12:03
ogra_it also has examples12:03
pjoelooking here: https://developer.ubuntu.com/en/snappy/build-apps/get-started/12:04
ogra_(note that you need a xenial systeom or at least a xenial chroot with snapcraft 2.x)12:04
pjoeheh is planning to update my laptop tomorrow12:04
pjoebut guessing maybe docker 16.04 could do for today12:04
pjoeor even lxd 16.04 :D12:04
ogra_yeah12:08
popeydpm: do you have any snaps which use an icon and .desktop file, I'd like to take a look and see how you did it12:13
dpmpopey, both the clock and calculator apps do. You just need to 1) drop the icon and .desktop file in a setup/gui directory 2) make the icon field in the desktop file be: Icon=${SNAP}/meta/gui/$YOURICON.png12:15
dpmpopey, http://bazaar.launchpad.net/~dpm/ubuntu-clock-app/snap-all-things/files/head:/setup/gui/12:16
dpmit's a bit of duplication, as it's a manually crafted .desktop file as opposed to the already built one, but as far as I could tell, there wasn't a way to use the built one12:17
popeymagic, thanks dpm12:17
dpmnp12:21
sergiusensdpm we will grow plugin meshing with apps once we have a clear design for this; sorry its not there yet; but we also really want it for other use cases; it is just that they are too disparate as they are12:28
dpmsergiusens, it's fine, for now it helps me to know there is no other way.12:29
dpmsergiusens, also, I find myself copying and pasting the same wrapper over and over for the core apps. I've now started using a custom plugin based on the old qml plugin. If I get it in shape and submit it to snapcraft, would it make sense to get it back upstream? Or was there any particular issue for which it was dropped, other than being unmaintaned?12:31
sergiusenskyrofa elopio hey, today its all hands on deck on vila's PR :-)12:34
kyrofasergiusens, you got it12:35
* vila runs twice as fast 12:35
vilasergiusens: happy to discuss anything really, things are still moving server-side but I catch up quickly12:36
vilasergiusens, kyrofa, elopio: mainly because store_tests can be run against staging so I can validate before prod is available12:37
popeydpm: where does your package end up putting the .desktop file? I see nothing in /usr/share/applications12:37
ogra_yay, my tablet arrived12:38
sergiusensdpm yes, I mostly killed the qml plugin because it made to many assumptions that were not JUST about qml12:41
sergiusensdpm I would be happy to accept something that works for a common base12:42
zygapopey: /var/lib/snapd/desktop12:42
zygapopey: snappy rewrites desktop files on install12:42
sergiusensvila when you say things are moving, are you saying that the stuff landed in this PR might break us in the future?12:42
sergiusensI am not super keen on emergency PRs12:43
sergiusensvila also, haven't looked at the PR in detail, but can we check if we own the name before uploading a huge snap?12:43
vilasergiusens: I can predict that ;-) What I meant is that I'm still waiting for some bits server side to finish macaroon'ed upload and implement publish12:43
popeyzyga: my unity7 dash doesn't see the desktop file12:43
popeyzyga: it's in that location, but i can't start my app from the dash12:43
dpmpopey, in the final snap, it puts it under meta/gui.12:43
vila*I /can't/ predict what will break12:44
dpmsergiusens, ok, cool. I'll submit it and we can discuss it in the review12:44
popeydpm: but once installed, do you get an icon for clock app in your dash?12:44
popeybecause I don't12:44
dpmpopey, yes, I do12:44
popeyhm12:44
davmor2popey: I don't12:44
dpmtested both clock and calculator yesterday12:44
popeyyou sure you're seeing the real desktop file for your snap?12:44
vilasergiusens: well, I'm not keen at all with emergency PRs myself...12:45
dpmpopey, I'm quite certain I am, as in my tests first it was missing the icon, then I fixed it and I could see the icon in the dash and launcher12:45
popeyhm12:45
davmor2popey: but then I still get davmor2@davmor2-XPS-13-9343:~⟫ ubuntu-clock-app.clock12:45
davmor2can not find a snappy os12:45
popeydavmor2: snap install ubuntu-core12:45
vilasergiusens: I'm trying to provide macaroon support for snapcraft as soon as it's available in the store. I understand snapcraft will need it sonner rather than later but I'm all for validating as much as we can12:46
dpmpopey, but... I haven't upgraded my system since yesterday.12:46
dpmdavmor2, hm.... I was told ubuntu-core installs automatically for you the first time you install a snap12:46
popeyit does now12:46
popeyit might not have done in the past12:46
dpmok, phew12:46
dpmyeah, it's quite recent afaik12:46
popeyi tested that by nuking my entire snap install and installing clock12:46
popeyubuntu-core installed first, so that certainly works12:47
xtihc我敢说哪里都有说中文的12:47
popeyjust confused by this desktop file missing12:47
popey!cn12:47
ubottu如欲獲得中文的協助,請輸入 /join #ubuntu-cn 或 /join #ubuntu-tw12:47
davmor2davmor2@davmor2-XPS-13-9343:~⟫ ubuntu-clock-app.clock12:48
davmor2QXcbConnection: Could not connect to display :012:48
davmor2Aborted (core dumped)12:48
dpmdavmor2, are your snaps installed under /snap or /snaps?12:48
xtihc..12:48
popeydavmor2: i think you need to nuke and pave12:48
davmor2dpm, popey: they are both under /snap/12:49
dpmdavmor2, ok, at least that's the right location12:49
davmor2popey: how did you nuke just rm -rf /snap/ or run a command?12:50
dpmdavmor2, you might need to wipe your /snap directory and mounts, we've all gone through this in the last couple of days, welcome to the club :)12:50
popeydavmor2: one mo, let me pastebin12:50
davmor2ta12:50
popeyhttp://paste.ubuntu.com/15947367/ that kinda thing12:52
popeydpm: what version of snapd you on?12:52
dpmpopey, 2.0.1, I've not updated yet this morning to 2.0.212:53
popeyI'm on 2.0.212:53
popeybe interested to know if the .desktop thing broke from 2.0.1 to 2.0.212:53
dpmpopey, dholbach might be able to help with testing on 2.0.212:53
popeyok12:54
popey:)12:54
sergiusensvila kyrofa seems the PR needs some work still; can we implement `register-name` independently or take guidance from dholbach's summary to add a link? ref: https://bugs.launchpad.net/snapcraft/+bug/157239912:56
ubottuLaunchpad bug 1572399 in Snapcraft "[upload] Catch name registration issue and explain how" [High,In progress]12:56
davmor2popey, dpm: Now I seem to be struck by the fact that ubuntu-clock-app isn't listed at all12:57
popeydavmor2: snap find | grep clock12:57
popeydavmor2: maybe snap login ?12:57
dpmdavmor2, or snap find ubuntu, either should work12:57
davmor2http://paste.ubuntu.com/15947484/12:57
popeydavmor2: i386 or amd64?12:58
davmor2popey: amd6412:58
kyrofasergiusens, think it's worth investing the effort if it's all switching to macaroons soon?12:58
popeydavmor2: version of snapd?12:58
kyrofasergiusens, easy to add the link though12:58
popey$ snap find ubuntu-clock-app12:58
popeyerror: no snaps found for "ubuntu-clock-app"12:58
popey:(12:58
popeythe whole "snap find" thing is broken12:58
davmor2ii  snapd                                                2.0.2                                               amd64        Tool to interact with Ubuntu Core Snappy.12:59
popeyhmm, I can't see any of dpm's apps either12:59
dpmsudo snap install ubuntu-clock-app should do too12:59
dpmtyhicks, jdstrand, is there an interface to grant access to dbus? I'm having an issue with the weather app snap whereby it tries to access the network and it's blocked -> http://pastebin.ubuntu.com/1594746912:59
sergiusenskyrofa right, I just don't want to do anything in a hurry that would break snapcraft completely; you can at least upload today if the name is registered12:59
zygadpm: each interface can grant access to dbus12:59
davmor2dpm: look at the output in my paste you will see it failed12:59
popeydavmor2: confirmed, snap find shows same here as you see12:59
dpmdavmor2, popey, argh, I know why. Since this morning apps need to be registered for the 16 release. I've not done that yet for clock and calc :/12:59
kyrofasergiusens, agreed 100%12:59
popeyahhhhh12:59
vilasergiusens: "can we check if we own the name before uploading a huge snap" not in the MP, known issue but no solution either in the short term :-/13:00
zygadpm: the upcoming network-manager interface should fix part of that bug13:00
popeydpm: tickbox in the store?13:00
kyrofasergiusens, I assume that error is store-side. I wonder if they could add a link there?13:00
sergiusensdpm you shouldn't have network-bind there now, should you?13:00
zygapopey: you have to upload again13:00
davmor2jibel: ^ there is the cause of your disappearing apps13:00
popeyah, okay13:00
popeythanks zyga13:00
dpmpopey, no, I need to register the name as well, will do all in a minute13:00
* zyga stops working and goes outside13:00
popeyok13:00
popeysorry dpm :)13:00
sergiusensnessita is it possible? To add a link to the error message from the store here https://bugs.launchpad.net/snapcraft/+bug/157239913:00
ubottuLaunchpad bug 1572399 in Snapcraft "[upload] Catch name registration issue and explain how" [High,In progress]13:00
dpmsergiusens, probably not, I was just testing.13:01
zygapopey, dpm: I will talk about interfaces more later today, by the end of next week interfaces will have very solid and in-depth documentation13:01
dpmsergiusens, zyga, does that mean that until there is the 'network-manager' interface I can't get the weather snap working?13:01
dpmpopey, np, good catch13:01
sergiusensdpm I think the network manager interface ALLOWS you TO BE network manager, not talk to it13:02
zygasergiusens: no13:02
sergiusensI THINK so at least13:02
popeyzyga: i appreciate your help13:02
zygasergiusens: it allows both13:02
vilasergiusens: oauth will no longer be valid for snappy I tried to preserve it but this is becoming increasingly hard and slows me down13:02
nessitasergiusens, you would like the error returned in the API for upload contains the link?13:02
zygasergiusens: depending on plug vs slot side13:02
sergiusenszyga isn't that a bit too broad?13:02
* zyga really stops working13:02
sergiusenszyga a k13:02
popeywise13:02
zygasergiusens: no, you think in terms of old caps :)13:02
josephtzyga: when you get back inside and have a chance; devtools is still not working for me.  https://pastebin.canonical.com/154809/ I'm at commit 9e6802e2d338d432cc265bc469cbf39e6dec376613:02
sergiusenszyga yes I do ;)13:02
zygasergiusens: interface has two sides and those do different things :)13:02
zygajosepht: pull13:03
zygajosepht: I fixed that earlier today13:03
vilasergiusens: fwiw, integration_tests.test_upload.UploadTestCase.test_upload_with_login started failing last night13:03
zygahmm13:03
zyga9e6802e2d338d432cc265bc469cbf39e6dec376613:03
zygaI build all the images with this revision13:03
sergiusensvila hmm, I released 2.8.3 last night; master should still work13:04
* sergiusens tests13:04
zygas/build/built/13:04
vilasergiusens: I did use snapcraft register-name with macaroons to register it for u1test+...@c.c so it should pass again, but other integration tests (on master) should still fail13:04
zygaanyway, really off13:04
vilasergiusens: yes, it does and should continue to work as long as people register and publish from the web site13:04
kyrofanessita, yeah. Maybe something like "You must register X name for 16 before uploading, please register it and try again (see https://myapps.developer.ubuntu.com/dev/click-apps/register-name/ for more information)." ?13:05
zygajosepht: that might be a bug in the snap itself, maybe mvo will know13:05
vilanessita: will OAuth uploads keep working for the 16 series ?13:05
zygakyrofa: have snapcraft send X-Did-Register-Name and have the server drop the connection early if that's not the case13:05
nessitakyrofa, ok, but then notice that name-registration can happen via API, so from my POV is a bit uneven that upload can be done via API, but you then redirect the user to a browser for name registration13:06
sergiusensnessita yes, something like what kyrofa says :-)13:06
nessitakyrofa, sergiusens I think snapcraft should offer name registration via API to the developer13:06
sergiusensnessita so vila is adding support for `snapcraft register-name` now and we will ultimately switch to that, but I don't think it will make it before release13:06
kyrofanessita, indeed, we agree. But we're all oauth right now13:06
nessitakyrofa, sergiusens that upload endpoint does not handle snap-ids, so I'm not sure you should be using it13:07
nessitavila, the old upload endpoint was conceived to be used with clicks and old snaps, not new snaps13:08
vilanessita: yeah, I'm worried about fallouts indeed13:08
nessitaif it works is by chance, and from the store side we can not guarantee backwards compatibility for new snaps13:08
nessitavila, sergiusens, kyrofa I keep having this feeling that snapcraft should store internally a mapping of names -> snap-ids so we can:13:10
sergiusensnessita we inherited the original upload implementation from pindonga; I have no clue about the endpoints13:10
vilasergiusens, kyrofa: best guestimate for macaroon uploads in today or tomorrow. I have uncommitted code to test the new endpoint as soon as it's available on staging... That's the best I can do ;)13:10
nessita1- know if a name was registered or not13:10
nessita2- have the snap-id to push to API that requires it13:10
vilanessita: renames ?13:10
nessitavila, not exactly sure what you are asking13:11
vilanessita: we agreed on using name, series from the client, sca doing the translation to snap_id (in https://docs.google.com/document/d/1pOAazzykOjBzkFHc9OyV_ORz8CByvWTeZlKgwEJ9YX4/edit)13:11
vilanessita: a local mapping will break on renames13:11
sergiusensnessita we can't do any drastic changes today, so we will need to coordinate this post release13:11
sergiusensnessita please don't break us after release, you don't endure the pain of an SRU as we do13:12
nessitavila, we can talk about this in u1-internal, I see your point13:12
popeyupgrading to snapd 2.0.2 now means I can't lanuch my app at all...13:12
vilanessita: ack13:12
popey$ mame13:13
popey/bin/sh: 0: Can't open /snap/mame/100003/command-mame.wrapper13:13
popeyseems launching broke13:13
nessitasergiusens, I understand the need of coordination; I also think OAuth should not exist anywhere in snappy or snapcraft13:13
nessitasergiusens, anyways, will not break anything today, will raise this issues with the proper people13:13
sborovkovHi. I am on RPI with image yesterday's latest images used. After I installed snappy-debug snap and rebooted it does not mount. I can't removeit as well - error: can't remove "snappy-debug": cannot find mounted snap "snappy-debug" at revision 13. Any ideas what's going on?13:15
Marco___apparmor rights for snap package: I am calling "systemctl xx" from inside my application and always get apparmor denied. does anyone know how to give my snap application sufficient rights for that call?13:17
zygapopey: uninstall all versions, reinstall, this is bug https://github.com/ubuntu-core/snappy/pull/104913:17
zygapopey: (of mame)13:18
ogra_uuuh !13:22
ogra_nessita, why do i find snaps on my tablet since today ?13:22
* ogra_ just got offered his upnp-server snap when searching for the filemanager13:22
popeyzyga: i just filed bug 1572568 - is that bug fixed with that?13:23
ubottubug 1572568 in Snappy "Cannot launch apps since upgrade to snapd 2.0.2" [Undecided,New] https://launchpad.net/bugs/157256813:23
popeyzyga: can't remove... - Remove snap "mame" from the system (remove /snap/mame/100002/bin/launcher: read-only file system)13:24
zygapopey: that's a different bug!13:25
zygapopey: please report it, I also saw it once but I was unable to reproduce it13:25
zygamvo, pedronis: ^^^13:25
zygapopey: I think there are two bugs at play, the one I referneced was just about incorrect security after snap upgrade13:25
mvopopey: is that running? mame? I suspect the removal one is https://bugs.launchpad.net/snappy/+bug/157172113:26
ubottuLaunchpad bug 1571721 in snapd (Ubuntu Xenial) "Removing when an app is running results in a half removal" [High,Triaged]13:26
mvozyga: https://bugs.launchpad.net/snappy/+bug/1572568 is  dupe,  let me find the other one13:27
ubottuLaunchpad bug 1572568 in Snappy "Cannot launch apps since upgrade to snapd 2.0.2" [Undecided,Confirmed]13:27
mvopopey: ups, --^ for you13:28
sergiusensnessita heh, this was the reason I wanted pindonga to originally provide his own package with store bindings; so then you could change this all you want without so much coordination; something to consider again after release13:30
popeymvo: no, the app isn't running13:30
popeymvo: it happens when i try and remove side loaded things I installed on 2.0.113:30
mvopopey: anything that still is open and keeps an fd on the dir? I suspect it failed to unmount the dir because the mount point is busy13:31
mvopopey: don't get me wrong, definitely a bug, just trying to understand it :)13:31
ChrisTownsendogra_: Hey, tedg said you might be able to help me.  I have a squashfs based snap and need to debug an app inside it.  Do you have a trick on how I can modify files inside the snap and still preserve the same environment that is normally used?13:31
kyrofaChrisTownsend, overlayfs?13:32
ogra_ChrisTownsend, no, and with the classic shell gone currently i suspect the workaround that jdstrand had wont work either (he had a way to add an overlayfs)13:32
kyrofaogra_, I use that without the classic shell13:32
popeymvo: D'oh! I had a shell open in those directories! But now I don't, and they still won't remove :(13:32
ChrisTownsendkyrofa: Care to elaborate?13:33
mvopopey: same error?13:33
popeyyes13:33
mvopopey: hm, I'm in a meeting right now, but something like lsof |grep /snap/mame would be nice13:33
ChrisTownsendogra_: Hmm, not being able to debug "inline" is not very handy:-(13:33
kyrofaChrisTownsend, https://paste.ubuntu.com/15496227/13:34
popeymvo: http://paste.ubuntu.com/15948319/ is sudo lsof | grep mame | pastebinit13:34
ChrisTownsendkyrofa: Cool, thanks.  I'll give it a shot.13:34
ogra_ChrisTownsend, well, it will all get better within the next months ... (some kind of classic mode will come back etc)13:34
ChrisTownsendogra_: Ok, good to know it's being thought about and worked on.13:34
kyrofajdstrand, you should consider shipping that script in snappy-debug13:35
kyrofa(it would have to be unconfined I suppose)13:35
sborovkovogra_: Hello. Any ideas what's going on? sudo ./ubuntu-device-flash core rolling --channel edge --os ubuntu-core --kernel canonical-pi2-linux --gadget canonical-pi2 -o test.img -> This gives me error expected a gadget snaps: snap not found13:36
ogra_ChrisTownsend, we're pretty much back at zero currently ... basics are done, features not13:36
ChrisTownsendogra_: Wow, ok.13:37
ogra_sborovkov, do you use the very latest ubuntu-device-flash from http://people.canonical.com/~mvo/all-snaps/ ?13:37
zygasborovkov: use 16 instead of rolling13:37
zygasborovkov: or use my script github.com/zyga/devtools13:37
josephtzyga: I'm getting that with devtools now as well13:38
ogra_oh, another change :P13:38
zygajosepht: then more broken :)13:39
zygajosepht: does your copy say "16" or "rolling"?13:39
josephtzyga: 1613:39
ChrisTownsendkyrofa: Seems that works on my snap.  One other quick question.  To get it back in the ro state, just unmount the overlayfs, right?13:40
zygajosepht: then more broken stuff, I'm sorry13:40
kyrofaChrisTownsend, you got it13:40
ChrisTownsendkyrofa: Cool, thanks again!13:40
kyrofaChrisTownsend, obviously that'll undo your changes13:40
ChrisTownsendkyrofa: Right13:40
sborovkovzyga, ogra_: works with 16 instead of rolling (I am using latest ubuntu-device-flash)13:40
kyrofaChrisTownsend, sure thing :)13:40
josephtzyga: no worries13:41
ogra_sborovkov, good13:41
kyrofaChrisTownsend, note that you can use more permanent directories if you want the ability to remount an overlay you were working on13:41
sborovkovDoes new permission system with plugs/interfaces work now? can I use it to give my snap to /dev/vchiq now?13:42
* zyga wonders if udf has is out-of-date again?13:42
josephtzyga: seems to be only for pc, pi2 works for me13:42
zygasborovkov: yes, yes but you need to patch snappy13:42
ChrisTownsendkyrofa: Ok, makes sense, but I think I have enough for now.13:42
zygasborovkov: I'm writing articles about snappy interfaces, I will get to that point in a few more days13:43
zygasborovkov: the first one was posted to planet ubuntu last night13:43
zygasborovkov: I'm writing the second one right now13:43
zygasborovkov: my articles will allow anyone to understand interfaces and create a new interface for a particular purpose13:43
sborovkovOk, got it. Thanks.13:44
dholbachpopey, wow... I overlooked the message earlier - that's awesome, let me try it13:44
pmpI'm still learning: what's the difference between snappy 2.0 and Ubuntu Core 16 / 16-series?13:45
popeydholbach: don't worry, it broke in the meantime :)13:45
zygapmp: ubuntu core 16 contains snappy 2.013:46
dholbachpopey, right... it's been what... 3 hours? :)13:47
ogra_you guys are to slow13:47
popeyheh13:47
ogra_dholbach, FYI ... we had to remove the images that slangasek released on cdimage on your request (they were completely broken)13:48
ogra_new images will show up there soon though ... (in some "alpha" subdir or so i suppose)13:48
dholbachogra_, it wasn't so much MY request - it was more like we wanted to point people to images which were not hosted in somebody's home directory13:50
ogra_yeah13:50
dholbachand that was requested by sabdfl and others in the mailing list thread too13:50
ogra_sure, but we cant release un-upgradeable images that you cant install anything on13:50
ppisatiFWIW, i still get the "/tmpmnt_writable/..." error when trying a custom kernel13:51
ppisatikernel just rebuilt13:51
ppisatiwhile i used latest mvo's amd64 image in people...13:51
ogra_does the initrd somehow get cached locally or some such ?13:51
ppisatiogra_: cached?13:51
ogra_by the snapcraft kernel plugin13:52
ppisatiogra_: i can do a13:52
ppisatigit clean -fdx13:52
ogra_or do you not use that for your custom klernel13:52
ppisatiin the snapcraft dir13:52
ppisatiand rebuild13:52
ogra_yeah, seems like you are stuck on an old initrd to me13:52
ogra_or that you need some controller module you are missing13:53
dpmdavmor2, popey, ubuntu-calculator-app and ubuntu-clock-app are again available. If you installed them before yesterday, you might need to remove and reinstall –at least that's what I did13:54
popeyok13:57
popeyhah, 120MB clock :)13:57
jibelattente, in which version of gnome-software is the re-prompt issue fixed?13:58
popeythis better be a pretty damn amazing clock!13:58
popeydpm: that worked13:58
jibelattente, i get it again and it prompted me at least 3 times when I was installing a snap13:58
jibelattente, do I need to clear everything again?13:58
ogra_popey, be careful what you wish for .... it might unfold big ben in your office if you start it ...13:58
popey:)13:59
attentejibel: it's in the archive version, not the private ppa13:59
ogra_oops ...13:59
attentejibel: i'm updating the private ppa right now though13:59
* ogra_ notes he forgot the MIR for initrmafs-tools-ubuntu-core13:59
ogra_wishful thinking :P13:59
attentejibel: it should be fixed since it takes the fixes we've made to the archive version13:59
jibelattente, okay, I'll replace the version by the archive version14:02
attentejibel: actually... it hasn't been released yet :(14:02
jibelattente, I don't need anything anymore from the ppa right?14:02
attentejibel: it's the version 3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu114:02
attentejibel: the public ppa has that version, the private ppa has the snappy plugin enabled14:03
attentejibel: you still need the ppa until that gets into xenial14:03
attentejibel: and if you want the snappy plugin, you need the private ppa14:04
seb128attente, we have a version with the current fixes from distro + snap plugin enabled?14:04
seb128or asked differently is the private ppa keeping up or behind?14:05
attenteseb128: i just did an update to the private ppa14:05
attenteseb128: all it is is the version Laney uploaded with the snappy plugin enabled14:06
seb128attente, good14:06
joe_____hi, i'm trying out snappy on a device i have. i'm using docker for running a few services, and now i want to set up monitoring of the device host. what are good options? is it still the traditional tools like munin, nagios that are the way to go?14:14
jdstranddpm (fyi tyhicks): re interface to access dbus> that question is very open ended. I think you mean, is there an interface to grant the weather app access to network-manager. the answer is 'no', not at this time. however, a network-manager interface is in the works. It won't autoconnect because the network-manager interface is dangerous14:14
dpmthanks jdstrand14:15
jdstrandniemeyer_: note, this is an interesting thing we'll want to discuss at some point. on Touch we were in a position to say 'sorry, you can never talk to network-manager' but with interfacecs, users may be faced with questions like 'should this app be able to talk to network-manager' at which point, they'll be like "I don't know, I guess"14:15
jdstrandniemeyer_: and therefore users are being put in a position to make policy decisions that they should not14:15
dholbachdavidcalle, dpm, popey: I'm pushing another non-working example to snappy-playpen :)14:19
popeyheh14:19
dpmdholbach, "well done"! :-)14:19
dholbachI'll use it to track another interesting bug I'm running in :)14:20
dpmdholbach, davmor2, are you able to launch clock from the dash?14:21
dholbachlet me see14:21
sergiusenskyrofa ogra_ https://github.com/ubuntu-core/snapcraft/pull/47614:23
dholbachdpm, yep, WFM14:23
dpmah, phew14:24
dpmthanks for confirming14:24
dpmseems some people are not seeing it from the dash14:24
ogra_sergiusens, looks sane14:24
davmor2dpm: I am now yes14:24
dpmthanks davmor2 for confirming14:25
popeywtf, why am I not14:25
popeyubuntu-clock-app  3.6+snap3             ubuntucoredev14:25
dpmpopey, did you remove and reinstall?14:25
popeyyes14:25
popeynuked entire snap setup14:25
nessitaogra_, we are investigating, we think we have the issue narrowed down, building a fix14:25
dpmpopey, oh, so you nuked the whole setup again today?14:25
popeyjust now14:25
popeyrecently14:25
ogra_nessita, awesome14:26
popeyso i have a pretty clean setup14:26
dpmpopey, maybe snappy is rebelling against being destroyed so often14:26
popeys/snappy/skynet/14:26
zygapopey: we didn't announce that rename yet!14:26
popeyhah14:27
sergiusensnessita is X-Ubuntu-Release 16 or 16-core?14:29
sergiusens16 i alone it seems :-)14:30
nessitasergiusens, 1614:32
jdstrandpopey: re fontconfig> something (it might be a library the app ships) is broken. it is trying to write to /var/cache/fontconfig. /var/cache/fontconfig is not in the ubuntu-core os snap, not mounted from the classic system and even if either were true, the non-root user would not have write access to it anyway (even if apparmor granted it)14:37
jdstrandpopey: someone from the desktop team needs to take a look-- perhaps there is a variable that needs to be set14:38
popeyokay14:38
jdstrandpopey: note, the apparmor rules you and zyga discussed were about 'r'ead rules, not w'rite rules. the denial was for a 'w'rite rule14:39
popeyyeah. I have no idea why it wants to write there14:39
popeyit also needs to read a bunch of udev stuff for input device enumeration14:40
zygajdstrand: hey, welcome back! :-)14:40
jdstrandkyrofa: we could ship that script in snappy-debug. note, snappy debug is totally broken right now due to like 10 different changes in the system14:43
* jdstrand will be working on developer mode soonish14:43
kyrofajdstrand, whoa, only 10? That's pretty good14:43
jdstrandzyga: hi! thanks :)14:46
shuduomvo: i heard of new u-d-f appear then downloaded it. now it can't find gadget snap. may i know if gadget naming changed again?14:46
sergiusensnessita thanks14:46
jdstrandpopey: re udev and device stuff, that is very much going to be a new interface. snappy will need to expose the devices and then have a way to grant them to the snap14:47
jdstrandkyrofa: hehe :)14:47
jdstrandzyga: were you able to locate the patch I sent for bluez?14:48
jdstrandzyga: I didn't send it, I put in in irc14:48
shuduozyga's ubuntu-image does not work with latest u-d-f too14:48
jdstrandzyga: here it is: http://paste.ubuntu.com/15837884/14:48
jdstrandpopey, dpm: re clock app and network manager-- same thing the question I answered a few minutes ago. really, these apps should be using connectivity-api from Touch instead of network-manager14:53
sborovkovHello. getting this error when trying to install snappy-debug -> - Download snap "snappy-debug" from channel "stable" (snap not found)14:53
sborovkovWhat can I do to fix this?14:53
jdstrandsborovkov: is this on 16.04?14:54
zygajdstrand: still on my TODO list14:54
zygajdstrand: I'm off today14:54
jdstrandie, 16.04 image or 15.04 image?14:54
jdstrandzyga: that's fine (enjoy your day off and go away!! :)14:54
zygajdstrand: aaalmost ;)14:54
jdstrandzyga: I just wanted to make sure you had the info14:54
dpmjdstrand, hm, they do use the connectivity API14:55
sborovkovjdstrand: yes14:55
dpmas far as I understand it14:55
joe_____how would you monitor a device host that's running snappy? is it still traditional tools like munin, nagios etc. that are the way to go?14:56
sborovkovjdstrand: rpi.14:56
dpmjdstrand, ah wait. So you mean instead of using QNetWorkManagerInterface something else should be used? -> http://pastebin.ubuntu.com/15947469/14:57
dpmjdstrand, this, it seems? https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Connectivity.index/ I'm not familiar with it, so I don't know if it can do what the Weather app needs14:58
dpmjdstrand, it seems to be used only to check network status, not to get data over the network?14:59
mvoshuduo: you need to use the "16" series now instead of "rolling" - could that be the issue?14:59
jdstrandsborovkov: snappy-debug isn't in stable yet for 16.04 because it doesn't work yet15:01
sborovkovoh, alright. The command snap install snappy-debug worked like day before yesterday, so I was surprised when it did not15:01
shuduomvo: yes, 16 series working now. does that mean rolling be dropped?15:02
jdstranddpm: you'll want to talk to mzanetti I think. the point is, you can't give a subset of the nm api to answer the question 'am I online' cause the nm api isn't written with untrusted apps connecting to it in mind. therefore the phonedations team created the connectivity-api to answer that question for apps and it has a very clean, safe api15:03
jdstranddpm: connectivity api isn't on 16.04 by default though afaik, that might be a seb128 question15:03
mvoshuduo: yes15:04
mvoshuduo: its dropped for now until we open a new rolling again15:04
jdstrandsborovkov: well, if you did install it, it wouldn't work properly anyway. this is something I will be looking at after release15:04
seb128jdstrand, dpm, no it's not, nothing on the iso uses it it seems15:04
_morphiszyga, jdstrand: you had time to look at our PRs for the bluez and network-manager interfaces?15:04
mvoogra_: what is the status of bug #1563296 ? I see fix released but an open snappy task, anything we need to do in snappy land?15:04
ubottubug 1563296 in cloud-init (Ubuntu) "support cloud-init networking with snappy" [Medium,Confirmed] https://launchpad.net/bugs/156329615:04
shuduomvo: interesting. good to know. let me update my training slides with this change. thanks.15:05
ogra_mvo, it is fix-released in livecd-rootfs already ... can be closed15:05
jdstrand_morphis: I responded to nm late monday and I saw zyga did yesterday (I think). I was off yesterday and still catching up. if there are things for me to respond to, I will today15:05
_morphisjdstrand: thanks!15:06
sborovkovjdstrand: right it did not... after I rebooted it did not even mount itself. And I could not remove it since it was giving me error that it's nto mounted15:07
mvoshuduo: cheers15:10
mvoogra_: same question for bug #1562784 - I assume the snappy task can be closed as well here?15:11
ubottubug 1562784 in Snappy "cloud-init 0.7.7~bzr1189-0ubuntu1kills snappy boot " [Critical,Confirmed] https://launchpad.net/bugs/156278415:11
ogra_mvo, yeah15:12
mvota15:12
ogra_mvo, can you take a look at mterry's questions in bug 157254415:14
ubottubug 1572544 in ubuntu-core-config (Ubuntu) "[MIR] ubuntu-core-config" [Critical,Incomplete] https://launchpad.net/bugs/157254415:14
ogra_i assume we can drop /snaps15:14
mvoogra_: yes we can15:14
ogra_obama !15:15
mterry:)15:15
shuduomvo: seems canonical-pc gadget snap does not exist in  16 series and edge channel?15:18
ogra_mvo, can you make snappy-dev the default bug team for ubuntu-core-config, initramfs-tools-ubuntu-core and ubuntu-core-libs ? (i cant, needs a team admin)15:19
ogra_iirc the last one is ubuntu-core-meta though15:20
jibeldpm, I cannot install the calculator or the clock it tells me it's already installed15:22
mvoshuduo: hm, it should I have a look, there was a store issue some minutes ago that hide some snaps15:22
jibeldpm, probably because I had pre-2.0.2 installation15:23
jibeldpm, what do I do to install the new snaps?15:23
shuduomvo: dragon snap and pi2 snap can be found. pc snap can't. pls check.15:23
davmor2jibel: http://paste.ubuntu.com/15947367/ is apparently how popey got my install working, but then I had to manually install ubuntu-core15:26
jibeldavmor2, yeah that's what I did yesterday already15:27
jibeldavmor2, it's pretty annoying and impracticable to do that after each upgrade of snapd15:28
sborovkovHello. Do I understand correctly that old-security is not working anymore? is there some simple way I can use new syntax to get old 'unconfined' behavior?15:30
zygasborovkov: no, just install your snap in development mode (snap install --devmode)15:32
zygasborovkov: and work on a new interface (docs on that will be availalbe in the next few days)15:32
sborovkovzyga: alright. but as you said before - to allow snap acess /dev/vchiq snappy needs to be patched - how long till that's not needed?15:34
zygasborovkov: till you patch it?15:35
zygasborovkov: or someone else does15:35
zygasborovkov: wait a few more days, I it will all be clear (er) when I describe how that works15:36
kyrofadholbach, perhaps you know the answer to this: https://askubuntu.com/questions/759557/how-to-run-a-command-in-a-snap-package ?15:36
zygasborovkov: btw, what is /dev/vchiq?15:36
dholbachkyrofa, dpm knows - he did it in ubuntu-clock-app15:36
dholbachdpm, ^ did you update lp:snappy-desktop-examples with the newest?15:37
kyrofaThanks dholbach :)15:38
sborovkovzyga: rpi gpu interface15:38
=== chihchun is now known as chihchun_afk
zygasborovkov: I plan to work on pi2 support in the next few weeks15:38
zygasborovkov: I plan to get various perhiperials supported (gpio, spi, i2c, camera)15:39
jamiebennettAnyone had problems removing and reinstalling snaps today?15:39
zygasborovkov: just stay in touch, you can help me out soon15:39
zygakyrofa: I replied to that question15:39
marco___zyga: I am also very interessted in getting infos for the new sec. concept :-)15:40
zygakyrofa: many people just upgrade and still have just /snaps/bin (note /snaps, not /snap) in their path15:40
jamiebennetthttp://pastebin.ubuntu.com/15951144/15:40
zygamarco___: great, follow my blog posts. I sent the first one yesterday. The next one will be published in around two hours, I'm just collecting feedback from proofreaders15:40
sborovkovzyga: Ok15:40
kyrofajamiebennett, I seem to remember seeing a bug about needing to remove twice15:40
kyrofajamiebennett, was the clock running when you tried to remove it, perhaps?15:40
zygajamiebennett, kyrofa: each installs creates a new revision, you need to remove *each* revision15:41
zygaso you have to remove it till it's gone15:41
kyrofaAh, or that15:41
* jamiebennett tries to remove again15:41
zygaheh :)15:41
kyrofazyga, thanks for answering that question :)15:41
jamiebennettIf I try to install twice it wont do it15:43
jamiebennettHow did I get two copies of the clock app?15:43
zygajamiebennett: side loading creates new revisions15:44
kyrofajamiebennett, perhaps you got an update after you initially installed?15:44
jamiebennettzyga, no sideloading15:44
jibeljamiebennett, I had the same issue and had to reset everything15:44
jibeljamiebennett, http://paste.ubuntu.com/15947367/15:45
jibelsystemctl stop snapd instead of service15:45
zygawait15:45
jibelzyga, no sideloading here either15:45
zygajibel, jamiebennett: use this instead: https://github.com/zyga/devtools/blob/master/reset-state15:45
zygathis is correct-er15:45
jamiebennett:)15:45
jamiebennettLooking back through my console log it looks related to refresh so kyrofa may be correct15:46
jamiebennettdamn autocomplete15:46
tedgsergiusens: Is snapcraft doing an ldd and pulling libraries into the snap?15:52
tedgGot a bunch of libraries in ./snap that I can't figure out how they got there.15:53
kyrofatedg, yes15:55
tedgOkay, thanks kyrofa!15:55
tedgIs modern snapcraft if the vivid-overlay PPA for the phone? Or just xenial?15:56
tedgI guess not in, but built against.15:56
jamiebennettzyga, this is the sequence of steps: http://pastebin.ubuntu.com/15951538/15:56
ogra_tedg, only xenial15:56
ogra_no backports15:57
slangasekogra_: thanks for the MIR work today.  I see there's still no MIR for ubuntu-fan, which is also on the seed?15:58
ogra_slangasek, i was kind of expecting the owner (kernel team) or the cloud teams to MIR it, given it is default in all cloud images15:59
ogra_we are only participants here ...16:00
tedgkyrofa: Is there any filtering on that list? I was surprised for instance that libGL.so got added when that should be in the kernel snap.16:00
kyrofatedg, indeed, but the list is pulled from stable right now16:00
kyrofatedg, specifically, anything included in the stable os snap is not automatically copied16:02
kyrofatedg, but I think opengl in the os snap is new16:03
kyrofatedg, probably not in stable16:03
tedgkyrofa: Well it's not the OS snap, but the kernel snap. It is an enablement thing really.16:03
slangasekogra_: oh, checking16:03
slangasekogra_: c-m fingered snappy, but I believe that may be wrong16:03
ogra_slangasek, if needed i can indeed take over ... but i kind of think fan needs to be solved in a broader scope16:04
slangasekogra_: system-image is the only seed that contains ubuntu-fan16:04
ogra_oh ? i thought it was a requirement for all container cloud work16:05
ogra_hmpf ... k16:05
slangasekogra_: regardless, the MIR process should be owned by whoever is introducing the dependency16:05
ogra_i'll file a MIR bug then ... (its a sabdfl request to have it )16:05
kyrofatedg, ah, interesting. Yeah that may need to be updated16:05
ogra_i dont think we have even ever made any use of it16:06
kyrofaThings will settle once the desktop work flows back into ubuntu core16:06
sergiusenskyrofa tedg mvo told me not to filter out gl; it is safer to include it for now.16:08
kyrofasergiusens, ah, good to know16:08
kyrofaAnd agreed, since not everything has it16:08
ogra_slangasek, bug 157265016:08
ubottubug 1572650 in ubuntu-fan (Ubuntu) "[MIR] ubuntu-fan is supposed to be shipped in snappy and thus needs to move to main" [Undecided,New] https://launchpad.net/bugs/157265016:08
tedgAh, interesting. Will change as graphics drivers do.16:08
slangasekogra_: ok, so you know that's not a complete MIR bug yet, right :)16:09
ogra_kirkland, any idea why snappy seems to be the only consumer of ubuntu-fan (it is in universe atm)... i thought it was supposed to be some kind of default for all container related installs16:10
qenghoWhy do snaps in the store show up sometimes and not sometimes, on new instances, with "snap find"?16:10
qenghoAre snaps in the store still valid?16:12
dpmjibel, sorry, I was on a call. Did you manage to get the apps installed in the meantime, or do you need help?16:13
=== shuduo is now known as shuduo-afk
dpmsergiusens, if I want to build a qmake app, which essentially needs 'qmake' to be run, and then 'make' over the generated Makefile, what's the best way to do this with snapcraft? Creating a qmake plugin that inherits the make plugin?16:32
qenghodpm: I have done that sort of thing a few times. You might want to just copy the make plugin and change it, too. Your choice.16:33
dpmqengho, thanks! I'd rather do something I can reuse, so perhaps creating a qmake plugin might be the way to go. Do you have any examples of how you've done it before?16:34
jibeldpm, yes, I reset everything again16:34
ram_hi, i'm trying to boot in "try" mode. It is told in the guide that "/lib/systemd/system/ubuntu-core-snappy.service" will undo the action. But I find no such service file within lib/systemd/system directory. any help??16:35
jibeluntil next upgrade :)16:35
ogra_stop that upgrade madness ...16:37
ogra_just stay with what works :P16:37
dpmjibel, ok, glad it worked :)16:37
qenghodpm: let me push something up...16:38
dpmawesome, thanks!16:38
dpmpopey, jcastro, do you happen to know how we can get notifications for new Ask Ubuntu questions tagged with 'snapcraft' or 'ubuntu-core' on this channel?16:38
popeythere was an au bot16:38
jcastrothere's a bot16:38
popeydunno who ran it16:39
qenghodpm: http://bazaar.launchpad.net/~cmiller/+junk/kodi-snap/view/head:/parts/plugins/x-fake_autotools.py16:39
jcastroI can find out16:39
ram_hi oliver, can you help me?16:40
ram_i'm trying to boot in "try" mode. It is told in the guide that "/lib/systemd/system/ubuntu-core-snappy.service" will undo the action. But I find no such service file within lib/systemd/system directory. any help??16:40
qenghoram_: Which guide?16:41
ram_this one https://developer.ubuntu.com/en/snappy/guides/system-updates/16:41
ram_then who will remove the file /boot/uboot/snappy-stamp.txt ?16:42
ogra_ram_, that hasnt bee used in ages16:44
ogra_uboot is completely managed inside the uboot.env file16:44
ogra_writing text files to fat turned out to be pretty unreliable and made us end up with corrupt fat every now and then16:45
ogra_so everything was moved into the uboot.env file which has a fixed size, is binary and not prone to filesystem corruption16:45
ram_thanks ogra_. so how to implement the logic? is there no need for system-stamp.txt file? i have u-boot based board16:48
jcastroI am trying to snap a node app: http://paste.ubuntu.com/15953115/16:49
jcastrobut I get this error when doing a `snapcraft snap`: Issues while validating snapcraft.yaml: The 'command' property does not match the required schema: './bin/google-music-electron' is not of type 'object'16:49
ogra_ram_, http://bazaar.launchpad.net/~snappy-dev/snappy-hub/snappy-systems/files ... have a look at the other gagdet snaps16:49
qenghojcastro: Sounds like you have a string and it expects (for some reason) a dictionary.16:51
* ogra_ tickles mvo again about that bug team subscription for the packages ... 16:51
ram_@ogra_ thanks for that; i'll try. can you guys please please update the guide!16:52
nothalram_: No such command!16:52
qenghojcastro: pastebin your snapcraft yaml?16:52
ogra_ram_, we will once the gadgets format is final ... it will be re-worked the next weeks16:52
jcastroqengho: http://paste.ubuntu.com/15953115/16:53
jcastroI'm mostly just trying to hello world a node.js electron app16:53
ram_@nothal sorry what?16:53
nothalram_: No such command!16:53
ogra_ram_, its a bot :)16:53
ogra_(unlike all other bots in ubuntu channels iit reacts to @ instead of ! )16:54
qenghojcastro: Your "command:" should be a child of "google-music-electron", not a sibling.16:54
ram_ha ha16:54
qenghojcastro: Indent "command" a bit more.16:54
ogra_jcastro, learn the genealogy of a snap package :)16:55
jcastroyargh, so simple, thanks.16:55
ogra_for complex snaps you need to ship an ancestry tree alongside ... describing gandma and gandpa :P16:55
qenghoniblings. pets. planetary system....16:56
ogra_:)16:56
dpmawesome, thanks qengho!16:56
davmor2ogra_: thank god it's nothal I could live happy knowing I don't need to kill it16:58
ogra_it might still kill you though16:58
=== chihchun_afk is now known as chihchun
sergiusensdpm yes, inherit make, look at the cmake plugin for inspiration17:07
dpmthanks sergiusens17:08
sergiusensjcastro indentation of your yaml is wrong; line 6 and 717:09
jcastrosergiusens: in the docs the node example pulls from npm, is there a way to do a local npm build instead?17:33
sergiusensjcastro look at the webchat example17:35
jamiebennettdpm, going back to your comments about .desktop files, should the clock and cal show an icon in the app switcher on SDoC?17:35
sergiusensjcastro https://github.com/ubuntu-core/snapcraft/tree/master/examples/webchat17:35
dpmjamiebennett, yes, they should. We've tracked the fact that some users are not seeing the icons in the dash as they need to log out and log back in after the snapd 2.0.2 installation17:36
jcastrosergiusens: perfect, thanks!17:36
jamiebennettdpm, OK, will test that17:36
dpmjamiebennett, https://askubuntu.com/q/75955717:36
sergiusensjcastro you can laugh at that js code; I don't do js, that was my example after 1 hour into it17:37
=== chihchun is now known as chihchun_afk
ogra_jcastro, once you are done laughing, snap up something useful ... like the unifi controller ;)17:43
* ogra_ would be your first user 17:43
jcastrosergiusens: I'm just trying to do a google music app thing, I'm almost there, just need to find what to put in the app: section17:45
jcastroogra_: I have a unifi so yeah, that interests me. :)17:45
ogra_jcastro, me too, i'm just to lazy to snap it up ... but this is the *perfect* thing for a snap package :)17:45
jcastrosergiusens: all the node examples are webapps with services though, I can't really find a desktopy example17:46
ogra_i'll probably do it one day though17:46
qenghoOkay, I have a rpi3 freshly-flashed with m'vo's new image. Why does "snap find tor-middle-relay.chadmiller" not find my package?17:54
ogra_are you sure you are chadmiller ?17:54
ogra_:P17:54
qenghoIt's been a long release, but I'm like 90% sure.17:55
ogra_( i think you dont need the uploader suffix anymore)17:55
ogra_(for searching that is)17:55
ogra_ubuntu@localhost:~$ snap find tor-middle-relay17:56
ogra_Name             Version   Summary17:56
ogra_tor-middle-relay 0.2.7.6-3 Essential infrastructure node for Tor network17:56
ogra_works fine here17:56
qengho$ snap find tor-middle-relay17:56
qenghoerror: no snaps found for "tor-middle-relay"17:56
ogra_oh, i'm two days outdated on that image ... ignore me17:57
ogra_did you release it for 16 yet ?17:57
qenghoogra_: I don't know what that means, and that might be the problem.17:58
ogra_in the store ui you need to release it for the 16 release17:59
ogra_i think17:59
qengho"Supported releases18:01
qenghorolling-core"18:01
jamiebennettdpm, have you seen this before? http://paste.ubuntu.com/15954428/18:04
dpmjamiebennett, I've seen it happening on another app I was working in, but not in clock18:05
* dpm tries to launch clock again18:05
dpmjamiebennett, hm, still seems to work for me. It might be worth looking at entries related to launching clock on /var/log/kern.log and point the security guys to them18:06
qenghoogra_: I think that means re-uploading the same files. Store doesn't seem to have a UI for mutating the release series.18:07
ogra_i actually dont know ..18:07
ogra_but there was a lot of discussion in the backlog about this topic18:07
dasjoeSo, let's talk about ZFS. Is anybody working on making Ubuntu Snappy Core ZFS-based? Or is this blocked by ZoL not supporting x86 and just barely supporting ARM for now? :)18:11
ogra_or any other non x86 arch :P18:11
dasjoeWell, there's not many left, are there?18:11
ogra_i assume you would irather see f2fs support than zfs18:12
ogra_given the focus is on IoT ... you dont really want a memory greedy thing like zfs18:12
dasjoeI remember playing around with Snappy back at version 40 or so, upgrading meant downloading the whole tarball that was some gigantic 40+ MB. I put it on ZFS and did the upgrade by "zfs send"ing the incremental between 40 and 41 into a file, the upgrade file was around 400k uncompressed18:13
dasjoeZFS is not memory greedy, actually. We're working on getting ABD merged asap, so we waste less RAM on linux. The hard-coded lower limit for RAM is 64 MiB18:14
ogra_dasjoe, well, now make zfs work on some device thats stuck on a 3.10 kernel and comes with 256MB ram18:14
ogra_(which you want to use to control your heating)18:15
dasjoeRelevant upstream pull request: https://github.com/zfsonlinux/zfs/pull/344118:15
dasjoeogra_: hah, I'd love to do that if I had the required knowledge about C and Linux' memory management18:16
rajenHi Friends, I am trying to build latest Snappy img using ubuntu-device-flash tool. Do you happen to know if I will need a special version of ubuntu-device-flash for the latest Snappy  image.18:16
ogra_does zfs support labels ?18:16
dasjoeogra_: labels?18:17
ogra_rajen, yes, the latest one from http://people.canonical.com/~mvo/all-snaps/18:17
qenghodasjoe: ZFS is not likely. We could binary-diff other ways, and most Ubuntu Core machines are going to be (for a while) 32-bit ARM machines.18:17
ogra_dasjoe, all filesystem operations depend on the partition label in snappy currently18:17
ogra_so whatever FS we use needs to support labels18:18
jamiebennettdpm, did you try rebooting between tests?18:18
* jamiebennett rebooted, was working before18:18
ogra_jamiebennett, this isnt windwos :P18:18
jamiebennettI now get this http://paste.ubuntu.com/15954540/18:18
qenghodasjoe: ... and I love ZFS. I worked to get ZFS support into zfsutils-linux and grub2 in time for 16.04.18:18
jamiebennettogra_, the opposite, I rebooted and it _stopped_ working18:18
ogra_heh18:18
dasjoeqengho: hey, so did I. Hello :)18:18
dasjoeogra_: I see. I think you can name the partition however you want, ZFS reads its own labels at fixed positions inside18:19
qenghodasjoe: high five! I wish we had started support in the installer earlier, but ZFS wasn't on my radar until January.18:19
ogra_dasjoe, our initrd needs to find the label ...18:20
dasjoeqengho: so, I've heard about installer support for 16.10, is this still the current plan? Do you think Debian could merge the relevant installer patches?18:20
ogra_if that works in zfs without adding megabytes of userspace tools to the initrd ...18:20
dpmjamiebennett, I only rebooted on Monday when I removed the whole /snaps folder and restarted snapd. I've not done it since then. Let me see if I also get a denial for gsettings schemas, it might be a red herring18:20
ogra_... then we're fine18:20
dasjoeogra_: well, I've seen people booting off ZFS snapshots. Anyway, I am sure we can work something out once ZoL supports x86 and ARM in any meaningful way18:21
ogra_and ppc18:21
qenghodasjoe: Do not quote me, but I would be astonished if we didn't have an unsupported path even for 16.04 before summer. Try Ubuntu"18:21
ogra_and ppc64el ... s390x ... arm6418:21
qenghodasjoe: Do not quote me, but I would be astonished if we didn't have an unsupported path even for 16.04 before summer. "Try Ubuntu", open terminal, add PPA, update, start installer.18:22
dasjoeogra_: s390x and arm64 are supported as of now, I believe18:22
ogra_ah, cool18:22
rajenTanks, ogra_..Did anything change w.r.t gadget snap. Earlier I used "--gadget canonical-pc.canonical" option. Now it does not work.18:22
dasjoeqengho: interesting. I'll query you what my current installation script does18:22
dpmjamiebennett, I'm getting another type of denials, but those don't stop the app from starting: http://paste.ubuntu.com/1595457118:22
ogra_rajen, drop the .canonical from the end18:22
dasjoeqengho: I've been working with rlaager to get his How-To up to date for 16.0418:22
ogra_not needed anywhere anymore18:22
qenghoNice.18:23
rajenogra_  What about "--os ubuntu-core.canonical"18:23
jamiebennettdpm, and you snap looks like this?18:23
jamiebennettubuntu-clock-app  3.6+snap3  ubuntucoredev18:24
ogra_rajen, same thing18:24
dasjoeogra_: I just checked, PPC seems to be supported, too18:26
ogra_neat18:26
rajenogra_, Doesn't seem to work :(  http://pastebin.ubuntu.com/15954604/18:26
ogra_anyway, i doubt we'd win many of the embedded developers with defaulting to zfs18:27
dasjoeSo we're waiting for 32 bit support to become better, which follows above ABD patches and possibly more work18:27
ogra_having it optional once we have an installer is another story though :)18:27
dasjoeI'm just starting out as an embedded guy, I've been trying to buy a Qseven dev kit from Seco for the past few days18:27
ogra_(but that installer thing is still far out i fear)18:28
dasjoeAlso, does anybody know of a Pico-ITX (or similar) sized SBC which comes with ECC RAM and 2x SATA ports? 1x SATA + 1x mSATA/mini-PCIe is fine, too18:29
dasjoeOh right, amd64 only for above reasons. http://www.seco.com/prods/eu/sbc-a44-pitx.html seems to be the only one18:29
ogra_i use alix apu boards here ... if these are fine, the pico ones should be too18:29
dasjoeVery interesting boards, the apu2c4 comes with ECC, too18:31
rajenogra_, Any suggestions http://pastebin.ubuntu.com/15954604/18:33
ogra_rajen, hmm, not really18:38
ogra_that line should just work18:39
rajendoesn't seem to18:39
dpmjamiebennett, sorry, was having dinner. Yes, that's the one I've got installed. Actually, you might want to remove it and reinstall it,18:40
* jamiebennett tries that18:40
dpmjamiebennett, so with the 16 release being opened yesterday on the store, all apps had to be reuploaded18:40
jamiebennettdpm, yeah, the clock worked fine until I rebooted a couple of hours ago18:41
ogra_rajen, might be that you need 16 instead of rolling18:41
jamiebennettdpm, before that everything was up-to-date18:41
rajenlet me check18:41
netpheakhi, guys!18:42
netpheakis mvo's rpi2-all-snap.img.xz image compatible with rapid?18:42
jamiebennettdpm, nope, remove and install didn't work :(18:42
netpheakrpi3?18:42
rajenogra_, now it proceeds. With 16.18:42
ogra_netpheak, it should (though hasnt been tested on pi3 i think)18:42
netpheaki'll give it a spin ;)18:43
dpmjamiebennett, argh :( not sure what else to try next18:43
jamiebennettdpm, slightly different error this time http://paste.ubuntu.com/15954752/18:43
* jamiebennett will investigate more18:43
netpheakdo i need to do anything to prepare the image?18:44
dpmjamiebennett, let me try on my laptop (I've not updated it since yesterday), see if I can reproduce the issue18:45
=== dpm is now known as dpm-mostly-afk
netpheakThe image appears to work :)18:53
netpheakhow do i enable classic mode?18:55
josephtnetpheak: classic mode has been removed from the latest images but will be reworked and reintroduced in the coming months18:57
netpheak:/18:58
netpheakHmm.. how to build armhf packages then?18:58
netpheakthe rpi is my only arm device...18:58
ogra_netpheak, http://cdimage.ubuntu.com/ubuntu-core/daily/current/xenial-core-armhf.tar.gz ... download that ... scp it to your pi ... untar it in a subdir under /home/ubuntu ... copy /etc/resolv.conf from the pi inot the unpackaged chroot and use the chroot command to work in it19:00
netpheakIs there a way to cross compile?19:03
ogra_only for kernels so far19:03
roadmrheya, anybody know how to get snappy 2.0 to work inside a xenial lxc container? It errored during "Mount snap "ubuntu-core""19:28
roadmrs/lxc/lxd/ really19:28
slangasekroadmr: by default a container doesn't allow mount privs inside; you have to make adjustments to the profile for nested containers19:30
roadmrslangasek: ok, let me try that19:31
dpm-mostly-afkjcastro, how are you getting on with your first snap?19:35
dpm-mostly-afkqengho, do you mind if we add your kodi snap to lp:snappy-playpen? We've got a kodi snap built from .debs there, and it'd be good to have the build from sources example too19:36
jcastrodpm-mostly-afk: The thing I tried to snap has a build system so I'm not sure how to proceed19:36
roadmris there any way for snap to cache downloads somehow?19:37
jcastroso I moved on to charm-tools and give that a shot.19:37
jcastroI have enough of that to show some other people on my team19:37
dpm-mostly-afkjcastro, yeah, that's the same I had with atom. Unless the build is generic, it might be worth writing a custom snapcraft plugin to do the build19:39
rajenHi, I need some help with latest security profile updates that went in. While we are Snapifying our app, we are running unconfined for now. I need to know what is the equivalent for http://pastebin.ubuntu.com/15955468/19:42
ogra_i dont think there is an equivalent ... but you can install your sanp in developer mode19:44
ogra_snap install --help19:44
kyrofaDoes the unity7 interface give me the ability to have a tray icon?19:52
zygakyrofa: maybe, I don't know if anyone tried19:55
zygarajen: old security and unconfined is gone, you will have to work with us on a proper interface19:55
ogra_Unity7 wontt though19:56
rajenzyga, Who will be the best person to work with. We have a lot of stuff we do in our app that will require permission tweaking.19:56
ogra_(trayicon is dead since we have indicators)19:57
zygarajen: perhaps me, perhaps jdstrand, perhaps yourself19:58
zygarajen: the first thing would be to run your snap in devel mode19:58
zygarajen: and collect logs19:58
kyrofaogra_, indicators is what I meant, I suppose19:58
josephtroadmr: if you get that working please let me know19:58
kyrofaogra_, "an icon next to the clock thingie"19:58
rajenZyga, Got it. Let me explore more. Do you happen to have a link to documentation on new security profiles.19:59
roadmrjosepht: what, lxd? asking in #lxcontainers now, since I can't even run a simple nested container :(19:59
josephtroadmr: yes, I'm trying to figure that out as well19:59
ogra_Yeah, I doubt that would work from a snap... tedg might know19:59
kyrofaogra_, what makes you doubt it? I thought it was just dbus20:02
ogra_It communicates through dubs.... You still need the UI20:03
ogra_dbus20:03
* zyga published http://www.zygoon.pl/2016/04/snappy-interfaces-plugs-slots-connections.html20:04
tedgkyrofa: Basically there are a set of dbus interfaces with a TODO next to them. If it was opened, you could.20:05
zygaroadmr: hey20:05
tedgkyrofa: Depends on what gets configured in the unity7 interface.20:05
kyrofatedg, alright that's what I thought. zyga how would I figure that out?20:06
zygakyrofa: try it20:06
zygakyrofa: run it with confinement, then try --devmode20:06
tedgkyrofa: https://github.com/ubuntu-core/snappy/blob/master/interfaces/builtin/unity7.go#L11920:07
kyrofazyga, I did. It doesn't work. Okay, I didn't know about devmode20:07
zygakyrofa: I'm sure the security team will review all changes if we choose to open more dbus interfaces but it seems reasonable to allow desktop apps to have access to this20:07
zygakyrofa: snap install --devmode20:07
* zyga will write a mini-post just about that20:07
roadmrzyga: hello! how's it going?20:08
rajenWhat is the new equivalent of "snappy service" command?20:08
zygarajen: it is removed for now, it will be reintroduced later with richer APIs20:08
zygaroadmr: good, trying to rest after the marathon20:08
zygaroadmr: (the 16.04 release)20:08
zygaroadmr: trying to stay off work but you see how bad I am at this20:09
zygaroadmr: how are you doing?20:09
rajenzyga, Any alternative that I can work with meanwhile. systemctl ??20:10
zygarajen: yes but snaps cannot use it directly (or unless they use --devmode)20:11
rajenzyga, okay..slowly slowly...20:11
roadmrzyga: hehe yea, you suck at that :) but thanks for the hard work :)20:26
roadmrzyga: doing fine, lots of fun stuff happening20:26
jdstrandkyrofa, tedg: there are still a few todos in the unity7 interface because I couldn't get various apps to work quickly enough and had to move to other things and because people who had those skills couldn't use interfaces because they only recently landed in a form that people could really develop on them20:44
jdstrandkyrofa, tedg: in other words, try this stuff and if it doesn't work file a bug, tag it with snapd-interface and we'll look at it20:44
tedgCool, I think the only bummer is some of those interfaces won't work with unity8, but eh. I guess that's why it's called "unity7" :-)20:45
=== blr_ is now known as blr
wililupyQuestion: When I run sudo ./ubuntu-device-flash core rolling --channel edge --os ubuntu-core --kernel canonical-pc-linux --gadget canonical-pc -o my-snappy.img I get the following error: Determining gadget configuration expected a gadget snaps: snap not found.22:58
wililupyAnyone else running into this issue? It worked for me in the past.22:58

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