/srv/irclogs.ubuntu.com/2016/08/29/#snappy.txt

huwshimiHello. I have a snap that installs, but doesn't expose the command. I can see the file for the command in places like stage/usr/bin, but once the snap is installed the command does not exist. Snap here: http://paste.ubuntu.com/23105293/00:30
huwshimiAny guidance appreciated!00:30
=== chihchun_afk is now known as chihchun
mupPR snapd#1772 opened: cmd: enable SNAP_REEXEC only if it is set to SNAP_REEXEC=1 <Created by mvo5> <https://github.com/snapcore/snapd/pull/1772>05:48
mupBug #1617890 opened: 2.12 crashes with latest ubuntu-core snap due to re-exec <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1617890>05:51
mupPR snapd#1773 opened: firstboot: disable firstboot on classic for now <Created by mvo5> <https://github.com/snapcore/snapd/pull/1773>05:57
mupPR snapd#1774 opened: tests: add test for current snapd with ubuntu-core/edge interactions <Created by mvo5> <https://github.com/snapcore/snapd/pull/1774>06:27
dholbachhey hey06:37
liuxgI have python as plugin in both parts, when building the projects, some files are copying to the same locatiton, resulting conflicts like http://paste.ubuntu.com/23106210/. how can I avoid this issue?06:38
tvossgood morning :)06:43
dholbachliuxg, maybe file a bug report on snapcraft?07:05
liuxgdholbach, yeah, I think so. I will do that, thanks07:05
dholbachthanks07:05
liuxgdholbach, I have reported it at https://bugs.launchpad.net/snapcraft/+bug/161790707:13
mupBug #1617907: Two python parts in the same snapcraft.yaml result in not installing the python correctly <Snapcraft:New> <https://launchpad.net/bugs/1617907>07:14
dholbachgreat07:14
mvopitti: hi, quick question - we have the netplan config in snapd now, its great. its also static, so I would like to ship it just in the ubuntu-core-config (which is only installed on ubuntu-core devices)  package as a static /etc/netplan/00-default.yaml  package07:16
mvopitti: eh, static file of course. any reason not to do that?07:17
pittimvo: what does it contain?08:03
zygagood morning08:03
pittimvo: I'm not a big fan of constant config files in /etc, I must say08:03
pittimvo: if we start doing that, I'd rather add support for /lib/netplan/*.yaml08:03
mupPR snapd#1769 closed: snap: add export-key --account= option <Created by cjwatson> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1769>08:16
=== JanC is now known as Guest45177
=== JanC_ is now known as JanC
tvossmvo: hey, did you have a chance to raise the topic of vendorizing go build deps for snapd?08:33
=== carlo is now known as Guest67116
mvopitti: support for /lib/netplan/*.yaml sounds great, if its not too much work, I can also look at it if you are too busy08:50
pittimvo: already at it08:50
mvotvoss: not explicitely, we talked about it in the team recently and the concensus was that we want to do it08:50
mvopitti: cool, thanks! for context: https://github.com/snapcore/snapd/pull/1765/files#diff-7c06ac92ab14c8f3ece674037573ceddR14 is the config we want to ship by default08:51
mupPR snapd#1765: many: move network initialization to a separate service <Created by mwhudson> <Conflict> <https://github.com/snapcore/snapd/pull/1765>08:51
pittimvo:/url 208:51
pittimvo: oh - DON'T ever ship that in a package08:51
pittimvo: this means that you cannot ever reconfigure any device, as 00-* is always the first match08:52
tvossmvo: ack, will join your standup today then (if I can make it)08:52
mvopitti: ok, so this needs to be 99-ubuntu-core-defaults if we move it to a package?08:53
pittimvo: mwhudson discussed that with slangasek and me recently; AFAIR the idea was to only create that file in /run/ if there is no actual config (i. e. before running console-conf), and as soon as there is some /etc/netplan/* then not generate it any more08:53
mvopitti: and it would be in a package that is only installed on core systems, is that ok?08:53
mvopitti: oh, I see /run - hm08:53
pittimvo: actually, the name of the *.yaml is not that relevant08:54
pittithere is no natural order in the yaml definitions08:54
pittiother than that later definitions override previous ones08:55
mvopitti: hmhm, ok, let me ponder a bit if we only want this in /run under these conditions that changes the picture a little bit08:55
pittimvo: I suggest talking to mwhudson, he is also working on this and it seems that there is a lot of overlap and not enough coordination08:55
mvopitti: yeah, I started talking to him and he directed me to you :) thanks, I think I know all I need to know for now08:56
pittimvo: anyway, suport for /lib/netplan/ committed, it would also be useful for things like lxc (bridge configs)09:04
mvopitti: \o/09:08
* ogra_ grins about https://github.com/snapcore/snapd/pull/157309:13
mupPR snapd#1573: asserts/tool,cmd/snap: introduce hidden "snap sign" <Created by pedronis> <https://github.com/snapcore/snapd/pull/1573>09:13
ogra_we have a secret handshake !09:14
ogra_cjwatson, is there any known way for me to find out a revision number for a snap that was auto-uploaded by LP ?09:16
ogra_(would be nice to be able to map a revision to a build number and log)09:17
ogra_i see i get a "manage this package in the store" link after successful upload on the UI page, but i dont see anything in the LP api that would map to this09:29
zygaogra_: do you have a 3.4 based kernel around on any device?10:04
pittiogra_: manual wifi bringup with wpasupplicant and networkd works fine; now it's a SMOP :)10:04
zygaogra_: would you mind doing ls -ld /proc/$$/ns/mnt for me?10:04
ogra_zyga, snappy device ? no, i dont10:04
pittiogra_: (and SMOWTC)10:04
zygaogra_: no, any device10:05
zygaogra_: (phone is good)10:05
* ogra_ hugs pitti and looks up acronyms :)10:05
pittiogra_: I just made it up -- SMO writing test cases :)10:05
ogra_:)10:05
pittiogra_: oh, "simple matter of programming" (but that's rather common)10:06
zygahah10:06
zygait's all doable, it's all software ;)10:06
ogra_zyga, i only have 3.10 :/10:07
cpaelzerHi, I was asked by elopio to move some bits out of my waf integration test belonging to PR 716 to be an external part10:08
zygaogra_: that's actually good, is that ubuntu phone?10:08
ogra_yes10:08
cpaelzerI thought I updated https://wiki.ubuntu.com/snapcraft/parts the right way, but something is missing10:08
ogra_ooh ...10:08
zygaogra_: thanks, I was worried that older kernels are still around10:08
cpaelzeris there any update cycle or anything I have to wait until I can discover a part there?10:08
* ogra_ just found one machine in his network running 2.6.37 10:08
ogra_i guess its time to upgrade that one10:09
ogra_zyga, they are ... u just dont have any active phone with them anymore10:09
ogra_s/u/i/10:09
ogra_zyga, only the last two devices had 3.1010:09
ogra_nexus and the bq phones are all 3.410:10
cpaelzerno matter if the part is already right yet (not sure on that part) I'd have expected that "snapcraft update && snapcraft search wafdemo" gets me something, but it doesn't10:10
mupPR snapd#1775 opened: Add thumbnailer interface <Created by fkaleo> <https://github.com/snapcore/snapd/pull/1775>10:17
=== hikiko is now known as hikiko|ln
ogra_cjwatson, there is an update on bug 1608432 for you10:59
zygamwhudson: around?10:59
mupBug #1608432: snaps with type: os should allow publishing of .manifest files <launchpad-buildd:New> <Snapcraft:Incomplete> <https://launchpad.net/bugs/1608432>10:59
mupPR snapd#1773 closed: firstboot: disable firstboot on classic for now <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1773>11:08
Son_Gokumorning11:20
zygaSon_Goku: hey11:22
Son_Gokuhello11:23
=== hikiko|ln is now known as hikiko
Son_Gokuzyga, so, did you get anywhere on the path relocation?11:33
zygaSon_Goku: yes, it basically works now, I need to work on selinux support in systemd to let the service start now11:43
ogra_mvo, btw, not sure you have seen https://github.com/snapcore/classic-snap/pull/411:55
mupPR classic-snap#4: merge recent changes that are in the store, improve bin/classic <Created by ogra1> <https://github.com/snapcore/classic-snap/pull/4>11:55
ogra_(sorry for the ping in the wrong channel before)11:55
Son_Gokuzyga, you might want to look at the abrt service policy as an example12:05
Son_Gokuhttps://github.com/fedora-selinux/selinux-policy/tree/rawhide-contrib12:05
mvoogra_: checking12:22
mupBug #1618004 opened: Need a classic-bin interface to see classic binaries <Snappy:New> <https://launchpad.net/bugs/1618004>12:23
mvoogra_: thanks, nice one, merge - I assume you alrady pushed it?12:23
ogra_mvo, not yet, doing so now (i didnt know how you wanted to handle the missing bits)12:24
mvoogra_: I think its was a forgoten push on my side, sorry for that12:25
ogra_NP12:25
mupPR snapd#1683 closed: osutil: fix create-user on classic <Reviewed> <Created by jaymell> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1683>12:42
mupPR snapcraft#763 opened: Include /sbin and usr/sbin in wrappers <Created by lool> <https://github.com/snapcore/snapcraft/pull/763>12:42
argeselopio: I see bug 1616157 has been verified, should I tag it 'verification-done'? And mvo is it ready for release into xenial?12:51
mupBug #1616157: [SRU] 2.13 <verification-needed> <snapd (Ubuntu):Fix Released> <snapd (Ubuntu Xenial):Fix Committed> <https://launchpad.net/bugs/1616157>12:51
mupPR snapd#1776 opened: image: snap assertions into image <Created by pedronis> <https://github.com/snapcore/snapd/pull/1776>12:56
mupPR snapd#1723 closed: image: prepare-image: import snap assertions as well <Created by mvo5> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/1723>12:57
mupPR snapd#1777 opened: osutil: tweak the createUserTests a bit and extract common code <Created by mvo5> <https://github.com/snapcore/snapd/pull/1777>12:57
=== dpm is now known as dpm-afk
mvoarges: I have a look, in a meeting right now13:03
Kaleozyga, hey :) thanks for the review13:03
Kaleozyga, looks like I forgot a commit :)13:04
ogra_hmm, no sergio today ?13:05
Kaleozyga, please ignore the entire PR until I add that commit :)13:05
Kaleozyga, and voila13:06
Kaleozyga, I'm sorry I wasted your time13:06
Kaleozyga, about the snap/implicit.go, is there some documentation of what it means?13:08
zygaKaleo: I'll check it after the meeting13:11
Kaleothanks13:11
zygaKaleo: look at snap/implicit.go and look what's there, there's no docs but I have a blog post about it on zygoon.pl (the lastest one)13:11
zygaKaleo: please check it out13:11
Kaleocheers13:12
jdstrandlool, tianon: hey I read lool's status on the docker PR progress. I thought there were still some open questions that needed to be addressed before another review and I got the impression one of you would be working on the kernel modules backend.13:14
looljdstrand: I actually got the impression you would be coming back to the review after a while13:15
looljdstrand: :-)13:15
jdstrandwell, I planned to come back to the review, but thought people were working on the kernel modules backend13:16
looljdstrand: I'm not sure who if anyone has time to work on the kernel module backend13:16
jdstrandif it makes sense for me to do another round of reviews, I can13:16
jdstrandhrmm13:16
loolI dont know if I can ask tianon to work on this, if he can't I imagined I'd end up doing it13:16
loolbut I was hoping someone from the core team would come to it first13:17
jdstrandlool: this might be a question to have with JamieBennett13:17
jdstranderr13:17
jdstranda conversation to have with him13:17
loolYes13:17
looljdstrand: it would be helpful to know how much other things are needed for this to get in13:17
loolhow many / how much work13:18
jdstrandI was assigned some high priority (snappy) work a week and half ago so I've been trying to get through all that while (I thought) the other issues with docker were being worked on. if you're saying you're blocked on me, I can try to get through that review today13:20
looljdstrand: I think we're blocked on your next review + this kernel module feature which isn't docker specific but that docker seems to need first13:21
looljdstrand: I dont know of other work on the snap / interface that was requested in the pull request and wasn't done13:21
jdstrandlool: fwiw, that feature is needed by firewall-control for the GA release for a customer requirement. it's also needed by ppp interface13:22
jdstrandI guess I'll take a look at that. I'll try to get to that today13:22
looljdstrand: cool; I'm currently debugging other issues with the docker snap on classic (works on core but not on classic with weird errosr)13:22
zygajdstrand: before 3.8 /proc/$PID/ns/mnt did not exist13:22
jdstrandzyga: sounds like that is a patch to add to the list. I wonder how intrusive it is. I suspect very-- we've said in the past 3.4 kernels can't be used to run lxd/docker13:24
* jdstrand is recalling from memory. ogasawara would probably have the definitive answer13:25
loolI thought 3.10 was needed for systemd anyway?13:25
zygajdstrand: we have a few options for that13:27
zygajdstrand: one easy one is that this feature is not supported on 3.413:27
zygajdstrand: a more complex one could usee a zygote process13:27
zygajdstrand: and a backport for this patch could be a third approach13:27
zygalool: I'm not sure13:27
zygalool: if so, then this discussion is moot, I guess this is about defining a baseline kernel for snappy13:28
tedgIs there a recommended way to get $HOME back to the correct value?13:28
tedgTried with getent, but don't have permissions.13:28
zygatedg: I don't believe there is13:28
loolI believe the oldest we provide for apparmor patches is 3.1013:28
tedgUhg, it makes the open/close dialog in Inkscape mostly unusable :-(13:29
loolwe probably had older patchsets, but we haven't updated them13:29
jdstrandzyga: I really don't like the zygote approach in general. it depends on how it is implemented13:29
zygatedg: snappy could easily set a variable like SNAPPY_OLD_HOME13:29
stokachuim trying to get my systemd bridge service working and not able to get an ip assigned to it, https://paste.ubuntu.com/23107318/13:29
loolactually systemd requires >= 3.413:29
zygajdstrand: I think we agree on this13:29
jdstrandlool: apparmor isn't the probelm-- we have patches for 3.4 kernel for touch13:29
jdstrandI'm not sure how up to date they are as of this second, but that is certainly possible.13:29
looljdstrand: in the snappy kernel templates, we only offer 3.10 and onwards13:30
mvoarges: yeah 2.13 looks good, the issues that elopio mentioned with gnome-software is a bug in 2.12, we are working on a fix13:30
jdstrandlool: ogasawara maintins a list somewhere13:30
Son_Gokulool, afaik, newest systemd requires kernel >= 3.14, iirc13:30
tedgzyga: Sure, but then I'd need a specific version of ubuntu-core, which I can't depend on.13:30
jdstrandlool: that may be because other things have made them say that 3.4 is not possible, so we said "well, then we don't have to produce apparmor backports"13:30
looljdstrand: https://docs.google.com/document/d/1LOqrSty2yTsUtQ4nFehaisZc4XmKKsK_E_tz-O1hU-M/edit13:30
jdstrandsure, it is a cause and effect thing13:31
jdstrandthe effect of not supporting snappy on 3.4 is that it causes the security team to not provide backports to 3.4 :)13:31
looljdstrand: yup; I'm just trying to be realistic; I believe the oldest we consider maintainable is 3.10, but of course everything is possible  :-)13:32
ogra_tedg, just use /home/$USER ?13:32
jdstrandsure. I'm just saying that *apparmor* is not why it isn't maintainable13:32
looljdstrand: sorry it's just the first thing we're missing when we're applying the ubuntu patches13:33
lool(over vanilla / bsp kernels)13:33
zygatedg: you can, there's a mechanism for that13:33
tedgogra_: Yeah, can try that as a work around. Good idea.13:33
looldidn't13:33
looldidn't mean to pick on these patches specifically13:33
loolit's all our ubuntu sauce13:33
zygatedg: assume (or somethng like that) you can put this into your snapcraft.yaml13:33
looljdstrand: this was an earlier effort of mine to capture the reqs https://docs.google.com/document/d/1W9TJDTWevnxARYaE3w7fahXeCgjv_9xJ2RTZ6nN0Va4/edit13:33
zygatedg: in general it feels like a bug to fix13:33
loolwhich was after internal consultation13:34
ogra_zyga, but rarher in the desktop launcher than in snapcraft13:34
ogra_err13:34
ogra_snapd13:34
ogra_after all it is the launcher wrapper script that forces $HOME13:34
tedgzyga: Hmm, I see that in the snapcraft schema, but I don't see what the string needs to look like. "ubuntu-core>x.y.z" ?13:35
=== dpm-afk is now known as dpm
zygatedg: it's a list of strings13:43
zygatedg: each string is a feature flag you can request from snapd13:43
zygatedg: e.g. old-home-env13:43
zygatedg: snapd knows which flags it supports13:43
zygaogra_: no, that's actually in snapd itself13:44
tedgzyga: Oh, so it's not requesting a specific version as much as a set of features.13:44
zygaogra_: the launcher doesn't change home AFAIR13:44
zygatedg: exactly13:44
zygaogra_: the wrapper script is made by snapd13:44
ogra_i thought it has HOME="$SNAP_USER_DATA"13:44
zygaogra_: and since 2.14 those are gone13:44
zygaogra_: so this is all managed internally in snapd13:44
zygaogra_: (no more wrappers!13:44
ogra_(talking about the desktop wrapper here)13:45
zygaogra_: that's all snapd13:45
zygaogra_: snapd can now set environment in the started app processes13:45
tedgWait, so how is snapd launching the process? Spawning from its own then?13:47
ogra_zyga, yeah, i just checked, it doesnt touch HOME ... only creates a ton for XDG dirs in SNAP_USER_DATA13:48
tedgOr is the CLI starting the application.13:48
ogra_s/for/of/13:48
zygatedg: it's complex, the app name, say "foo", is a symlink to snap-run13:48
zygatedg: snap-run does some stuff, run snap-confine, which does some more and runs snap-exec which does some more and exec's the command associated with the snap13:48
tedgzyga: So for starting apps I should be calling that symlink still? Or calling snap-run?13:49
zygatedg: nothing changes for the user13:49
zygatedg: this is all an internal change13:49
zygatedg: and snap-run is not on PATH AFAIK13:49
tedgzyga: Well, I'm kinda a special user here :-)13:49
zygatedg: why?13:50
zygatedg: I mean, this should not be visible to anyone in practice13:50
tedgzyga: Becuase we're setting up the exec in Upstart for desktop apps13:50
zygatedg: it's just an optimization that gives us some more control13:50
zygatedg: that should just run the command as it in the desktop file13:50
tedgzyga: Ideally, but the desktop files aren't that useful.13:51
tedg(the ones generated by snapd)13:51
zygatedg: perhaps what you want to do should be managed by snapd itself13:51
zygatedg: I'm not sure what this is exactly, feel free to ask for more information if that helps you13:51
tedgzyga: I am :-)13:52
* ogra_ thought we are drooping Üpstart this cycle from desktop13:52
stokachuwhen i install a snap it runs both command and stop-command via oneshot13:52
stokachuhttps://paste.ubuntu.com/23107384/13:52
tedgzyga: Seems like the symlink should work fine for now.13:52
stokachui just need it to run the start command and then the stop command on uninstall13:52
tedgogra_: Trying for Unity7, not for Unity8.13:52
stokachunot at once13:52
ogra_ah13:52
zygaanyone, what's the glib-way to rm -rf a directory?13:52
zyga(this is for unit test code)13:52
ogra_stokachu, i would imaggine running stop-command on install is a bug ... but nontheless your script should check if what it wants to stop is actually running13:54
stokachuogra_, huh? there is nothing running13:54
stokachuthe start command runs some ip/iptables commands13:54
ogra_so it should exit gracefully13:54
ogra_hmm, actuall running the stop command makes indeed sense on upgrades13:56
ogra_so iits probably not a bug at all13:56
stokachuit runs the start command then stop-command right after13:56
stokachurunning the stop-command before the command makes sense13:56
zygastokachu: note, this is all systemd stuff13:57
zygastokachu: nothing is done by snapd here13:57
zygastokachu: whatever you are experiencing is systemd related13:57
zygastokachu: we just start/stop units13:57
zygastokachu: (we do stop and start the units on upgrades)13:57
stokachuyou call stop-command after the start command?13:57
ogra_zyga, well, you can define stop-command for a daemon13:57
ogra_snapd should make sure what it generates can be run in the desired order13:58
loolelopio: are the snapcraft integration tests usually passing? I get an error on snapcraft-parser13:58
ogra_stop-command should be only run on shutdown or uninstall of the package ... or before an upgrade wants to start the daemon newly13:58
stokachuwhich it's not doing now13:59
ogra_right13:59
zygaogra_: snapd just generates a systemd unit file, all the running is done by systemd14:00
ogra_zyga, well, but if snapd allows us to define a stop-command for a daemon it should not "just run"14:00
ogra_only for stopping the daemon14:00
ogra_so imho something is generated wrongly14:01
ogra_probably a Chipaca topic14:01
zygaogra_: check the systemd unit, does it look good or bad?14:02
ogra_no idea ... its stokachu's unit :)14:02
stokachuwhere is that located14:02
ogra_but it is clear that tthe two units run in the wrong oorder on package install14:03
stokachuogra_, zyga https://paste.ubuntu.com/23107454/14:06
stokachuso my oneshot daemon runs command, then stop-command directly after14:07
loolelopio: well they are passing on travis; not sure why it fails here14:07
zygastokachu: looking now14:08
zygastokachu: can you pastebin the snap.conjure-up.bridge.service file14:08
zygastokachu: it should be easy to find in /etc14:09
stokachuzyga, https://paste.ubuntu.com/23107463/14:09
stubGiven I can do both, should I create my daemon simple or forking?14:18
loolkyrofa: travis completed on the /sbin branch14:18
stubAny advantages of one over the other?14:18
lool(successfully)14:18
ogra_zyga, stokachu, hmm, i wonder if it should actually be oneshot if it has a stop command defined14:19
loolkyrofa: I couldn't open the autopkgtests links14:19
cmarszyga, hi, i was following your blog post on writing an interface. i'd like to write one for libvirt, so that snaps can control it on a classic host14:19
mupPR snapd#1772 closed: cmd: enable SNAP_REEXEC only if it is set to SNAP_REEXEC=1 <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1772>14:19
stokachuogra_, should i just put the tear down of iptables etc in the same start script14:19
stokachuand handle it logically14:19
cmarszyga, i got the socket part working, but the snap i'm working on wants to see stuff in /var/lib/libvirt, such as dnsmasq14:20
ogra_you could indeed do that ...14:20
cmarszyga, how would i expose that through the interface? (or is this even a good idea?)14:20
stokachuogra_, what about snap remove?14:20
ogra_that would call stop14:21
stokachuso maybe just a bridge script that'll accept an argument14:21
cmarszyga, i tried adding /var/lib/libvirt/** to the aa profile, but the plugged-in snap doesn't seem to see it. is there some mounting that would need to happen?14:21
mvoa new ubuntu-core stable got just released, it is based on 2.13, please do let me know if you notice any issues14:24
sergiusensgood morning14:24
mvoarges: there was some talk about command not found hanlding? do you have some details for me?14:24
josephtgood morning sergiusens14:26
zygacmars: if you explore the environment you will see that /var/lib/libvirt just doesn't exist in the core snap14:26
zygacmars: as a easy workaround please look at snap-confine and at quirks.c therein (look for lxd quirk)14:26
zygacmars: note that this is only for a devmode snap as no interface allows any snap to use /var/lib/lxd14:27
zygacmars: I would recommend you to create an interface that bind mounts /var/lib/lxd from the host into a snap-specifc directory14:27
zygacmars: I'm not familar with libvirt, does it need just a socket or the whole directory tree14:28
cmarszyga, the socket, but also parts of the tree, such as /var/lib/libvirt/dnsmasq, if you want to read the IP addresses of VMs for example14:29
zygacmars: I would recommend you to also report a bug tagged with snapd-interface and ask jdstrand for advice14:29
zygacmars: I see14:29
cmarszyga, ok, will do14:29
zygacmars: we can use the mount backend to bind mount /var/lib/lxd to a directory in the snap (relative to $SNAP_DATA)14:30
stokachui thought interfaces was a last resort and that we should be packaging every requirement in the same snap14:30
zygacmars: then you can patch or config libvirt inside the snap to assume that libvirt is in that directory14:30
zygastokachu: interfaces allow to shape the sandbox in which apps execute14:30
zygastokachu: if you want to have a snap that talks to something in the classic world or talks to another snap you can use an interface for this14:31
stokachusnaps have no notion of dependencies though14:31
zygastokachu: it feels perfectly fine to have a snap with libvirt or libvirt installed on classic and an interface that allows another snap to talk to libvirt (wherever it is)14:31
stokachuhow would someone know that libvirt is a requirement for cmars snap?14:33
zygastokachu: the snap would declare a plug of type 'libvirt'14:35
zygastokachu: we have no syntax for this but plugs will have a way to say "I have to be connected before this snap can be used"14:35
mhall119zyga: is somebody working on adding the content interface details to the existing docs?14:36
elopiolool: hello. What error are you getting locally?14:36
zygastokachu: then however that libvirt is provided (could be from the core snap, could be from another snap)14:36
cmarsi imagine it's a similar situation for snaps that need to plug into mir & x1114:36
zygamhall119: not that I'm aware of, I'll do this after snap-confine features for 1.0.41 are implemented14:36
zygacmars: yes14:36
stokachucmars, read the docs for now?14:36
elopiocpaelzer: maybe josepht can help you with the wiki entry. I get no parsing errors, but I also don't get the new part.14:37
=== kirkland` is now known as kirkland
cpaelzerelopio: ok, thanks for the update14:39
cpaelzerelopio: that is why I opened the bug on LP to give people some time to really look at it14:39
loolelopio: I couldn't reproduce it after rerunning; here's the one I get locally right now:14:39
loolelopio: http://paste.ubuntu.com/23107571/14:39
cmarszyga, thanks for the advice, snap-confine sources are clearing things up for me :)14:42
jdstrandzyga (cc cmars): fyi, a libvirt interface is going to be super-privileged, like docker and lxd14:42
zygajdstrand: I agree, note that it seems that it is just the plug-side of libvirt for now14:42
jdstrandsession:/// wouldn't need to be. but no one uses session:///14:42
loolelopio: python3 -m unittest -b integration_tests.test_parser is passing for me now, sorry; it failed a couple of times even when rerunning manually14:44
loolperhaps wiki issue or something14:44
camakoI think snappy-playpen CI is having infrastructure issues ("No CMAKE_C_COMPILER could be found") on more than one PRs. Does anyone know why it's failing? Is there anyway to re-kick it (without updating the branch)?14:44
loolelopio: ah I know what's going on14:46
loolelopio: install: error writing '/tmp/tmpe3p0e0r9/simple-rust/parts/simple-rust/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc14:46
lool_llvm-39b92f95.so': No space left on device14:46
loolelopio: /tmp is in memory, the vm has 2G and that's apparently not enough14:46
josephtcpaelzer: it looks like it's because your part is named 'waf-project' in your snapcraft.yaml and 'wafdemo' in the wiki.  The wiki entry needs to use the part name, not the project name.14:47
argesmvo: not sure what you mean exactly14:48
elopiolool: oh, that makes sense. The tests use tmp a lot, the real build doesn't.14:48
loolelopio: yeah14:48
mupPR snapcraft#764 opened: add support for snap-build grade parameter in snapcraft.yaml <Created by caio1982> <Conflict> <https://github.com/snapcore/snapcraft/pull/764>14:48
loolelopio: this also explains why it transients (running other things took memory / disk space)14:49
lool*was14:49
mvoarges: sorry, if you don't know about command-not-found that is fine, it was in a google doc and I was referenced14:49
mvoarges: I will find out, I thought the context was kernel stuff14:49
mvoarges: in any case 2.13 should be good to go14:49
argesmvo: i see it now, it was to ensure /snap/bin is in $PATH, that should probably be filed as a bug if it isn't already14:50
josephtcpaelzer: fyi, the wiki is processed once an hour.14:50
loolError: Node Sass does not yet support your current environment: Linux Unsupported architecture (arm) with Node.js 4.x14:50
looldamn it14:50
argesmvo: and shouldn't block 2.13 regardless so I'm happy to release if there aren't any other issues14:50
elopiojosepht: shouldn't that print a warning on parse?14:50
mvoarges: cool, no other issues14:51
cpaelzerjosepht: thanks a lot, trying that then14:51
josephtelopio: yes, I'll update the bug so we can fix that14:51
mvoarges: we pushed a fix for /snap/bin, let me search for the bug reference, one sec14:51
josephtcpaelzer: I already updated the wiki14:51
mvoarges: https://launchpad.net/ubuntu/+source/sudo/1.8.16-0ubuntu1.214:51
argesmvo: awesome thanks14:52
elopiojosepht: thank you.14:52
ogra_mvo, any idea when this will land ? that must sit in -propsed since a month now14:53
ogra_ah, well, 11 days ... my sense of time seems to be off :P14:54
mvoogra_: someone *cough* needs to do the verification, could be anone expect me (as I uploaded it)14:56
mvoogra_: help appreciated :)14:56
ogra_on it14:56
mvo\o/14:57
mvoI'm sure arges will let it in once its verified14:57
argeswhich package?14:57
mupBug #1618085 opened: snap run fails to run, cannot find app "me" in "me" <Snappy:New> <https://launchpad.net/bugs/1618085>14:57
ogra_done14:58
mvoarges: sudo itself14:58
ogra_that wasnt actually hard :)14:58
mvoarges: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/159555814:58
mupBug #1595558: sudo doesn't have /snap/bin in PATH <verification-done> <snapd (Ubuntu):Won't Fix> <sudo (Ubuntu):Fix Released> <snapd (Ubuntu Xenial):Won't Fix> <sudo (Ubuntu Xenial):Fix Committed> <https://launchpad.net/bugs/1595558>14:59
mvoogra_: :)14:59
ogra_mvo, what about shadow ? we still have it sitting in the PPA14:59
ogra_did you plan to push the fixes to debian ?14:59
mvoogra_: thats the --extrausers fixes?15:00
ogra_yeah15:00
ogra_i cant remember if sergiusens pushed the former changes to debian or if we did a distro patch for that15:00
mvoogra_: I don't remember :/ I think I did send some patches some time ago and vaguely remember them sitting in the bts forever, but I may be wrong15:00
ogra_we should get the PPA empty for RTM ... or at least between RTM and GA15:00
ogra_so that we dont release any ubuntu-core into stable that cant be built from the archhive15:01
ogra_(/me has already worked a bit on the cleanup, but there is still a lot to do)15:02
=== jcastro_ is now known as jcastro
mupBug #1618095 opened: [SRU] 2.0.14 <Snappy:New> <https://launchpad.net/bugs/1618095>15:06
zygaslangasek: around?15:09
ogra_sergiusens, bug 1618019 seems like an easy fix15:09
mupBug #1618019: builds of "type: kernel" add obsolete options to snap.yaml <Snapcraft:New> <https://launchpad.net/bugs/1618019>15:09
ogra_(or kyrofa ^^)15:16
kyrofaogra_, why are those keys no longer required?15:18
ogra_kyrofa, because the kernel snap now is defined ... bits need to sit in the right paths inside it so you dont need any meta info anymore15:19
kyrofaogra_, "don't need" and "fail review because" seem slightly different. Everything is always so out of sync :(15:19
ogra_kyrofa, i cant find the link to the final kernel.yaml doc anymore (as usual with gdoc ...) but all options except "type: kernel" and "version:" are gone15:20
ogra_the snapcraft.yaml can indeed still use them for the kernel plugin ... but the snap.yaml should not have any of these anymore since the content is in pre-defined paths now15:21
ogra_s/is in/has to be in/15:21
kyrofaogra_, isn't that the stuff that was just recently finalized?15:21
ogra_(and dont blame me, i didnt define the kernel yaml :P )15:21
ogra_afaik it was finalized in heidelberd15:22
ogra_*heidelberg15:22
kyrofaOh I don't blame you, but I'd like to start doing this stuff with cross-project bugs instead of each project changing independently and making the others sprint to catch up15:22
ogra_kyrofa, see pm15:23
sergiusensogra_ there is a really old card for extra users where mvo was supposed to add it to debian15:26
mvoI think I did15:26
sergiusenskyrofa ogra_ wrt kernel plugin, I asked for the spec on Wednesday, didn't get it15:26
* sergiusens is being short on words as he has a feverish kid up in arms15:26
ogra_sergiusens, there is a gdoc from heidelberg that defines that only type and version are needed in snap.yaml15:27
ogra_the rest is defined via pre-defined paths the binary stuff needs to be15:27
sergiusensogra_ link it to the bug please so I can check if everything required is being done15:28
sergiusensogra_ does this include the init chainloading?15:28
kyrofasergiusens, huh, mine has a fever this morning too15:28
ogra_sergiusens, chainloading ?15:28
sergiusensogra_ initrd from os and kernel snap15:28
sergiusenschainloading, munging, aggregation, ... whatever it is called15:29
ogra_sergiusens, not defined anywhere ... but also not relevant15:29
ogra_there will be an initrd in the kernel snap ... that wont change15:29
sergiusensok, just wondering if I can kill the logic that downloads the kernel snap15:29
ogra_the changes are in gadget then15:29
sergiusensthe os snap15:29
ogra_ah, not yet15:29
ogra_i'll ping you ...15:29
ogra_but thats for between RTM and GA15:30
ogra_the logic will sit in the bootloader scripts and in the initrd build scripts ... neither needs anything from the kernel snap or from snapcraft atm15:31
ogra_sergiusens, doc link added to the bug15:37
mupPR snapcraft#756 closed: Use block style for multiline YAML values <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/756>16:00
=== chihchun is now known as chihchun_afk
stokachuis the lxd interface auto connect?16:07
eldarkgkyrofa: hello16:12
kyrofaeldarkg, hey, welcome!16:12
eldarkgkyrofa: I was talking with about kicad-snap16:13
cmarsthat new snapd 2.13 release.. does that enable snaps to be installed in a lxd container?16:14
kyrofaeldarkg, so I dug into this issue a bit, but not quite as much as I would have liked. It does actually seem to find your lib, but when it comes time to link it can't find the lib. I suspect the Findngspice.cmake is looking in an odd place16:14
kyrofaRather, it seems to find the includes, but not the lib16:14
kyrofaeldarkg, but my lack of familiarity with the project started to get in the way at that point16:14
eldarkgkyrofa: mmm16:15
la_juyis`hi, question. i have an app installed as a deb in my system. I built a snap, installed it, but when I call the app by the name it still calls the deb in /usr/bin - in this case to try if the snap runs ok I should call it by the /snap/ bin, right?16:15
eldarkgkyrofa: Is it bug of Findngspice.cmake script?16:15
kyrofaeldarkg, maybe, but I'm not sure. It requires some digging into it, the time for which I'm afraid I don't have right now. I'd definitely start there with further investigation, though16:16
kyrofala_juyis`, yeah, /snap/bin comes later in the path16:17
la_juyis`kyrofa roger, thanks!16:17
eldarkgkyrofa: ok. how I can to simulate LP building on my PC?16:18
kyrofaeldarkg, I'd fire up a clean container for it (I use lxc)16:19
eldarkgkyrofa: thank you. I'll try digging16:20
mupPR snapd#1778 opened: daemon: make socket split backward-compatible <Created by kyrofa> <https://github.com/snapcore/snapd/pull/1778>16:20
stubWhere does my daemon send its logs? Or do I need to log to $SNAP_COMMON or similar and handle log rotation myself?16:33
eldarkgstub: check cat /var/log/syslog16:38
eldarkgstub: good tail -f /var/log/syslog16:38
stubeldarkg: I mean where should it send its logs. I guess I could dump them all to syslog and let the operator work it out from there.16:39
eldarkgstub: sorry I'm new16:40
stubI'm at the point I'm dealing with the rough edges. Currently also trying to figure out locale handling. I only seem to have the C locale available.16:42
eldarkgstub: Look at my try to work with i18n https://github.com/eldarkg/kicad-snap/blob/master/kicad.wrapper#L1016:43
stubeldarkg: I see. So you are generating the locales yourself, rather than relying on locales-all or something to have then embedded in the snap.16:46
eldarkgstub: I found only this solve maybe exist the right one16:48
eldarkgstub: ping me if you find the right way16:48
derjasperWhat is the state of Ubuntu Snappi on the Raspberry Pi 3 ? Is there a development or inofficial build available?16:57
mupPR snapd#1669 closed: interface: add usb device support to serial-port <Blocked> <Critical> <Created by jocave> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1669>17:00
ogra_derjasper, http://people.canonical.com/~ogra/snappy/all-snaps/17:02
ogra_arges, do you plan to do raspi2 and dragonboard kernel SRUs too today ?17:03
ogra_(just asking because i need to make the snap packages pick that up then)17:04
elopionessita: I've just requested a reserved name, cf. Can you please approve it?17:04
derjasperThanks! Is this already 64 bit? And does it receive updates?17:04
mupPR snapd#1696 closed: interfaces: add hidraw-device interface <Blocked> <Critical> <Created by jocave> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1696>17:04
ogra_derjasper, no, not 64bit (and i'm not sure we'll do 64bit before the pi foundation doesnt announce all firmware blobs are ready for that)17:06
ogra_but it receives updates indeed17:06
derjasperthanks!17:07
ogra_(nopte also that binaries for 64bit eat about 2/3 extra ram, they are a lot bigger)17:07
stubeldarkg: It seems to be working if I have locales-all in my stage-packages, and set the LOCPATH environment variable to $SNAP/usr/lib/locale17:07
stubeldarkg: I need all locales available (the user can choose at runtime), so this might not be appropriate for your use case17:08
eldarkgstub: thank you17:09
ogra_ubuntu@pi3:~$ ps ax -o rss,cmd |grep snapd17:10
ogra_12864 /usr/lib/snapd/snapd17:10
ogra_ubuntu@dragonboard:~$ ps ax -o rss,cmd |grep snapd17:10
ogra_27248 /usr/lib/snapd/snapd17:10
ogra_derjasper, ^^^17:10
ogra_same binary from the same source ...17:10
ogra_(teh pi3 is armhf ... the dragonboard is arm64)17:10
alextnHello all. I've been working with Snappy Core on the Samsung ARTIK 10 and I was wondering if the "gadget snap" or anything that I might use to produce a custom image is available.17:11
ogra_the only real advantage you get with arm64 is on systems with a lot of ram17:11
ogra_which the pi3 really isnt17:11
derjasperokay, didn't thought about that ^^17:13
ogra_:)17:13
tbras if ARMv7 couldn't do LPAE...17:14
mupPR snapcraft#757 closed: Export important project variables <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/757>17:15
ogra_tbr, does LPAE help gimp to use a 64bit address space ? :)17:18
tbrsure, if you want to run Chrome or Firefox with more than two tabs or anything else, you'll need 64bit address space :)17:24
ogra_heh, well ...17:24
alextnWhat if you want to virtualize something... ARMv8.x is better for virtualization..17:26
ogra_what i meant is that the larger 64bit binaries can actually have a benefit ... but that will only make sense if their functions can actually also address 64bit blocks and have enough ram for that17:26
argesogra_: re: rpi/snapdragon kernels that's something ppisati handles17:27
ogra_but yeah, in general armhf is the better choice and LPAE will allow you to use more than 3GB17:27
ogra_arges, i have no idea, i only noticed you spammed my changes mailboxes everywhere with these other kernels (new pc-kernel snap with your SRU is already in the store btw) :)17:28
argesogra_: yup its kernel release day today17:28
ogra_and i try to be fast with the snaps when an ABI bump happens17:28
ogra_(i'll soon automate that so a script can notice a new meta in -updates/-security and it re-builds teh snap automatically)17:29
ogra_(maintenance free = win :) )17:30
jdstrandroadmr: hey, can you pull r726?17:39
nessitaelopio, hi! so transfering a snap name is not trivial, and will not be for some time until that is scheduled and added to our roadmap. We usually recommend to not take the upstream names and use suffixes like cf-elopio. Have you consider that?17:46
elopionessita: yes, but then less people will install it and it will get worse stats. My hope is that by the time upstream is ready to take ownership, all the issues in the transfer would be solved.17:48
elopio3 months from now maybe?17:48
nessitaelopio, ok, I will try to have it approved by EOD today (need to confirm a few things first). Is that ok?17:49
elopionessita: yes it is. Thank you :)17:52
jdstrandogra_: hey, I see a bunch of kernels in the store. do you have an updated list of kernel and gadget snaps that should not be blocked?17:59
ogra_jdstrand, heh, nothing changed, no ... all kernels we use auto-land fine18:01
jdstrandmaybe these are old names18:01
jdstrandone has canonical-* at the beginning18:01
ogra_they likely are ... i wish i could delete packages18:01
ogra_yeah, thats alll dead beef18:01
ogra_only pc-kernel, pi2-kernel and dragonboard-kernel are relevant ...18:02
ogra_the rest is old cruft18:02
ogra_(and these three are fine)18:02
jdstrandok, those are the ones I have18:02
jdstrandogra_: is there a list of gadget snaps?18:02
ogra_pc, pi2, pi3 and dragonboard18:03
ogra_but we are updating them rarely enough that manual approval is fine18:04
ogra_especially since it is always a manual process ... we dont have any snapcraft integration for our gadgets yet18:04
jdstrandogra_: ok, thank you18:08
jdstrandroadmr: if you are so inclined, r728 instead (whitelists a few gadget snaps). if you already pulled r726, it can wait18:10
roadmrjdstrand: will do. I'd just pulled r721 :)18:32
wililupyis there an example of how to use the dump plugin? Not urgent since copy is still working, but would like to learn it. ;)18:32
roadmrjdstrand: (but not deployed yet, so it's a good time)18:32
jdstrandgreat, thanks!18:32
mupPR snapcraft#765 opened: Use a recursive iglob for filesets <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/765>18:33
mupPR snapcraft#754 closed: Use in plugin code to remove unwanted files <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/754>18:36
dobeyhow does one start the snapd service inside an lxc container?18:59
dobeyerror: daemon does not handle 0 listeners right now, just one18:59
dobey^^ i get this if i try to just run "sudo /usr/lib/snapd/snapd"19:00
dobeyand i can't seem to use systemctl19:00
sergiusensdobey it doesn't work in a container; there are bugs that I don't have handy related to the kernel/apparmor that the security team is working on for this19:08
sergiusensI think it was jjohansen19:08
dobeysergiusens: oh right. is there no way to run it completely unconfined?19:11
sergiusensdobey the container itself? Maybe with profiles and such, but that is outside my area of expertise19:12
dobeysergiusens: snapd19:14
dobeyhrmm, maybe i can just bind mount /run/snapd.socket instead19:15
dobeyerr, i guess not because /run is tmpfs19:17
jjohansensergiusens: can you try the xenial proposed kernel? Ubuntu-4.4.0-37.56 has more than a dozen apparmor fixes in it19:32
sergiusensjjohansen that would be for dobey ^19:33
dobeyinstalled in host or container?19:34
kyrofadobey, container uses host, no?19:35
dobeykyrofa: well, the running kernel is on the host of course, but the container doesn't necessarily use other files from the host19:39
=== aisrael is now known as StoneTable
dobeyif i could just bind mount the socket though, that'd be best19:39
jjohansendobey: host19:48
=== StoneTable is now known as aisrael
kgunnstgraber: hey there, i discovered this means "image not found" ...but shouldn;t there be an arm64 xenial image?20:03
kgunnkg@kg-MacBookPro:~$ sudo lxc launch images:ubuntu/xenial/aarch64 xen-arm6420:03
kgunnerror: not found (not a fingerprint, partial fingerprint (first 12 chars) or valid alias)20:03
kgunnor am i doing it wrong?20:04
ogra_kgunn, as a fallback (if you cant get lxc to work) https://github.com/snapcore/classic-snap ...20:06
kgunnogra_:  :-P20:06
ogra_:)20:06
kgunnhow do you know i want to cross compile ?20:07
ogra_mindwaves ;)20:07
kgunnlol20:07
stgraberkgunn: lxc launch images:ubuntu/xenial/arm6420:08
stgraberkgunn: though based on your hostname, that's not going to work as it will only run on an arm64 system20:08
=== drizztbsd is now known as timothy
dobeywhy can't i bind mount anything in tmp/ or run/ in an lxc any more? :(20:18
mupPR snapd#1779 opened: miscellaneous policy updates:  <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1779>21:02
tvossjdstrand: o/21:10
jdstrandhey tvoss :)21:11
mupPR snapd#1778 closed: daemon: make socket split backward-compatible <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapd/pull/1778>21:11
tvossjdstrand: would you find a few to review the very recent locationd upload?21:11
jdstrandtvoss: sure-- though I did approve a bunch earlier today21:11
jdstrandI see you uploaded a few more21:12
tvossjdstrand: yup, thanks for that -- I had to correct a minor issue for two of the commands21:12
jdstrandtvoss: ok done21:15
tvossjdstrand: ack and thx21:15
mupPR snapcraft#766 opened: Better file conflict message <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/766>21:18
jcastroWhat would cause this error: error: cannot communicate with server: Post http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: connection refused21:21
tvossjcastro: running in container or chroot?21:21
jcastrono, normal xenial desktop21:22
jcastroI did a refresh to ubuntu-core --edge earlier today, but that wouldn't be related I think?21:22
tvosswouldn't think so, I usually ran into the issue in a chroot or container21:23
tvossnessita: o/ I'm running into a publishing problem with locationd. packages are auto-uploaded from launchpad, and even after review, there does not seem to be a way to publish the new packages except for unpublishing/publishing. Wondering if I'm missing something21:31
jdstrandjcastro: sabdfl mentioned a bug in edge's core snap21:31
jdstrandjcastro: I think SNAP_REEXEC=0 in /etc/environment was the workaround21:31
jdstrandyes21:32
jdstrandhttps://lists.ubuntu.com/archives/snapcraft/2016-August/000862.html21:32
jdstrandjcastro: ^21:33
kyrofajdstrand, jcastro should be fixed with today's daily build, whenever that happens21:34
jcastroah thanks for that guys, missed that post21:34
nessitaelopio, cf name approved!21:36
nessitatvoss, checking21:36
elopionessita: :) thanks!21:36
nessitatvoss, if you go to a revision page, like https://myapps.developer.ubuntu.com/dev/click-apps/5666/rev/11/, scroll down to the bottom21:37
nessitatvoss, there is a "Publish" button which is per revision21:37
nessitatvoss, the one at the top is "package wide", the one at the bottom is "per revision" (yes, we have a bug to improve the UX there_21:38
nessita)21:38
tvossnessita: ack, let me see21:47
mupBug #1618239 opened: console-conf uses 20+MB memory at rest on embedded systems <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1618239>22:16
ahoneybunpopey: it built now!22:56
ahoneybun\o/22:56
popeyahoneybun: yay23:10
ahoneybunthanks to you lol23:12
popeynp23:14
popeyglad i could help23:14
popeyit's way more fun when stuff works :)23:14
ahoneybunit is lol23:15
ahoneybuncan LP builds run like Travis CI?23:15
ahoneybunauto refreshing the page23:15
popeylp can build snaps23:16
popeyand autobuild too23:16
ahoneybunno23:46
ahoneybunthe way Travis auto loads the new state of the build23:46
ahoneybunshowing the progress without a refresh of the page like LP does23:47
ahoneybunor needs23:47
mupPR snapcraft#764 closed: Implementing 'grade' support in snapcraft.yaml <Created by caio1982> <Closed by caio1982> <https://github.com/snapcore/snapcraft/pull/764>23:55

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