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

tyhicksjdstrand: circling back to our earlier discussion... a review of the code netlink code doesn't show anything odd and a simple test program which calls socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) definitely requires a 'network netlink raw,' apparmor rule00:09
tyhickshere's the denial I get if I don't add that rule to the profile:00:10
tyhicksaudit: type=1400 audit(1488499593.813:25): apparmor="DENIED" operation="create" profile="test" pid=1969 comm="nl" family="netlink" sock_type="raw" protocol=0 requested_mask="create" denied_mask="create"00:10
mupPR snapcraft#1171 opened: beta <Created by snappy-m-o> <https://github.com/snapcore/snapcraft/pull/1171>02:53
mupPR snapd#2973 closed: cmd/snap-confine: use sc_do_mount everywhere <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2973>07:49
mupPR snapd#2953 closed: release: detect if we are in ForcedDevMode by inspecting the kernel <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2953>08:00
mupPR snapd#2978 opened: cmd/snap-confine: use sc_do_umount everywhere <Created by zyga> <https://github.com/snapcore/snapd/pull/2978>08:23
liuxgogra_, ping08:29
liuxgogra_, I used your sample code in the mailinglist to launch google.com using xdg-open, but it did not work in my place. the source code is at https://github.com/liu-xiao-guo/launchwebsite08:31
mupPR snapd#2950 closed: interfaces: use spec in kmod backend, updated firewall_control, openvswitch_support, ppp <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2950>08:46
mardycjwatson: hi! Just found out about build.snapcraft.io :-) Are there plans to make it support gitlab.com?08:46
stubHow to I revert a channel to an older release?09:21
stubDo I need to download the old snap and reupload it, or is there a smarter way?09:21
=== JamesTait is now known as Guest5139
=== Guest5139 is now known as JamesTait
mupPR snapd#2970 closed: many: add support for retrieving snap history from API <Created by justincan> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/2970>10:01
ogra_liuxg, do you have snapd-xdg-open installed on the host ?10:15
joedborgo/ all10:26
joedborgI'm trying to set an environment variable inside an app declaration (inside snapcraft.yaml).  I need to base this off the $SNAP variable, but I can't get it to resolve.10:28
joedborge.g. $ echo $PYTHONPATH10:28
joedborg$SNAP/horizon10:28
mupPR snapd#2979 opened: tests: add ubuntu-core-16-32 system to the external backend and fix docker test <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2979>10:38
kalikiana_stub: Unpublish, re-publish, that's the best way I found to do it10:38
stubta.10:39
liuxgogra_, ping10:42
ogra_liuxg, hey, did you see my reply above ?10:42
liuxgogra_, sorry, I did not see the reply :) I will try it. thanks10:42
liuxgogra_, is it a snap or debian?10:43
ogra_its a deb you need installed on your desktop (it was discussed in the thread)10:44
cjwatsonmardy: Not at present10:46
liuxgogra_, sorry, I did not read it through. I think it is good to have it as a build-package in the snapcraft.yaml10:46
ogra_liuxg, nope10:46
ogra_you need it installed on the desktop, nothing in snapcraft.yaml will help with that10:46
liuxgogra_, I just installed it, and it worked.10:46
liuxgogra_, so build-package will not install it onto the desktop?10:47
ogra_no10:47
ogra_snapcraft only operates inside the snap10:47
liuxgogra_, ok. I got it. thanks.10:47
liuxgogra_, thanks for your help on this. so, this is an dependence.10:48
ogra_right10:48
didrocksogra_: I think the user wants to install a snap in the store (ktouch)11:56
didrocksnot creating it11:56
ogra_didrocks, hmm, that wasnt clear to me, yeah, you might be right11:57
didrocksogra_: so, the issue I guess is that the platform snap isn't connected to it, and the KDE helper (but I don't know how it works exactly) don't do this check with a nice error message unlike our desktop helper11:57
popeyyeah, i agree11:57
popeythey need to connect the content snap11:58
didrockssitter: hey, you might way to either use our desktop helpers or add this kind of check as we do11:58
didrocksogra_: feel free to rephase ;)11:58
didrocksrephrase*11:58
didrockseven11:58
=== hikiko is now known as hikiko|bbl
* ogra_ re-phases and is now fully positive charged 12:00
didrocksahah12:01
didrockstwo or three phases? :)12:01
ogra_old school .... only two and a grounding (at times) :)12:02
didrocksheh12:02
mupPR snapd#2977 closed: releasing package snapd version 2.23 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2977>12:51
=== marcoceppi_ is now known as marcoceppi
jdstrandtyhicks: maybe I got rate limited (even though I set it to '0')13:11
jdstrandtyhicks: but it was weird-- if I added the seccomp rule, no apparmor denial, if I removed it, seccomp denial. I then tried it multiple times...13:13
jdstrand(ie, went back and forth)13:13
* jdstrand tries with dgram13:16
stokachuhmm how do i select a different organization in build.snapcraft.io?13:18
stokachui made sure it had access to that org on github13:18
jdstranddgram makes no difference13:21
jdstrandtyhicks: maybe it was incredibly poor timing-- I can confirm that it is denied by apparmor as root and non-root. I can also confirm that if I go fast enough even with rate limiting disabled, I don't always see it in the log13:22
didrocksmvo: hey, didn't you tell yesterday that 2.23 was blocked for zesty due to autopkgtests failing?13:23
mvodidrocks: it was, then things fixed themself, it was an outdated core snap on ppc64el that held it back. sorry, I understand this is annoying now :(13:28
didrocksmvo: we maybe should have put a hold… yeah, annoying it did fixed himself13:29
Jasem[m]Quick question: If I build a snap on 17.04, it will work on 16.04?13:31
didrocksJasem[m]: if you include your all dependencies in your snap for a fully confined one, it should, indeed :)13:34
Jasem[m]didrocks: Thanks, I decided to build on 16.04 just to be safe14:05
ogra_Jasem[m], if you restrict yourself to run "snapcraft cleanbuild"  the host distro shouldnt matter (it will build in a xenial lxd container then)14:07
Jasem[m]ogra_: thanks will take that into consideration. So I'm building a snap now in 16.04, so deploying it to Ubuntu-Core wouldn't be an issue I presume?14:08
ogra_right14:08
Jasem[m]Anyone here used Ubuntu-Core with Snapdragon board? I just saw the Embedded Linux videos14:09
ogra_well, i'm maintaining the port ... so i occasionally actually use it ;)14:09
ogra_s/port/image port/14:10
Jasem[m]ogra_: I was considering it for my embedded project, but then read some issues about WiFi.. I think I might be eventually settle for the good-old RPI314:10
ogra_the dragonboard has no wifi issues14:10
ogra_the pi3 does though :)14:10
Jasem[m]PI3 working fine here with WiFi.. well, I tried other boards but each has its own issues. RPI3 is the most reliable so far despite its shortcomings14:11
ogra_(only for the inital setup, it is rock solid afterwards ... but pi3 needs to do the setup wired )14:11
Jasem[m]No USB3, no Gigabit Ethernet14:11
Jasem[m]From the Embedded Linux presentation, it seems everything around Ubuntu-Core is free.. how does Canonical make any money of that then?14:12
ogra_services, support, contracts with device manufacturers for porting/maintaining an image for their HW14:13
Jasem[m]is there a service for "Here is X, Y, Z software I need. Make them into snaps and give me an image" ?14:14
Jasem[m]Oh I'll just contact Canonical and find out14:18
=== hikiko|bbl is now known as hikiko\
mupPR snapd#2980 opened: client, daemon: move "snap list" name filtering into snapd <Created by chipaca> <https://github.com/snapcore/snapd/pull/2980>15:00
mupPR snapd#2981 opened: tests: add kernel-module-control interface test <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2981>15:07
joedborgis there any reason why snapcraft doesn't stage hidden files?15:23
joedborgas in it seems to explicitly seems to ignore them15:23
mupPR snapd#2944 closed: interfaces/builtin/alsa: add read access to alsa state dir <Created by ssweeny> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2944>15:48
ssweenythanks jdstrand15:49
jdstrandssweeny: np15:50
=== hikiko\ is now known as hikiko
SuperJonotronrunning into an odd issue here with snaps, done this a thousand times before but just rebuild a snap with two commands, both show up in the binary and if I navigate to that directory and call them by name ./snapName.command it says no such file or directory when trying to run16:10
SuperJonotrondoes this maybe indicate snapcraft created a bad snap?16:11
mupPR snapd#2982 opened: daemon: add desktop file location for app to the API <Created by mvo5> <https://github.com/snapcore/snapd/pull/2982>16:28
cholcombei'm giving snappy-debug a try and it cannot connect to log-observe: error: snap "ubuntu-core" has no slot named "log-observe".  Anyone else encountered this?17:31
kyrofacholcombe, can you pastebin the output of `snap interfaces`?17:32
cholcombesure one sec17:32
cholcombekyrofa: http://paste.ubuntu.com/24103211/17:32
cholcombethis is on an ec2 xenial box17:32
kyrofaUh... huh. It says it's connected17:33
cholcombelol i know17:33
kyrofaDoes it work now? :P17:33
cholcombenope17:33
cholcombesnap connect snappy-debug:log-observe ubuntu-core:log-observe17:33
cholcombeerror: snap "ubuntu-core" has no slot named "log-observe"17:33
cholcombeis that the right command?17:33
kyrofaOhhh17:33
kyrofacholcombe, no, it's only core now17:33
kyrofacholcombe, in fact, you can leave the last arg off completely17:33
cholcombeoh ok17:33
kyrofacholcombe, just run `snap connect snappy-debug:log-observe`17:33
cholcombeyeah that works now17:33
kyrofacholcombe, ooo, gluster, that sounds like fun17:34
cholcombekyrofa: gluster has a new iscsi manager that i'm trying out17:34
cholcombei might even be bold and snap gluster17:34
cholcombethe daemon is hanging when i start it and i'm not sure what's going on.  maybe strace will tell me something17:35
cholcombeoh maybe this doesn't fork.  i must've misread the C code17:36
kyrofaHahaha17:37
kyrofaSo it's actually working?17:37
cholcombei'm not certain.  i'm messing around with it17:37
cholcombestrace says it's waiting on futex17:37
cholcombekyrofa: yeah i think it is working17:39
cholcombelooks like i need targetcli and some other crap.  need to rebuild the snap17:39
ogra_snap "ubuntu-core" ?????17:39
ogra_you shouldnt have that at all17:39
=== ejat_ is now known as ejat
kyrofaogra_, probably referring to out-of-date docs17:40
ogra_everyone should have been moved from ubuntu-core to core nowadays17:40
ogra_kyrofa, well, it is in the error message above17:40
kyrofaogra_, because it's not intelligent17:41
kyrofa$ sudo snap connect foo:bar baz:qux17:41
kyrofaerror: snap "foo" has no plug named "bar"17:41
ogra_oh17:41
ogra_silly !17:41
kyrofaAgreed17:41
ogra_add AI !!!!!17:41
cholcombekyrofa: if gluster-blockd needs to access targetcli do i need an interface for that?17:41
kyrofacholcombe, are they in separate snaps?17:42
cholcombei'm not sure if targetcli is snapped.  i could just apt install it17:42
=== hikiko_ is now known as hikiko
kyrofacholcombe, is that something that should be contained within the snap?17:43
=== souther_ is now known as souther
cholcombehmm.  i'm guessing not17:43
=== Dmitrii-Sh_ is now known as Dmitrii-Sh
* kyrofa isn't sure what targetcli is17:44
=== diddledan_ is now known as diddledan
cholcombekyrofa: it's a python program that configures iscsi initators17:45
=== FourDollars_ is now known as FourDollars
kyrofacholcombe, think about it this way. If someone installs your snap on a clean install of Ubuntu, what's going to happen?17:45
kyrofacholcombe, you can't depend on a deb17:45
cholcombethen yeah targetcli's python script will be missing17:45
kyrofacholcombe, so an interface isn't going to help you here17:45
cholcombeand tcmu-runner whatever that is.  it's also complaining about that17:45
kyrofaOh man. Out of coffee before 10am. This will not be a good day17:46
cholcombeah crap tcmu-runner is another C program i need to snap17:46
cholcombeso yeah i guess i should package this all together17:47
kyrofaYeah I think so17:47
kyrofacholcombe, just consider what happens if someone installed your snap alongside, I dunno, the ceph snap that also bundles those things (let's assume). Will it still work okay?17:47
cholcombei'm not sure17:48
cholcombeceph will likely also want iscsi targets17:48
cholcombeit's unlikely they'll both be on the same machine but you never know17:48
kyrofaYeah it doesn't really change what you need to do (just bundle them), just something to keep in mind17:49
cholcombeok17:49
=== apw_ is now known as apw
mupPR snapcraft#1169 closed: tests: update the ftp source for integration test <Created by elopio> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1169>19:21
=== JanC is now known as Guest50506
=== JanC_ is now known as JanC
mupPR snapd#2983 opened: Support spread testing with proxy <Created by nuclearbob> <https://github.com/snapcore/snapd/pull/2983>19:51
kyrofajdstrand, within a snap, /tmp used to be unique to each app20:27
kyrofajdstrand, is that no longer the case? i.e. is the same /tmp/ shared across apps in the same snap?20:27
kyrofajdstrand, I guess it was specific to the instantiation, huh20:27
kyrofajdstrand, but has that changed?20:28
=== josepht` is now known as josepht
jdstrandkyrofa: /tmp is shared across commands in the same snap20:31
kyrofajdstrand, do you remember when that change was introduced? Or was is all snap-confine?20:32
jdstrandkyrofa: all commands share the same mount namespace. this is part of the reason why the snap-update-ns exists20:32
jdstrandkyrofa: iirc it was snap-confine 1.0.4320:32
kyrofajdstrand, wonderful, that really simplifies some things20:32
jdstrandsnap-update-ns issue*20:36
cholcombekyrofa: gluster-blockd makes a unix socket in /var/run/gluster-blockd.socket.  If i want to access that from a user space program do i need to do anything special?20:46
cholcombei guess i'm asking which way the confinement goes.20:46
kyrofacholcombe, gluster-blockd is the thing you're trying to snap? And "a user space program" is outside of snaps?20:47
cholcombecorrect20:47
cholcombecan user space programs access that socket or does it go both ways and i have to be in the snap to access it?20:47
kyrofacholcombe, you wouldn't need to do anything special from the user-space point of view, but I don't think a confined snap can place something directly in /var/run20:47
cholcombeok20:47
cholcombeyeah i'm still in dev mode20:48
kyrofacholcombe, for the most part, you're not running a chroot (ala docker or lxd)20:48
cholcombeok20:48
kyrofacholcombe, well, I guess that's not quite right nowadays20:49
kyrofacholcombe, you're essentially chrooted into the core snap with stuff from the system bind-mounted in20:49
cholcombei see20:49
cholcombethat's what i thinking20:50
cholcombeso if i stay in classic of dev mode i'm good to go.  but if i go strict i'm going to have issues with that unix socket20:50
kyrofacholcombe, indeed. If strict you'll need to put that somewhere the snap can actually write20:51
cholcombeyeah20:51
cholcombecoreycb: for https://github.com/open-iscsi/tcmu-runner/blob/91d23191f97937bb92c19cc73565c8ea73c3cc7e/CMakeLists.txt do you know how to set LIBNL_LIB in the snapcraft.yaml?21:03
coreycbcholcombe, it looks like you can set environment variables in snapcraft.yaml - https://bugs.launchpad.net/snappy/+bug/158325921:07
cholcombekyrofa: looks like tcmu-runner wants me to drop files into /etc/dbus-1/system.d21:07
mupBug #1583259: Snappy needs to influence environment variables in applications  <snap-desktop-issue> <verification-done> <Canonical Click Reviewers tools:Fix Released by jdstrand> <Snappy Launcher:Invalid> <Snapcraft:Fix Released by sergiusens> <Snappy:Fix Released> <click-reviewers-tools21:07
mup(Ubuntu):Fix Released> <click-reviewers-tools (Ubuntu Xenial):Fix Released> <click-reviewers-tools (Ubuntu Yakkety):Fix Released> <https://launchpad.net/bugs/1583259>21:07
kyrofacholcombe, so it needs the systemd dbus eh? That sounds like an interface21:07
cholcombecoreycb: cool thanks for21:07
cholcombekyrofa: like i need to write an interface or i just make use of one?21:08
kyrofacholcombe, I'm not quite sure. I've successfully avoided dbus in snaps so far, so I don't have experience to fall back on here. jdstrand can probably help you more21:09
cholcombeok21:09
jdstrandcholcombe: take a look at the dbus interface and specify 'bus: system'. that will give you the dbus policy in /etc/dbus-1/system.d21:10
cholcombejdstrand: ok21:10
jdstrandcholcombe: if that interface isn't enough for you, you will need to a new interface21:10
jdstrandto write*21:10
cholcombejdstrand: ok i'll take a peek in a minute21:11
jdstrandcholcombe: https://github.com/snapcore/snapd/wiki/Interfaces#dbus21:11
cholcombethis is prob a silly question but when i'm building snapcraft packages are all the dependencies being apt installed on my local system or are they in a chroot?21:12
kyrofacholcombe, no silly questions here :)21:12
cholcombe:)21:12
kyrofacholcombe, it actually depends21:12
kyrofacholcombe, which depedencies are we talking about? How are they specified?21:12
cholcombei guess the question is should i building in a lxc container21:13
cholcombeanything i say as build dependencies21:13
cholcombei'm wondering if i'm polluting my desktop with tons and tons of dev packages21:13
kyrofacholcombe, yep. build-packages are installed on the host21:13
cholcombeok21:13
kyrofacholcombe, stage-packages aren't-- they're unpacked right into the snap21:13
cholcombehmm alright21:13
kyrofacholcombe, indeed, every snap I personally build is in a new lxc container21:14
cholcombeyeah i was wondering :D21:14
cholcombei need to start doing that21:14
kyrofacholcombe, is also ensures that I determine ALL dependencies21:14
cholcombeexactly21:14
pmcgowankyrofa, does a configure hook run before or after connecting interfaces21:39
kyrofapmcgowan, neither, there are new hooks being written for that (called interface hooks)21:39
kyrofapmcgowan, oh wait, do you mean when installing?21:40
pmcgowankyrofa, well I mean in general21:40
kyrofapmcgowan, the configure hook won't run when you use `snap connect/disconnect`21:40
pmcgowanI just added a configure hook to my snap and now the content interface is not really connecting21:40
kyrofapmcgowan, interesting, that shouldn't affect anything there21:40
kyrofapmcgowan, do you get an error?21:41
pmcgowanwondering if its related before I back off21:41
pmcgowanno error21:41
kyrofaSo helpful :P21:41
pmcgowanjust that I should connect the interface21:41
pmcgowanwhih shows connected21:41
pmcgowankyrofa, I will back up and see then21:41
kyrofaHuh... not sure what's happening there21:41
Pharaoh_Atemwtf21:44
Pharaoh_Atemwhy is 2.23 not 2.23?21:44
Pharaoh_Atemthe snapd 2.23 tagged in git doesn't match what I expect it to be21:44
Pharaoh_Atemit's ~14 days old21:44
pmcgowankyrofa, oy, I removed the hook and it works again21:45
pmcgowanenough for friday21:45
kyrofapmcgowan, haha, okay, well ping me Monday then, happy to dig into that with you21:46
pmcgowankyrofa, k have a good weekend21:46
kyrofapmcgowan, you too!21:46
cholcombekyrofa: think you could take a quick peek at this? http://paste.ubuntu.com/24104552/  i'm trying to build the targetcli python part21:53
cholcombeit seems to build correctly and then fail21:53
cholcombei can paste my snapcraft.yaml also21:54
cholcombehttp://paste.ubuntu.com/24104562/21:55

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