/srv/irclogs.ubuntu.com/2017/03/10/#snappy.txt

mupPR snapcraft#1180 closed: tests: support snap directory in external tests <Created by elopio> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1180>00:01
mupPR snapcraft#827 closed: Support setting build targets in the maven plugin. Make the maven plu… <Created by evandandrea> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/827>00:22
=== chihchun_afk is now known as chihchun
mupPR snapcraft#1181 opened: repo: fixup with python, not sed <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1181>02:19
mupPR snapcraft#1182 opened: meta: do not quote the command wrapper args <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1182>02:19
Son_Gokusergiusens: ping02:26
=== gavinlin is now known as Guest34349
sergiusensmwhudson: hey, would this fix my problem https://github.com/lxc/lxd-pkg-ubuntu/pull/27 ?02:53
mupPR lxc/lxd-pkg-ubuntu#27: Quote $@ in the lxc wrapper <Created by sergiusens> <https://github.com/lxc/lxd-pkg-ubuntu/pull/27>02:53
sergiusensSon_Goku: pong, but you know I am more reliable on rocket ;-)02:53
mwhudsonsergiusens: that looks more plausible yes02:53
Son_Gokumrrr02:54
sergiusensmwhudson: great, I guess I can propose for the use of environment and get rid of the wrapper in that branch too02:54
mwhudsonsergiusens: in fact i said on the bug "This bug looks more like a $@ that should be quoted isn't rather than one that is quoted and shouldn't be." :-)02:55
mwhudson(this hasn't gone out in mail yet afaict)02:55
sergiusensah, thanks, well I will invalidate the bug, thanks02:55
mupPR snapcraft#1182 closed: meta: do not quote the command wrapper args <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1182>02:55
mwhudsonsergiusens: bash quoting is comletely insane02:55
mwhudson+p02:55
sergiusensmwhudson: when it comes to something stgraber did I sometimes just doubt myself too much :-)02:55
mwhudsonhaha02:56
justinmcphey all, can I add gcc, et al., to a snap so that scripts in the snap can compile?07:16
mupPR snapd#2302 closed: asserts: implement snap-developer type <Created by emgee> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2302>07:30
mupPR snapcraft#1183 opened: First step; ruby support <Created by justincan> <https://github.com/snapcore/snapcraft/pull/1183>07:46
mupPR snapd#2752 closed: snap: add support user-sessions from snaps <Blocked> <Created by mvo5> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2752>07:46
mupPR snapd#2938 closed: cmd/snap-update-ns: compute next action to transition mount profile <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/2938>08:45
mupPR snapd#2782 closed: timeutil: a bunch of helpers for the scheduled refreshes <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2782>08:52
mupPR snapd#2787 closed: interfaces: add unity8 plug permissions <Created by mikix> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2787>09:01
=== tinwood is now known as tinwood_swap
mupPR snapd#2978 closed: cmd/snap-confine: use sc_do_umount everywhere <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2978>09:47
mupBug #1590767 changed: Support snap installed completion scripts <isv> <snapd-interface> <Snapcraft:Triaged> <snapd:In Progress by chipaca> <https://launchpad.net/bugs/1590767>10:03
mupPR snapd#2930 closed: tests: add systemd dependency loop failover test scenario <Created by fgimenez> <Closed by fgimenez> <https://github.com/snapcore/snapd/pull/2930>10:20
mupBug #1671776 opened: snap install halt during installation <Snappy:New> <https://launchpad.net/bugs/1671776>10:27
mupBug #1671778 opened: failover:emptysystemd test fails <Canonical System Image:New> <Snappy:New> <https://launchpad.net/bugs/1671778>10:36
=== hikiko is now known as hikiko|bbl
mupPR snapcraft#1181 closed: repo: fixup with python, not sed <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1181>11:22
mupPR snapcraft#1011 closed: ci: use a named docker instance with proper working dir and env <Created by 3v1n0> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1011>11:25
mupPR snapd#2972 closed: cmd/libsnap: add sc_quote_string <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2972>11:54
mupPR snapd#2963 closed: interfaces: use MockInfo in tests <Created by stolowski> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2963>12:00
mupPR snapd#2986 closed: tests: specify the core version to be unsquashfs'ed in the failover tests <Created by fgimenez> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2986>12:19
mupPR snapd#3008 closed: testutils: address review feedback from PR#2997 <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3008>12:20
mupPR snapd#3006 closed: interfaces: updates for mir-kiosk in browser-support, mir, opengl, unity7 <Created by jdstrand> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3006>12:25
=== hikiko|bbl is now known as hikiko
mupBug #1671776 changed: snap install halt during installation <Snappy:Invalid> <https://launchpad.net/bugs/1671776>12:31
mupPR snapd#2984 closed: interfaces: seccomp spec API tweaks for better tests <Created by stolowski> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2984>13:09
pstolowskiniemeyer, thank you!13:09
niemeyerpstolowski: np, and thanks for pushing those!13:10
=== chihchun is now known as chihchun_afk
mupPR snapcraft#1164 closed: tests: run the master tests against the staging server <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1164>13:31
elopiodidrocks: I think the title here is wrong, because they are not all desktop snaps: https://insights.ubuntu.com/2017/03/09/10-desktop-snaps-written-in-february14:01
mupPR snapd#3013 opened: cmd/libsnap: simplify sc_string_quote default case <Created by zyga> <https://github.com/snapcore/snapd/pull/3013>14:03
mupPR snapcraft#1184 opened: store: enable retries for store calls <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1184>14:37
joedborgthanks for bringing build.snapcraft.io to my attention popey14:45
didrockselopio: agreed, I didn't write the content though, just hilighted the ones that should be in14:47
didrockselopio: I'll pass the message, but now that it's published…14:47
didrockselopio: thanks for noticing btw :)14:49
coreycbelopio, do you recall what the reason was for having to build python for classic python snaps?  just curious for my own knowledge.14:55
stokachuanyone know if there is a kpi dashboard for snap downloads?14:56
mupPR snapd#3014 opened: tests: add dbus interface spread test <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3014>14:56
coreycbstokachu, oh hey, maybe you know the answer to my question14:57
stokachucoreycb: hey! yea there was a reason i just dont remember it, lemme look through git logs14:58
coreycbstokachu, ok thanks, no big deal really, just curious14:58
stokachucoreycb: https://github.com/snapcore/snapcraft/issues/1080; https://github.com/snapcore/snapcraft/issues/109014:59
stokachuthink those were the 2 big ones14:59
elopiocoreycb: I got lost there too. I just got that zyga has more details. Sergio can explain that too.15:00
elopioit seems both have migrated to rocket chat.15:00
coreycbstokachu, elopio: thanks.  they're not in here eh?15:03
niemeyerjdstrand: ping15:42
jdstrandniemeyer: hey, I saw all your PR pings15:47
niemeyerjdstrand: Heya15:47
niemeyerjdstrand: Yeah, was really about to see if you could do a run through today by any chance15:47
jdstrandniemeyer: I'm going to try my best to get to them today, but I need to attend to a high priority item before them15:48
niemeyerjdstrand: I did almost a full pass today, and there are quite a few low-hanging fruits in there15:48
niemeyerjdstrand: Thanks, appreciated!15:48
jdstrandniemeyer: my plan was: high priority item, go through low hanging fruits PRs and go to higher and higher hanging as have time :)15:48
mupBug #1671855 opened: snap command should provide a way to display account ID <Snappy:New> <https://launchpad.net/bugs/1671855>15:51
niemeyerjdstrand: Sounds perfect, thanks!15:52
jdstrandniemeyer: I can say I did respond to the maliit one earlier16:08
=== chihchun_afk is now known as chihchun
niemeyerjdstrand: Sweet, I think that one is ready to merge16:09
TrevinhoI'm running snapd in trusty (with xenial kernel backport)...16:11
Trevinhoand after a reboot no snap seem to work16:11
Trevinhomarco@tricky:~:✗ $ snap run hello16:11
Trevinhocannot perform operation: mount --rbind /dev /tmp/snap.rootfs_BsULNe//dev: No such file or directory16:11
mupPR snapd#2793 closed: interfaces: add maliit input method interface <Created by Elleo> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2793>16:12
Trevinhook, for some reason I had core and multiple snaps marked as "broken"16:18
Trevinhonow it works16:18
Trevinhocheck http://paste.ubuntu.com/24152298/16:18
=== chihchun_afk is now known as chihchun
cachioniemeyer, hi, I am trying to create 2 snaps which use the content interface, and it is not mounting as it would expected, do you know who could help we with that?17:18
niemeyercachio: zyga is most familiar with those details.. we're aware of one bug that he's actually working on right now that might impact that exact case17:19
niemeyercachio: What are the details?17:20
cachiobasically, 1 snap is creating slots read and write and the other plugs those and it is trying to execute an executeble in the read section17:21
cachioniemeyer, but when I run the app, I make an ls inside it and I don0t see the directory  mounted where it should be17:22
cachiobasically I should see a directory $SNAP/extra-bin and it is not there from the app context17:22
cachioniemeyer, should that be affected by that bug?17:26
niemeyercachio: Might be.. try this: stop any daemons/processes running from that snap.. type "sudo rm /run/snapd/ns/<snap name>.*", then try again17:27
cachioniemeyer, getting rm: cannot remove '/run/snapd/ns/kpi-content-consumer-tests.mnt': Device or resource bus17:31
cachioy17:31
cachioniemeyer, and there are not any process/daemon running for that snap17:32
niemeyercachio: That probably means something is still running from that snap17:34
niemeyercachio: Sorry, you may need to umount it actually17:35
niemeyercachio: sudo umount it17:35
cachioniemeyer, ok17:38
cachiocannot mount /snap/kpi-content-producer-tests/x14/bin at /snap/kpi-content-consumer-tests/x24/extra-bin with options bind,ro: No such file or directory17:38
cachioI should create the dir extra-bin first?17:38
cachioniemeyer, or snapd should do that?17:42
niemeyercachio: That directory is read-only, so you need to provide it in your snap17:43
cachioniemeyer, ok, make sense17:44
Fohlen-heya there. Is it any way possible to use a virtualenv in a scriptlet?18:01
Fohlen-seems to be buggy as hell for me18:01
Fohlen-I do want to use conan which is installable via pip, but global install seems to be even more buggy18:02
kyrofaFohlen-, hmm, and using `python-packages` isn't working?18:03
kyrofaOh wait, conan is a build system huh18:03
Fohlen-kyrofa: nope.When using python from a scriptlet with the python plugin it falls back to the system python18:03
Fohlen-which is quiet annoying18:03
kyrofaFohlen-, I've never tried with virtualenvs from scriptlets, but worst case you can write a custom plugin for it18:03
Fohlen-I probably have to18:03
kyrofaFohlen-, yeah, that makes sense18:03
kyrofaFohlen-, I think you've reached the limits of scriptlets, heh18:04
Fohlen-apparently I did :)18:04
kyrofaFohlen-, just put the custom plugin in snap/plugins/, you can distribute it along with the snapcraft.yaml18:04
Fohlen-kyrofa: in that case I'd have to use env variables from snapcraft, would that be feasonable?18:04
kyrofaFohlen-, I'm not sure what you mean18:05
Fohlen-consider this,       CONAN_USER_HOME=$SNAPCRAFT_PART_INSTALL/usr/local/games/inexor conan install . --build=missing18:05
Fohlen-as a plugin18:05
Fohlen-I'd need it to install the dependencies inside the snap, otherwise it breaks when packaging up18:05
Fohlen-:|18:05
kyrofaOh certainly18:06
kyrofaFohlen-, when you shell out to call conan, you can set the environment right there18:06
Fohlen-that was what I did initially, and it nicely broke up on another systm18:06
Fohlen-kyrofa: how'd I do that?18:06
Fohlen-and would that work out with a plugin?18:06
Fohlen-https://github.com/Fohlen/conan-snapcraft18:07
Fohlen-is what the plugin looks like18:07
kyrofajdstrand, any idea what's happening here? https://askubuntu.com/questions/888497/snap-confine-refuses-to-launch-application-to-avoid-permission-attack18:08
jdstrandkyrofa: it looks like snap-confine is compiled for enforce mode and installed setuid but there is no apparmor profile for it18:11
jdstrandkyrofa: this is something zyga added recently18:11
kyrofajdstrand, someone in rocket is getting that error claiming to be running normal Ubuntu 16.04. How could that happen?18:11
kyrofaAh, hmm18:11
jdstrandkyrofa: perhaps the profile was unloaded?18:12
jdstrandkyrofa: eg, sudo aa-status | grep snap-confine18:12
jdstrandkyrofa: there is something mvo was working on that would run snap-confine from the core snap with a path to the profile from the core snap. not sure if that landed, but if it did and it is trying to run that snap-confine but that profile isn't loaded, the same thing would happen18:13
kyrofajdstrand, oh interesting, although I expect that would break for everyone18:14
kyrofajdstrand, of course, he left :(18:22
kyrofajdstrand, well anyway, thanks for the info! Not sure what's happening here18:22
cachioniemeyer, working now, that umount that I have to do should be fixed whith that bug that you mentioned?18:24
niemeyercachio: Right, it's supposed to work dynamically.. no need to do anything else other than connecting the interface18:24
cachioniemeyer, great, thanks18:24
niemeyercachio: If you sit here in the channel in the next few days you'll hear about the term "update-ns".. that's what this is about18:24
cachioniemeyer, great18:25
cachioniemeyer, thanks for the help18:26
lutostagif somebody can review for snap id: N6CL1Ml1gj5SmGCmyy97CSvE3vzgjfb3, would be appreciated18:27
mupPR snapd#3015 opened: interfaces: alphabetize framebuffer in base decl and add it to all_test.go <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3015>18:36
mupPR snapcraft#1142 closed: state: asset tracking - store versions of stage-packages <Created by josepht> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1142>18:50
kyrofajdstrand, the user came back, saying the aa-status command you gave me produced no result, which I assume means the profile was unloaded somehow?18:50
alecujhodapp: hi! I think there might be a markup mistake in this page, because code and prose sections seem to switch place towards the end of the document: https://docs.ubuntu.com/core/en/stacks/bluetooth/doc/overview18:58
alecujhodapp: wanted to submit a patch, but I can't the bluetooth docs here: https://github.com/CanonicalLtd/ubuntu-core-docs/tree/master/en/stacks18:58
alecuam I looking at the right place?18:58
jhodappalecu, the actual docs are part of the bluez snap18:59
jhodappalecu, we keep them distributed and they get pulled in with repo18:59
alecuah, that sounds better18:59
jhodappthat makes it much easier for developers to contribute docs18:59
jhodapplet me get you the link to the docs18:59
jhodappalecu, here you go: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez/tree/doc/overview.md19:00
alecujhodapp: seems to be be missing  ``` in line 19919:02
alecujhodapp: https://code.launchpad.net/~alecu/snappy-hwe-snaps/+git/bluez/+merge/31961319:48
jhodappalecu, nice19:49
* jhodapp looks19:49
alecutook me a while to figure out git in lp :P19:50
jhodappalecu, yes it's pretty different from the way most other git web systems work19:50
jhodappwe tried to fit a square peg in a round hole there ;)19:50
alecuhahah, right19:50
jhodappalecu, good feedback on the docs too...we'll update the readme so that it's obvious that the stack documentation is distributed19:51
alecujhodapp: btw, do you know if bluetooth is supported on the raspi3 with core? I can't seem to get it to work19:51
alecuperhaps I should ask ogra_ about that19:51
jhodappalecu, ask morphis or koza...I'm not sure19:51
alecusounds good, thanks19:51
jhodappI only have a pi2 and dragonboard and can't remember off hand19:51
alecuright, pi2 does not have onboard bt19:52
jhodappexactly19:52
alecualright, thanks a bunch!19:52
jhodappalecu, not a problem!19:53
mupPR snapd#3016 opened: interfaces: add kubernetes-support interface and adjust related interfaces (LP: #1664638) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3016>20:07
alecujhodapp: and, here's another tiny fix: https://code.launchpad.net/~alecu/snappy-hwe-snaps/+git/bluez/+merge/31962020:18
jhodappalecu, keep 'em coming :)20:20
jhodappalecu, are you sure it needs that? konrad assured me we have the alias on the store side in place for that20:20
alecujhodapp: well, after sshing into the raspi and installing the bluez snap, I can't find the bluetoothctl command20:22
alecuI do find bluez.bluetoothctl20:22
alecuperhaps I need a newer snap, or edge?20:22
aleculet me try that20:22
jhodappalecu, you might and it may in fact be going out soon20:23
jhodappalecu, try "snap aliases"20:23
alecujhodapp: ah! the snap on edge is rev27. The one I had from stable is rev12 !!!20:24
jhodappalecu, yup, that's the issue20:24
alecujhodapp: I refreshed the snap, and now I can see the alias20:24
jhodappawesome20:25
alecuwonderful :-)20:25
alecuand, now I've learned about aliases20:26
jhodappquite an afternoon ;)20:26
jhodappaliases are awesome20:26
alecucertainly useful for other snaps we are preparing...20:27
jhodappabsolutely20:27
alecuand, with the latest snap on the raspi, bluetoothctl still can't find the controller20:29
alecuso, I guess I'll bother ogra_ and morphis next week20:30
alecujhodapp: thanks a bunch!20:30
jhodappnp20:30
cachioniemeyer, hey, quick question, I ma trying to create a file socket within a snap and > I get Bad system call (core dumped)20:41
cachioIf I run the python code it works properly, but if failes when I call the snap app20:41
cachioniemeyer, any idea about what could be the reason? or where I could see the logs?20:42
cachioniemeyer, this is the only I see in the syslog http://paste.ubuntu.com/24153684/20:51
kyrofacachio, that's a seccomp filter denial. You're probably missing the network plug20:52
kyrofa(or network-bind)20:52
kyrofacachio, you could learn more by using snappy-debug20:52
jdstrandit would also tell you to use network-bind20:52
kyrofacachio, and run `sudo snappy-debug.security scanlog` in one terminal while running your app in the other20:53
jdstrand$ scmp_sys_resolver 4920:53
jdstrandbind20:53
kyrofajdstrand, did you actually run that, or do you have 49 memorized? ;)20:53
jdstrandyou shouldn't have to use the network-bind interface to use a unix socket, but for now you do20:54
jdstrandkyrofa: I actually did have it memorized, but I double checked myself :)20:54
cachiokyrofa, jdstrand great, thanks for the info20:54
kyrofajdstrand, haha, nice20:54
cachiokyrofa, jdstrand I am creating a file socket for process communication, should I use the networking plugin in that case too?20:55
jdstrandcachio: network-bind should be sufficient. use snappy-debug and it'll tell you for sure20:56
cachiojdstrand, ok, I'll do it, thanks20:56
cachiojdstrand, ERROR: Could not find '/snap/snappy-debug/27/policy/17'20:58
mupBug #27: temporary test <iso-testing> <Baz (deprecated):Invalid> <https://launchpad.net/bugs/27>20:58
cachiosnappy debug is giving me that20:58
jdstrandwhoa20:58
jdstrandoh, what release are you on?20:59
jdstrandzesty?20:59
cachiozesty20:59
cachiojdstrand, snapd 2.22.721:02
jdstrandcachio: can you do 'snap refresh snappy-debug --edge' and try again?21:03
cachiojdstrand, sure21:04
cachiojdstrand, it worked21:04
cachiojd tx21:05
jdstrandcachio: np21:05
jdstrandroadmr: hey, would you mind pulling r847 into the store? it isn't an emergency. next week is fine21:50
roadmrjdstrand: sure thing, I'll put it in the pipeline and check what the deployment status is21:50
jdstrandroadmr: oh, actualy, give me a second21:51
roadmrjdstrand: sure thing, I haven't proposed anything yet21:51
jdstrandI added the code to override but I didn't add the thing to override :)21:51
roadmrhaha :) who overrides the overrider?21:51
jdstrandroadmr: ok, r84821:54
jdstrandheh21:55
roadmrjdstrand: did I hear something about snapd on trusty installing systemd which then makes $SOMETHING go crazy? this may be juju-related only :(21:56
jdstrandroadmr: snapd on trusty will install a special systemd, yes. I haven't heard about anything going crazy. if you are seeing something, please file a bug so the snappy team can take a look at it21:57
roadmrjdstrand: ok, I'll dig up the comment I saw.21:57
mupPR snapcraft#1185 opened: repo: add version support for build-packages <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1185>22:26
jdstrandniemeyer: ok, I was able to get to everything you pinged my on except the mknod branch. mvo could answer on that, but I'd like to be around when that lands, so I will comment when I am back23:05
jdstrandpinged me*23:06
niemeyerjdstrand: Thanks so much!23:06
jdstrandnp23:06
niemeyerjdstrand: I'll try to find some time over the weekend to merge what I'm able to23:06
jdstrandcool23:07
jdstrandniemeyer: actually, there was one I handed off to Tyler-- PR#262423:30
jdstrand(pid-1 mount namespace)23:31
jdstrandso he'll follow through on that in my absence23:31

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