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

=== matteo` is now known as matteo
=== chihchun_afk is now known as chihchun
=== Birchy is now known as Bitchy
=== Bitchy is now known as Birchy
liuxghas anyone ever used --jailmode to install an snap? I just reported a bug at https://bugs.launchpad.net/snappy/+bug/1643419. I am not sure whether it is a valid bug report. However, it does not show the correct result. thanks04:45
mupBug #1643419: jailmode is not wroking properly <Snappy:New> <https://launchpad.net/bugs/1643419>04:45
mupBug #1643418 opened: jailmode is not wroking properly <Snappy:New> <https://launchpad.net/bugs/1643418>04:46
mupBug #1643419 opened: jailmode is not wroking properly <Snappy:New> <https://launchpad.net/bugs/1643419>04:46
foxmaskbonjello08:01
dholbachgood morning08:04
mupBug #1643418 changed: jailmode is not wroking properly <Snappy:New> <https://launchpad.net/bugs/1643418>08:05
mupBug #1643419 changed: jailmode is not wroking properly <Snappy:New> <https://launchpad.net/bugs/1643419>08:05
didrockshey dholbach, foxmask08:17
zygao/08:17
foxmaskdidrocks: hi08:19
dholbachsalut didrocks08:22
jamespagejdstrand, morning10:01
jamespagejdstrand, re the openvswitch interface I'm working on - what's you're preferred name? openvswitch or openvswitch-support10:02
jamespagelooking at the 'libvirt' interface, that allows a snap access to libvirt on the host os (in classic server installs)10:02
jamespageso I wondered about following a similar pattern - openvswitch-support allow OVS to run from a snap, vs openvswitch allowing a snap to access openvswitch on the host10:03
jamespageI'll need to look a libvirt in a snap next anyway :)10:03
xnoxHello, I'm running $ sudo snap find -> and for various queries a bunch of snaps are returned.10:37
xnoxhowever, when trying to install them, all of them are error not found.10:37
xnoxI am on s390x architecture, and the snap find results do not appear to be filter to display snaps that are applicable to my architecture.10:38
xnoxHow can I search for snaps that are available for my machine type?10:38
jamespageany plans to publish snapcraft on pypi? it would make it easily consumable in openstack gate tasks11:00
=== chihchun is now known as chihchun_afk
timprenato__: so if you add "ubuntu-telephony-phonenumber" to your snap, it pulls in the qt dependencies even though that is in the platform snap?11:46
timprenato__: but only at build time? Or is it put in the final snap too?11:47
renato__sergiusens, Hey I have some problems with the way that snapcraft works. As timp said adding any qml modules bring the hole qt stak and all dependencies into the package.11:47
renato__sergiusens, I know that we can remove the files with " -<file-name>" but this is a huge work when the package has a lot of dependencies.11:48
renato__sergiusens, do we have a way similar to "debian" packages where you specify only the files that you want in the package?11:48
timpI think I am running into the same issue now. I'm making a snap with stage-packages: - ubuntu-ui-toolkit-examples11:59
timpall the dependencies are in the platform snap, but when creating the snap, they are still all downloaded.11:59
=== hikiko is now known as hikiko|ln
zygajdstrand: hey, you may want to look at this: https://github.com/snapcore/snapd/pull/231012:07
mupPR snapd#2310: many: fix handling of jail mode in security setup <Created by zyga> <https://github.com/snapcore/snapd/pull/2310>12:07
zygajdstrand: it's related to --jailmode being effectively a no-op12:07
zygajdstrand: there's a bug referenced from there12:07
zygajdstrand: and a branch adding a small function EffectiveSecurity() that you may want to read12:08
zygajdstrand: I added a spread test as well12:08
zygajdstrand: (and some simple unit tests)12:08
zygajdstrand: none of the current tests caught this because they weren't measuring applied security, just what was being claimed12:08
mupBug #1635413 changed: newgrp doesn't work on classic <Snappy:New> <https://launchpad.net/bugs/1635413>12:15
sergiusensrenato__ use a positive filtes (without the `-`)12:28
sergiusensrenato__ stage-packages are to stage into the snap; if you only need it for building use build-packages12:29
renato__sergiusens, if fact I need it to execute the app. But I do not need these dependencies12:29
renato__sergiusens, if I use a positive filter it will overwrite the default behavior of adding everything?12:30
sergiusensrenato__ yes for that last comment12:30
renato__sergiusens, great, thanks12:30
renato__timp, could you try that on your examples ^^^12:33
=== hikiko|ln is now known as hikiko
renato__didrocks, what do you think about this bug? https://bugs.launchpad.net/ubuntu-app-platform/+bug/164322013:10
mupBug #1643220: ubuntu terminal app (edge) Unrecognized OpenGL version <Snappy:Incomplete> <Ubuntu App Platform:New> <Ubuntu Terminal App:New> <https://launchpad.net/bugs/1643220>13:10
didrocksrenato__: is it in SNAP_LIBRARY_PATH?13:11
didrocksif so, I think snapd should then export it in LD_LIBRARY_PATH rather than having every single snap having to reexport this in a wrapper13:11
renato__didrocks, this is what zyga said.13:12
renato__didrocks, sould we add it on dekstop launcher?13:12
didrocksif you have a nvidia device, please try :)13:12
didrockssee my answer13:12
didrocks14:11:47   didrocks | if so, I think snapd should then export it in LD_LIBRARY_PATH rather than having every single snap having to13:12
didrocks                    | reexport this in a wrapper13:12
didrockslauncher is really a fallback for things snapd should support13:12
renato__didrocks, I do not have a nvidia13:12
didrocks(or snap-confine in that case)13:12
mupBug #1624322 changed: console-conf wlan race on pi3 <Snappy:Invalid> <subiquity (Ubuntu):Fix Released> <https://launchpad.net/bugs/1624322>13:19
mupBug #1638661 changed: Undo on failed refresh doesn't keep the previous snap intact <Snappy:Invalid> <https://launchpad.net/bugs/1638661>13:19
zygadidrocks: snap-confine or snapd won't set it but the wrappers from snapcraft use it and merge it into LD_LIBRARY_PATH13:22
didrockszyga: thanks for the answer, so renato__, it means you should already have it exported ^13:24
renato__didrocks, I do not see the desktop-launcher using it. There is another wrapper above it?13:27
didrocksrenato__: there is one created by snapcraft, indeed13:28
didrocksand from what zyga told, this one is supposed to do this override13:28
didrocksyou can see it, it's at the root of your snap13:28
didrocksand has a .wrapper suffix13:28
renato__didrocks, ok got it. And it contains the SNAP_LIBRARY_PATH13:29
didrocksrenato__: seems then your bug is different that this not being exported13:30
zygarenato__, didrocks: look at LD_LIBRARY_PATH at runtime and see what you have13:32
zygarenato__: perhaps the issue is that nvidia support is broken in some interesting way, I'd love to help you out to fix it13:32
zygarenato__: we don't have real CI for nvidia support at this time13:33
zygarenato__: only to parts of it, but not really to see that it works13:33
zygarenato__: also, GL has different APIs and some of those might not work (the tests may be too simplisic)13:33
renato__zyga, I do not have a nvidia too. I was just trying to help and fix the problem13:33
zygarenato__: so thank you for pushing the border13:33
zygarenato__: I can try it on my hardware, tomorrow most likely as today I'm wrapping up last week actions and working on top-priority issues13:34
renato__zyga, ok thanks. this is not a priority13:35
mupBug #1470661 changed: Tilde allowed in version but systemd hates it <Snappy:Invalid> <Snappy 15.04:Won't Fix> <Snappy trunk:Invalid> <https://launchpad.net/bugs/1470661>13:43
jdstrandjamespage: hey, not sure if you realize, but glance can be published by pushing the 'publish' button. I just noticed it and thought I'd mention it. ignore me if you already knew this13:45
renato__zyga, I got my snap on this state: http://paste.ubuntu.com/23511705/13:45
renato__zyga, I can not install any other snap13:45
timprenato__, sergiusens: actually in my case it pulls the dependencies of a deb package that I need. I guess there is no way around that?13:45
renato__timp, ok but it pack the deps? Or it only packs the files that you specified?13:46
sergiusenstimp nope, you will have to change the dep in the deb to be a recommends and SRU or propose it13:46
renato__sergiusens, the deps are necessary they must be real deps. But we do not need it on the snap since the platform will provide it13:47
timpsergiusens: the runtime dependencies in the deb are correct, but they are in the platform snap already.13:47
renato__I do not mind it pulling the deps. I just do not want it in the package13:48
jdstrandtedg: I didn't see that ping before, but I see this one13:50
liuxgkyrofa, ping13:51
tedgjdstrand: heh, okay.13:53
tedgjdstrand: can haz undefined interfaces?  ðŸ˜‰13:54
zygajdstrand: in go switch/case has an implicit break13:55
zygajdstrand: classic confinement doesn't fall through and go to devmode confinement13:55
zygajdstrand: or did I misunderstand your comment there13:56
jamespagejdstrand, yup I think that's done for the edge channel13:57
liuxgcurrently, I follow the link at http://docs.ubuntu.com/core/en/guides/build-device/config-hooks, if I use "snap set <snapname> username=foo pass_word=bar", I cannot get the "pass_word" in credential file due to the "_" in the "pass_word". this is a bug?13:57
jdstrandzyga: I think you misunderstood. look at case.StrictConfinement14:00
zygajdstrand: I think I see what you mean now14:00
jdstrandzyga: if f.JailMode14:00
zygajdstrand: I just replied14:00
jdstrandzyga: then you have a comment talking about devmode14:00
zygajdstrand: yes, because the comment refers to the check for devmode *flag* below14:00
zygajdstrand: if both flags are set I pick jailmode14:01
jdstrandzyga: but, we are in snap.StrictConfinement14:01
jdstrandI'll read your comment14:01
zygajdstrand: but even in that confinement we can have either or both of the flags set14:01
jdstrandI added a new comment14:04
zygajdstrand: sure, I'll do that; thanks14:05
zygajdstrand: if you can also review https://github.com/snapcore/snapd/pull/2315 I could land it, it's a big mechanical change to how devmode is conveyed14:06
mupPR snapd#2315: many: use snap.ConfinementType rather than bool devmode <Created by zyga> <https://github.com/snapcore/snapd/pull/2315>14:06
jdstrandzyga: I reviewed that with a cursory review and it looked fine, but an in depth review will have to wait a bit. I'm trying to get the dbus interface up in a PR today so there is a chance of it landing before I go on holiday on wed14:08
* zyga nod14:09
topi`is there a channel for Ubuntu Snappy?14:10
topi`I guess I mean Ubuntu Core14:10
jdstrandseb128, mhall119: hey, are there workking devmode snaps that are blocked on bug #1590679?14:14
mupBug #1590679: Apps can't own session bus names (unity7 interface) <snap-desktop-issue> <snapd-interface> <Snappy:In Progress by jdstrand> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1590679>14:14
jdstrandseb128, mhall119: I've been told they should be available, but I don't know where to find them14:14
* jdstrand is trying to get gnome-mahjongg into runnable state atm since that is all I have to work with atm and it fails to launch with my dbus changes14:15
seb128jdstrand, robert_ancell had a stack of GNOME ones he was working on that he didn't publish/that are blocked on that14:15
seb128what error do you get?14:15
jdstrandseb128: it segfaults. seems he stopped cause of the apparmor denial. I think it just needs the gtk desktop part14:16
jdstrandseb128: but I'm looking for a working devmode snap. did he upload any of those?14:16
seb128jdstrand, the one I pointed out in comment #18 should work14:17
jdstrandcause, you can publish to edge with devmode fine14:17
seb128right, I don't know if he did that14:17
seb128I would assume not14:17
jdstrandlet me try the gnome-logs one14:17
jdstrandseb128: there is a gnome-logs in the store in strict mode. is that this?14:17
seb128I don't remember if I uploaded that by then14:18
seb128but it's probably it yes14:18
jdstrandoh it didn't pass review14:18
seb128there was some dangling symlinks or something iirc?14:19
seb128it has been a while, I don't remember the details14:19
jdstrandyes14:19
jdstrandthat's fine14:19
jdstrandI think I can move forward with it14:19
seb128great14:19
seb128let me know if I can help in any way14:20
mupBug #1642669 opened: Can't connect to SnapdLoginService from a snap <snapd-glib:Confirmed> <Snappy:New> <https://launchpad.net/bugs/1642669>14:25
lazyPowerdidrocks: hey there. I made some progress but as we suspected i'm blocked on loading the plugins (despite the .so files being assembled and packed in the snap)  https://github.com/chuckbutler/snap-weechat/blob/master/snapcraft.yaml14:26
lazyPowerdidrocks: If you have any ideas on that one, i'm keen to experiment14:27
jdstrandseb128: ok, it is working14:27
seb128jdstrand, great!14:27
didrockslazyPower: is there any way to point weechat to the directory where the .so files are?14:33
didrockslazyPower: I guess the only way is to dive into the code and see if that can set or patchs to be configurable :)14:33
didrocksI guess -DCMAKE_INSTALL_PREFIX=/usr is what influences it14:33
lazyPoweryeah, i was surprised just defining the customopts flag forced me to set that, as it seems to be set inherently when using the flag in snapcraft.yaml (for the cmake builder)14:34
didrocksyeah, I guess we are back in the issue on projects which forces to set prefix and we don't know the prefix in advance14:34
lazyPoweri'm sure there's a viable path forward here, i'm just nto familiar enough with the code base to make that call yet14:35
didrocksa workaround is to set it to /snap/<yoursnapname>/current/ but then, you will have /snap/<yoursnapname>/current/snap/<yoursnapname>/current/ directory when installed14:35
didrocksand so, you will need to move it back on that14:35
lazyPowerhmm interesting14:35
didrocksseb128: I don't remember, we raised this with Gustavo, right? did we get any feedback?14:36
didrockslazyPower: I would say experiment first that way, to see if this is coming from this, but there is big chance that's the issue14:36
seb128didrocks, right, I think that's still an unresolved one...14:38
elopiopitti: ping. To quickly solve the sudo errors on autopkgtest armhf I added needs-root to the tests. But Sergio tells me we can add a sudoer user without a password, and that confused me. How can we modify /etc/sudoers before the tests run?14:39
didrockslazyPower: so, if that works, I would suggest that you send an email to the ML and CC Gustavo (you can tell I denounced him :p), knowing that it was already discussed14:40
pittielopio: the test has root, so it can do anything to the testbed, including adding to /etc/sudoers.d14:41
elopiopitti: that is if the test has needs-root. I would like to run the tests as a normal user, but be able to install debs. So should I do "su normal-user" after adding normal-user to sudoers?14:44
pittielopio: you can do that, or have a first "prepare" pseudo-test that runs as root and sets up sudoers, then the actual test can run as normal user14:46
Chipacaalex-abreu: you're welcome! :-D14:47
pittiwhichever seems more appropriate14:47
lazyPowersounds reasonable didrocks. will do14:47
didrockslazyPower: keep us posted!14:48
elopiopitti: ok, I like the pseudo-test, I will try that. And last question (for now :), to try to understand. Why do we have passwordless sudo in the amd64 runners but not on this lxc armhf ones?14:50
pittielopio: apparently cloud-init sets up password less sudo, but lxc images don't by default14:50
pittis/cloud-init/cloud images/14:51
topi`is there a good FAQ about the differences between Snaps and regular deb packages?14:52
topi`I know there is some kind of container involved so that the Snap only sees a part of the filesystem14:52
elopiopitti: got it. Thanks.14:53
topi`If I look at developer.ubuntu.com/snappy/start, it seems there is a bunch of "supported HW" like DragonBoard or RPi or Intel NUC, however, if I have another board like the ODROID-C2, can it be supported as well?14:55
topi`I guess what I want to ask, what's so special about these few boards?14:56
mupBug #1473218 changed: TMPDIRs are not cleaned out/are not correctly preserved across app invocations <Snappy:Fix Released> <https://launchpad.net/bugs/1473218>15:32
=== chihchun_afk is now known as chihchun
alex-abreuChipaca, mvo I updated the PR, I am not sure about the landing of this since the sections & empty find bits are still in staging AFAIK16:07
Chipacaalex-abreu: what's staging do with empty find?16:08
alex-abreuChipaca, it changes a bit the semantics of it, it returns a list is 'featured' snaps16:08
Chipacaalex-abreu: ah, that's done already? nice16:08
alex-abreuChipaca, yes16:09
Chipacaalex-abreu: when does it get rolled out?16:09
alex-abreuChipaca, this is what I am trying to find out16:11
alex-abreuChipaca, mvo ok nessita just confirmed me that all those bits are in prob already16:21
alex-abreuChipaca, mvo I will test it now with the branch16:21
alex-abreu& add a comment16:22
mvoalex-abreu: aha, nice. so an empty find returns now the featured ones? thats great16:22
Chipacaalecu: I can confirm prod just responded as I would expect to a snap/sections query16:22
alex-abreumvo, yes16:23
mvo\o/16:23
alex-abreuChipaca, nice !16:23
nessita\o/16:23
mvoout of curiosity, what makes a snap featured?16:23
plarsI'm trying to add a .desktop and icon for a snap that I have, as apparently that's required by the review now? I've looked at some of the playpen snaps that do it and it looks like all they do is add a gui/setup dir in the project dir with those files in it. I've done that, and the snap seems to contain the files when I'm done, but I don't see an entry for16:23
plarsit when I search in unity. Should I?16:23
zygaplars: depends on what's in the desktop file16:24
zygaplars: look at /var/lib/snapd/destkop16:24
zygaplars: we rewrite those desktop files after sanitization, if the rewritten one doesn't have an Exec line you won't find it16:24
plarszyga: *sigh* apparently all I had to do was ask, because now it shows up and works perfectly, but it didn't a few minutes after I installed the snap16:24
zygaplars: ah, that might be unity then16:25
plarszyga: I'm guessing something needed to update16:25
plarsyeah16:25
alex-abreumvo, I am not sure, ...16:25
plarszyga: thanks :)16:25
plarszyga: what other sanitization do you do? All I did was add ${SNAP} to the path for the Exec and Icon lines.16:25
zygaplars: I don't recall but we effectively rewrite the file, only allowing certain keys to show up16:26
mvoalex-abreu: thanks, thats fine, just curiosity on my side16:26
zygaplars: and we're extra careful with keys that have sensitive meaning16:26
Chipacaalex-abreu: mvo: nessita: an empty search returns all16:27
plarszyga: not sure what you mean, most of the one that is normally installed is translations of the name, otherwise just the exec, Icon, etc16:27
Chipacaalex-abreu: can you make your branch keep the check for empty? then we can land the rest of it16:27
Chipacaalex-abreu: or!16:28
Chipacahold on16:28
mvoChipaca: aha, that is what I saw earlier today, I got e.g. test-snapd-xkcd-webserver. I assumed this was just bad timming on my part16:28
Chipacahow was this16:28
mvo(and exactly 100 results)16:28
zygaplars: there's whole zoo of keys, I don't think we allow translation yet, we mostly validate the exec line16:28
mvoso it looked very much like before16:28
Chipacaso what we want is:16:28
Chipacaempty -> list sections16:28
Chipacano?16:28
plarszyga: ok, I'll try it and see if review chokes on the translations. If so, I can always remove those16:28
Chipacathat is, 'snap find' on its own list sections?16:28
Chipacathen 'snap find --section' does the necessary thing16:29
alex-abreuChipaca, well no afaik, ...16:29
alex-abreuChipaca, (sorry otp now)16:29
Chipacahmm16:29
Chipacaoh alright16:29
Chipacamvo: there's a "featured" section16:29
Chipacamaybe empty find implies featured?16:29
mvoChipaca: yeah, that is what I would think16:30
alex-abreuChipaca, that's the idea I think16:30
mvosnap find16:30
mvocool stuff16:30
Chipacamvo: http https://search.apps.ubuntu.com/api/v1/snaps/search X-Ubuntu-Release:16 Accept:"application/hal+json" X-Ubuntu-Architecture:amd64 X-Ubuntu-Wire-Protocol:1 section==featured | jq '..|.name?//empty'16:30
Chipacaalex-abreu: ok, if your branch can do one of those two then we'd be sorted16:32
mvonice16:32
Chipacaalecu: one of those two == revert to blocking empty, or search featured on empty16:32
Chipacaalex-abreu: ^ you, sorry16:32
Chipacaalecu: you're awesome, but i didn't mean to distract you with this16:32
alex-abreuChipaca, ... I'd have to reread all that, I'll do it when not otp16:32
Chipacaalex-abreu: we're signing you up for cat facts while you're distracted. Just sign here: [ ]16:33
alex-abreuChipaca, I need to read the small prints16:36
=== chihchun is now known as chihchun_afk
=== JanC_ is now known as JanC
alecuChipaca: am I?17:30
* alecu blushes...17:30
zygalool, jdstrand: https://github.com/snapcore/snap-confine/pull/18517:48
mupPR snap-confine#185: Detach the hostfs version of /dev <Created by zyga> <https://github.com/snapcore/snap-confine/pull/185>17:48
cjwatsonicey: network access during build> don't have an exact timeline but we're agreed that we're going to do it and it will be soonish17:55
cjwatsonflexiondotorg: ^- FYI17:56
* cjwatson hadn't quite noticed how far backlogged he was17:56
kyrofacjwatson, excellent news :)17:57
alex-abreuChipaca, ok so I checked the store & PR for the empty find stuff, and it does seem to work as intended and defaults to the featured snaps list ...17:57
alex-abreuChipaca, for me, ... could you test again? or maybe I misunderstood your comments17:58
jamespagejdstrand, hey any thoughts on my openvswitch-{support} naming question from earlier today?18:02
jdstrandjamespage: sorry, I missed it. I'm looking at it. I'm wondering if this needs a separate interface. '/{,usr/}{,s}bin/nice ixr,' should be added to process-control and then you plugs: process-control. you could also plugs: network-control for sys_admin and netlink18:11
jdstrandjamespage: run-parts is possibly part of the default template18:11
jdstrand. jamespage that leaves sys_resource and @{PROC}/@{pid}/comm18:11
jdstrandand maybe a syscall or two to investigate18:12
jdstrandjamespage: I think you would then 'plugs: [ process-control, network-bind, network-control ]'18:13
Chipacaalex-abreu: sorry, didn't see this. What do you want me to look at?18:13
Chipacaalex-abreu: ah! just noticed the search without an empty q but also with an empty section returns featured18:15
alex-abreuChipaca, when doing a snap find, I do indeed default to a featured snap find ... which ends up sending a store request like search?q=&section= that the store interprets as 'return the list of featured snaps'18:15
alex-abreuyes18:15
jdstrandjamespage: capability sys_resource could go to process-control for setting rlimits18:15
Chipacai wish the api didn't do that, because it's very non-intuitive, but it does that, so i guess it's alright18:15
alex-abreuwhich is not the same as search?q=18:15
alex-abreuChipaca, sort of agree, I talked to them about that and they seem to have specific backward compat reasons18:16
Chipacayeah, i am aware18:16
Chipacawhine whine moan moan <-- me18:16
jdstrandjamespage: '@{PROC}/@{pid}/comm r,' goes to default apparmor template18:16
zygajdstrand: one more https://github.com/snapcore/snap-confine/pull/18618:16
mupPR snap-confine#186: Detach the hostfs version of /proc <Created by zyga> <https://github.com/snapcore/snap-confine/pull/186>18:16
jdstrandjamespage: (use 'owner @{PROC}/@{pid}/comm r,' and put it under @{PROC}/@{pid}/cmdline)18:18
jdstrandjamespage: yes, run-parts to default template18:18
jdstrandjamespage: I think that will give you everything without needed a new interface18:19
flexiondotorgcjwatson, Thanks for confirming.18:19
jdstrandjamespage: I commented in the PR18:29
mupBug #1643220 changed: ubuntu terminal app (edge) Unrecognized OpenGL version <Snappy:Incomplete> <Ubuntu App Platform:New> <Ubuntu Terminal App:New> <https://launchpad.net/bugs/1643220>18:33
iceycjwatson: cool! worked around it already but good news ;-)18:40
alex-abreuChipaca, thx for the +1, not sure I understand the spread failure though ... seems to be an infra failure?19:10
Chipacaalex-abreu: yeah; restarted it19:11
alex-abreuthx19:11
alex-abreuChipaca, does it auto lands when the PR is +1d ?19:17
jdstrandniemeyer, mhall119, seb128: fyi, https://github.com/snapcore/snapd/pull/1613 is now ready for review19:24
mupPR snapd#1613: interfaces/builtin: add dbus interface (LP: #1590679) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1613>19:24
davmor2Chipaca: hey dude I installed the terminal app from edge and it told me to install ubuntu-app-platform did that connected them and it still throws up the same error to install the platform and connect them is there anything I can do to check the issue?19:39
davmor2hmm snap interfaces shows the connection so now I'm confused19:42
ssweenywasn't there some bug where if you ran an app without a content interface connected you had to reinstall the app before it would work?19:43
jdstrandtyhicks: hey, do you have 5 minutes to discuss something? if not or discussing later is totally fine19:45
tyhicksjdstrand: hey, sure19:45
jdstrandlet me get you a paste19:46
jdstrandtyhicks: the context is https://github.com/snapcore/snapd/pull/161319:46
mupPR snapd#1613: interfaces/builtin: add dbus interface (LP: #1590679) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1613>19:46
jdstrandtyhicks: http://paste.ubuntu.com/23513083/19:48
jdstrandtyhicks: it'll be easier to look at the resulting policy19:48
tyhicksok19:48
jdstrandtyhicks: what this paste contains is the (relevant portions of the) dbus rules for the dbus app interface19:48
jdstrandtyhicks: the context is gnome-logs slots this interface so it can bind to a well-known name. there are some classic rules and then d-feet rules which plugs the gnome-logs slot19:49
jdstrandtyhicks: the first 3 rules are what one would expect19:50
jdstrandtyhicks: the 4th is slightly interesting with this path: path="{/,/org,/org/gnome,/org/gnome/Logs}"19:50
jdstrandtyhicks: well, the 4th is a classic rule, it gets more interessting with the slot rules19:51
jdstrandtyhicks: go to line 4019:51
jdstrandtyhicks: that path has path="{/,/org,/org/gnome,/org/gnome/Logs}"19:51
* tyhicks nods19:51
lof_mtHi there. I am trying to get a gtk3 app packaged as snap. It compiles and builds the package. But when i start the snap the application complains about gsettings schemes not being installed.19:52
jdstrandtyhicks: this is a slight info leak if /org or /org/gnome had things to introspect, but it is only a leak on what the gnome-logs service might be setting up19:52
jdstrandtyhicks: ie, if gnome-logs had things to introspect on /org or /org/gnome, then d-feet could see it. it isn't a big deal. just wanted to mention it19:53
lof_mtHere the last-1 version of the snapcraft file. I added the gtk part recommended in the answer to the issue: https://github.com/jangernert/FeedReader/issues/26819:53
jdstrandtyhicks: what I really wanted you to see was the last two rules19:53
tyhicksjdstrand: I'm not too worried about the rule at line 4019:54
jdstrandtyhicks: note that one has an interface= but no path= and the other a path= but no interface=19:54
jdstrandtyhicks: yeah, me either-- it is just slightly imperfect-- a plugging client could plugs all of the gnome-logs api so it isn't a big deal19:54
tyhicksok, thinking about those last two..19:55
jdstrandtyhicks: I don't think these last two are problematic either-- everything is bound to labels, etc, it is just a bit different that most rules19:55
jdstrandtyhicks: there reason why I did that is that apps use the org.freedesktop.* interface but with paths at /org/gnome/Logs19:56
seb128jdstrand, thanks for working on that! I'm done for today but I'm going to have a try tomorrow19:56
jdstrandtyhicks: but then I've seen a lot of apps that use '/' as the path with their foo.bar.blah interfaces19:56
jdstrandseb128: thanks!19:56
jdstrandseb128: I can promise that gnome-logs works ;)19:57
seb128:-)19:57
jdstrandtyhicks: so I was trying to allow both things in a way that still limited by well-known name19:57
jdstrandtyhicks: hence the slightly unconventional rules19:57
tyhicksjdstrand: like you said, the peer label is the most important thing19:58
jdstrandtyhicks: in other words, if I did 'interface="org.gnome.Logs{,.*}" path="/org/gnome/Logs{,/**}"' in the same rule, I was confident we'd hit stuff that would break19:59
tyhicksright19:59
jdstrandtyhicks: yes, and also, this is only a snippet from the slot implementation. the plugging side has peer labels to snap.gnome-logs-udt.gnome-logs-udt19:59
jdstrandtyhicks: so it is very tightly bound to these two snaps, but hopefully flexible enough to allow some compatibility20:00
tyhicksjdstrand: so you don't feel like you can foresee all of the possible paths that might be used?20:00
jdstrandtyhicks: oh gosh no. this interface is about "let the snap talk to that other snap's entire DBus api via that well-known name"20:01
jdstrandtyhicks: but trying to have enough rules to say 'the command can access this org.foo.bar api and this command that org.foo.baz api"20:02
jdstrandtyhicks: I think it achieves it and it is safe, but wanted to run it by you since it is slightly unconventional20:02
jdstrandthe one with just the path rule is nice cause you can get and set properties but only to /org/gnome/Logs (and deeper)20:04
tyhicksjdstrand: I don't see a problem. We're just trying to restrict communication between two known endpoints and those rules do just that.20:04
jdstrandtyhicks: cool-- me either but second pair of eyes is nice :)20:04
jdstrandtyhicks: thanks!20:04
tyhicksjdstrand: thanks for running it by me20:04
jdstrandtyhicks: that might've been closer to 10 minutes, sorry :)20:05
tyhicksno worries :)20:08
=== chrisccoulson_ is now known as chrisccoulson
lof_mtping, flexiondotorg: https://paste.ubuntu.com/23513341/ this builds on 16.10 but lacks gsettings schemas. How do i get them in there?20:39
_markfeatherstonHow does an ubuntu core device get automatically updated with the latest snaps?  Does this need something like a cron job to kick off updates, or is it handled automatically some other way?21:04
Chipaca_markfeatherston: right now it's "something like a cron job"21:06
Chipaca_markfeatherston: serious, curious question: why do you care?21:06
Chipaca(asking because it might change)21:06
_markfeatherstonI just added support for our TS-4900/TS-7970/TS-TPC-7990 devices.21:06
_markfeatherstonI'm going to have customers asking me how this would work21:07
Chipaca_markfeatherston: systemd has timers, which is like cronjobs but rather more expressive21:07
_markfeatherstonWe have  few real application use cases too, as long as there is some way to control when or how often it happens that would be enough21:07
Chipaca_markfeatherston: we use that21:07
_markfeatherstonAhh, ok21:07
nacchttps://developer.ubuntu.com/en/snappy/guides/autoupdate/, maybe helps?21:08
naccnot sure if that is current, but it seems like it might be for this case21:08
Chipacanacc: that's for 15.0421:08
naccChipaca: ah ok21:08
Chipacainterestingly I wouldn't know that just from the url21:08
naccright :)21:09
_markfeatherstonanother more basic question, after I go through the device configuration and connect through ssh is that the only way to connect to the device?21:11
_markfeatherstonThe serial port starts getty which has a login prompt, but I'm not sure what if any accounts allow login like that21:11
_markfeatherstonI understand I can likely add my own users, I'm just trying to understand what happens by default21:12
mupPR snapcraft#922 opened: On gradle unit tests, unset the proxies <Created by elopio> <https://github.com/snapcore/snapcraft/pull/922>21:18
=== svij is now known as Sujevo
kyrofa_markfeatherston, man your nick is hard with the leading underscore :P21:31
kyrofa_markfeatherston, indeed, initially the only way to connect is via the SSH keys21:32
kyrofa_markfeatherston, this is to prevent marai ;)21:32
_markfeatherstonlol, i'll have to look into fixing that.21:33
_markfeatherstonthanks21:33
_markfeatherstonLast one for now, are there any plans to facilitate remote connections behind NAT or anything to manage remote units?21:34
kyrofa_markfeatherston, I suspect this is (or will be) integrated into Landscape somehow21:34
_markfeatherstonthat would be useful21:37
Chipaca_markfeatherston: once you ssh in you can use 'passwd' to then use the gettys, fwiw22:17
iceyhow does one get the namespace (snap-package.app) removed, so that it's run at just the app name?22:26
kyrofaicey, if app name == snap name, you can just use snap name22:27
kyrofaicey, but that's the only way22:27
kyrofaicey, otherwise there's no way to prevent conflicts22:27
iceyah, so make the name the same?22:28
kyrofaicey, indeed, if snap name = foo and app name = bar, then you need to use foo.bar. But if app name = foo, then you can just use foo22:28
iceygreat, thanks!22:29
iceyseparate question, any chance for a review on https://github.com/snapcore/snapcraft/pull/908 now that tests are passing?22:31
mupPR snapcraft#908: Let Rust plugin fetch dependencies in pull <Created by ChrisMacNaughton> <https://github.com/snapcore/snapcraft/pull/908>22:31

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