/srv/irclogs.ubuntu.com/2017/02/21/#snappy.txt

linggaozyga_, sorry, I just want to mention that we are using Ubuntu 16.04 on rpi2/rpi3.00:11
linggaothen we installed snapd.00:11
linggaoHi ogra_, zyga_ told me that you are using on-board wifi on rpi3. Can you let me know what is your os  and kernel version?  I am using Ubuntu 16.04.00:16
mupPR snapcraft#1155 opened: beta <Created by snappy-m-o> <https://github.com/snapcore/snapcraft/pull/1155>02:02
Son_Gokuwhy the hell is a bot opening up PRs?!02:25
=== markusfluer1 is now known as markusfluer
f_foxAnyone know why snapctl would hang during a hook/when run inside a snap? Nothing shows up on dmesg and it doesn't seem to matter what the context is.05:02
f_foxIt happens during the configure hook of the core snap, for instance, but if I skip that task by editing state.json manually everything else seems to work fine.05:03
f_foxactually scratch that, I just tried it on a fresh image and it seems to work now05:06
=== chihchun_afk is now known as chihchun
wxlanyone have a clue where to file a bug against a particular snap?05:16
wxlin this case, speaking specifically of vlc05:17
mupBug #1666386 opened: Snap apps do not work on Lubtuntu <Snappy:New> <https://launchpad.net/bugs/1666386>05:23
wxlyeah i'm fixing that05:32
jjohansenzyga: the kernels with the fixes are publishing, I'm not sure when these kernels will get rolled into all snaps06:20
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
zygajjohansen: hey, thank you for noticing the question earlier, is that -62 or -63 that should have the fix?07:37
=== jamesh_ is now known as jamesh
=== chihchun_afk is now known as chihchun
zygaf_fox: hey, known issues07:44
zygaf_fox: we disabled the configure hook while we untangle everything07:44
f_foxzyga: that explains it, thanks07:46
zygaf_fox: we experienced a sequence of bugs when we introduced the configure hook on the core07:49
zygaf_fox: a portion of devices did not update successfuly07:49
zygaf_fox: we're investigating and trying to understand and fix the issue but for now we disabled the configure hook to let devices update07:50
jjohansenzyga: good question so far only zesty has published, and the bug update is reporting as fixed in 4.10.0-8.10 but my tree is saying its in 4.10.0-9.1107:57
jjohansenI am going to have to pull down the kernel and test07:57
zygajjohansen: what is 8.10 and 9.11?07:59
jjohansenzyga: zesty kernels, the only ones that have published yet, the new kernels are publishing but it will take a while for all the releases08:00
jjohansenI expect they will finish some time tonight, zesty obviously goes first as it doesn't have the regression and USN work that xenial and yakkety kernels have08:01
zygajjohansen: I see, thanks08:01
zygajjohansen: I'll run a check to see that the bug is fixed on zesty images08:01
mupPR snapd#2889 closed: errtracker: add support for error reporting via daisy.ubuntu.com <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2889>08:06
zygaogra_: hey08:33
zygaogra_: I was wondering about the joule board08:35
zygaogra_: do you know who supports that at canonical?08:35
zygaogra_: I would like to publish the gadget snap to github08:35
zygaogra_: and to see if we can build08:35
mupPR snapd#2897 opened: errtracker: mock machine-id path to fix FTBFS in sbuild <Created by mvo5> <https://github.com/snapcore/snapd/pull/2897>08:36
mupPR snapd#2897 closed: errtracker: mock machine-id path to fix FTBFS in sbuild <Created by mvo5> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/2897>08:42
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mupPR snapd#2898 opened: many: merge 2.22.5 back to master <Created by zyga> <https://github.com/snapcore/snapd/pull/2898>09:13
=== jamespag` is now known as jamespage
ogra_zyga, JohnAgosta can get you in contact with the right people09:57
zygaogra_: thanks!10:01
zygaogra_: how are you?10:01
ogra_okayish ...10:02
ogra_:)10:02
ogra_trying to keep up with 600 telegram messages atm :P10:02
_prasen_hi10:02
_prasen_why does snap install try to download the core snap10:03
_prasen_nub10:03
_prasen_pls hlp10:03
ogra__prasen_, all snaps are executed in context of the core snap, that is how snaps get distro and release independent10:04
_prasen_using 16.0410:06
_prasen_doesnt it already have a snappy core?10:06
ogra_no10:06
_prasen_if i want to develop for ubuntu core without any h/w10:07
_prasen_i need to install core using kvm10:07
_prasen_?10:07
_prasen_the core snap which gets installed isnt the Ubunbtu Core right?10:08
_prasen_I need to install Ubuntu Core on a pi.10:08
_prasen_so was trying to run ubuntu core inside kvm10:08
_prasen_but on the ubuntu host of 16.0410:08
_prasen_I am stuck at snap install trying to "get" due to corporate proxy10:09
_prasen_running on kvm till i get hands on the pi10:11
ogra__prasen_, well, if you only want to develop snap packages you can do that directly on your desktop without kvm10:15
_prasen_yes10:16
_prasen_@oga10:16
nothal_prasen_: No such command!10:16
_prasen_oga : did not knew about the core snap usage10:16
_prasen_was thinking of ssh into the kvm running core and installing snaps developed at the host10:17
_prasen_nothal : which cmd10:17
_prasen_even my host is a vm :(((10:20
mupPR snapd#2899 opened: Kmod use spec <Created by stolowski> <https://github.com/snapcore/snapd/pull/2899>10:23
zyga_prasen_: hey10:45
zyga_prasen_: with the way snappy works you don't need any separate VM10:45
zyga_prasen_: just develop snaps locally10:45
zyga_prasen_: using snapcraft10:45
zyga_prasen_: and install them on your own system10:45
ogra_zyga, but what if the company proxy doesntz let you though :)10:48
zygaogra_: I snapd can respect proxy settings for a while now10:48
zyga_prasen_: if that's the problem for you I can show you how to proxy your stuff10:48
ogra_zyga, depedns wehat the proxy blcks ;)10:49
zygaogra_: true10:49
_prasen_my proxy is blocking10:49
zyga_prasen_: I think you need to work with your IT to open up the *.ubuntu.com part and the CDN that snappy uses to distribute snaps10:50
ogra__prasen_, did you configure your machine properly for the proxy ?10:50
_prasen_search.apps.ubuntu10:50
_prasen_yes10:50
_prasen_i am on iy10:50
_prasen_it*10:50
zyga_prasen_: there are plenty of domains under *.ubuntu10:50
zyga_prasen_: or just cheat and tether your phone ;-)10:50
zyga(you can get fired for that though)10:50
_prasen_yes I did that once10:50
_prasen_;D10:50
_prasen_tethered and ran10:51
_prasen_yes10:51
_prasen_would need to get permissions for tat10:51
_prasen_can i download the core snap from any diiferent location other than *.ubuntu10:51
ogra_well, ifg you have to ask for that you can as well just ask for proxy opening for your machine to the respective urls10:51
_prasen_launchpad doesnt have it10:51
zyga_prasen_: no, and you also need assertions10:52
zyga_prasen_: techically snapd talks to the store at *.ubuntu.com and then gets redirected to a CDN10:52
zyga_prasen_: so the core snap is really elsewhere10:52
_prasen_okay10:53
_prasen_the link really specifies a whole lot10:53
zyga_prasen_: but hey, they opened IRC for you10:53
zyga_prasen_: please do let us know, it is an intereting problem to solve10:53
zyga_prasen_: which URLs are needed to use snapd behind a corporate proxy10:53
_prasen_html which I dont understand10:54
zyga_prasen_: ?10:54
_prasen_okay10:55
_prasen_wait10:55
_prasen_I'll try to share the link here10:55
_prasen_yes it is interesting to solve10:55
_prasen_but the main work that  i have to do10:56
_prasen_i am stuck there10:56
_prasen_xP10:56
_prasen_Get https://search.apps.ubuntu.com/api/v1/snaps/details/core?channel=stable&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement: x509:11:01
_prasen_this is the error i get11:02
_prasen_mozzilla prompts me to add exception11:02
_prasen_to this11:02
_prasen_if i do11:03
_prasen_it shows 405 Method not allowed11:03
mupPR snapd#2862 closed: cmd/snap, store: change error messages to reflect latest UX doc <Created by pete-woods> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2862>11:12
_prasen_ogra : should I able to see interfaces before the core snap is present on 16.0411:21
_prasen_?11:21
ogra_i dont think so, no11:21
_prasen_knowing that helps a lot11:22
_prasen_ty11:22
_prasen_nowhere in the official doc11:22
_prasen_it is said that the first time eecution of snap install will get the core snap first11:23
_prasen_or the docker snap11:23
_prasen_tis weird11:23
_prasen_or any other online resource fails to mention that11:26
ogra_it shouldnt get rthe docker snap for sure, only the core snap11:26
_prasen_okay..11:27
ogra_(unless you did snap install docker indeed)11:27
ogra_(then it would try to get both)11:27
_prasen_oh some guy in the office said it would do both11:27
_prasen_he seems pretty unreliable though11:27
_prasen_;p11:27
didrocksstgraber: hey! I don't find the images:ubuntu-core/16 image and getting an error: not found, was the image removed?11:46
didrocksstgraber: so, after listing images, I noted that I have 2 available (x86 and i386). I did lxc launch images:ubuntu-core/16/amd64, but getting a download error "Retrieving image: 100% (961.30MB/s)error: multipart: NextPart: EOF" (getting that constantly)11:51
mupPR snapcraft#1156 opened: python plugin: use stage headers if applicable <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1156>12:38
ogra_jdstrand, do you see jenny murphys question about the ppp interface ? looking at interfaces/builtin/ppp.go it looks like she should just be able to run pppd and write configs to /etc/ppp directly12:42
ogra_or am i wrong here12:42
sergiusensmorphis: hey, mind doing a bit of verification for LP: #1665759 ?12:44
mupBug #1665759: [SRU] New stable micro release 2.27.1 <verification-needed> <snapcraft (Ubuntu):Fix Released> <snapcraft (Ubuntu Xenial):Fix Committed> <snapcraft (Ubuntu Yakkety):Fix Committed> <snapcraft (Ubuntu Zesty):Fix Released> <https://launchpad.net/bugs/1665759>12:44
morphissergiusens: sure, is that already available on the launchpad builders?12:45
morphisor still in proposed?12:45
sergiusensmorphis: in proposed12:46
morphisok12:46
sergiusensmorphis: you could try and enable proposed on launchpad builders and build if you wanted to12:46
sergiusensbut you get all of it12:46
morphisyes12:50
=== chihchun is now known as chihchun_afk
hangunjdstrand: hi,  I have a namespaces issue which is similar to this one ( https://bugs.launchpad.net/snappy/+bug/1665590). With zyga suggestion, I upgraded snap to the latest version(2.22.3), but the issue still be there.13:24
mupBug #1665590: When snapd is refreshed, it does not regenerate apparmor profiles when interfaces have changed <Snappy:In Progress by zyga> <https://launchpad.net/bugs/1665590>13:24
hangunjdstrand:   run "dmesg | grep DENIED"  http://pastebin.com/2xJZv3YF13:26
mupPR snapcraft#1153 closed: contribution guide: add commit message template <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1153>13:29
hangunjdstrand:  I try to disable apparmor option in linux kernel config and re-build it.  but still have the namespace issue. (http://pastebin.com/PvixSWNr)13:30
jdstrandhangun: you need to load the profile that is in /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine. This is part of https://github.com/snapcore/snapd/pull/281013:38
mupPR snapd#2810: snap: use snap-confine from the core snap <Created by mvo5> <https://github.com/snapcore/snapd/pull/2810>13:38
jdstrandhangun: do: sudo apparmor_parser -r /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine.13:39
jdstranderr13:39
jdstrandsudo apparmor_parser -r /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine13:39
jdstrandhangun: if that works for you, feel free to 'sudo cp /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine /etc/apparmor.d/13:39
jdstrandogra_: hi! would you mind running your machinery for linux-generic-bbb?13:41
ogra_jdstrand, on it13:41
jdstrandogra_: thanks! :)13:41
ogra_jdstrand, btw, did you see my ping about the ppp interface above ?13:58
ogra_<ogra_> jdstrand, do you see jenny murphys question about the ppp interface ? looking at interfaces/builtin/ppp.go it looks like she should just be able to run pppd and write configs to /etc/ppp directly13:58
ogra_<ogra_> or am i wrong here13:58
jdstrandogra_: I hadn't yet. you are correct-- that is the intent of the rules14:02
ogra_k14:02
jdstrand(and that's what they say)14:02
jdstrandI think morphis wrote/uses this somewhere. if it isn't working right, should file a bug14:03
liuxgsergiusens, ping14:04
zygajdstrand: hey, how are you14:05
zygajdstrand: we have some fire-fighting to do this week but I'd like to re-focus on update-ns when that is done14:06
ogra_jdstrand, well, looking at https://github.com/snapcore/snapd/blob/master/interfaces/builtin/ppp.go#L34 we might perhaps wnat to also allow ttyS[0-9], after all it is likely that pppd uses serial modems14:08
morphisogra_, jdstrand: yeah it is a bit mixed in our case between the network-manager, modem-manager and ppp interface14:10
morphisneeds some cleanup at a future point14:11
morphisogra_: what about her using modem-manager instead of ppp directly?14:11
ogra_morphis, yeah, looks like jenny murphy uses pppd directly from her management snap14:11
ogra_ask in the mail thread :)14:11
ogra_(or on rocket, where she is too)14:11
ogra_(in the snapcraft channel)14:11
morphisrocket .. too many communication channels .-)14:11
ogra_yes14:12
ogra_i'm slowly running out of workspaces :) everything plastered with chat tools14:12
ogra_telegram, rocket, irc email ...14:12
jdstrandmvo: hey, where is SNAP_REEXEC set? I see with 2.22.3 "cmd.go:59: DEBUG: re-exec disabled by user" but I don't see it in /etc/environment. I don't remember setting this. this is on xenial14:13
mvojdstrand: what version do you get with "snap version"14:14
morphisogra_: :-)14:15
mvojdstrand: might be a red-herring14:15
jdstrand$ snap version14:15
jdstrandsnap    2.22.514:15
jdstrandsnapd   2.22.514:15
jdstrandseries  1614:15
jdstrandubuntu  16.0414:15
mvojdstrand: that looks good, so the message is wrong. iirc we fixed this in master14:15
sergiusensmorphis: well read /topic ;-)14:18
jdstrandmvo: ok, thanks14:18
ogra_sergiusens' favorite sentence in here recently :)14:19
morphissergiusens: yeah :-)14:19
zygajdstrand: actually, one tiny review: https://github.com/snapcore/snapd/pull/288114:26
mupPR snapd#2881: cmd/snap-confine: don't crash if nvidia module is loaded but drivers are not available <Created by zyga> <https://github.com/snapcore/snapd/pull/2881>14:26
jdstrandzyga: ack14:34
=== bulld is now known as bulldog
bulldoghi guys what package should i ship in my snap to allow my Qt app open external links in system's applications14:39
bulldogmhall119, hi14:39
bulldogogra_, its been long , holla :)14:40
bulldogxdg-open ??14:40
=== barry` is now known as barry_
hangunjdstrand:  there is only  a "bin" folder in /snap directory, no "core" folder.14:41
=== barry_ is now known as barry
bulldoglol barry14:42
hangunjdstrand: how I load the profile that is in /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine?14:44
bulldoghelp14:51
jdstrandhangun: it seems you don't have a core snap installed. can you do 'sudo snap install core' ?14:57
jdstrandhangun: this is on classic, right? (not all snaps?)14:57
sergiusensogra_: I;ve never been so eager to tell people to read topic ;-)15:02
ogra_haha15:02
hangunjdstrand: what does the "classic" mean?15:03
zygabulldog: hey,15:05
zygabulldog: you should not need to do anything anymore15:05
zygabulldog: but on the host you need to apt-get install snapd-xdg-open15:05
zygabulldog: don't put xdg-open into your snap, it will be just useless there15:05
jdstrandhangun: you are running snappy on a traditional distribution, like Ubuntu, Debian, Arch, etc15:05
zygajdstrand: I believe so15:05
zygajdstrand: I was working with hangun earlier15:05
zygajdstrand: this is xenial userspace + custom kernel + snapd15:06
jdstrandhangun: as opposed to 'Ubuntu Core', which is a minimal image that can work with only snaps15:06
zygajdstrand: the kernel is based off 3.10 with apparmor enablement from some time ago15:06
zygajdstrand: I had a look at the error hangun reported where snap confine cannot perform the bind mount capture from the child process15:06
jdstrandzyga: hangun gave me a paste: http://pastebin.com/2xJZv3YF15:06
zygajdstrand: I'm not sure if apparmor changed in the last year that would only make the snap-confine profile work with the more current version of kernel code15:06
zygajdstrand: right, that's what I saw15:07
hangunjdstrand:  I just upgraded snap version to 2.22.5.  I see there are some folders " bin , core, bubblegum96-gadget ,bubblegum96-kernel"15:07
mardy_jdstrand: hi! I just wanted to make sure you are aware of bug 1664155, to know if it makes sense to you :-)15:07
mupBug #1664155: Interface hooks slots should know the name of the client snap <snapd:New> <https://launchpad.net/bugs/1664155>15:07
jdstrandzyga: I don't have any idea what's going wrong, but it seemed like perhaps the snap-confine profile on disk was wrong, which I thought was because https://github.com/snapcore/snapd/pull/2810 wasn't merged15:07
mupPR snapd#2810: snap: use snap-confine from the core snap <Created by mvo5> <https://github.com/snapcore/snapd/pull/2810>15:07
jdstrandzyga: but based on all this new info, it seems different15:08
zygajdstrand: I think that snap-confine is used from the package (still)15:08
zygajdstrand: also hangun rebuilt snapd (by hand) so I'm not sure what is on the system now15:08
jdstrandzyga: there is no rule in the profile for this: apparmor="DENIED" operation="mount" info="failed srcname match" error=-13 profile="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" name="/run/snapd/ns/core.mnt" pid=3902 comm="snap-confine" srcname="/proc" flags="rw, bind"15:09
jdstrandwe have mount options=(rw rbind) /proc/ -> /tmp/snap.rootfs_*/proc/,15:09
jdstrandbut that is rbind, not bind15:09
jdstrandhangun: to unblock yourself, add 'mount,' to the 'mount-namespace-capture-helper' section of /etc/apparmor.d/usr.lib.snapd.snap-confine, then do 'sudo apparmor_parser -r /etc/apparmor.d/usr.lib.snapd.snap-confine'15:11
jdstrandhangun: once you get farther along, feel free to file a bug that /etc/apparmor.d/usr.lib.snapd.snap-confine doesn't have everything you need, with all the info to reproduce15:11
hangunjdstrand:  and zyga:  just following jdstrand's instruction:  1)sudo apparmor_parser -r /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine 2) sudo cp /snap/core/current/etc/apparmor.d/usr.lib.snapd.snap-confine /etc/apparmor.d/   ( it doesn't work  read-only file system)15:13
hangun3) snap install hello-world15:14
jdstrandhangun: well, forget the cp. you seem to be porting to a new device/kernel. this isn't my area of expertise, but if you edit /etc/apparmor.d/usr.lib.snapd.snap-confine directly in the way I suggested, you might get farther along15:15
zyga(dinner)15:17
jdstrandmardy_: I think oa needs to be a consideration in the design for trust in snappy, which is something that tvoss is spear-heading. that said, afaik, a) interface hooks don't yet exist and b) you are trying to add ACLs into OA outside of snapd15:18
jdstrandmardy_: it seems that in unity8 panel when you enable shotwell for the facebook account, that might perform a 'snap connect'15:18
mardy_jdstrand: interface hooks have landed :-)15:18
mardy_jdstrand: didn't we say that such interfaces should auto-connect, and the trusted prompt will take care of actually granting the permissions?15:20
jdstrandmardy_: I'm also not sure if that ACL should live in OA-- trust-store is moving it to snapd. if you moved it to snapd, then you could rearrange things15:20
=== dgadomski_ is now known as dgadomski
jdstrandmardy_: well, if the trusted helper is doing the mediating, yes that's true15:20
jdstrandmardy_: that then gets to my bit about storing your acls in snapd. again, this is something that should be considered with the trust discussions15:21
mardy_jdstrand: I think that OA is quite a special case, it's not granting access to a system resource, but to some data which the user has entered into OA itself15:21
EEightjdstrand: hi, someone told me you are the right person for this question: my snap doesn't connect automagically to the camera interface. I need to run sudo snap connect myapp:camera for it to works.15:22
jdstrandmardy_: it may be different, but I'm not sure it needs to be treated specially15:23
EEightjdstrand: I cannot ask my users to run this command after installing the application, is there a way to make it works out-of-the-box?15:23
jdstrandEEight: what is your application?15:23
EEightjdstrand: bayam15:23
EEightjdstrand: an electron application using electron-builder to build the snap15:24
zygajdstrand: while that is the case how does it work in ubuntu all the time?15:24
mupBug #1666553 opened: snap try works, but executing the application doesn't work in some directories like /tmp <Snappy:New> <https://launchpad.net/bugs/1666553>15:24
EEightjdstrand: reported here: https://bugs.launchpad.net/snapcraft/+bug/160957715:24
mupBug #1609577: Docs: Your First Snap webcam-webui does not work once installed <Snapcraft:New> <https://launchpad.net/bugs/1609577>15:24
didrockszyga: you are quick :)15:26
zygadidrocks: haha, I just got lucky15:26
jdstrandEEight: the camera interface is considered privileged in that a malicious or misbehaving app could spy on the user when the interface is connected. this is why the user is given a say as to whether the interface should be connected15:26
zygadidrocks: I know about this bug, I was wondering what to do in that case15:26
hangunjdstrand: trouble you again.   How I add 'mount,' to the 'mount-namespace-capture-helper' section of /etc/apparmor.d/usr.lib.snapd.snap-confine ?15:27
jdstrandEEight: it is technically possible to have the interface autoconnected on install using a snap declaration, but then the user doesn't necessarily know what is happening15:27
didrockszyga: yeah, I wonder how hackish a temporary mount point accessible on both side would work15:27
didrockszyga: that or at least failing in snap try with some reasoning15:27
didrocksas we have the list of directories that are shadowed inside the snap15:27
jdstrandEEight: aiui, there is work to make this more discoverable for users. what some people do is create a small wrapper such that tries to use the resource, notices it cannot, and then tells the user what to do: eg, "Camera not available. Please run: sudo snap connect myapp:camera'15:28
jdstrandEEight: I suggest bringing this up on the snapcraft@ mailing list and asking about the progress to make interface connections easier for end users15:29
mardy_jdstrand: regardless of where the ACL lives, do you agree that the snap providing the slot needs to be able to get the name of the client (plug) snap, in order to get its name and icon?15:29
hangunjdstrand: the /etc folder is read only fs15:29
EEightjdstrand: does it means that even the final "solution" for this will be to ask the users to run a command line?15:30
jdstrandEEight: I might also mention that gadget snaps are able to influence auto-connect. so if this snap is part of a device you are creating, you can control the auto-connect yourself15:30
jdstrandEEight: not necessarily. aiui, snap install will help guide the user15:31
jdstrandEEight: but I'm not designing that and not up to date on it. I suggest asking on the list15:31
_prasen__its says ubuntu 16.04 comes with a snappy core but during the first execution of snap install it firsts installs the snap core after downloading it15:32
jdstrandhangun: I'm a bit confused by your system setup. it sounds like a traditional distro, but /etc is read-only. did it not boot correctly and the boot put / as readonly?15:32
_prasen__core snap*15:32
EEightjdstrand: well the instruction on how to install my application on ubuntu is to use software center. don't know how it will help my users.15:32
_prasen__so that snaps get a reference to be built15:32
jdstrandhangun: you can cp /etc/apparmor.d/usr.lib.snapd.snap-confine somewhere else, then modify that file, then run apparmor_parser -r on it. that will not survive a reboot15:33
_prasen__or installed15:33
_prasen__so that they could be shipped across various distros and versions15:33
_prasen__*confused*15:33
jdstrandEEight: re software-center, aiui, that is supposed to tie into snap install15:33
zygadidrocks: I'll think of something15:33
jdstrandEEight: again, I'm not designing that so not up to date15:33
_prasen__*confused*15:33
_prasen__why isnt 16.04 shipped with the core snap15:33
jdstrandmardy_: I'm not sure I agree with that. if the design is what you laid out in the bug, probably, but if the design is you calling snap rest api to do things/whatever, maybe not15:34
ogra__prasen__, because that would most likely be outdated15:35
EEightjdstrand: ok i understand (not up to date) but question so that i can ask a good one: if my users install via the command line or via the software center - either way they will need to run eventually sudo snap myapp:camera?15:35
_prasen__hi ogra15:35
jdstrandEEight: yes15:35
EEightdamn15:35
jdstrandEEight: *today*15:35
_prasen__this is _prasen_ only15:35
_prasen__left myself logged in15:35
jdstrandEEight: but there is planned work to make that better. I just don't know the priority or the designs15:35
ogra__prasen__, like you should not keep the original kernel on a fresh install but apply all security updates on a classic 16.04 installation when using it in production the same applies to the snappy system15:36
hangunjdstrand: I copy it into home directory which can be modified.  How I modified this file? I can't understand how to add "mount" to mount-namespace-capture-helper section15:36
ogra_so when invoking snap for the first time the core snap is pulled freshly from the store15:37
ogra_sincer that has all the latest fixes and security updates15:37
_prasen__okay15:37
_prasen__that clears it15:37
_prasen__ty15:37
_prasen__but what about users15:38
ogra_(and as i said, all yourr snaps are executed in context of the core snap, so you really dont want to have any security holes in that one as it could break the snap confinement of the apps)15:38
_prasen__who would want to develop locally?15:38
_prasen__without having any internet access15:38
jdstrandhangun: open the file in a text editor. put 'mount,' (don't forget the comma) anywhere within the '^mount-namespace-capture-helper (attach_disconnected) { ... }' stanza15:38
ogra_you would still have to pull the core snap once15:38
_prasen__though that would never practically happen15:39
jdstrandhangun: then use 'sudo apparmor_parser -r /path/to/file'15:39
_prasen__ogra : the classic confinement is related to this ?15:40
ogra_the classic confinement just means its a deb in a snap dress :)15:40
_prasen__that breaks the snap confinement tho, doesnt it15:40
_prasen__?15:40
ogra_it behaves like a deb and has the same access to the system a deb has but you can use the advantage of snap packaging for it15:41
ogra_well, you declare it as "confinement: classic" in the snap metadata15:41
_prasen__yes15:41
ogra_so you told it to not use any of the actual confinement15:41
_prasen__yes15:41
ogra_it doesnt *break* it ... but you chose to not use it :)15:42
_prasen__even then it requires the context of snap core ?15:42
_prasen__^ignore this then15:42
ogra_yes, it does15:42
_prasen__your last statement cleared that up15:42
_prasen__total nub at this.15:42
ogra_we all were once, no worries ;)15:42
_prasen__that gives me a boost15:43
_prasen__:D15:43
ogra_:)15:43
ogra_mvo, do we actually allow sideloading of the core snap for people without any internet access that just want to develop and test their own snaps locally ?15:44
_prasen__hey15:45
_prasen__how do we do that?15:45
* ogra_ has never tried to sideload it before snapd initially installed it15:45
ogra__prasen__, well, i dont know if your system would be set up properly afterwards, there is likely more store communication involved than just installing the core snap to have a proper setup ... which is why i pinged mvo15:46
_prasen__yes15:47
ogra_lets just wait til he finds time to answer and sees the ping :)15:48
hangunjdstrand:  following your guide, I added "mount" to snap-confine and then reload it.  snap install hello-world, then run hello-world, an error outputs: seccomp_load failed with -22 , abouting: invaild argument15:49
_prasen__it tries to "get" some more too15:50
hangunjdstrand: have to go to bed. it's midnight here15:50
jdstrandhangun: sounds like you maybe don't have seccomp enabled in your kernel or you have a too old libseccomp? again, this isn't really my area of expertise. You might want to send these questions to the devices@ mailing list (or use the porting guide (I don't have the url, perhaps someone here does?))15:51
jdstrandhangun: mailing list: https://lists.snapcraft.io/mailman/listinfo/devices15:51
jdstrandhangun: goodnight and good luck! :)15:52
ogra_hangun, jdstrand https://docs.ubuntu.com/core/en/guides/build-device/image-building15:52
_prasen__in the snapd.service file we have to set the path to the environment file15:53
_prasen__where we will set the env variables we want to export15:53
jdstrandogra_: noted, thanks15:54
_prasen__ogra : any doc/resource where I can know more about it?15:54
ogra__prasen__, you mean the environment (for a proxy) ? http://askubuntu.com/questions/764610/how-to-install-snap-packages-behind-web-proxy-on-ubuntu-16-0415:54
_prasen__talking precisely about tis link ;D15:55
ogra__prasen__, note that this already points to "EnvironmentFile=/etc/environment"15:56
ogra__prasen__, so whatever you add to /etc/environment will be used by snapd15:56
_prasen__where do I get to learn more about this?15:56
_prasen__currently i do this to set my https_proxy and http_proxy variables15:56
ogra_i guess the bug linked in the question above is the best you can get15:57
_prasen__okay15:57
_prasen__ty15:57
_prasen__ogra : savior man _/\_15:57
ogra_heh15:58
mvoogra_: installing a core snap without internet should work if you ack the assertion for the core snap first and then install it16:00
ogra_how would he do that ack'ing ?16:00
ogra_is there anything interactive ?16:00
* ogra_ would just have said --dangerous --devmode 16:01
ogra_though i guess that would still try to access the store and install core frome there first ...16:01
ogra_*from16:01
_prasen__i guess --dangerous option is invalid with --devmode16:03
ogra_well, i think you dont need --devmode if using --dangerous, iirc --dangerous automatically sets --devmode nowadays16:04
ogra_(i'm a bit behind using snaps locally, i tebnd to use everything from the store nowadays)16:04
_prasen__I think --devmode pnly has to used if confinement is devmode16:05
_prasen__only*16:05
stgraberdidrocks: hmm, could be a problem with the mirrors or maybe some kind of proxy between you and the server16:05
stgraberdidrocks: is it still failing now?16:05
_prasen__if confinement is changed to strict16:05
stgraber(I'm trying on my laptop and it seems happy with images:ubuntu-core/16, currently downloading the image)16:06
_prasen__then we need to use the dangerous flag if our locally created snap isnt verified by the store16:06
didrocksstgraber: let me try16:06
didrocksstgraber: yes: images:ubuntu-core/16 still fails with the fingerprint thingy and images:ubuntu-core/16/amd64 gives Retrieving image: 100% (614.64MB/s)error: multipart: NextPart: EOF16:07
stgraberdidrocks: oh, I didn't read your error too closely, it could actually be a problem with the legacy protocol for the image server. We actually have a change coming in the next LXD release to force change that protocol for everyone.16:09
stgraberdidrocks: lxc remote remove images ; lxc remote add images http://images.linuxcontainers.org --protocol simplestreams16:09
didrocksstgraber: error: flag needs an argument: --protocol16:10
stgraberoh, oops16:10
didrocksah error: Only https URLs are supported for simplestreams16:10
didrockshum16:10
stgraberdidrocks: oh, oops, that was meant to be https://16:11
stgraberdidrocks: lxc remote remove images ; lxc remote add images https://images.linuxcontainers.org --protocol simplestreams16:11
mupPR snapd#2822 closed: interfaces: add a linux framebuffer interface <Created by femdom> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2822>16:12
didrocksstgraber: perfect! images:ubuntu-core/16 is now downloadable, thanks! :)16:12
didrocksstgraber: do you need a bug report for handling the transition if not already?16:12
stgraberdidrocks: nah, the commit was already merged yesterday16:12
stgraberdidrocks: I'll look into why the old protocol doesn't work though, you indeed would have needed to use images:ubuntu-core/16/amd64 for that, but it should still have worked...16:13
didrocksstgraber: ah ok, that's weird. Good hunt! Thanks for the help on unblocking me16:13
zygare16:33
mupPR snapd#2871 closed: overlord/hookstate/ctlcmd: helper function for creating a deep copy of interface attributes <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/2871>16:34
jdstrandroadmr: hi! can you sync r840 whenever it is convenient?16:45
roadmrjdstrand: sure! hello :)16:47
zygaroadmr: hey, long time no see16:51
roadmrhello zyga  :) how's it going?16:51
roadmryou've been super busy :)16:51
zygaroadmr: me? no I just work on night shifts ;-)16:51
roadmryou vampire :)16:52
zygaroadmr: it's been good, preparig to move back to Polad this summer, otherwise all good16:52
roadmrzyga: temporary move or for good?16:52
zygaroadmr: I may be in Canada this spring16:52
zygaroadmr: the only permanent move is when I go to the cementary ;)16:52
zygaroadmr: not sure, for now we need to move16:52
roadmrzyga: hehe :) ok, hope the move goes well, and the trip to Canada too! spring is nice if you manage to arrive after all the ice melts heh16:53
geniiNot much ice this year so far16:54
zygaroadmr: I'm not sure if I'll go, or where the sprint is going to be even16:54
roadmrzyga: well, it'll all become clearer in the coming weeks :)16:54
=== mup_ is now known as mup
roadmrgenii: true, I've seen worse. I expect a quick thaw this year16:55
geniiroadmr: In fact, it's like 9C out right now here in Toronto, Wed-Thur up to 15C16:57
roadmrgenii: really? wow, thanks to climate change Toronto is now a tropical city16:57
geniiHeh, almost16:57
roadmrgenii: we're *just* below zero in Montreal.16:58
jdstrandroadmr: thanks!17:00
noise][FYI, we are experiencing an outage of the snap download service, see http://status.snapcraft.io/ for status updates17:12
EEightjdstrand: I didn't want to involve the application name of the company in the mailing-list discussion...17:19
jdstranddavidcalle: ping re https://developer.ubuntu.com/en/snappy/guides/security-whitepaper/> html is rc5 but pdf is rc617:19
EEightI guess it is not possible to modify your post?17:19
jdstrandEEight: I'm sorry :( the name is an important part of the conversation so I referenced it17:20
jdstrandniemeyer: ^17:20
jdstrandniemeyer: is there anything we can do to the mailing list archive (I'm not an admin of the list)17:20
niemeyerLet me see17:21
EEightniemeyer: the actual post is: https://lists.ubuntu.com/archives/snapcraft/2017-February/003363.html17:22
niemeyerThere's apparently no way.. I'll have to reach out to our internal support so they can edit the offending post manually17:23
EEightIs there a form to do that, because there is a risk that Google will show this post when people look for Bayam and security + children = bad17:24
jdstrandEEight: no form. niemeyer is reaching out now17:26
EEightniemeyer: thank you very much for this17:27
EEightjdstrand: I now understand why it's not connected (camera) out-of-the-box17:27
jdstrandI apologize again. I didn't think it was a problem since it was discussed here17:27
niemeyerEEight: Done, should be done in the next 24h17:27
EEightyou guys rocks!17:27
niemeyerEEight: Sorry for the trouble17:28
jdstrandniemeyer: thanks for taking care of that17:28
niemeyerEEight: As a side note, you just associated the company name with security in the public logs of this channel17:28
EEightAnd lost my job17:28
EEightI have a plan B, making breads17:29
EEightNo worries for me17:29
niemeyer:)17:29
niemeyerIt's not a bad plan :)17:29
EEightWell I should begin to work on it...17:30
EEightAnd for the record (and public log) I was talking about the leaf: http://chiap-hup.com/bayam-bulat-0501/ ;)17:33
=== mardy_ is now known as mardy
zygaPharaoh_Atem: hey18:06
zygaPharaoh_Atem: any chance you use a 16.10 machine to develop base snaps?18:07
joedborghey all18:53
joedborgI'm getting `unusual mode 'rwxr-xr-x' for symlink` errors from ubuntu store when i push a snap build18:53
joedborgnot sure what's unusual about that?18:53
jdstrandnessita: hey, several hours ago I rejected https://myapps.developer.ubuntu.com/dev/click-apps/6203/rev/6/, but r7 never underwent auto-review and is in 'Task state unknown'18:55
nessitajdstrand, checking18:55
nessitastill checking18:59
qenghojoedborg: sounds fishy. symlinks don't have their own modes, iirc.  $ find snap prime stage -type l -ls19:01
joedborgqengho: yeah, i've looked at them in the prime dir, because the full output lists each one19:02
nessitajdstrand, I rerun the review task, is Manual review pending19:03
joedborgqengho: and they all look legit, as expected all of the permissions are inherited19:03
jdstrandnessita: thanks!19:03
nessitajdstrand, thanks for reporting!19:04
jdstrandnp :)19:04
qenghojoedborg: If you have a URL someone can look at, at https://myapps.developer.ubuntu.com/ , then that might help someone who knows.19:05
joedborgqengho: https://myapps.developer.ubuntu.com/dev/click-apps/6896/rev/2/19:06
joedborgqengho: I've submitted for manual review - but I don't understand why symlinks are a build failure - perhaps it's a bug19:06
Pharaoh_Atemzyga: I don't have a 16.10 machine on hand, but I can set up one, why?19:55
zygaPharaoh_Atem: no, just curious19:56
zyga(no need to set one up)19:56
mupPR snapcraft#1157 opened: repo: support versioned stage-packages <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1157>20:05
jdstrandogra_: hey, just noticed that pc-kernel is way out of date too in all channels20:50
jdstrandogra_: and thank you for the bbb update!20:51
cory_fuelopio: Can you take a look at https://github.com/travis-ci/travis-ci/issues/7318#issuecomment-279860608 and tell me if that's feasible?  Could we fix the snap issue in travis using root inside whatever container they're using?21:27
cory_fuIt seems to me like it would depend on the kernel of the host system?21:28
devilanyone has a hint for some documentaion on snap security measures?21:30
jdstranddevil: https://developer.ubuntu.com/en/snappy/guides/security-whitepaper/21:31
jdstranddevil: but read the PDF instead of the html. the html is out of date for some reason21:31
jdstranddavidcalle: ping ^21:31
deviljdstrand: thanks. writing an article on security of flatpak and snap21:31
davidcallejdstrand: looking21:31
jdstranddavidcalle: html says rc5 but pdf is rc621:32
jdstranddavidcalle: google doc is also rc621:32
mupBug #1666690 opened: Dependency issues when sharing a library through content interface <Snappy:New> <https://launchpad.net/bugs/1666690>21:33
davidcallejdstrand: sorry I missed your pings earlier, I think we need to get rid of the HTML version and stick to the PDF, the CMS is not maintained anymore (we are moving out of it page by page) and I'm having issues with publications21:33
davidcallejdstrand: how would you feel about only publishing the PDF?21:33
jdstranddavidcalle: that is fine with me since it means it is easier to be up to date, but, like before, I'm not the main consumer of this21:34
jdstranddavidcalle: iirc, people wanted the pdf, then they didn't, then now they do21:34
davidcallejdstrand: PDF it is then, I'll fight some more with the page to replace the content by an introduction to the whitepaper, then the link. Tomorrow, though.21:35
jdstranddevil: in addition to that whitepaper (which has a slant towards Ubuntu Core as opposed to classic distributions), you might also want to look at https://github.com/snapcore/snapd/wiki/Interfaces, https://github.com/snapcore/snapd/wiki/Security and https://github.com/snapcore/snapd/wiki/snap-confine-Overview21:38
jdstranddevil: there is a lot of stuff in https://github.com/snapcore/snapd/wiki21:38
deviljdstrand: thanks again21:39
jdstrandnp21:39
jdstranddavidcalle: thanks21:39
devilwhat I am particularly interested in is the sandboxing mechanisms21:39
jdstranddevil: the whitepaper gets into that and so do the specific wiki pages21:40
deviljdstrand: ok, that'll keep me busy for a while21:41
jdstrandbut there is other info that is related or may give context in the other parts of the wiki21:41
AlbertAHi snappy team :) so we've been playing around with content interface as a way to share libraries among snaps, however there are issues concerning dependencies.21:43
AlbertAwe've outlined the problems in the bug: https://bugs.launchpad.net/snappy/+bug/166669021:43
mupBug #1666690: Dependency issues when sharing a library through content interface <Snappy:New> <https://launchpad.net/bugs/1666690>21:43
AlbertAhas there been any talk about potential solutions to those problems?21:43
bdmurrayIs bug 1665756 fixed in snappy core?21:59
mupBug #1665756: environment variable setting issue <Snappy:Fix Committed> <https://launchpad.net/bugs/1665756>21:59
bdmurrayOr would it be fixed in snapcraft?22:00
ogra_bdmurray, likely snapcraft22:01
ogra_bdmurray, did you see my ping in #ubuntu-bugs from today btw ?22:01
bdmurrayogra_: How can I run the latest snapcraft? I did see your ping.22:02
ogra_not sure if the latest did already make it to proposed22:03
ogra_in any case you can clone the branch from github and just run ./snapcraft in there i think22:03
ogra_jdstrand, pc-kernel is kind of kernel team's thing to release, i pinged bjf before about them only releasing to beta, not sure how we can fix that (note that we cant release pi kernels at all to stable since we cant update /boot from the gadget snaps yet)22:06
jdstrandogra_: ok, thanks22:06
ogra_jdstrand, (teh pi kernels depend on having the devicetrees in the gadget ... and also usually require new bootloader blobs for major version bumps of the kernel)22:07
ogra_i'm bumping the bbb kernel now though, thanks for the ping :)22:07
* zyga EODs22:19
zygagood night everyone22:19
=== mup_ is now known as mup
=== mup_ is now known as mup
mhall119devil: ping22:27
devilmhall119: pong22:27
mhall119devil: hey, I just wanted to offer to answer any questions you had, or help with your article when it comes to the snaps part (I'm not as familiar with the flatpak side)22:29
mhall119I'm a community manager here at Canonical22:30
devilmhall119: thanks for the offer, I will come back to it if I have questions22:31
mhall119no problem, I look forward to reading it :)22:31
devilit's gonna be in German and international linux print mags in ~2-3 months. I can point you to it when it hits market22:32
mhall119ah, thanks. In that case I can answer any questions, but I won't be any help reviewing the german text :)22:36
mhall119we do have people who can, if you'd like a review before it goes to print22:37
mhall119but sadly, I myself am mono-lingual22:37
devilmhall119: I am pretty well informed, because I wrote on the topic before, as these projects are in rapid developement, I just want to get an as recent as possible look on the security models22:38

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