/srv/irclogs.ubuntu.com/2016/07/21/#snappy.txt

qenghodiddledan: seccomp could totally change for that. Please file a bug report on "snappy" and then tag the report with "snapd-interface".00:58
qengho$ ubuntu-bug snappy00:58
goddardhow can i build my snappy package if it doesn't have the library version i need02:29
goddardit had a library i need from 14.04 but it isn't in 16.0402:29
qenghogoddard: You can get the source, assuming it's still online.02:32
goddardqengho: and then with the source it can build the project an automatically find the library?02:32
qenghogoddard: Library is another part. Get the source with a tag or branch name.02:33
qenghogoddard: Try it!02:33
goddardqengho: ok so i have to get the source of the library as well?02:33
qenghogoddard: I assume so!02:34
qenghogoddard: An example from my project:  http://bazaar.launchpad.net/~privacy-squad/+junk/tor-middle-relay-snap/view/head:/snapcraft.yaml02:34
qengho.../qt5/qml/Ubuntu/Components/1.3/Icon.qml:113:5: QML QQuickImage: Failed to get image from provider: image://theme/back03:57
qenghoArgh.03:57
qenghoI need more tables to flip.03:58
wililupyI lost it in my emails, how do I install the ubuntu-classic snap?05:31
wililupynm, found it.05:32
qenghowililupy: what is it? Someone will see your question.05:33
wililupyqengho: http://pastebin.ubuntu.com/20274792/05:34
qenghowililupy: thanks!05:35
mupPR snapd#1576 closed: interfaces/builtin: allow getsockopt for connected x11 plugs <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/1576>05:38
liuxgwhen I use license in snapcraft.yaml, it says "DEPRECATED: 'license' defined in snapcraft.yaml". what is the correct way to use a license file? thanks05:51
qengholiuxg: I think you want something in meta/ dir.05:58
liuxgqengho, it seems to me that the document is outdated. do you have an specific example for it?05:59
liuxgqengho, meta/dir is the one generated during the snapcraft, right?06:00
qengholiuxg: I have snapcraft source code!06:00
qengholiuxg:  meta/license.txt06:00
liuxgqengho, OK. In a snap project, we should not create the meta directory.06:00
qengholiuxg: oh, wait.  setup/license.txt06:01
liuxgqengho, everything must be from the snapcraft.yaml. so we need find something defined there.06:01
liuxgqengho, it seems right :)06:01
dholbachhey hey06:01
qenghoThe Holbach. Good morning.06:02
dholbach:-)06:02
dholbachhow are you all doing?06:02
liuxgqengho, I just moved it to the "setup" directory, however, it seems it is still the same.06:03
qenghoOkay. The Qt app I'm working on has inexplicable failure.06:03
qengholiuxg: remove "license" from your YAML.06:03
liuxgqengho, then how about the other fields like "license-agreement"?06:04
liuxgqengho, license-version?06:04
liuxgqengho, I did it at your suggestion, when I installed it, it did not prompt me to accept the license file.06:06
qengholiuxg: I think you need those. They are copied straight to snap YAML.06:06
liuxgqengho, i need them in the snapcraft.yaml?06:07
qengholiuxg: Yes, license-agreement and license-version .06:09
qengholicense-agreement: true  ?06:10
qenghoNot sure.06:10
liuxgqengho, http://paste.ubuntu.com/20278290/, is this right?06:11
qenghowo bu zhidao06:14
liuxgqengho, thanks!06:21
=== chihchun_afk is now known as chihchun
=== palasso_ is now known as palasso
kgunnrobert_ancell: https://bugs.launchpad.net/snappy/+bug/157485107:20
mupBug #1574851: libgl not found on nvidia machines (so far) <Snappy:Triaged> <nvidia-graphics-drivers-361 (Ubuntu):Confirmed> <https://launchpad.net/bugs/1574851>07:20
mupPR snapd#1571 closed: tests: add network-observe interface spread test <Created by fgimenez> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1571>07:26
mupPR snapcraft#677 opened: playing with caching <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/677>07:28
mupPR snapcraft#676 closed: Special handling for pc files for conflicts <Created by sergiusens> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/676>07:34
mupPR snapcraft#678 opened: Release debian/changelog for 2.13 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/678>09:14
seb128sergiusens, hey, it was nicer when snapcraft changelog had a summary of the changes, more exciting as an user09:16
seb128the new format doesn't motivates me to update09:16
seb128like I don't see anything fancy/useful listed and I'm like "bah"09:16
* kalikiana wonders how to get rid of manpages and include files: snapcraft always fails when using "stage" to drop folders from parts/*/install09:28
didrockszyga: http://paste.ubuntu.com/20290323/09:31
qenghokalikiana: I see that sometimes too.  :(09:32
qenghokalikiana: I think, anyway. What is your error message?09:32
kalikianastage:09:35
kalikiana    - -share/man09:35
kalikiana[Errno 2] File or folder doesn't exist: '/home/cris/bau/neovim/stage/share/man/man1/nvim.1'09:35
qenghokalikiana: is that during a clean build, or an update?09:42
qenghokalikiana: I think we need a report of that bug. Do you mind filing it?  $ ubuntu-bug snapcraft  #probably09:43
qengho(Distro agnosticism is making support harder.)09:43
kalikianaqengho: Either one, makes no difference09:50
kalikianaWell, ubuntu-bug should  be snapped, problem solved ;-)09:50
qenghokalikiana: You are a genius.09:54
kalikianahttps://bugs.launchpad.net/snapcraft/+bug/160516409:55
mupBug #1605164: Errors due to "missing" files using "stage:" <Snapcraft:New> <https://launchpad.net/bugs/1605164>09:55
* qengho hugs kalikiana.10:08
CavanWhats a simple run command for an snap I've created?10:22
kalikianaSNAPNAME.APPNAME or SNAPNAME if SNAPNAME==APPNAME10:23
kalikianaThat's the formula10:23
kalikianaAnd if it's a service it becomes snap.SNAPNAME.APPNAME10:24
qenghoCavan: so, it's your defined command block name, or cavansnapname dot commandname if they're different.10:26
CavanI created a generic randomly named command in the .yaml and when I try to snap I get the error 'The specified command 'zep' defined in the app 'zep' does not exist or is not executable'10:27
Cavanqengho*10:27
qenghoCavan: $ find prime -type f -name zep |sed -e s,^prime/,,10:33
Cavanqengho, nothing visable happens on the terminal after i type the command10:35
qenghoCavan: then inside your snap result, you are not making something called "zep". Explore that "prime" tree.10:37
qengho$ find prime |more10:37
Cavanqengho, basically I'm trying to snap Apache Zeppelin, but I cant figure out how to run the snap. It only seems to run as a service when Its a Deamon and wont let me run it as a executable10:38
qenghoCavan: Check the tree I said^. You're either not compiling what you think, or it's not called what you think.10:39
qenghoCavan: Er, wait, it's running in one command block and not in another? Same name?10:40
Cavanquengho, Originally it looked like this 'apps:  zeppelin:    command: bin/wrapper    daemon: simple    plugs: [network-bind]' And the service ran fine, but I cant do anything else with it. SO I tried changing it to this 'apps:  zep:    command: zep    plugs: [network-bind]' to see if I can run it but now it does nothing10:42
qenghoCavan: You had a program called /bin/wrapper. It worked. Now you're trying to run /zep and it's not working. It's because /zep inside the snap is not a program10:43
qenghoCavan, maybe you should look at bin/wrapper to see what it runs.10:44
Cavanquengho, Can I paste the wrappen in chat so you can have a look if you dont mind?10:45
qenghoCavan: Did you look?10:46
Cavanqengho, Yeah there is a frew exports with file paths10:47
qenghoCavan: The short of it is after "command: " is a real live file inside snap, and you can't just invent a name to put there. It has to be something that exists.10:47
Cavanqengho, that makes sense aha, I'm very new to this10:48
qenghoCavan: The short of it is, after "command: ", is a real live file inside the snap, and you can NOT just invent a name to put there. It has to be something that exists.10:48
qenghoCavan: The name after "apps:", that begins the next block IS a name that you invent. It can be anything. The command: part coming after that is the name of somethign on disk, and you have no liberty there.10:51
=== hikiko is now known as hikiko|ln
=== hikiko|ln is now known as hikiko
=== chihchun is now known as chihchun_afk
=== ILoveUbuntuYou2 is now known as ILoveArchLnx
ILoveArchLnxGot some haters in the #ubuntu chat... pretty quick to ban/kick... no jesting allowed? do we have senses of humor in this room? How's everyone doing today/tonight?11:56
ILoveArchLnxNot looking to troll, just want to participate in some chatting11:57
timothyILoveArchLnx: good nick11:57
sborovkovHi. So any ideas what I could do about getpwuid() failing on classic? should I file a bug?11:57
ILoveArchLnxthank you timothy!11:57
ILoveArchLnxIf I ask the wrong question though I might get banned... I was really honestly looking to find out more about Snappy packages but I asked if they are newer than normal LTS and poof.. ban hammer.11:57
ILoveArchLnxprobably that question plus my nick... probably looked like trolling so I understand but garsh it was quick11:58
davmor2ILoveArchLnx: snapcraft.io will tell you most of what you want to know11:59
ILoveArchLnxthanks davmor2 ! You are amazing.11:59
ILoveArchLnxwhoa snaps on the Arch!?12:00
ILoveArchLnx... holy awesome?12:00
timothyyes, I maintain it12:00
ILoveArchLnxtimothy I love you man, you are my hero.12:00
ILoveArchLnxI only maintain a couple AUR packages but I would love to one day help contribute to something bigger than myself such as this. Are the snaps pretty much "on-par" with normal Arch packages as far as "in-line" with developer stable releases??12:01
ILoveArchLnx"more in-line" I should say. Still takes maintainers but yes, are Snaps pretty "fresh" so to speak?12:02
timothyit depends, snap are only a "cointainer". people can put it anything they want12:02
timothyfor example we have vlc "daily" snaps12:02
ILoveArchLnxoh... like a jail or chroot? or more so like a Docker/rkt container?12:02
ILoveArchLnxdoes it use lvm or some form of virtualized file-system and fs manager?12:03
timothyit uses squashfs images + something to do containment12:03
ILoveArchLnxor kernel level?? I'm excited sorry for the crazyness and I haven't slept and coffee lol12:03
timothyin http://snapcraft.io/ you'll find any information12:03
ILoveArchLnxnice, I've heard of squashfs but haven't read much into it12:03
ILoveArchLnxOh ok, thanks bud! I'll do some reading. I might be back later to talk someone's ear off if they have one they want talked off :) I like to conversate. Learning from books is awesome and so is learning from people.12:04
ILoveArchLnxlove love love learning!12:04
ILoveArchLnxthanks everyone! see you all around sometime!12:04
ILoveArchLnxyou rock timothy !!12:05
Cavanhow do I stop a service?12:05
sborovkovzyga: I don't see real /etc/passwd actually in ubuntu-core on classic. It's very similar file but has no ubuntu user for instance. Same with /etc/group, /etc/shadow. They are a bit different from real one12:06
zygasborovkov: you must be running an older version of snap-confine then12:07
ogra_there should never be an ubuntu user inside /etc/passwd ... it should be in var/lib/extrausers12:07
zygasborovkov: the one coming out of the sru will be okay12:07
zygaogra_: this is classic )12:07
sborovkovsru?12:08
ogra_zyga, i thought he looks at the ubuntu-core snap under classic12:08
qenghoCavan: Use "systemctl".12:08
mupBug #1605216 opened: cups-control interface doesn't allow printing <Snappy:New> <https://launchpad.net/bugs/1605216>12:08
sborovkovogra_: well it'ubuntu user is in /etc/passwd. From what zyga told me I should see the real one in ubuntu-core. And that's where I saw the difference12:09
sborovkovso what's sru?12:09
ogra_a stable release update12:09
ogra_(of a package)12:09
sergiusensseb128 it was an SRU team requirement for me to do the changelog this way12:11
seb128?!12:11
seb128who in the SRU team?12:12
seb128also SRU rules don't apply to yakkety :p12:12
zygasborovkov: you see the non-real one in /snap/ubuntu-core/current/etc/passwd12:13
zygasborovkov: run a shell inside a snap and see again12:13
zygasborovkov: sudo snap installl snapd-hacker-toolbelt12:13
tsimonq2sergiusens: it owuld be nice to land my debian/control changes as well ;)12:13
zygasborovkov: snapd-hackert-toolbelt.busybox sh12:13
tsimonq2*would12:13
Cavanqengho, is there any specific command or help I can type to terminate the service, Cant seem to find it through that12:13
sergiusensseb128 yeah, but I use the same changelog for each12:14
qenghoCavan: "systemctl |grep yourservicename", "servicectl stop fullservicename"12:14
seb128sergiusens, who in the SRU team told you that you can't describe what is new in the update?12:16
seb128I want to talk to them12:16
sergiusensseb128 -> slangasek12:16
seb128that's nonsense12:16
seb128sergiusens, thanks12:16
sergiusensseb128 it is common practice in other packages though, isn't it?12:16
seb128slangasek, hey, can you explain why a snapcraft SRU couldn't have its changelog to use " * new upstream version (lp...)\n-new option\n-nicer log\n-updated manpages"?12:17
MonkeyDusthi, trying snappy for the first time, in a ubuntu 16.04 chroot ... when typing 'snap list', it returns this error ... hint & tips please ... http://paste.ubuntu.com/20301926/12:17
seb128sergiusens, it's not uncommon but I tend to have "- ..." subitems describing the most interesting changes so users know what they get12:18
seb128also most SRUs are not version updates but specific changes and those are detailed12:18
seb128sergiusens, see e.g https://launchpad.net/ubuntu/+source/unity/7.4.0+16.04.20160715-0ubuntu112:19
Cavanqengho, I ran both commands and the service is still running?12:20
qenghoCavan: How can you tell?12:20
Cavanqengho, systemctl list-unit-files '*snap*'12:20
qenghoCavan: does that say if it's running? I don't think so.12:21
Cavanqengho, ah yeah sorry, the local host has stopped aswell, thanks!12:22
qenghoCavan: If it is, you have your daemon misconfigured. See the "daemon: VALUE" in your snapcraft YAML.12:22
dholbachtsimonq2, https://www.youtube.com/watch?v=nPFMcZLdmog ← nice work12:24
dholbach^ dpm, davidcalle, didrocks, popey, mhall11912:24
tsimonq2hey woah dholbach that talks about my PR being merged being in the past tense12:25
tsimonq2dholbach: not really ready to show everyone yet :P12:25
dholbachok, I won't share it on @snapcraftio just yet then :-)12:26
dholbachI thought your PR had already landed12:26
tsimonq2hold your horses :)12:26
sborovkovzyga: indeed. there is ubuntu when I do it that way. Does that mean that getpwuid fails because of some other reason?12:26
tsimonq2dholbach: and btw my video is actually decent? :D12:27
dholbachtsimonq2, very much so12:27
dholbachnice work12:27
dholbachlet me know when I can share it publicly :)12:28
=== chihchun_afk is now known as chihchun
=== King_InuYasha is now known as Son_Goku
kalikianaqengho: Wrt bug 1605164 I saw another yaml using "snap" instead of stage/prime as "snapcraft help plugins" suggests and tried that. That seems to work - I still don't get the behavior of "stage" but it does what I need.12:44
mupBug #1605164: Errors due to "missing" files using "stage:" <Snapcraft:New> <https://launchpad.net/bugs/1605164>12:44
qenghokalikiana: Right, that changes which step omits that file from copying. It should work either place.12:46
kalikianaqengho: I added the info to the bug. Me thinks the documentation here is lacking.12:47
kalikianaWhatever stage does I cannot figure out at all12:47
qenghoThx.12:47
kalikianaShaved 1M off my snap thanks to dropping unnecessary docs and headers :-D12:48
qenghoNice.12:48
qenghoI need to do the same. I'll follow your lead.12:49
kalikianaGrrr I really think "snap install/remove" should tell me if it finds running instances of commands from a snap, it's annoying that it's getting stuck all the time.12:53
qenghokalikiana: I reported that already. https://bugs.launchpad.net/snappy/+bug/158767612:55
mupBug #1587676: forked, background processes can prevent "snap remove" with unhelpful message <Snappy:New> <https://launchpad.net/bugs/1587676>12:55
kalikianaqengho: Oh, nice, thanks12:58
MonkeyDusthi, trying snappy for the first time, in a ubuntu 16.04 chroot ... when typing 'snap list', it returns this error ... hint & tips please ... http://paste.ubuntu.com/20301926/13:06
qenghoMonkeyDust: "chroot"?13:08
MonkeyDustqengho  are you not familiar with chroot?13:09
qenghoMonkeyDust: snappy is snapd, and a kernel that has special security and filesystem features. I don't know what you're doing with chroot, but I would be astonished if it were enough.13:10
MonkeyDustqengho  ok, then that's it, cannot be done in a chroot, thanks13:10
qenghoMonkeyDust: it's not just a bunch of files on disk. I don't think chroot will do it.13:10
MonkeyDustqengho  then let that be my first 'snappy lesson'13:11
qenghoMonkeyDust: Your kernel might be enough. I don't know how you're going to hook to the main systemd, though, and that message looks like snapd isn't running.13:12
kalikianaInteresting, all my terminals now hang indefinitely while "snap install" is stuck spinning "security profiles"13:14
mupBug #1605250 opened: the snap of the interface is combined with that of the only issue with the theme ambiance <Snappy:New> <https://launchpad.net/bugs/1605250>13:15
tsimonq2sergiusens: can you take another look at snapcraft#619 ?13:21
mupPR snapcraft#619: Add source-checksum option <Created by tsimonq2> <https://github.com/snapcore/snapcraft/pull/619>13:21
qenghokalikiana: I bet "lsof |grep /snap" will illuminate you.13:21
tsimonq2dholbach: snapcraft#619 is my PR ;)13:22
liuxgsergiusens, I have tried your telegram app, which is cool. A shortcoming is that it does not support Chinese though I have tried to install the Chinese fonts by modifying it. Now, the new snapcraft.yaml looks like http://paste.ubuntu.com/20307314/ what could be the problem for it? thanks13:24
zygasborovkov: which version of snap-confine or ubuntu-core-launcher are you using?13:26
=== chihchun is now known as chihchun_afk
mupBug #1605258 opened: SNAPD_DEBUG_HTTP should print HTTP headers <Snappy:New> <https://launchpad.net/bugs/1605258>13:39
kalikianaqengho: "all my terminals hang indefinitely" ;-) After having rebooted my guess is snapd ate all my RAM13:40
mupPR snapcraft#679 opened: add multiple generator script options to autotools <Created by apachelogger> <https://github.com/snapcore/snapcraft/pull/679>13:41
sborovkovzyga: snapd 2.0.10, ubuntu-core-launcher 1.0.27.113:41
mhall119zyga: I won't be able to make our weekly call today, but I figure you're busy this week too :)13:46
mhall119shall we catch up next week?13:46
mupPR snapcraft#678 closed: Release debian/changelog for 2.13 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/678>13:50
CavanI snapped Zeppelin but when I run the local host its connecting after install?13:54
kalikianaIf it's a service, yes13:55
mhall119zyga: kyrofa: would it make sense for $HOME to be /home/$USER/ when a snap is connected to the "home" interface?13:57
mhall119otherwise things like opening files in Geany become tedious13:57
CavanI snapped Zeppelin but when I run the local host its not* connecting after install?14:01
Cavanmisstype14:02
zygamhall119: maybe, we talked about it as something to explore for the caja snap14:18
zygamhall119: but then again we wanted the home interface to be provisional and temporary14:18
dholbachdidrocks, https://travis-ci.org/ubuntu/snappy-playpen/builds/146207147 - could it be that we need to add 'git' to the docker image?14:19
zygamhall119: yes, let's catch up next week (I'll be sprinting again but I'll try to make it)14:19
zygasborovkov: you probabyl want 1.0.38 for snap-confine14:19
zygasborovkov: wait for the SRU or try proposed14:19
sborovkovzyga: proposed as in not stable version yet? How do I upgrade to it14:20
diddledanergh @ wrong package: https://bugs.launchpad.net/ubuntu/+source/snappy-player/+bug/160527314:29
mupBug #1605273: Seccomp should allow fchown() with current userid/groupid <amd64> <apport-bug> <snapd-interface> <xenial> <snappy-player (Ubuntu):New> <https://launchpad.net/bugs/1605273>14:29
diddledansorry, can someone let me know what the correct package should be? snappy-player was automatic14:29
CavanCant get the snapped Zeppelin to run in local host, any ideas?14:30
jdstranddiddledan: I fixed it14:31
diddledanthankyou14:31
slangasekseb128, sergiusens: I did not say that the SRU changelog can't describe the contents of the update; I said that a package that has an SRU exception shouldn't include extra bug references in the changelog14:55
CavanHow would I reference a spark plugin through the .yaml?14:57
dholbachCavan, is this a plugin you wrote?14:59
dholbachhttp://snapcraft.io/docs/build-snaps/plugins15:00
boghisonCan someone please take a look? https://github.com/snapcore/snapcraft/pull/57915:01
mupPR snapcraft#579: Add new plugin: rust <code-conflict> <Created by mariogrip> <Conflict> <https://github.com/snapcore/snapcraft/pull/579>15:01
Cavandholbach, I didnt use that but I'm about to15:02
dholbachCavan, nice15:02
seb128slangasek, sergiusens, ha, that makes more sense to me ;-)15:02
dholbachboghison, everybody's at a sprint right now, so code reviews could take a bit longer this week15:03
josephtboghison: there are still conflicts in that PR15:03
boghisonjosepht: Last message15:03
josephtboghison: did you push to the correct branch?15:04
boghisonjosepht: What do you mean? This is a commit in master in my fork of the OP's fork. I just want to fix those test issues and then the commit can be merged (he's still the author)15:06
josephtboghison: sorry, I was confused.  I'll take a look in a bit.15:25
seb128is that a known issue?15:25
seb128"ecryptfs_dir_open: Error attempting to initialize the lower file for the dentry with name [/]; rc = [-13]"15:25
seb128snaps refuse to start on my xenial I think due to that error15:25
seb128jdstrand, ^ do you know about that?15:25
boghisonjosepht: No worries :)15:25
jdstrandI think that is likely fixed in the ucl that is trying to find its way in xenial. add this to /etc/apparmor.d/usr.bin.ubuntu-core-launcher : http://paste.ubuntu.com/20187635/, then do sudo apparmor_parser -r /etc/apparmor.d/usr.bin.ubuntu-core-launcher15:28
seb128jdstrand, thanks, I tried the proposed version and it fails on another issue, "cannot bind mount /media to /tmp/snap.rootfs_TOuoFW/media. errmsg: Permission denied"15:28
seb128[  179.919020] audit: type=1400 audit(1469114803.329:42): apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine" name="/tmp/snap.rootfs_TOuoFW/media/" pid=6392 comm="ubuntu-core-lau" srcname="/media/" flags="rw, rbind"15:28
seb128let me go back to the previous version with your change15:29
jdstrandzyga: fyi ^15:29
jdstrandI saw /mdeia/ changes go through when I was on holiday15:29
seb128things were working a week ago15:30
seb128unsure what changed/regressed15:30
seb128I hope it doesn't mean we got a regression/snappy not working on ecryptfs in .115:30
jdstrandxenial still has 1.0.27.115:30
jdstrandthat has the ecryptfs fix15:30
seb128that's the version I have15:30
seb128Paramétrage de ubuntu-core-launcher (1.0.27.1) ...15:30
seb128$ gnome-logs-udt.bash15:31
seb128failed to create user data directory. errmsg: Permission denied15:31
jdstrandI fixed the ecryptfs policy a long time ago but with the snap-confine rename, etc, it never made it to sru15:31
jdstrandso, when you upgraded, you would have gotten the ecryptfs change, but there was that /media/ issue. downgrading would have reverted the ecryptfs fix and you'd need the workaround again15:31
seb128k15:32
SamYaplereviews and merges for PRs in snapcraft seem to take a while. anything I can do to help with that?15:32
seb128but things were working on that machine a week ago15:32
SamYapleI have some week old PRs I would like to see merged15:32
seb128I wonder why that just started being an issue15:32
jdstrandseb128: I'm fairly certain I gave you the work around policy before15:32
jdstrandso it would've been working15:32
seb128oh, maybe I had it for a long time and forgot about it15:32
jdstrandright15:32
seb128k15:32
seb128thanks jdstrand15:32
jdstrandlike I said, this sru has been many weeks15:33
* jdstrand will be glad when it lands15:33
seb128well I didn't have the snap-confine binary before now15:33
seb128so I wonder what reverted my local change15:33
seb128but doesn't matter much15:33
jdstrandSamYaple: I think one of those is on my todo-- I was on holiday until yesterday15:33
jdstrandthe upgrade would've removed the ubuntu-core-launcher profile and the reinstall would've put it back15:34
mupBug #1589527 changed: Debug option for http requests <Snappy:Fix Released by chipaca> <https://launchpad.net/bugs/1589527>15:34
SamYaplejdstrand: no rush, I just want to make sure whoever is goign to review it isn't waiting on me for anything15:34
jdstrandSamYaple: also, most snappy devs are sprinting this week15:34
SamYaplejdstrand: im trying to get the python2 and python3 plugins into shape so I can start packaging openstack15:34
seb128jdstrand, back to a working system, thanks!15:35
SamYaplejdstrand: does that mean more or less PR attention?15:35
jdstrandSamYaple: anything that is needed from you should show up in the pr, so you should be fine15:35
jdstrandSamYaple: not sure-- that sounds like something for the snapcraft devs (also sprinting)15:36
SamYaplealrighty. well thanks for the info15:36
SamYaplei believe someone mentioned being able to use a single snap but launching different daemons from it, i havent been able to figure that out yet15:38
SamYaplecan anyone point me in the right direction?15:38
jdstrandSamYaple: if I understand your question, if you have 3 services you want to start on boot, you just do:15:41
jdstrandapps:15:41
jdstrand  foo:15:41
jdstrand    command: ...15:41
jdstrand    daemon: simple15:41
jdstrand  bar:15:41
jdstrand    command: ...15:41
jdstrand    daemon: simple15:42
jdstrand  baz:15:42
jdstrand    command: ...15:42
jdstrand    daemon: simple15:42
SamYaplenot quite, in your example I have tree services foo, bar, baz, they _can_ all run with the snap, but they should also be able to run without eachother15:42
jdstrandyou can have as many entries in 'apps' as you want. drop 'daemon: simple' for something you want exposed in /snap/bin15:42
SamYapleso foo is on node1 and bar is on node215:43
SamYaples/tree/three/15:43
SamYapleso if a snap has multiple daemons, I want to be able to only run a subset of those, is that possible?15:44
jdstrandSamYaple: otoh one was to solve that would be ship foo, bar and baz, but not expose them in 'apps', and create a manager application that is exposed via 'apps'. the manager application starts/stops foo, bar and baz based on communications with other nodes15:44
jdstrandSamYaple: yes, you can ship all kinds of things in your snap including internal binaries, then you can control what runs when via something that is external (ie, in 'apps')15:45
jdstrandSamYaple: another way to do it would be to expose foo, bar and baz in 'apps', but have all of them honor a config file that something else manages15:47
SamYaplejdstrand: right thats what I was thinking15:47
SamYaplebut rather a manager like you suggested first15:47
SamYaplei think that can work15:47
SamYaplejdstrand: i think im following you. let me play around with ti for a bit and see if can make it do what im thinking15:48
jdstrandSamYaple: note, if you are starting and stopping services yourself, you can't tie those services into the systemd boot (ie, the manager app owns all parts of the lifecycle for those)15:48
SamYaplejdstrand: ok thats what I thought. so if I lay down a service file and tell it to run foo.service1 and seperate one for foo.service2 then i should be good?15:49
jdstrandthe managing of config files would allow those to tie into systemd. it all depends on what you need15:49
SamYaplei think im with you. ill just need some testing to fully wrap my brain around it15:50
jdstrandSamYaple: well, no-- that is what I was saying won't work. the only way you get service files is through daemon declarations in 'apps' (and you can only control the contents of those via the yaml directives-- you can't supply a service file).15:51
jdstrandSamYaple: so if you try the first approach (manager launches things), you need to have all tha launching and management logic in the manager. if you use the second approach (all are daemons declared in 'apps' but they consult a config file you control on whether to actually start or not), then you can use systemd15:52
jdstrandand the manager just manages the config files15:52
SamYaplejdstrand: hmm should that not work though through systemd? lets say something simple like a uwsgi api, i can just launch `/snap/bin/foo.uswgi /path/to/config`?15:53
jdstrandsure that would work15:53
SamYapleok thats what I was thinking of doing.15:54
jdstrandI thought you implied corrdination via nodes, which is why I tossed the manager in there15:54
SamYaplenah there is outside corrdination, the service itself is unaware15:54
lfaraoneDuring a `plugin: python2` part, are `stage-packages` supposed to be made available during the Snap build? I'm having issues building a snap that depends on `psycopg2` -- it fails with "    Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.", but both15:54
lfaraone`postgres-server-dev-all` and `ligpq-dev` are listed in `stage-packages`.15:54
SamYaplelfaraone: that should be build-packages no?15:55
lfaraonethat sounds more correct, yes. :)15:55
jdstrandSamYaple: make sure the config is in $SNAP_DATA somewhere (ie, the writable area), then the admin or whatever can adjust it15:55
SamYaplejdstrand: im new here, im not sure what $SNAP_DATA is refering too? (or maybe I am but I am confused)15:56
jdstrandSamYaple: an environment variable. you can see all the env vars by install hello-world then doing: hello-world.env |grep SNAP15:57
SamYapleok will check15:58
jdstrandSamYaple: or play around with hello-world.sh which gives you a shell running under confinement15:58
SamYaplejdstrand: so question here. for an explict example, I am using snappy to package openstack keystone and the replace a baremetal installed keystone service, its configs are located at /etc/keystone and I am hardcoding that into the snap, is this wrong?16:05
CavanStill having problems getting Apache Zepplin to work, just wont load into the localhost16:09
jdstrandSamYaple: yes-- snaps have readable and writable areas available to them separate from each other and the system16:13
jdstrandSamYaple: you'll want to put things that don't change in $SNAP (the install directory) and things that will change in $SNAP_DATA (the data directory)16:14
SamYapleup until now i was just backing in the config for testing, but i think this might be an issue. the config needs to stay in /etc/keystone (not be moved to $SNAP_DATA)16:15
SamYaplethats not possible is it?16:15
jdstrandSamYaple: davidcalle and/or dholbach should be able to point you at up-to-date docs to help you. There is https://developer.ubuntu.com/en/snappy/guides/ but some of that is for series 15.04 and not series 1616:15
jdstrandSamYaple: that is not allowed, no. you'll need to adjust your code to use /var/snap/keystone/current/etc/keystone or honor $SNAP_DATA (ideally the latter)16:16
SamYaplewell thats a real shame. thats a limitation im not going to be able to work around. for just about anything I would want to use snappy for16:19
jdstrandSamYaple: why? it shouldn't be hard to adjust code to check the env var? that said, you might be interested in https://bugs.launchpad.net/snapcraft/+bug/157751416:20
mupBug #1577514: Support preloading to make snaps feel at home <snapd-interface> <Snapcraft:Triaged by sergiusens> <https://launchpad.net/bugs/1577514>16:20
jdstrandSamYaple: once implemented, that would allow you to declare what paths should be mapped without code changes16:21
jdstrandSamYaple: eg, the code would use /etc/keystone, but you'd declare to map /etc/keystone to $SNAP_DATA/etc/keystone16:21
SamYaplejdstrand: to answer your first question, no I can't adjust code to use an env variable, nor would I want to adjust code to be specific for a packing tool16:24
SamYapleonce what you are describing is implemented I can revisit the issue. its a pretty hard stop for me right now. im rackign my brain for other solutions16:24
SamYaplehmm even if thats implemented, sharing sockets still won't be possible will it?16:28
SamYaplewell. maybe. i guess it would depend on the implementation16:28
jdstrandSamYaple: a named socket should be doable using the same technique. anonymous sockets are allowed today and abstract sockets will be when bug #1604967 is implemented16:34
mupBug #1604967: Apparmor denies bind to abstract unix sockets such as @/var/lib/juju/mutex-/store-lock <snapd-interface> <Snappy:Triaged by jdstrand> <https://launchpad.net/bugs/1604967>16:34
jdstrandSamYaple: another approach would be adding interfaces for openstack16:35
jdstrandSamYaple: (I might also mention that /etc isn't allowed in part because /etc is mounted readonly on all-snaps systems)16:35
jdstrandSamYaple: ok, I noticed https://bugs.launchpad.net/snapcraft/+bug/1577514 didn't have a lot of detail so I tried to give some and asked for clarity on the priority and implementation. would you mind describing your use case and that the lack of this feature is a showstopper for you?16:48
mupBug #1577514: Support preloading to make snaps feel at home <snapd-interface> <Snapcraft:Triaged by sergiusens> <https://launchpad.net/bugs/1577514>16:48
Croephaanyone here get pulseaudo to work on ubuntu-core? im trying to run it in a chroot, but udev isn't reporting back any sound cards16:49
jdstrandniemeyer: hey, would you mind looking at https://bugs.launchpad.net/snapcraft/+bug/1577514/comments/6 (and (potentially) later comments) and ask JamieBennett (not on irc now) to take a look too? maybe you can have a hallway conversation to get the priority sorted (it came up again today in the context of openstack)16:51
mupBug #1577514: Support preloading to make snaps feel at home <snapd-interface> <Snapcraft:Triaged by sergiusens> <https://launchpad.net/bugs/1577514>16:51
CavanIf the bin/ doesnt have a wrapper what should I direct it to? The snaps I've made have all had wrappers so I'm a tad confused16:57
SamYaplejdstrand: its a showstopper for _me_ because I dont have the ability to control the config files locations. more accurately the projects I am attempting to integrate snappy with only use /etc/* folders for config files17:10
SamYaplejdstrand: from a technical perspective, it should be doable. from a practicle perspective, not being able to pull in /etc/* configs is a sever limitation17:11
SamYaplethough there is always that occasion program that was coded poorly and hard codes a /etc/* conf into the source code too17:12
boghisonjosepht: Any news?17:17
josephtboghison: none yet17:23
ilivI accidentally ran snap remove for a package that was mounted. snap was trying to remove it but it couldn't succeed for a long time so I interrupted its execution with Ctrl-C. Now when I try to run remove or install I get this error message:17:33
iliverror: cannot remove "PKGNAME": snap "PKGNAME" has changes in progress17:33
ilivhow do I clean up this mess?17:33
balloonsopen question -- does anyone know why after installing a snap, I don't get the binary in my PATH? How can I add snap binaries back to my path?17:33
ilivballoons, what is your PATH/17:34
iliv?17:34
ilivballoons, also, are you invoking your command in this format: pkgname.command ?17:35
balloonsiliv, /home/nskaggs/.local/share/umake/nodejs/nodejs-lang/bin:/home/nskaggs/.node_modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/bin:/home/nskaggs/projects/go/bin17:35
ilivfor example, mypackage.telnet17:35
ilivballoons, this is what I have on my system:17:36
iliv$ env |grep PATH17:36
ilivPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin17:36
balloonsiliv, see for example: http://paste.ubuntu.com/20333336/17:36
ilivnot the /snap/bin at the end of the line17:36
balloonsiliv, that was the ticket, ty. I'm just not sure why I didn't get it added17:37
ilivballoons, if memory serves, I didn't have to do anythign myself for it to be added to PATH17:38
ilivballoons,17:41
iliv$ grep "export PATH" /snap/hello/current/command-hello.wrapper17:41
ilivexport PATH="$SNAP/bin:$SNAP/usr/bin:$PATH"17:41
balloonsjdstrand, so I rebuilt my snap using the /var/snap path, and I'm trying to add unix addr="@/var/snap/@{SNAP_NAME}/**" as suggested. But it's not parsing the apparmor rule after I do it. What should it look like? http://paste.ubuntu.com/20334627/17:45
* balloons facepalms17:47
balloonsI missed a comma, sorry17:47
ilivballoons, that happens more often that you'd think ;)17:50
balloonswhat do you do in general with looking for config files in XDGDataHome?18:06
balloonshmm.. looks like using a bash script to launch18:19
renatuguys I created a interface for the calendar app, but I am getting this error: - Setup snap "ubuntu-calendar-app" (unset) security profiles (cannot setup mount for snap "ubuntu-calendar-app": cannot obtain mount security snippets for snap "ubuntu-calendar-app": unknown security system)19:48
renatuand the dbus connection is not working when running app19:48
gustavopadrehi guys, I'm really excited about snaps, could someone do a snap file of https://github.com/Aluxian/Whatsie21:21
josephtgustavopadre: there's a gulp plugin that would likely be helpful.  http://snapcraft.io/create/  We're happy to help21:29
gustavopadrejosepht, I don't know how to program at all, is there any snaps that emulates whatsapp web available already?21:31
=== JanC is now known as Guest9881
=== JanC_ is now known as JanC

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