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

mcphailDoes snap confinement affect dlopen() calls at all? My library is not getting found despite being in the LD_LIBRARY_PATH directory00:18
naccmcphail: is it in the snap's squashfs?00:22
mcphailnacc: yes. Also trying using "snap try" in uncompressed filesystem00:25
mcphailcode as per http://paste.ubuntu.com/23209466/ with the libglide2x.so file within the same directory with all the other libs, as per the LD_LIBRARY_PATH variable. Works OK when I set the same variable but run outside snap confinement00:30
mupPR snapcraft#815 closed: Replacing deprecated API for searching snaps <Created by cprov> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/815>00:48
mupPR snapcraft#817 closed: lxd: use built-in image streams <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/817>00:48
mupPR snapcraft#814 closed: Make source-depth a parameter and opt-in <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/814>01:00
mdye"snapcraft keys" reports that my default key is not enabled. I've somehow managed to botch registering it by attempting to register multiple keys. Is there a UI or API I can use to de-register or replace keys registered with the store?01:02
mwhudsonzyga: uploaded the thing01:08
cjwatsonmdye: Unfortunately not yet, though registering multiple keys should work fine.01:08
cjwatsonmdye: 2am here, so maybe send mail to the snapcraft list if you can't disentangle it?01:10
mdyecjwatson: alright; I've tried this "snapcraft -d register-key" after generating a new default key and snapcraft failed to register: snapcraft.storeapi.errors.StoreKeyRegistrationError: Key registration failed: Failed to save account-key-request assertion for account_id JmtGtPclFB8St7FNhFmDZ3ijMqEQIbl8: Unexpected response while processing assertion: {"detail":"could not add assertion (revision 0 is already the current01:12
mdyerevision)","error_list":[{"code":"invalid-revision","message":"invalid revision: could not add assertion (revision 0 is already the current revision)"}],"status":409,"title":"invalid revision","type":"assertions:v1:invalid-revision"}01:12
mdyehappy to post to the list if that seems like the right place to ask given the time01:12
cjwatsonWow that's an ugly error.  Suggests it's already registered, though.01:14
mdyeright, 409 conflict; I assumed b/c of the name? (default), not b/c of the GPG key's ID01:15
cjwatsonUnless it doesn't like it being called default.01:15
mdyeright01:15
cjwatsonYou could always call it something else.01:16
mdyeso can I generate my own key (instead of using snapcraft for it), register that, then still use the snap tools to sign with it?01:16
cjwatsonYou can just use "snap create-key some-other-name", "snapcraft register-key some-other-name".01:17
cjwatson(from memory)01:17
mdyegreat, thx01:17
mdyeand thx for the tools, guys. (zyga, others)01:18
cjwatsonWe'll have revocation soonish, but still needs some design work (outside of emergency handling)01:18
mupPR snapd#1953 opened: Pass through screenshots from snap store <Created by robert-ancell> <https://github.com/snapcore/snapd/pull/1953>03:43
=== fginther is now known as fginther|away
=== fginther|away is now known as fginther
zygamwhudson: o/04:31
zygamwhudson: thank you, I will work on getting it verified04:31
freelock[m]Hi04:52
freelock[m]I'm wondering if a snap package is a good fit for a problem I'm trying to solve... the problem is, I have a bunch of older PHP (Drupal sites) to manage, and a CLI tool to manage them (drush), but this is not happy on Ubuntu 16.0404:53
freelock[m]I run the actual sites in Docker containers, with an older version of PHP bundled in that Drupal 6 can handle -- these sites have way too many deprecated function calls that have been removed in PHP 7, which is in 16.0404:53
freelock[m]that all works great, but when I go use the shell tools, running those under php 7 fails completely. I know I can bundle my shell tools in single-run Docker containers, but I was wondering if a snap package might be a good alternative04:54
freelock[m]can you easily bundle older (or newer) versions of things like PHP (or gtk bindings, for another problem I'm trying to solve) in a snap package?04:55
=== cpaelzer_ is now known as cpaelzer
mwhudsonzyga: well you need to get an SRU team member to release it first :)05:42
mupPR snapd#1954 opened: Add store.requestOptions.ExtraHeaders so that individual requests can customise headers <Created by absoludity> <https://github.com/snapcore/snapd/pull/1954>05:56
zygamwhudson: hmm? I don't fully recall the process but AFAIK it gets into proposed and then is verified to be pushed to updates06:05
dholbachgood morning06:45
didrocksgood morning dholbach06:47
dholbachsalut didrocks06:47
mcphailDoes snap confinement affect dlopen() calls at all? My library is not getting found despite being in the LD_LIBRARY_PATH directory07:13
dholbachzyga, is https://github.com/ubuntu/snappy-playpen/pull/205 something you wanted to take a look at or validate? it looks like Cemil pinged you as well.07:24
mupPR ubuntu/snappy-playpen#205: Mesa demos <Created by camako> <https://github.com/ubuntu/snappy-playpen/pull/205>07:24
zygadholbach: looking07:24
dholbachcool, thanks07:26
mupPR snapd#1955 opened: docs: fix formating of HACKING.md "Testing snapd" <Created by mvo5> <https://github.com/snapcore/snapd/pull/1955>07:28
subh94I am getting error: cannot find signatures with metadata for snap while installing any snap package build on my system, System Information: Snapcraft Version: 2.17, Ubuntu 16.0.1. Even Demo Snap are also not working. Any help with how to resolve this issue.07:30
mvosubh94: can you please try "sudo snap install --dangerous snap-file.snap" ?07:31
mcphailsubh94: you now need to pass the --force-dangerous flag07:31
mwhudsonzyga: it doesn't get into proposed immediately, it sits here first: https://launchpad.net/ubuntu/xenial/+queue?queue_state=1&queue_text=07:33
mupPR snapd#1244 closed: snap: show snapname before the progress download <Decaying> <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/1244>07:33
techtonikwhat is the status of support on fedora?07:37
dholbachzyga, I think it's good to go from a playpen perspective07:43
mvotechtonik: zyga wil know the details but AFAIK its available in the fedora devel series07:54
mupPR snapd#1956 opened: many: show snap name before the download progress bar <Created by mvo5> <https://github.com/snapcore/snapd/pull/1956>08:35
fgimenezhey didrocks :) have a minute?08:45
didrocksfgimenez: I can make a minute :-)08:46
fgimenezdidrocks, great :) i'm trying to write a test for the gsettings interface, this is what i have so far https://github.com/snapcore/snapd/compare/master...fgimenez:spread-gsettings?expand=108:46
mectorsI get the following app armor problem when running an updated version of the nodered snap. Did not have this with the version that did not have nodes installed. What is this? Sep 21 07:56:24 ubuntu ubuntu-core-launcher[17194]: STARTING NODE-RED - /snap/nodered/x1/bin/node-red /snap/nodered/x1/settings.js /root/snap/nodered/x108:47
mectorsSep 21 07:56:25 ubuntu kernel: [56451.987557] audit: type=1400 audit(1474444585.481:4450): apparmor="DENIED" operation="open" profile="snap.nodered.red" name="/run/resolvconf/resolv.conf" pid=17199 comm="node" requested_mask="r" denied_mask="r" fsuid=0 ouid=008:47
fgimenezdidrocks, the idea is to install a test snap declaring a plug on gsettings, try to read/write a value with the plug connected and do the same with the plug disconnected, checking the error in that case08:47
didrocksfgimenez: ok, making sense08:48
didrocksI see that you are aware you need the home interface to be able to read the changed value08:48
fgimenezdidrocks, so far no luck however, i'm not sure if the test snap is properly defined, could you please take a look?08:48
didrocks(otherwise, you only get defaults)08:48
didrocksoh? I quickly browsed, and it seems ok…08:48
didrockswhat doesn't work?08:49
didrocksyou don't need the export in set/get if you are using the desktop-launcher normally08:50
fgimenezdidrocks, i'm getting this in the read operation http://paste.ubuntu.com/23210600/, this value seems to come from inside the snap because outside the value of that key is different08:50
fgimenezdidrocks, ah ok thanks good to know08:50
fgimenezdidrocks, what is worst is that the get operation works with the plug disconnected08:51
didrocksfgimenez: yeah, it's using the default08:51
didrocksok, let me try to build the snap08:52
fgimenezdidrocks, ok thanks a lot08:52
joc_mvo: hi, do you have any suggestions for how i might validate a snap.yaml file for a gadget snap?09:04
ogra_mvo, what happened to your pastebinit snap, would be really helpful to have it on images again09:04
ogra_joc_, you coudl show it to someone how knows them ;) (like me)09:04
joc_ogra_: ha, the manual approach09:05
didrocksfgimenez: same with glib-compile-schemas, you don't need them, the launcher does it for you on first run09:07
fgimenezdidrocks, ok thanks, i was getting "No schemas found" without it, maybe the exports were meesing things up09:10
ogra_joc_, in general the snap.yaml is pretty empty nowadays http://bazaar.launchpad.net/~snappy-dev/snappy-hub/snappy-systems/view/head:/pi2/meta/snap.yaml09:12
ogra_all valuable info moved to the gadget.yaml09:12
joc_ogra_: yeah this is really a slots issue i think, but it is tricky to validate the yaml if the slots are for interfaces that are Core or Gadget snap only09:13
didrocksfgimenez: you are missing dconf-gsettings-backend stage package09:13
ogra_oh, yeah09:13
didrocksfgimenez: I didn't add it by default as I'm unsure about adding it in the glib-only profile, then some people like ogra tells the launcher is pulling too many dependencies :)09:13
didrocksand glib-only is really minimal for that purpose09:14
didrocksthe rest is ok09:14
ogra_didrocks, i didnt say that since agess :P09:14
didrocksahah, you told it enough for a whole year at least! :)09:14
fgimenezdidrocks, ah ok, let me try that09:14
ogra_well, i still think it is overkill in cases where i only want font support to pull in a whole toolkit :)09:15
didrocksglib isn't a toolkit09:16
ogra_well or a library stack ... whatever09:16
ogra_Chipaca, hey09:21
ogra_you pung ?09:21
joc_ogra_: on the subject of gadget yaml, if you wanted to add some "content:" to the generic pc gadget (all snaps image) and you wanted the target to be a file under /etc that should be visiable when everything is mounted, how would you modify the gadget.yaml file to do that?09:22
ogra_joc_, i fear you cant ... the gadget will copy everything under /boot/$bootloader/ currently (thats a bug i think)09:23
ogra_iirc mvo wanted to bring that up with niemeyer (omeone else had that prob too iirc)09:23
ogra_+s09:23
joc_ogra_: it might have been woodrow, i was trying to help workout how to get a watchdog config file in to place09:24
joc_sounds like content in the gadget yaml won't be able to do that09:24
ogra_joc_, well, on that one i have to defer to mvo09:24
ogra_right, but it shoudl09:25
joc_ack09:25
ogra_but that means "snap prepare-image" (which ubuntu-image calls) needs to support this09:25
joc_yeah understood, i was wondering if we needed to add some explicit spec of the writable partition to the gadget.yaml and try copying in to there09:28
joc_assume the tools dont support that though09:28
ogra_not sure if you could try a relative path ... like "target: ../../writable/system-data/etc/foobar.conf"09:29
mupPR snapd#1957 opened: many: add support for installing/removing multiple snaps <Created by mvo5> <https://github.com/snapcore/snapd/pull/1957>09:30
ogra_but i guess snap prepare-image will reject that ...09:30
fgimenezdidrocks, ok, i've pushed the fixes to the test snap https://github.com/snapcore/snapd/compare/master...fgimenez:spread-gsettings?expand=1, rebuilt and reinstalled, but something seems to be missing yet http://paste.ubuntu.com/23210700/09:33
Chipacaogra_, hey, i pung09:36
ogra_so you did :)09:36
Chipacaogra_, just idle thoughts to poke at the python slowness on bbb09:36
ogra_replace it with a small shell script ?09:36
ogra_:P09:36
didrocksfgimenez: /home/fgimenez/.last_revision -> did you install your snap properly? It seems you are setting $HOME to real user home09:39
didrocksyou shouldn't export any variable09:39
didrocksor compile schemas09:39
Chipacaogra_, yeah :-) no wait it was actually trying to see if running it with -SI made it faster, and having you run it with -vv to see if it was imports slowing it down09:40
mcphailDoes anyone know if dlopen() calls get changed or intercepted within snap confinement? I'm trying to work out why a library under LD_LIBRARY_PATH isn't being found09:40
ogra_Chipaca, ah ... well, the binary and startup scripts are inside the squashfs ... that's some work to set up ... but good idea ... perhaps mwhudson could add it to the package for a while (and drop it before next beta)09:41
fgimenezdidrocks, i think so, no more export nor compile schemas, the source is at https://github.com/snapcore/snapd/compare/master...fgimenez:spread-gsettings?expand=1, after "snapcraft clean && snapcraft" i install it with "sudo snap install --dangerous ./test-snapd-gsettings-consumer_1.0_amd64.snap"09:41
didrocksfgimenez: ~/.last_revision, is what the launcher is using09:42
didrocksfgimenez: snap run --shell test-snapd-gsettings-consumer.get09:43
didrocks$ echo $HOME09:43
didrocks/home/didrocks09:43
didrocks-> it seems that $HOME isn't set to SNAP_USER_DATA anymore?09:43
didrocksfgimenez: zyga: do you know about this? ^09:44
Chipacaogra_, wrt -vv, is there a better way to timestamp stderr than, from bash, 2> >(while read l; do printf "%s %s\n" "$(date -uIns)" "$l"; done) ?09:44
Chipacaogra_, you could run it by hand once the system is booted and lets you log in, surely?09:44
ogra_not sure ... i know it falls over when a user exists .. but only later ...09:46
Chipacaogra_, answering myself wrt better way: yes, redirect the while loop to /tmp/stderr makes things a lot better09:46
Chipacai.e, python3 -vv /path/to/thing 2> >(while read l; do printf "%s %s\n" "$(date -uIns)" "$l"; done > /tmp/stderr)09:47
Chipacatadaa, timestamped import log09:47
ogra_we have a timestamped log ... but that only starts writing stuff once the app started ... we need omething in the systemd that writes a start timestamp09:48
ogra_*in the systemd unit09:48
* ogra_ hass to dig into the setup of the subiquity package ... i think there is a wrapper script somewhere that replaces getty 09:48
joc_didrocks: i noticed that $HOME change too, i was confused as to why our checkbox snap was storing .config/.cache folders outside of snap folder suddenly09:50
didrocksyeah, it's weird… I think that's known thanks to our testsuite? :)09:50
mupPR snapd#1958 opened: snap: remove extra newline after progress is done <Created by mvo5> <https://github.com/snapcore/snapd/pull/1958>09:51
mvojoc_: yeah, what ogra_ said, its not possible to populate anything outside of the boot partition currently with gadget.yaml09:55
mvojoc_: if that is something we need it should be raised with niemeyer (just for context for niemeyer, the question is if gadget.yaml could support content outside of the boot partition, e.g. to setup bits in /etc)09:56
=== jamespag` is now known as jamespage
mvoogra_: re keymap> if the keyboard-configuration package is enough that only adds ~600kb or so to the image (unless there is more missing but it looks ok from a quick glance)10:20
ogra_mvo, yeah, if thats enough, then i'm fine ... as long as it doesnt pull in megabytes of font encodings and whatnot10:20
mvoogra_: worth a shoot IMO, if its more than that we can pull it out again10:22
joc_mvo: thanks for the summary10:28
mvoogra_: so how am I supposed to add keyboard-configuration now? via the system-image seed ?10:29
mvoogra_: IOW via bzr ?10:30
ogra_mvo, we will definitely need to be able to add files ... i.e. some USB NICs (like the onboard one on the beaglebone) require sysctl files that are board specific to make the NIC work right10:30
ogra_mvo, just grab the ubuntu-core-meta packagefrom the PPA10:30
ogra_then add it to the different system-image-$arch files10:30
mvoogra_: oh, manually? ok10:31
ogra_mvo, yeah, no way to edit the seed10:31
mvoogra_: I'm not sure that is really progress if I need to add that now N times instead of a single time10:31
mvoogra_: anyway, uploaded, lets see how bad the resulting size increase is and we can revert if it is too terrible10:34
=== hikiko is now known as hikiko|ln
ogra_well, it is the only way10:35
ogra_mvo, we could perhaps do an out-of-distro seed to centralize it and keep it editable, but i dont know if germinate would like that, thats a cjwatson question10:35
cjwatsonI don't know what an "out-of-distro seed" would be10:36
ogra_some random bzr branch under snappy-dev10:37
ogra_our seed currently lives inside the official ubuntu one10:37
ogra_as "system-image"10:38
cjwatsonYou can run germinate (specifically in this case germinate-update-metapackage) from whatever input you like; it doesn't care10:40
mvoogra_: well, its fine for a one-off edit, but when I need to touch this next I will write some script and a system-image.common thing that includes all the common things so that I only need to touch a single file10:40
mvo(or do something else, but not edit N files again :)10:40
ogra_well, i'm happy with anything you do, just tell me about it :)10:41
mvoogra_: heh :) nothing for now until I touch this next time10:41
* ogra_ is kind of used to doing it that way, we do it on the phone since years10:41
ogra_mvo, but perhaps moving to a separate seed file makes more sense ...10:42
mupPR snapd#1959 opened: many: use unique plug/slot names in tests <Created by zyga> <https://github.com/snapcore/snapd/pull/1959>10:46
ogra_Chipaca, so using -SI makes it fall over with imports ... i guess i need to do a bit more here10:51
ogra_Chipaca, btw, running 'time python -v -c ""' (i.e. just firing up the interpreter) already takes 2sec10:57
Chipacaogra_, that's python2, not python311:06
ogra_err, sorry ... wrong paste ... i actually called python311:07
Chipacaogra_, what does 'time python3 -v -c ""' say, and what does 'time python3 -IS -v -c ""' say11:07
ogra_https://bugs.launchpad.net/snappy/+bug/1625698/comments/511:07
mupBug #1625698: console-conf on beaglebone takes unbearable long <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1625698>11:07
Chipacaogra_, also, the -v there is skewing your metric11:08
ogra_Chipaca, -IS cuts it by half11:08
Chipacaogra_, :-)11:08
ogra_but if i add it to the shebang in the script it doesnt find any of its imports11:08
ogra_so i guess there is more needed11:08
ogra_also ... i'm not sure thiss will help at all,. given the CPU alone is saturated for a min or two still ... working on bg processes while the script tries to start11:10
ogra_we can surely catch some low hanging fruits here when poking at it on the idle board ... but i guess the boot context will still make it super slow ... we only have one core and that is under high load when it runs in its real context11:12
ogra_(after ten years of battling with python on arm32 i'm rather pessimistic)11:13
* mwhudson hands ogra_ a nickel11:15
mwhudsonbuy another core!11:15
ogra_lend me your soldering iron too !11:16
ogra_(and some pliers)11:16
mwhudsonheh11:17
mwhudsonogra_: i guess if you boot the bbb and let it sit there for 10 minutes before hitting enter, it all happens much more smoothly?11:18
ogra_i'll have to try, but i bet so too :)11:18
mwhudsonseems like it really is down to the single core11:18
mwhudsonhum11:18
* mwhudson goes to bed rather than trying to be useful11:18
ogra_should we just add a "sleep 6000" ?11:18
ogra_:)11:19
ogra_mwhudson, we had similar probs with the old snappy that was written in python ... insstalling a nap with it on the bbb took minutes ...11:20
ogra_*a snap11:20
ogra_it went down to seconds with the initial switch to the go binary11:20
mwhudsonogra_: well maybe we'll do that here, i'm not signing up to get it done by GA though!11:21
ogra_yeah, i know :)11:21
mwhudsonogra_: also snap create-user takes 15 mins and that's written in go11:21
ogra_true11:22
ogra_but thats also generating keys, no ?11:22
mwhudsoner no, misread11:22
mwhudsonseveral minutes, let's say11:22
ogra_yes11:22
mwhudsonogra_: no, it's just making an api request and calling adduser & friends11:22
ogra_the log is a bit tricky regarding the timetamps because it get a new ntp time in the middle11:23
ogra_oh, i thought it also put a public key in place11:23
ogra_for the store11:23
mwhudsonalso the timestamps are at minute resolution ffs11:23
mwhudsonogra_: no, it puts stuff in ~/.ssh/authorized_keys but it's not generating anything11:24
ogra_ah, k11:24
mwhudsonunless that's changed since i last looked but i don't think it has11:24
Son_Gokuzyga: ping11:30
jdstrandmectors: you need to 'plugs: [ network ]' in your 'red' command11:30
niemeyermvo, joc_: That sounds slightly strange, but it'd be good to clarify what these bits are to be sure..11:30
mectorsjdstrand, I have the following:   red:11:31
mectors    daemon: simple11:31
mectors    command: bin/launch11:31
mectors    plugs:11:31
mectors      - network-bind11:31
mectors      - network11:31
mectors      - network-observe11:31
mectors      - bluez11:31
mectors      - bluetooth-control11:31
mectors      - pulseaudio11:31
ogra_niemeyer, typically files in /etc/sysctl.d (we discussed them at the sprint even iirc), additional ystemd job files etc11:31
niemeyerIn general, we don't want images to diverge in what they contain based on arbitrary bits inserted into the filesystem out-of-band11:31
mectorsjdstrand, https://github.com/mectors/nodered.snap11:32
=== hikiko|ln is now known as hikiko
niemeyerogra_: Yeah, that sounds like content that should go through official means, inside a snap11:32
ogra_niemeyer, i wanted to put them into the kernel snap and you said they should rathetr be a gadget thing11:32
ogra_especially the sysctl bits are very board specifc11:32
jdstrandmectors: does 'snap interfaces' show it as connected?11:33
ogra_i.e. USB NICs might need per board cache sizes you can manage via a sysctl value11:33
ogra_(and awfully enough the majority of arm boards uses builtin USB NICs)11:33
mectorsjdstrand no11:34
niemeyerogra_: This might be handled as configuration, which the gadget snap can ship as a default system configuration11:34
niemeyerogra_: handled as kernel configuration, that is11:34
ogra_niemeyer, right, i think that were your words at the sprint too ;)11:34
niemeyeror core configuration, actually11:34
jdstrandmectors: ok, so that is your problem. however, I don't know why it wasn't autoconnected, cause it should have been. curious, did you install this via a gadget snap?11:34
niemeyerogra_: Ah, I'm glad there's agreement between me and myself.. sometimes that's not the case11:35
ogra_you cant handle that in the kernel if the NIC needs different values per board and you dont want tio maintain a kernel for each board11:35
mectorsjdstran, no via snap install --force-dangerous11:35
ogra_i.e. not via a compile time config11:35
mectorsjdstrand, no via snap install --force-dangerous11:35
ogra_our generic kernel supports something like 20 boards currently ... i'D like us to have gadgets in the store for them in the long term ... using the same kernel snap11:36
jdstrandmectors: I suggest filing a bug. give 'snap list' output, the snapcraft.yaml you used and how you installed it, show snap interfaces output and that you expected it to be autoconnected11:36
ogra_but for that runtime tweaking needs to be possible11:36
ogra_niemeyer, where would that core config live ? not in the gadget snap ?11:37
niemeyerogra_: We can if it's a kernel _config_.. but I think core is better nevertheless11:37
niemeyerogra_: The configuration option/setting/handling would live in the core11:38
ogra_but we dont have that today11:38
niemeyerogra_: The gadget will have the ability to ship default configurations for all snaps in the system11:38
ogra_ah, k11:38
niemeyerogra_: Not today, no.. we're working on it11:38
ogra_well, that doent sound like GA though11:38
ogra_is that on the plan ?11:38
ogra_(for GA)11:38
niemeyerogra_: Yes, I hope it is11:39
niemeyerogra_: (ready by then..)11:39
niemeyerogra_: With some luck, in the next two weeks11:39
ogra_especially that watchdog thing is a requirement i think ... we just talked these guys into using systemd watchdog and dropped the universe watchdog package ...11:39
jdstrandmectors: and indicate if snap connect nodered:network ubuntu-core:network works around the issue11:39
ogra_ok, then we're fine i guess11:40
niemeyerWe're _hopefully_ fine ;)11:40
ogra_heh11:40
ogra_niemeyer, mvo, another thing iss the GL stuff ... we need to discuss where that lives and how we handle it in regard to the arm boards11:40
ogra_i imagine the libs should go into the kernel snap ... but we dont support that today11:41
ogra_(and some bind mount love to put them into ,... what was it ? /usr/lib/gl ? )11:41
ogra_(for later (regarding ubuntu-pd) i guess we also need to ship the android container inside the kernel snap and put the right bits in the right places)11:43
ogra_(not sure what the exact plans are for that one)11:43
ogra_but i guess the latter bit is something we can talk about at the sprint ... not that urgent11:44
mupPR snapd#1959 closed: many: use unique plug/slot names in tests <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/1959>11:56
mupPR snapcraft#818 opened: Fix trunk <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/818>12:03
Son_Gokuzyga: ping12:13
mupPR snapd#1951 closed: interfaces/builtin: improve testability and add regression test for LP: #1625291 <Created by zyga> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1951>12:14
mupPR snapd#1954 closed: store : add requestOptions.ExtraHeaders so that individual requests can customise headers <Created by absoludity> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1954>12:23
mupPR snapd#1960 opened: revert 'allow mmaping pulseaudio buffers' <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1960>12:30
jdstrandzyga: fyi ^12:31
jdstrandzyga: oh, you are fast :)12:31
mupPR snapd#1961 opened: many: avoid snap.InfoFromSnapYaml in tests <Created by zyga> <https://github.com/snapcore/snapd/pull/1961>12:34
popeytrying to install dekko from the store...12:47
popeysudo snap install dekko.dekkoproject --channel=edge12:47
popeyerror: cannot install "dekko.dekkoproject": snap not found12:47
popeyany idea what's going on there?12:48
popeyit's published, in the edge channel12:48
mupBug #1626082 opened: Fedora 24 install fail with snapd 2.14 <Snappy:New> <https://launchpad.net/bugs/1626082>12:49
mupPR snapd#1955 closed: docs: fix formating of HACKING.md "Testing snapd" <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1955>12:49
sergiusenspopey maybe snap install dekko --edge12:58
sergiusenspopey .<developer> is a store artifact12:58
popeyerror: cannot install "dekko": snap not found12:58
sergiusenspopey do you have the link to the store for the snap?12:59
DanChapmansnap install --devmode --edge dekko just worked for me.12:59
popeyhttps://myapps.developer.ubuntu.com/dev/click-apps/5980/review/rev/5/12:59
popeywat12:59
popeythat works here too12:59
=== petevg_afk is now known as petevg
popeyi can haz dekko13:00
popey\o/13:00
sergiusenspopey oh right, if it requires devmode it needs to be stated13:01
kalikianaThere is a dekko snap? Nice. I can stop fixing my build errors in my snapcraft.yaml then :-P13:13
kalikianaTho I'd be curious how you got oxide working13:14
mupPR snapd#1962 opened: interfaces: drop ErrUnknownSecurity <Created by zyga> <https://github.com/snapcore/snapd/pull/1962>13:14
DanChapmankalikiana, I just disabled oxide's sandboxing `export OXIDE_NO_SANDBOX=1`. Not ideal but at least there is still some protection from snap confinement13:17
kalikianaOh, good find13:17
jdstrandpcoca: hi! do you have a moment to work through bug #1613572 ?13:19
mupBug #1613572: sandbox denials for snaps on BTLE device <snapd-interface> <Snappy:Triaged by jdstrand> <https://launchpad.net/bugs/1613572>13:19
mupPR snapd#1960 closed: revert 'allow mmaping pulseaudio buffers' <Created by jdstrand> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1960>13:20
pcocajdstrand, OTP. Is OK to talk in 40 min?13:21
mupPR snapd#1958 closed: snap: remove extra newline after progress is done <Created by mvo5> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/1958>13:22
diddledandholbach: (replying from yesterday) corebird snapped by github.com/diddledan/corebird-snap in devmode launches but cannot open browser windows to login to twitter with error: Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.SafeLauncher was not provided by any .service files13:22
dholbachdiddledan, that's probably https://bugs.launchpad.net/snappy/+bug/158074013:23
mupBug #1580740: [SRU] Cannot open a browser link from a snap that provides a link <snap-desktop-issue> <verification-needed> <Snappy:Triaged> <snapd-xdg-open (Ubuntu):Confirmed> <snapd-xdg-open (Ubuntu Xenial):Fix Committed> <https://launchpad.net/bugs/1580740>13:23
diddledandholbach: ok, I'll test the proposed snapd to see if that fixes it13:25
dholbach*cross fingers*13:26
diddledanok, it still fails after installing snapd. I am going to reboot to ensure the state is updated fully.13:32
diddledanright, it still fails after a reboot. shall I mark the verification-failed tag on the bug or just comment with my attempt?13:33
dholbachdiddledan, yeah, best to just comment - let me see who to ping about this13:36
dholbachattente, ^ here's probably a test-case for bug 158074013:37
mupBug #1580740: [SRU] Cannot open a browser link from a snap that provides a link <snap-desktop-issue> <verification-needed> <Snappy:Triaged> <snapd-xdg-open (Ubuntu):Confirmed> <snapd-xdg-open (Ubuntu Xenial):Fix Committed> <https://launchpad.net/bugs/1580740>13:37
diddledanthanks dholbach13:39
dholbachanytime13:39
diddledanI love our community :-)13:39
* diddledan cuddles "the community"13:39
dholbachhaha :-)13:39
* dholbach hugs diddledan back :)13:39
diddledan\o/13:39
Chipacadholbach, diddledan, you're aware that we know that's broken in current snapd and is fixed on master?13:42
dholbachChipaca, I thought that's what diddledan tested(?)13:43
Chipacadholbach, diddledan, that's what https://lists.ubuntu.com/archives/snapcraft/2016-September/001173.html blathers on about13:43
diddledanChipaca: I was following the comment in the bug that said xenial proposed had a potential fix to be tested13:43
Chipacasorry, I might be misunderstanding :-) did a very quick scan of the backlog13:43
Chipacabut it sounded like you were saying that you were going to mark the sru of snapd-xdg-open as verification-failed13:44
diddledanChipaca: oh, I think I might have tested the wrong package13:44
diddledanChipaca: thanks for pointing out my mistook :-p13:44
diddledanI installed snapd13:45
Chipacasnapd-xdg-open is the thing that should be providing the dbus service13:45
diddledannot snapd-xdg-open13:45
* diddledan tries again13:45
Chipacaand your snap either needs to be in devmode, or you need to have an unreleased snapd13:45
Chipaca(as it's fixed on master but not in 2.14)13:46
diddledanok, that's working correctly then.13:46
diddledanI installed snapd-xdg-open (0.0.0~16.04)13:46
diddledannow browser windows open correctly \o/13:46
Chipacahuzzah13:47
diddledanok, so corebird in devmode works fine then with that package installed13:47
Chipacadiddledan, excellent. As of 2.15.3 (if we cut that) or 2.16, if the snap uses the unity7 interface, it shouldn't need devmode for this13:47
Chipacadiddledan, are you marking it verification-done then :-D13:48
Chipacaanyway, i need to run. ttfn!13:48
diddledanChipaca: yes, I can do that :-)13:48
=== chihchun_afk is now known as chihchun
sergiusensjdstrand hey, since the snap-confine thing landed in yakkety all our tests are returning with "Segmentation fault"13:58
ogra_mvo, FYI, your keymap addition grew the snap by ~1M in average13:58
jdstrandzyga: ^13:58
ogra_mvo, i think thats bearable ... now cyphermox and/or mwhudson need to write a UI for that :)13:59
sborovkovpitti: hello14:02
pcocajdstrand, I am done with the call. Do you have time now?14:12
jdstrandpcoca: let's see if we can get through it, though I have to leave in a bit14:13
jdstrandpcoca: in your snap, can you remove 'plugs: [network-bind]' then start the snap and give me the denial in syslog?14:13
pcocajdstrand, sure, should I then use just the bluetooth-control plug, right?14:16
=== chihchun_afk is now known as chihchun
jdstrandpcoca: yes14:18
mupPR snapcraft#818 closed: Fix trunk <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/818>14:18
mupPR snapd#1947 closed: interfaces/builtin: add initial docker interface <Created by jdstrand> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1947>14:19
pcocajdstrand, Sep 21 15:21:56 NUC kernel: [25426.260711] audit: type=1400 audit(1474467716.721:142): apparmor="DENIED" operation="create" profile="snap.sensortagbtle.sensortag" pid=21988 comm="bluepy-helper" family="bluetooth" sock_type="seqpacket" protocol=0 requested_mask="create" denied_mask="create"14:22
jdstrandpcoca: can you add to /var/lib/snapd/apparmor/profiles/snap.sensortagbtle.sensortag: 'network blutetooth,' and then do: sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.sensortagbtle.sensortag14:24
jdstrandpcoca: then try again14:24
tachyonsHello14:29
tachyonsI am trying to make a snap plugin for ruby14:29
pcocajdstrand, Is not working either. But now I don't see that DENIAL14:30
tachyonseverythings works except downloading script download part14:30
niemeyerjdstrand: For future interfaces, please note the small change in convention in #196214:30
niemeyersnapd#196214:30
mupPR snapd#1962: interfaces: drop ErrUnknownSecurity <Created by zyga> <https://github.com/snapcore/snapd/pull/1962>14:30
jdstrandpcoca: do you see other denials? perhaps a syscall denial?14:31
tachyonsusing download() method from file base , But shows value out of range14:31
pcocajdstrand, I added 'network bluetooth,' (The middle t of bluetetooth is a typo, right? (just in case))14:31
pcocajdstrand, I got this on the syslog: http://pastebin.ubuntu.com/23211617/14:33
jdstrandpcoca: yes, that was a typo14:34
jdstrandpcoca: can you add 'bind' (without the quotes) to /var/lib/snapd/seccomp/profiles/snap.sensortagbtle.sensortag and restart the program, pasting syslog14:35
Fl1ntHi guys!!14:37
pcocajdstrand, http://pastebin.ubuntu.com/23211625/14:39
jdstrandpcoca: can you do the same but with 'getsockopt'14:40
jdstrandpcoca: I'm going to have to leave for an appt. you can continue this process by looking at 'syscall=55' in the denial and running 'scmp_sys_resolver ##'14:41
jdstrandpcoca: and report back what you needed. I'll circle back so don't worry if you get stuck14:41
Fl1ntGuys, I'm thinking of building a snapd scheduler or at least a prototype to be able to manage a swarm of snapd available devices. From what I read, a program can manage the snapd daemon through its REST API (Unix socket for now, I noticed that), but I'm wondering if a snaped apps would be able to do it or if I need this scheduler to be run by an uncontainerized app?14:42
pcocajdstrand, now it works :)14:43
Fl1ntif a snaps is able to manage the snapd daemon on containerized mode, how am I supposed to bind it to the REST API using a containerized context? I thought to use the interfaces (plugs/slot) but I need this snaps to use the network-bind and network interfaces. Are those interfaces enough?14:44
pcocajdstrand, I will update the bug info14:46
Fl1ntanyone?14:48
joc_Fl1nt: i think you are looking for the snapd-control interface14:52
Fl1ntoh, nice, I'll take a look at.14:52
Fl1ntnop, snaps-control is just able to control the snaps, I want my snap to be able to reach the snapd API as in: https://github.com/snapcore/snapd/blob/master/docs/rest.md and so retrieve and manage informations that the snaps-control interface is not able to provide.14:54
Fl1nt%s/snaps-control/snapd-control/14:54
joc_it does provide access to the socket15:01
Fl1ntare you sure? because the reference doc on this is not really clear on this: http://snapcraft.io/docs/reference/interfaces15:02
mupPR snapd#1857 closed: snap/snapenv, tests: use root's data dirs when running via sudo <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1857>15:02
joc_yeah the docs are poor, you might need network-bind too, but then you should have access to the api15:04
Fl1ntjoc_: another one, if those interfaces are not auto-connect and that I don't want my users having to proceed manually, is there a way to do that? throught an image provisioning system for example?15:04
Fl1ntjoc_: I plan to use Ubuntu Core for information.15:06
joc_i believe that will be supported that via assertions for particular devices, i don't have any more details right now though15:08
=== zyga_ is now known as zyga-ontheroad
Fl1ntI don't understand what you call "Assertions for particular devices" do you mean building an image with a gadget?15:08
zyga-ontheroadmwhudson: hey, apparently snap-confine on yakkety explodes, I'm looking at why now15:09
joc_yes you would need a gadget snap built using a model assertion for your devices15:12
pstolowskijdstrand, hey! can you have a look at https://github.com/snapcore/snapd/pull/1832/files when you've a moment? this is a new interface for unity8/system settings15:12
mupPR snapd#1832: interfaces/builtin: time-date-control for org.freedesktop.timedate1 <Created by stolowski> <https://github.com/snapcore/snapd/pull/1832>15:12
zyga-ontheroadjdstrand: hey15:13
Fl1ntjoc_: OK, perfect :D Thanks for your informations, helped a lot ^_^15:16
mupPR snapd#1933 closed: store: add "ready to buy" method <Reviewed> <Created by pete-woods> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1933>15:25
mupPR snapd#1963 opened: daemon, overlord: add ReadyToBuy API to snapd <Created by pete-woods> <https://github.com/snapcore/snapd/pull/1963>15:27
zyga-ontheroadjdstrand: hey, can you please restore sanity to my mind and see if snap-confine crashes on startup on 16.1015:32
zyga-ontheroadjdstrand: sergiusens reported that all snapcraft tests explode right now, I updated a 16.04 box to 16.10, installed snap-confine from the archive and ... nothing explodes15:33
zyga-ontheroadjdstrand: I also rebooted to use yakkety kernel15:33
zyga-ontheroadLinux ubuntu 4.8.0-11-generic #12-Ubuntu SMP Sat Sep 17 20:00:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux15:33
zyga-ontheroadjdstrand: all with ns sharing and everything;15:34
zyga-ontheroadjdstrand: if it also works for you I'll stop panic mode and look at this carefully at home15:34
mcphailDoes anyone know if dlopen() calls get changed or intercepted within snap confinement? I'm trying to work out why a library under LD_LIBRARY_PATH isn't being found15:39
zyga-ontheroadmcphail: they are not affected by snap confinement15:55
zyga-ontheroadmcphail: but ... it depends on what you expect15:55
zyga-ontheroadmcphail: can you tell me more about your setup?15:55
zyga-ontheroadmcphail: note that snap-confine is setuid root; that probably ignores LD_LIBRARY_PATH and LD_PRELOAD AFAIR15:56
zyga-ontheroadmcphail: so if you set that inside the wrapper of your application it will be respected15:56
zyga-ontheroadmcphail: but if you want to set it on the outside that will not take any effect15:56
zyga-ontheroadmcphail: you should also be aware of the "chroot" that snap-confine is using (snap-confine is the thing that helps in starting snap apps)15:56
zyga-ontheroadmcphail: you can read more about it here: http://www.zygoon.pl/2016/08/snap-execution-environment.html15:57
mupPR snapcraft#819 opened: Release changelog for 2.18 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/819>15:57
zyga-ontheroadmcphail: (if I dissappear just keep talking to zyga, I'll check my messages back home)15:59
mhall119is there a docker image that contains snapcraft and it's dependencies already?16:00
kyrofamhall119, I seem to remember a mailing list thread about that16:00
kyrofaDon't remember what the outcome was, but you might take a look16:01
mhall119how about an LXC image?16:01
* zyga-ontheroad runs again, ttyl16:02
kyrofamhall119, I don't remember hearing about that16:02
mcphailzyga: Thanks for that link. I'll read it and ping you later if I have more questions. I was wondering whether something was running setuid root to stop LD_LIBRARY_PATH being read. Thanks for the info16:09
joc_sergiusens: i would like some advice related to the new python plugin, i notice it modifies it all the shebangs in scripts16:18
joc_sergiusens: most of my snaps have multiple parts that have python deps from stage packages with other plugins - particularly plainbox-provider plugin16:19
joc_sergiusens: so now i have files that are different between parts16:20
joc_sergiusens: what would you suggest is the best solution?16:21
elopiojdstrand: ping. We have a bug here that zyga says needs your attention. It's with the latest snap-confine in yakkety: https://bugs.launchpad.net/snap-confine/+bug/162612116:43
mupBug #1626121: snap-confine causes Segmentation fault <Snappy Launcher:New> <snap-confine (Ubuntu):New> <https://launchpad.net/bugs/1626121>16:43
elopioI can reproduce it, but I'm not sure what other useful information to attach.16:44
sergiusensjoc_ the old python plugin also did this fwiw16:45
sergiusensjoc_ python deps from stage-packages have this general problem and this may mean we need to move this to the `repo` module16:46
sergiusensjoc_ do these stage-packages provide runnables? A quick solution is `command: python3 /usr/bin/my-command`; if they are exec'ed from some other component it might be tricker16:47
sergiusensmhall119 kyrofa snapcore/snapcraft on dockerhub16:47
Chipacaogra_, what image do you use for bbb, btw?16:52
joc_sergiusens: i was basically just wondering whether i have to add filesets to all parts to filter out clashes or if they some better way16:52
sergiusensjoc_ oh, filesets is the way16:55
balloonszyga, snap-confine is still old on xenial. Any hope of SRU'ing 1.41 now?17:07
mcphailzyga: I'm still having trouble. I set the correct LD_LIBRARY_PATH in my run script in my snap, and all the libraries are seen when my binary runs. However, dlopen() does not see the library it needs to open. I've tried moving the library to $SNAP/lib and $SNAP/usr/lib but it still doesn't work. The code fragment is at http://paste.ubuntu.com/23209466/ . How can I get around this?17:08
ogra_Chipaca, http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/ note that you need an USB NIC though ... the onboard NIC cuses a kernel oops currently (and you should plug in the USB one after the boot finished)17:09
ogra_*cusews17:09
ogra_bah17:09
mhall119thanks sergiusens17:10
mupPR snapd#1964 opened: tests: add missing quotes in security-device-cgroups/task.yaml  <Created by mvo5> <https://github.com/snapcore/snapd/pull/1964>17:37
jdstrandtyhicks, jjohansen: hey, so yakkety is seeing this denial: audit: type=1400 audit(1474474584.561:68): apparmor="DENIED" operation="file_mmap" profile="snap.mosquitto.subscribe" name="/usr/lib/snapd/snap-exec" pid=4525 comm="snap-exec" requested_mask="m" denied_mask="m" fsuid=1000 ouid=017:47
jdstrandoh, jj left17:47
jdstrandtyhicks, jjohansen: hey, so yakkety is seeing this denial: audit: type=1400 audit(1474474584.561:68): apparmor="DENIED" operation="file_mmap" profile="snap.mosquitto.subscribe" name="/usr/lib/snapd/snap-exec" pid=4525 comm="snap-exec" requested_mask="m" denied_mask="m" fsuid=1000 ouid=017:48
tyhicksjdstrand: 4.8 kernel?17:48
jdstrandtyhicks, jjohansen: in the 4.8 kernel, when would I expect to see policy needing 'm'?17:48
jdstrandtyhicks: "I can reproduce this in a yakkety machine started by adt-run in scalingstack."17:49
jdstrandI'm guessing "yes"17:49
jjohansenjdstrand: yes, this is the semantic change in the kernel I have been warning about17:49
tyhicksI can't answer this question OTOH - jjohansen maybe has a better idea since he did the 4.8 port17:49
jjohansenthe location of the mmap check in the binfmt_elf loader changed, and along with it the cred that is used for the check17:50
jjohansenspecifically commit 9f834ec1817:51
jdstrandjjohansen: ok, thanks17:52
tyhicksjdstrand: also, you'll want to be aware of seccomp bug 1626194 - I'm sending a quick fix to the kteam in a few minutes17:52
mupBug #1626194: Seccomp actions are not audited in the 4.8 kernel <linux (Ubuntu):In Progress by tyhicks> <https://launchpad.net/bugs/1626194>17:52
jjohansenjdstrand: so basically on the exec, the m is falling under the profile instead of the old17:52
jdstrandjjohansen: I see. ok, thanks17:53
jdstrandthis is with a chnage_onexec call17:53
jdstrandtyhicks (cc ratliff): fyi, I'm going to need to chase this bug down17:56
tyhicksjdstrand: shouldn't have much to do with change_onexec() but has more to do with the exec() that snap-confine is doing17:56
jdstrand(ie, adjust the policy in snapd so yakkety tests are clear again)17:56
tyhicksjdstrand: ack17:57
jdstrandsure17:57
mupBug #1626121 opened: snap-confine causes Segmentation fault <Snappy Launcher:Invalid> <Snappy:New> <snap-confine (Ubuntu):Invalid> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1626121>17:57
jdstrandwe have a change_onexec to another profile with the exec being on snap-exec17:57
jdstrandthis all is consistent with jjohansen's explanation17:57
* tyhicks agrees17:57
jjohansenjdstrand: yeah, lacking the m does cause a segment fault, basically that part of the elf doesn't get mapped, and the exec starts and blows up immediately17:59
ratliffgot it, jdstrand18:00
jdstrandfun! :)18:00
jdstrandzyga, elopio: I've responded in the bug and assigned to me18:01
elopiojdstrand: thank you.18:01
jdstrandpcoca: thanks!18:03
pcocajdstrand, thank you! :)18:13
mupPR snapd#1965 opened: asserts: support for maps in assertions, <Created by pedronis> <https://github.com/snapcore/snapd/pull/1965>18:14
sergiusensthanks jdstrand18:15
csutherlmhall119, hey. is what you provided the latest version of your snap for tomcat?18:17
csutherlmhall119, i had to chmod run.sh before building the package to get it to work. and i see that it can't find conf/tomcat-users.xml already18:17
jdstrandpcoca: fyi, I responded in comment #11 and am back now18:19
popeyogra_: my pi just auto updated and rebooted and it's now no longer on the network18:20
popeyand I can't login because i have no password18:20
mhall119csutherl: yeah, emailing run.sh stripped the permissions, I didn't even think about that18:20
mhall119csutherl: is tomcat-users.xml in /snap/tomcat/current/conf/ ?18:21
popey(pi 2, daily image)18:21
mhall119that should be $CATALINA_HOME/conf/tomcat-users.xml18:22
csutherlmhall119, yeah18:23
mhall119csutherl: is that where it's looking for it?18:23
mhall119maybe you need to copy it into $CATALINA_BASE/conf/18:24
mhall119which would be /var/snap/tomcat/current/18:24
mhall119./conf/18:24
csutherlhm18:24
csutherlit isn't in there18:24
csutherl/var/snap/tomcat/current/18:24
csutherljust the server.xml18:24
mhall119no, I only have it copying the server.xml18:24
mhall119that was the minimum needed to make it start18:25
csutherlohoh. gotcha18:25
csutherllet me try that18:25
mhall119if you want to copy more in, just duplicate the line in run.sh that copies the server.xml18:25
mupPR snapcraft#820 opened: Fixed bug LP: #1607294 snapcraft search returns results in different order <Created by clobrano> <https://github.com/snapcore/snapcraft/pull/820>18:37
mupPR snapd#1962 closed: interfaces: drop ErrUnknownSecurity <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1962>18:42
mupPR snapd#1966 opened: many: avoid snap.InfoFromSnapYaml in tests <Created by pedronis> <https://github.com/snapcore/snapd/pull/1966>18:46
popeyogra_: nvm, reboot 'fixed' it :)18:46
mupPR snapd#1961 closed: many: avoid snap.InfoFromSnapYaml in tests <Created by zyga> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/1961>18:49
mupPR snapd#1964 closed: tests: add missing quotes in security-device-cgroups/task.yaml  <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1964>19:29
mupPR snapd#1890 closed: tests: add spread test for snap create-key/snap sign <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1890>19:50
niemeyerjdstrand: Heya19:51
niemeyerjdstrand: Do you have a moment for a quick look on this one liner:19:51
niemeyersnapd#187519:52
mupPR snapd#1875: interfaces/builtin: allow /dev/net/tun with network-control <Created by cmars> <https://github.com/snapcore/snapd/pull/1875>19:52
mupPR snapd#1875 closed: interfaces/builtin: allow /dev/net/tun with network-control <Created by cmars> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1875>19:55
jdstrandniemeyer: it has been on my list. I've been ambivalent about where this rule should go since the PR came in, but I decided just now and commented in the PR (with a +1)20:05
jdstrandniemeyer: also, I've gotten the other pings and they are also on my list. now that docker landed I can look at them after bug #162612120:07
mupBug #1626121: strict mode snaps crash with Segmentation fault on 16.10 <Snappy Launcher:Invalid> <Snapcraft:New> <Snappy:In Progress by jdstrand> <snap-confine (Ubuntu):Invalid> <snapd (Ubuntu):Triaged by jdstrand> <https://launchpad.net/bugs/1626121>20:07
mupPR snapd#1966 closed: many: avoid snap.InfoFromSnapYaml in tests <Created by pedronis> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1966>20:09
diddledanhas anyone managed to get gstreamer-using apps actually using gstreamer libraries? my corebird seems unable to find the gstreamer plugin libraries20:10
diddledanoutput from attempting to display a video: http://paste.ubuntu.com/23212993/20:11
mcphaildiddledan: I don't know how gstreamer opens its libraries but I wonder if you're hitting the same problems with dlopen() that I am with my snap?20:24
diddledanaah, yeah, my very limited knowledge of shared objects suggests to my memory banks that dlopen works funky compared to LD?20:27
diddledanmight be a case of snap just not having dlopen overrides implemented yet20:28
mupPR snapcraft#819 closed: Release changelog for 2.18 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/819>20:31
mcphaildiddledan: I can't seem to put a library anywhere a snapped binary can dlopen() it. I'm trying to find out if this is a bug, an error or my part or a "feature"20:32
diddledanwell if we're on the same issue then I hope it's a case of "haven't got that far in implementatino yet" :-D20:33
mcphail:)20:33
diddledanyey for progressive improvements20:33
mcphailiteration rules20:33
mupPR snapd#1967 opened: interfaces: allow 'm' in default policy for /usr/lib/snapd/snap-exec <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1967>20:49
grahamsHi, I'm curious to see how easy it would be to create a snappy package from a Arch AUR package, are there any guides on that?21:13
grahamsMy package is very simple, 1 python script and 3 dependencies21:14
kyrofaHey grahams, no guide that I know of, but indeed should be quite simple to snap21:29
grahamsThanks, is snapcraft the way to go? I see it in the Arch Aur21:41
kyrofagrahams, typically snapcraft is used to make snaps, yes, but it's pretty tied to Ubuntu right now21:42
kyrofa(e.g. it'll pull debs for dependencies)21:42
kyrofaYou can use it in a VM or container if you want to use it21:42
grahamsYes looks like other ran into issues building snap under Arch. Easy enough to spin up a VM21:43
mupBug #1625813 changed: hardware-observe does not allow reading temperatures <snapd-interface> <Snappy:Invalid> <https://launchpad.net/bugs/1625813>21:52
mupPR snapd#1968 opened: interfaces: adjust bluetooth-control to allow getsockopt (LP: #1613572) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1968>21:54
zygathat moment when you want to double tap to zoom in but you update bug statsu to in-progress22:41
oparoz_I don't understand how SNAP_USER_COMMON is supposed to work since sudo is required to install snaps22:42
naccoparoz_: SNAP_USER_COMMON, iirc, is just user-specific data for that snap, e.g. ~/snap/<name>/common22:46
oparoz_nacc, yes, but since snaps are installed as root, then the path is /root/snap/etc. which isn't accessible to the user installing the snap22:47
qenghoSNAP_USER_DATA is a user-writable directory that is versioned across snap versions. You can roll back to previous data too there. SNAP_USER_COMMON is one that persists.22:49
naccoparoz_: not sure i follow, the snap wrapper is root:root, but you can still run it as your user?22:50
oparoz_qengho, yes, but SNAP_COMMON is the one that persists within the SNAP. I thought SNAP_USER_COMMON would give the user access to a persistent directory within his home folder22:51
naccoparoz_: i don't believe SNAP_COMMON is "within the SNAP"22:51
naccoparoz_: well, in classic, at least it's in /var/snap22:51
qenghoIt does. Or it should. There's a bug with a recent version of snapd.22:51
oparoz_nacc, it's in snap/yoursnap/common22:52
naccoparoz_: on classic, SNAP_COMMON is /var/snap/<name>/common, iirc22:53
naccoparoz_: in which case, it's not in the squashfs (which is what hte snap itself is, imo)22:53
oparoz_nacc, in this sense, yes, I meant it's still namespaced, but it also is in the home folder, just a different root22:54
qengho"Within the snap" could only mean "within the execution environment and defined in the environment you receive upon running".22:54
naccoparoz_: sorry, i'm confused, SNAP_COMMON is not in the "home folder", as home is tied to a user, and SNAP_COMMON is not22:55
naccoparoz_: unless you meant SNAP_COMMON_USER22:55
qenghonacc: You dropped "USER" when you said "SNAP_COMMON". Don't do that. THey're different.22:55
oparoz_qengho, so how is the user determined? Is there a USER variable stored at install time?22:55
naccqengho: i did not, oparoz_ did22:55
qenghooparoz_: At run time, you're handed it in environment.22:55
naccoparoz_: it's in the wrapper script, afaict, it uses $HOME22:56
oparoz_qengho, OK, so it must be the bug you mentioned then22:56
qenghoI meant the literal letters U, S, E, and R. Not a variable called USER.22:56
naccqengho: yes, i understand what you meant, I think. oparoz_ said "SNAP_COMMON is the one that persists withinthe SNAP", to which i replied, "i don't believe SNAP_COMMON is "within the SNAP""22:57
qenghoSee what your snapd defines.  $ hello-world.env |grep _COMMON22:57
naccqengho: ah perhaps that was not directed at me (the literal letters)22:57
oparoz_The startup script is using: $SNAP_USER_COMMON/downloads. And the log says: Failed to open directory "/root/snap/snapname/common/downloads22:58
naccoparoz_: are you running the snap as root?22:58
qenghooparoz_: Then you're running it as root. A recent snapd doesn't let the program create $SNAP_USER_COMMON .22:58
oparoz_nacc, you have to use sudo to install22:59
naccoparoz_: install and running are not hte same thing22:59
naccoparoz_: ie., you use sudo apt-get install <pkgname>; you don't (unless you want to run as root) do `sudo <application from pkgname>`22:59
oparoz_Hmmm... I thought snapd was a system service22:59
qenghooparoz_: Outside, to work around snapd bug   $ sudo mkdir /root/snap/snapname/common22:59
naccoparoz_: i'm still confused on exactly what the issue is, but it seems like qengho has a better handle on helping you :)23:01
oparoz_qengho, yes, but then the user doesn't have access to that folder23:01
naccoparoz_: are you having an issue with snapd or a specific snap?23:02
qenghonacc: snapd as of a few days ago doesn't let the app wrapper create the user common dir.23:02
naccqengho: ah ha23:02
oparoz__nacc, I don't remember having done anything special to run snapd, just installed it and it's running as root, which I would expect23:02
naccqengho: but it shouldn't need to create it for root, unless running the snap as root, right?23:02
naccoparoz__: right, but snapd isn't any of your snaps, per se23:02
qenghonacc: Right.23:02
naccqengho: ok, thanks for confirming that, still confused on the root issue here, then :)23:03
qenghooparoz_: Let's back up and find out why you're typing "sudo". Explain that part.23:03
oparoz__sudo snap install transmission23:03
qenghoYes. That makes sense.23:03
qenghooparoz_: Where else are you typing "sudo"?23:04
oparoz__qengho, nowhere else23:04
naccoparoz__: how are you running transmission then?23:05
qenghooparoz__: Okay, so it's installed. How do you run transmission?23:05
oparoz__I have a start-stop script which launches transmission-daemon23:05
qenghooparoz__: And that runs as root?23:05
oparoz__Yes, because I was told all scripts in a Snap are run as root23:05
oparoz__So in the list of arguments, there is $SNAP_USER_COMMON/downloads23:06
oparoz__But I would expect that variable to be determined at install time23:07
qenghooparoz__: All "daemons" that you tell the snap system to manage are run as root.23:07
naccoparoz__: $SNAP_USER_COMMON by definition is determined at runtime -- how else would it be tied to a specific user?23:07
qenghooparoz__: Is your start-stop inside the snap, or outside, running a snap app?23:08
naccah good question23:08
oparoz__the start-stop is inside the Snap23:08
qenghooparoz__: Okay, then yes, it's running as root, and there's no way to change it from doing so. And its data will be written to a location that you get when you run your snap app and use a environment variable that does not have _USER_ in the middle.23:09
oparoz__qengho, snapcraft.yaml https://paste.ubuntu.com/23213684/23:09
qenghooparoz__: If you're running a daemon, you should only have it use something like SNAP_COMMON, and not SNAP_USER_COMMON.23:10
oparoz__qengho, OK, so there is no way to store the downloads in an easily accessible location23:10
qenghooparoz__: it is easily accessible, from anything defined in the snap.23:11
qenghooparoz__: Where do you expect the data to be going?23:11
mupPR snapd#1967 closed: interfaces/apparmor: allow 'm' in default policy for snap-exec <Created by jdstrand> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1967>23:11
qenghoOr want it to.23:11
oparoz__I want the data to be accessible outside the Snap, without having to ship Samba in the snap23:12
qenghoWhere?23:12
oparoz__qengho, /media per example23:13
qenghooparoz__: There is no way to get that with only "snap install", but you could symlink "/var/snap/yoursnap/common" to "/media".23:13
oparoz__qengho, the problem is that not all environments are going to be the same, so I thought the /home folder of the user who installs the snap would be a good idea23:13
qenghooparoz__: That's fine too, but you can't make the thing a snap service. You can make it a regular app that the user runs.23:14
qengho...and then you could ask for plug "home".23:14
oparoz__qengho, Actually, I think I'll do the opposite and define a slot so that other apps can retrieve the data23:15
oparoz__I need to look into how to mount the slot I connect to I guess23:17
oparoz__But at least now I know that $SNAP_USER_COMMON doesn't work in that context. Thanks for you help nacc and qengho23:18
qenghowelcome!23:19
kyrofaoparoz__, not "all scripts" in a snap run as root, only services23:25
kyrofaoparoz__, non-service apps run as the user who ran them23:25
oparoz__kyrofa, do you have an example of a non-service app bundled in a snap?23:28
kyrofaoparoz__, yeah, nextcloud :P23:28
kyrofaoparoz__, the mysql-client or occ apps, for example23:28
oparoz__Ah, but that's command23:29
oparoz__Just like in a standard system23:29
kyrofaRight. There are only two things: services and non-services23:29
oparoz__I just thought the snap env would have some memory about who installed it23:29
kyrofaNope23:29
oparoz__;(23:30
kyrofaSnaps are installed system-wide-- what use would there be in keeping track of who installed it?23:30
oparoz__I'll just have to mount the slot/folder in Nextcloud23:30
oparoz__Well, some apps are installed for the current user only, if required23:31
kyrofaoparoz__, "some apps" ?23:31
kyrofaI'm not sure I follow23:31
oparoz__If I install an app in my home folder, it's only available to me23:32
kyrofaoparoz__, there's no such thing for snaps23:32
oparoz__I guess it's not much of a problem for desktop snaps, since the user can always define folders for storing information, etc.23:33
naccoparoz__: do you mean if you 'install locally' in ~/bin/ or something?23:35
oparoz__Yes nacc23:35
naccoparoz__: yeah there's nothing like that in snaps, but it should be less necessary, in theory too23:35

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