/srv/irclogs.ubuntu.com/2016/11/03/#snappy.txt

=== JanC_ is now known as JanC
=== devil is now known as Guest66561
=== pbek_ is now known as pbek
=== Guest66561 is now known as devil_
mupPR snapd#2256 opened: overlord/ifacestate: fix missing security setup for connected slot <Created by albaguirre> <https://github.com/snapcore/snapd/pull/2256>05:16
sergiusensSaviq hey there, can you help me in triaging LP: #1638405 ?05:22
mupBug #1638405: libunity not added to LD_LIBRARY_PATH <Snapcraft:Incomplete> <Snappy:Invalid> <https://launchpad.net/bugs/1638405>05:22
mupBug #1638796 opened: mir clients that use cpu renderable surfaces don't work under confinement <Snappy:New> <https://launchpad.net/bugs/1638796>05:28
mupBug #1638798 opened: mir server process goes defunct when a mir client attaches under confinement <Snappy:New> <https://launchpad.net/bugs/1638798>05:34
=== chihchun_afk is now known as chihchun
zygajdstrand: ack, thank you (for the policy comment)06:38
foxmaskbonjello07:17
mupPR snapd#2257 opened: debian: golang is not installable on powerpc <Critical> <Created by mvo5> <https://github.com/snapcore/snapd/pull/2257>07:19
mupPR snapd#2257 closed: debian: golang is not installable on powerpc <Critical> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2257>08:32
tsdgeosam i right in assuming snapcraft makes a local copy of my sources file?08:40
didrockstsdgeos: if the source is remote, indeed08:40
tsdgeosif so any reason it doesn't make so of my /etc/apt/preferences one?08:40
didrocksotherwise, it's using symlinks08:40
didrocksI think that was planned to support that08:41
tsdgeosbecause it's complaining abotu packages being broken08:41
tsdgeoswhen they're fine08:41
didrocksbut they are creating their own local repo08:41
tsdgeosit's snapcraft that broke them08:41
* didrocks got that you told sources file as apt source, wasn't obvious at the start08:41
didrocksbut yeah, IIRC, there is a bug (or you should open one) about it08:41
didrocksnote though that wouldn't help building from launchpad08:42
mupPR snapd#2258 opened: docs: move to github.com/snapcore/snapd/wiki <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2258>08:42
tsdgeosdidrocks: ok, will try to open a bug08:43
didrocksthanks!08:44
mupPR snapd#2258 closed: docs: move to github.com/snapcore/snapd/wiki <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2258>08:51
niemeyerDocs mooooved08:52
niemeyerWell, some docs anyway08:52
mupPR snapd#2259 opened: tests: /dev/ptmx also broken on powerpc <Created by mvo5> <https://github.com/snapcore/snapd/pull/2259>08:59
mupPR snapcraft#886 opened: Support for gadget snaps <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/886>08:59
sergiusensdidrocks tsdgeos we never planned to support /etc/apt/preferences09:10
didrockssergiusens: oh, didn't you tell you wanted to support ppas?09:11
didrocksand use host apt sources.list?09:11
didrocks(and so I guess host apt, which is supporting apt pinning and such)09:11
sergiusensdidrocks yeah, but never discussed /etc/apt/preferences at all09:12
didrockssergiusens: well, if you use host apt, you will get those options supported automatically :)09:12
tsdgeossergiusens: i don't know how half of this thing works, but if you're copying the sources file (that it seems you are at ./parts/unity8/ubuntu/etc/apt/sources.list) it only makes sense to copy the preferneces file09:12
tsdgeosotherwise you're going to end up packaging the .deb file i didn't expec09:13
tsdgeost09:13
sergiusenstsdgeos it makes sense to you maybe; but sure, log a bug against the project09:13
tsdgeosi already did09:13
sergiusenstsdgeos that's why you clean build ;-)09:14
sergiusenstsdgeos where? It never reached me, did you log it against the project?09:14
tsdgeoshttps://bugs.launchpad.net/snapcraft/+bug/163884009:14
mupBug #1638840: snapcraft copies /etc/apt/sources but ignores /etc/apt/preferences <Snapcraft:New> <https://launchpad.net/bugs/1638840>09:14
Saviqsergiusens, you probably want pstolowski to help with bug #163840509:14
mupBug #1638405: libunity not added to LD_LIBRARY_PATH <Snapcraft:Incomplete> <Snappy:Invalid> <https://launchpad.net/bugs/1638405>09:14
sergiusenstsdgeos oh, 15 minutes ago09:15
tsdgeosyes09:15
sergiusenstsdgeos how will you solve launchpad builds with your setup btw?09:15
tsdgeosi don't understand the question09:15
tsdgeosi'm a total snapcraft newbie09:16
sergiusensSaviq he mentioned unity7 (yeah, wrong person), just want to figure out how this is in his LD_LIBRARY_PATH...09:17
sergiusensbut yeah, no worries09:17
pstolowskisergiusens, $SNAP/usr/lib/x86_64-linux-gnu/libunity should be added to a part / wrapper script, no?09:21
sergiusenspstolowski yes, but not as part of the base09:30
sergiusenswe will be adding `build-environment` for parts to solve this per part09:31
mupPR snapd#2259 closed: tests: /dev/ptmx also broken on powerpc <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2259>10:37
mupPR snapd#2260 opened: tests: add test that ensures the right content for /etc/os-release <Created by mvo5> <https://github.com/snapcore/snapd/pull/2260>10:37
Son_Gokuoh dear10:56
Son_Gokuthe Cubs won10:56
Son_Gokuwho knows what could happen now?!10:56
kalikiana_stgraber: jdstrand I can't install the lxd snap I built... It fails on 'installation not allowed by "lxd" slot rule of interface "lxd"' if I add slots:[lxd] to it, or without it the same with lxd-support11:04
kalikiana_The error isn't very descriptive unfortunately... it doesn't even say exactly what part of it is the blocker. Not even --devmode makes a difference11:06
kalikiana_Nothing in the logs11:08
Chipacakalikiana_, what error? (not sure if you're talking to somebody, in which case ignore me)11:23
kalikiana_Chipaca: installation not allowed by "lxd" slot rule of interface "lxd" - I used lxd: allow-installation: false deny-connection: true deny-auto-connection: true in basedeclaration.go for the lxd interface and added slots: [lxd] to the lxd snap11:25
kalikiana_This was what was suggested I do in the review for https://github.com/snapcore/snapd/pull/2225/files11:26
mupPR snapd#2225: Implement lxd-client interface exposing the lxd snap <Created by kalikiana> <Conflict> <https://github.com/snapcore/snapd/pull/2225>11:26
kalikiana_The idea being, snapd can pull in the lxd snap when it's needed11:26
kalikiana_Alas, I can't install that "providing" snap in the first place11:27
jdstrandkalikiana_: yes, that is a development rough edge that I brought up on the list recently. for now, temporarily adjust the base declaration so you can install it11:41
kalikiana_jdstrand: Hmm which means what exactly? How can I "adjust" without changing the interface I want to have?11:43
kalikiana_devmode doesn't work11:43
jdstrandkalikiana_: just make it look like 'bluetooth-control' but use 'app' instead of 'core'11:45
jdstrandkalikiana_: in other words, just have it not autoconnect, but otherwise it is installable and connectable11:45
jdstrandkalikiana_: when you are satisified with testing your snapd, undo that bit and submit the PR11:45
jdstrandkalikiana_: you'll need to do that for both lxd and lxd-support11:46
tsdgeoscan i remount the snap mounts as read/write?11:55
tsdgeosi tried11:55
tsdgeossudo mount -o remount,rw /var/lib/snapd/snaps/unity8-session_x1.snap /snap/unity8-session/x111:55
tsdgeosbut didn't work11:55
ogra_tsdgeos, indeed you can remount anything you like as readwrite ... but in case of a squashf img file that wont gain you anything ;)11:56
zygatsdgeos: squashfs doens't support writing at all11:56
jdstrandtsdgeos: no. squashfs files are not writable11:56
jdstrandheh11:56
tsdgeosmeh11:56
Chipacatsdgeos, what're you trying to do?11:57
=== hikiko is now known as hikiko|ln
valvehi. Is this the correct channel to ask for advices on writing my snap.yaml (and packaging in general) ?11:58
tsdgeosChipaca: i'm trying to debug stuff, basically why unity8 snap doesn't start, by adding debugs, given how debug unfriendly this whole snap thing is11:58
kalikiana_tsdgeos: snap try?11:58
Chipacavalve, probably :-) although writing the snap.yaml by hand is discouraged11:58
valveChipaca: how should I do ?11:58
Chipacatsdgeos, what kalikiana_ said; don't create the snap, stage it and then snap try on the directory11:59
Chipacavalve, what're you trying to do?11:59
jdstrandtsdgeos: there is a trick you can do with overlayfs though to aid in debugging, etc. http://paste.ubuntu.com/23420437/11:59
Chipacavalve, for most things, snapcraft is the way to do it11:59
tsdgeosi guess i can try the try thing12:00
tsdgeostx12:00
valveChipaca: but have to start from a snap.yaml anyway (afaik)12:00
Chipacavalve, snapcraft.yaml12:00
valveChipaca: yes yes sorry12:01
ogra_tsdgeos, "snap run --shell unity8-session" will spawn a shell inside your snap env ...12:01
ogra_tsdgeos, and if you want to tyr our single chnages you can bind-mount writable files on top of the files inside the snap12:01
ogra_*try out12:01
valveMy current problem is the following: I'm trying to pack a python application into a snap. The problem I've right now is that the app wants to access /etc/<its-config-file>.cfg12:01
Chipacavalve, it has no way of overriding that?12:01
Chipacavalve, (what app, btw?)12:02
valveChipaca: that's true, might give it a different path (via a parameter).12:02
valvebut12:05
valveWhat's the correct procedure to pack a "daemon" (general question) that assumes a configuration in <prefix>/etc (just as an example) ?12:09
tsdgeoskalikiana_: how does the snap try thing work? what directory do i have to pass it?12:11
tsdgeosbecause if i pass the dir the snapcraft yaml file is, it doesn't like it12:14
tsdgeosso it seems it needs the "prime" folder12:17
tsdgeosvery explanatory12:18
valvethe point is: the application brings in its dependencies and these assume files in <prefix>/etc (just to get to my point)12:22
valveI can change my application settings but have no (or just few) controls over the dependencies12:23
valveI was assuming that the plugines were doing the maginc (just changing the prefix) underway12:23
valveBut while running the application (daemon to be correct) it cannot access /etc and thus doesn't work12:23
valveI'm surely wrong somewhere (bad assumptions and/or understanding). The snapcraft.io documentation doesn't help me.12:24
valveWhere should I dig for mode documentation ?12:25
zygavalve: I don't think the plugins do prefix changing magic12:53
valvezyga: the whole thing does use prefixes since (AFAIK: it builds and pack things accordingly). My point (due to ignorance - mostly) is: bringing things into a snap is process that tends to be bloody. I.e. I can change my app, I can delve into the details of some app. If I have a huge chain of dependencies ... the problems could be many13:02
valveI supposed (probably wrong assumption) to have an "internal mapping" to let the code see a (sort of) container FS as a chroot-ed thing (please try to get me)13:03
valve(Assuming that a package resolves to an environment variable to get a correct prefix ... works in - probably - just an handful of times))13:06
=== hikiko|ln is now known as hikiko
valveHowever: is there a point where to grab fresh / more complete documentation ? At the moment what I'm using is snapcraft.io13:06
zygavalve: we're cooking a feature that will make it easier, right now if you can pass various switches to make it ignore /etc it is much better/eaier13:19
zygaeasier*13:19
valvezyga: will do that using HOME (SNAP_DATA) at build and running phases13:22
valvezyga: thanks13:22
mupPR snapcraft#886 closed: Support for gadget snaps <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/886>13:29
mupPR snapd#2261 opened: release: os-release on core has changed <Created by mvo5> <https://github.com/snapcore/snapd/pull/2261>13:33
sergiusensrenato replied on telegram13:34
valveIs there a timing for the jhbuild plugin (https://github.com/snapcore/snapcraft/pull/812) ?13:39
mupPR snapcraft#812: New plugin: jhbuild <Created by attente> <Conflict> <https://github.com/snapcore/snapcraft/pull/812>13:39
attentevalve: there's some issues with that PR that i need to work through...13:40
attentevalve: i'm trying to remove the use of lxc in that plugin13:40
attenteit's a substantial re-write...13:41
valveattente: thank you13:41
steve___Hi All, I'm new here. Just started working on snapping some neuroimaging tools.14:00
steve___Is there a way to create a "local" store so we can test everything out entirely without polluting the Ubuntu store with half baked packages?14:00
cwaynesteve___: hiya, welcome :)  generally I'd say that's the purpose of the edge channel on the store, those packages aren't meant to be stable and could very well be half-baked14:02
steve___perfect!14:02
cellashHi all, Im currently have a working .snap on Unity 7 on 16.04 and 16.10 however when I try to run it on Unity 8 (16.10) I get this error: https://pastebin.ubuntu.com/23420077/. Does anyone know what this means or knows a way to fix this? Any hep would be appreciated.14:38
Mirvqt-ubuntu^Wubuntu-qt-runtime^W long live ubuntu-app-runtime!14:45
didrocksrenato__: Mirv: so, indeed, I think we should have the desktop launcher as part of the runtime content-shared snap14:46
renato__didrocks, hi14:46
qenghoHi all. How is snap set/get supposed to work?14:46
didrocksor… hum, I wonder if the remote parts is after: another remote one, if that would work?14:46
didrockssergiusens: did you already try to test this: ^ ?14:46
Mirvdidrocks: so I was thinking about a launcher as part of a cloud part that is combined with the content shared snap use14:47
didrocksyeah, either we combine, or we chain them14:47
sergiusensdidrocks I did add logic for this to work in one of the latest releases; is it failing bad?14:47
Mirvyeah chaining if possible14:47
didrockssergiusens: no, I was just curious, let's see if we can break it then! :-)14:47
sergiusensdidrocks I am basically resolving the whole build chain before trying to even load a plugin now14:48
renato__didrocks, we will need a combination of gtk and qt launch, since some of our apps uses glib and qt14:48
didrocksMirv: ok, so to avoid repetition, let's have the 2 chaining each other, and adding a new part refering your work14:48
Mirvso after: [ubuntu-app-runtime], which pulls in the ubuntu-app-runtime and the app plugs into it and uses ubuntu-app-launch (or some other name) to launch the app14:48
didrocksrenato__: but everything is shipped in ubuntu-app-runtime, correct? (gtk/glib and qt?)14:48
didrocksMirv: FYI, the launchers are https://github.com/ubuntu/snapcraft-desktop-helpers, adding a new built one isn't an issue, we just need to ensure the paths are correct and we ship in the runtime what we need14:50
renato__didrocks, I think so, Mirv can confirm that14:50
Mirvthere's a lot yes planned at the moment to be included14:50
qenghoHow is a snap supposed to get values set from the outside with "snap set"?14:50
didrocksqengho: snapctl set/get from the hook itself14:50
didrocksqengho: snapd has an example in the tests for this + the hook documentation14:51
didrocksMirv: so, yeah, let's add another flavor for it. Look at the current built-in helper (like the one used in the vlc snap) and tell me what paths needs to change. Then, we can revisit14:52
didrocksand I think we'll "force" apps using this runtime to bindmount it in a well-known location14:52
didrockslike $SNAP/snap-platform maybe14:53
Mirvdidrocks: right, after we have something (not really started on the cloud part / launcher yet, just have custom launchers for apps), it could live there too instead of own repo14:54
renato__didrocks, Mirv, we need to mount the share content in a fixed dir to get it working right?14:54
renato__right now the app can mount it whatever it want14:54
Mirvrenato__: yes well the launcher would want it to be in the known dir, like we now have it mounted under the app's ubuntu-app-runtime dir14:54
Mirvdidrocks: do you think a custom interface would be then better than content interface where we need to actually specify the directory?14:54
didrocksMirv: it would be better to reuse the same launcher structure directly, there is a common file and we try to share as much code between launchers as possible (which is the goal of this repo)14:56
didrocksrather than each one having his own repo. We saw what happened then (broken in some place, not sure what people took)14:56
didrocksthere are makefiles to build them dynamically14:56
didrocks(and so, they all have a common part, and a specific/dedicated one)14:57
didrocksrenato__: Mirv: for mounting, I would really force to mount them in a directory for the launcher to know where to look for (or add an option to the launcher to specify if default doesn't work for them)14:57
Mirvdidrocks: makes sense indeed14:57
didrocksbut best practice is to agree on a path14:57
didrocksand use the same for all runtime14:57
didrocksso content-share interface, and specifying a path (I would avoid runtime though for confusion with flatpak)14:58
didrocksas they are not exactly the same thing14:58
renato__will be nice if the interface could create the path if that does not exists, right now the app need to install a empty dir14:58
didrockswe agreed 3 months ago to use the term "platform"14:58
didrocksrenato__: yeah, it's because we are using bindmount… and the path is RO14:58
didrocksso you can't create the dir dynamically to bindmount to it14:58
Mirvdidrocks: we agreed this week against platform and framework, and agreed today on ubuntu-qt-runtime -> ubuntu-app-runtime :)14:59
didrocks(and we don't use overlayfs or something similar)14:59
didrocksMirv: hum, you should have talked to us, runtime was voted against by executive decision14:59
didrocksso really, don't use it :)14:59
renato__the name again :D15:00
Mirvoh this bikeshedding :)15:00
didrocksclassical, isn't it! :)15:01
Mirvdidrocks: yeah we've the content interface working now as described, renato__ is running calendar on it15:01
didrocksMirv: let's call it -foo for now :)15:01
didrocksok, so you only need to integrate to the launcher15:01
Mirvyes renato just copy-pasted the launcher from my test app15:02
didrocksdo you want to have a first look? I think we can then amend the existings one to add more options if needed15:02
seb128should building snaps that pull a git repo work on launchpad?15:02
seb128I've a simple one that fails to build on15:02
seb128"git.gnome.org: Name or service not known"15:02
renato__Mirv, no I was using gtk-launcher and this consumes 50MB on the package15:02
Mirvyeah I plan to take an actual first look really-soon-now, it's just all this bikeshedding that gets in front of it :)15:02
didrocksseb128: I got some issues on some domains as well. It's pulled as source:, correct?15:03
renato__Mirv, didrocks we need a launcher that make uses of the library on the content share instead install new ones15:03
Mirvrenato__: oh, ok, I thought you copy-pasted from the timostestapp3 that would have the correct paths already15:03
seb128didrocks, yes, http://bazaar.launchpad.net/~ubuntu-desktop/+junk/ghexudt/view/head:/snapcraft.yaml15:03
Mirvrenato__: that's what the launcher on timostestapp3 does, yes :)15:03
renato__Mirv, I did a mix of both15:03
didrocksseb128: I guess for the launchpad team, but yes, it's supposed to work15:03
didrocksMirv: creating a complete launcher respecting themes and such is really complex (with gsettings…)15:04
didrocksI guess that's why renato__ pulled from both :)15:04
Mirvdidrocks: so indeed this https://github.com/tjyrinki/timostestapp3/blob/master/launcher is basically copy-pasting + sed from desktop-helpers15:04
didrocksMirv: ok, do you want me to work on this? (in this case, it will be on Monday), or do you want to have a go?15:04
seb128cjwatson, hey, should launchpad be able to pull a source from git.gnome.org to build a snap? I don't know if I do something wrong/stupid but my build fails on "git.gnome.org: Name or service not known"15:05
didrocksseb128: git:// is using ssh IIRC, did you try the http:// version?15:05
seb128didn't, that could be it15:05
didrocksif you use http:// postfix with .git15:06
seb128I think I changed it to git: because snapcraft is not smart enough to figure out that http://git is a git type source15:06
didrocks(if gnome git doesn't support that, try with source-type: git instead)15:06
didrocksyeah, it doesn't15:06
didrocksso either gnome git support .git suffix on http url15:06
didrocksor source-type15:06
didrocksthat should fix it15:06
cjwatsonyes, you must use http://15:07
cjwatson(or https://)15:07
seb128didrocks, I reported https://bugs.launchpad.net/snapcraft/+bug/1590797 on snapcraft about that btw just for the record15:07
mupBug #1590797: "no handler to manage source" is not an helpful error <bitesize> <Snapcraft:Triaged> <snapcraft (Ubuntu):Confirmed> <https://launchpad.net/bugs/1590797>15:08
cjwatsonbut it's not about git:// using ssh (which it doesn't)15:08
cjwatsonit's that builds currently go through a proxy that doesn't proxy the git:// protocol15:08
renato__didrocks, Monday is ok for me I will be off tomorrow :)15:08
didrocksseb128: I did the .git suffix for detecting it, but yeah, I think if you have https://git.<something>, it should be considered as git15:08
Mirvdidrocks: I'll check tomorrow how does it look, but it's basically down to "use Qt and other libs primarily from $SNAP/ubuntu-app-foo" so let's check on Monday15:08
didrocksrenato__: ahah, ok :)15:08
seb128cjwatson, didrocks, thanks15:08
didrocksMirv: ok, let's do this!15:09
renato__Mirv, didrocks in case you need a app to try: https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/snappy-runtime15:09
didrocksgreat! that will be of a great help15:10
Mirvdidrocks: or the simple QML case https://github.com/tjyrinki/timostestapp3 :)15:12
sergiusensniemeyer this is the link that is needed https://hub.docker.com/add/automated-build/github/form/snapcore/snapcraft/ but the sad thing is, you need r/w https://forums.docker.com/t/cant-access-new-github-organization-for-automated-builds/1080/1615:13
sergiusensniemeyer I'll keep it manual for now15:13
didrocksMirv: ok, please have a look tomorrow and let's sync up on Monday! :)15:13
niemeyersergiusens: This is what I get when I try to create it: The repository name `snapcore/snapcraft` is already taken.15:15
niemeyersergiusens: Did you create it?15:15
sergiusenslet me delete it15:15
sergiusensniemeyer it is deleted now15:16
niemeyersergiusens: "Could not find github repo `snapcore/snapcraft`"15:17
niemeyersergiusens: Ah, wait15:17
niemeyersergiusens: Maybe GitHub is preventing Docker from seeing it.. let me check the config on GH's side15:17
Mirvrenato__: didrocks: now with more bikeshedding :) https://code.launchpad.net/~timo-jyrinki/+snap/ubuntu-app-platform/+build/901915:25
didrocksMirv: ahah! well done :)15:28
mupPR snapd#2262 opened: tests: disable autorefresh for the external backend <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2262>15:33
mupBug #1638320 changed: remove core snap via snapweb fails but it still removes from the web interface <snapweb:New> <https://launchpad.net/bugs/1638320>15:38
=== chihchun is now known as chihchun_afk
=== jamespag` is now known as jamespage
pachuloHi all! Is there any way of cleaning old versions of a snap in Ubuntu desktop other than removing the old revisions one by one?16:53
mupPR snapd#2261 closed: release: os-release on core has changed <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2261>17:01
mupBug #1638988 opened: Cannot run spread hello world on all-snaps image <Snappy:New> <https://launchpad.net/bugs/1638988>17:17
mupPR snapd#2263 opened: tests: check that gpio device nodes are exported after reboot <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2263>17:24
mupBug #1638995 opened: lslogins displays user and email info <Snappy:New> <https://launchpad.net/bugs/1638995>17:45
swaveckQUESTION: I've just installed Ubuntu Core on my Pi3, authenticated on UbuntuOne; what is my password? UbuntuOne pass isn't working.18:08
ogra_swaveck, there is no local login ... use ssh18:19
ogra_(like the config tool told you on the last page)18:19
ogra_you can ssh and run "sudo passwd $USER" to set a password, that will also allow console logins then18:19
swaveckthanks for help, I'll try it18:22
qenghoShould I be able to run "snap set ..." and get a configure hook script called in a snap? When I add a configure file in meta/hooks/, "snap set" fails with  error: cannont perform the following tasks:\n- cannot find hook "configure" in "snapname"18:44
qenghosnap    2.16+16.10ubuntu1.218:44
mupPR snapcraft#880 closed: Remove license concepts <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/880>20:18
nottrobinHow can I switch the channel of a snap?20:42
nottrobinIf I was following "candidate" but now I want to follow "stable"?20:43
noise][nottrobin: snap refresh foo —stable20:52
nottrobinah ha!20:53
nottrobinthanks20:53
zygaPharaoh_Atem: thank you for helping on the release22:03
zygaPharaoh_Atem: next week I'll look at what I can do to get the last few bits fixed22:03
Pharaoh_Atemzyga: you're welcome22:03
zygaPharaoh_Atem: tomorrow is wrap up and travel home (finally!) for me22:03
Pharaoh_Atemwell, at least we have the presets in Fedora 2522:03
Pharaoh_Atemhttps://bodhi.fedoraproject.org/updates/FEDORA-2016-7b70ad9b8e22:04
zygaPharaoh_Atem: yes, and I'm sure we'll crack that last permission with fresh minds next week22:04
zyganice :)22:05
vagpag_hi, could you pls help me on how to connect on ubuntu core 10 as loclahost?22:06
qenghovagpag_: You said "how to connnect on" and "10", and neither of those make any sense to me. Maybe say that another way.22:07
vagpag_Sorry! Let me try again.22:08
vagpag_After installing ubuntu core 16 on my pi 3 and first boot, I can't login as localhost. Hope that helps...22:12
zygavagpag_: did you create the user account>?22:16
qenghovagpag_: That "localhost" part makes no sense still. After you initialize and give it an email address in Launchpad, it listens for incoming ssh. If you ssh to that from another place, with your username equal to your launchpad id, then you should be able to log in. That's the normal path. Did you do all that, or something else?22:18
qenghoIf something else, where did you differ?22:18
qengho$ ssh -l vagpag raspberrypiIPddress22:19
qenghoAssuming https://launchpad.net/~vagpag is you22:20
vagpag_gengho: after entering my Ubuntu SSO credentials (step three in first boot), my screen says Ubuntu Core 16 on <my ip> (tty1) / localhost login:.22:28
zygavagpag_: ssh into that ip from a machine that has corresponding SSH keys22:30
zygavagpag_: the username is your launchpad user ID (not email)22:30
valvesorry. Can I pass parameters to a daemon such as:  'command: bin/fcd -d -c $SNAP/etc/fcd.cfg' (simple daemon) ?22:37
qenghovalve: Sure!22:38
valvesupposed so BUT got 'fcd: error: unrecognized arguments: /snap/...'22:39
vagpag_zyga: how do i do that? ssh and ip of the machine?22:39
qenghovalve: I should distinguish here, that snapcraft will let you do that. I'm not saying your command you are providing will like it. You're running "fcd" there. It complaining. Fix that.22:40
zygavagpag_: like this22:40
qengho$ ssh -l vagpag raspberrypiIPddress22:40
zygavagpag_: ssh zyga@1.2.4.422:40
zygavagpag_: assuming zyga is the username on launchpad22:40
zygavagpag_: and the box that runs the ssh command has ssh keys set and uploaded to launchpad under the account "zyga"22:41
mupPR snapcraft#887 opened: Cache apt related files (config, packages) in 'apt' parent directory <Created by squidsoup> <https://github.com/snapcore/snapcraft/pull/887>22:42
qenghoJust to brag, I made a snapcraft yaml that reads params from a config file (that is previously written by a snap-set hook) and optionally sets args for a daemon, without a wrapper. http://bazaar.launchpad.net/~cmiller/+junk/sshesame-snap/view/head:/snapcraft.yaml22:43
valveqengho: thanks22:44
valveqengho: thanks22:44
zygaqengho: nice :)22:44
zygaqengho: there's a feature in snappy that's not yet available through snapcraft that will let you do that in a way that's even cleaner than that22:45
qenghozyga: really?!22:45
zygaqengho: there's a hook system and a way to run a special "app" (hook) on install22:45
zygaqengho: you can us it now but there's no way to express that in snapcraft yet22:45
qenghozyga: What's the new hook name?22:46
zygaqengho: configure22:46
vagpag_zyga: from a mac's terminal i run ssh -l vagpag and pi ip and know asks for a password22:46
zygaqengho: I hope it will be docuented soon at https://github.com/snapcore/snapd/wiki22:46
qenghozyga: Er, that's what I'm using. Walk back up that tree. ^22:46
zygavagpag_: do you have ssh keys on your launchpad account?22:46
zygahmm :)22:46
zygaohhh22:47
zyganice!22:47
zygaqengho: this line, you can simplify it22:47
zyga    command: sh -c "'test ! -f $SNAP_DATA/configuration || . $SNAP_DATA/configuration; $SNAP/bin/sshesame ${port:+-port $port} ${listen_address:+-listen_address $listen_address} 2>&1 |$SNAP/usr/bin/logger -t $SNAP_NAME'"22:47
qenghozyga: How?22:47
zygaqengho: configure runs before we start services AFAIR22:47
vagpag_zyga: yes. I have it on my ubuntu one account22:47
zygavagpag_: do you have that ssh key on your mac?22:48
vagpag_zyga: No!22:48
qenghozyga: I guess i could put or "code" in the configuration file, but I'd rather not.22:48
zygavagpag_: user account setup doesn't use passwords, you have to use ssh keys to log in22:48
qenghozyga: I don't know how to get optional params in the command:... otherwise.22:49
zygavagpag_: afer that you can use 'sudo passwd' to set a password if you want22:49
zygaqengho: I mean you can just do any initial setup in the hook itself22:49
qenghozyga: I don't see it, but I'm happy with this anyway.22:50
qenghozyga: Is it up to me to poke at systemd to restart the service on config change?22:53
qenghome=user?22:53
zygaqengho: the hook can send it a signal to restart the service / reload it22:54
zygaqengho: the service can observe a config file22:54
zygaqengho: you can do many things22:54
qenghozyga: Hmm, is that in a "machines can theoretically do that"-sense, or a "hooks can sighup their process group to signal the services attached should reload and that's what we expect snap packagers to do" or something?22:57
qenghoI have a simple daemon. No pidfile. systemd manages it, but I don't know the process name, and I'd be surprised if confinement lets me to a lot.22:58
zygaqengho: you can do that to your process from your own hook23:01
zygaqengho: the daemon can use inotify to look at the config file23:01
zygaqengho: and you can write a pidfile if that helps23:01
zygaqengho: or use any form of IPC to push new data into the sevice23:01
zygaqengho: snappy dosen't help or get in the way much23:01
qenghozyga: is this after we get a patches: object in snapcraft yaml so I can add inotify watching to somebody's code?23:02
zygaqengho: ?23:02
zygaqengho: no, why?23:03
zygaqengho: the service can inotify observe a config file23:03
zygaqengho: (or dir or something)23:03
qenghoOh, a wrapper can? I see.23:03
zygaqengho: and the config hook can just write to those files23:03
zygaperhaps I'm missing something and I didn't understand your question23:03
qenghozyga: I'll tell you my wishlist. The "configure" hook has an environment variable set that contains a list of the process IDs or service names of all the daemons snapd started, and the configure hook can maybe send some signal to those.23:07
AlbertAqengho: zyga: I was able to put a configure hook by "organize: configure: meta/hooks/configure" seems to work for me for now :)23:07
qenghoAlbertA: I think that will fail when you try to "snap set"23:07
AlbertAqengho: worked fine for me :)23:08
qenghoAlbertA: Not for me. :\ The nightly snapcraft PPA supports hooks too.23:08
zygaqengho: interesting though it would always be racy I'm afraid23:09
zygaAlbertA: nice!23:09
zygaqengho: though the hook might detect that and just fail23:09
zygaqengho: (if the user happens to concurrently restart services and use set"23:10
zyga)23:10
zygaqengho: I need to get some rest, good night23:10
qenghozyga: Good night!23:11

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