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

mupPR snapcraft#1113 opened: repo: cache stage packages for faster future use <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1113>00:06
=== markusfluer1 is now known as markusfluer
=== chihchun_afk is now known as chihchun
=== JanC is now known as Guest57353
=== JanC_ is now known as JanC
liuxgogra_, I am now using your proxy snap for building snap. when I build nodejs project, it still downloads the node-v4.4.4-linux-x64.tar.gz from internet. it is not cached. is there any way to solve the problem? it is really slow.06:43
mupPR snapd#2771 closed: debian: update changelog from releases 2.22.{1,2} <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2771>07:04
mupPR snapd#2558 closed: snapstate: move refresh from a systemd timer to the internal snapstate Ensure() <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2558>07:08
mupPR snapd#2764 closed: tests: disable ubuntu-core->core transition on ppc64el (its just too slow) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2764>07:12
mupPR snapd#2754 closed: tests: improve debug when the core transition test hangs <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2754>07:15
mupPR snapd#2772 closed: interfaces: allow nice/setpriority to 0-19 values for calling process by default <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2772>07:33
mupPR snapd#2750 closed: interfaces/default: don't allow TIOCSTI ioctl <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2750>07:35
mupPR snapd#2796 closed: Fix checks failing on code formatting <Created by robert-ancell> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2796>07:36
mupPR snapd#2797 opened: tests: stop tying setting up staging store access to the setup of the state tarball <Created by pedronis> <https://github.com/snapcore/snapd/pull/2797>07:55
mupBug #1662452 opened: A snap tries to continue setting up a systemd service, even if download failed <Snappy:New> <https://launchpad.net/bugs/1662452>08:22
log-snaphi there just wanted to include an icon as mentioned here [1], but snapcraft calls it unexpected. Was "icon" deprecated? And how do i include my icon now? .desktop?08:32
log-snap1: https://snapcraft.io/docs/build-snaps/metadata08:32
mupPR snapd#2757 closed: tests: add regression spread test for #1660941 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2757>08:34
mupPR snapd#2798 opened: interfaces/builtin: instead of just /proc/bus/pci/devices allow full read access on /proc/bus/pci <Created by morphis> <https://github.com/snapcore/snapd/pull/2798>08:40
morphismvo: can you add the PR above for 2.23?08:40
mvomorphis: sure08:42
morphismvo: thanks!08:45
mupPR snapd#2799 opened: tests: fix pattern and use MATCH in find-private <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2799>08:57
mupPR snapd#2795 closed: Only add aliases field when we have aliases <Created by robert-ancell> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2795>09:01
ogra_liuxg, well, my packageproxy only operates .deb packages ... i suspect you would have ot hack up the nodejs plugin to use a local tarball for this09:38
liuxgogra_, yeah, this is too troublesome.. the developers in my last sprint was desperate in downloading the package again and again.09:39
ogra_liuxg, well, the plugins are only python. cant be to hard to make this one use a local tarball instead of downloading it09:41
ogra_liuxg, also file a bug so the snapcrafters can add an option for this09:41
ogra_there is one :)09:41
liuxgogra_, yeah, I will do it. thanks. really? what is the bug number?09:41
zygaI thin the issue is that snapcraft often requires "gah, doesn't work - snapcraft clean" workflow09:42
ogra_sergiusens, is it somehow possible to prevent the nodejs plugin from downloading the tarball all the time ?09:42
zygaand then you are stuck with downloading over and over09:42
ogra_liuxg, i said you should file a bug :)09:42
liuxgogra_,  OK. I will do that, thanks09:42
ogra_zyga, right, but you should be able to make it skip the downloading and make it use a local version of the tarball09:42
ogra_that cant be to hard09:43
zygaogra_: no, it just just be smarter09:43
sergiusensogra_: implementing a fix for the bug ev logged a while back will do the trick09:43
ogra_zyga, what if you dont want to download it at all ?09:43
mupPR snapd#2797 closed: tests: stop tying setting up staging store access to the setup of the state tarball <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2797>09:43
zygaogra_: you don't want to hand-hold the process, you just want the process to be less silly09:43
ogra_smartness wont help09:43
zygaogra_: I don't understand what you mean,09:44
zygaogra_: if your snapcraft is offline then it will work offline09:44
zygaogra_: if it is not offline, you need to get them09:44
zygaogra_: and be super smart on caching09:44
sergiusensogra_: I am going to implement something similar to the python plugin where if it is staged (dump it) you won't need to download09:44
ogra_most of the times i agree ... but in a presentation where you already use a package proxy for the debs and your internet is 2G based you better down download at all09:44
zygaogra_: adding a gazillion options won't be useful as nobody will really feel good about that (hard to find, quirky, why it it even an option)09:44
ogra_make it not an option, make it an env var (and consider not documenting it)09:45
zygaprogram --dont-be-silly-and-broken=309:45
sergiusensogra_: when I get xenial on my tablet I will be able to work from bed and be much more productive btw ;-)09:45
ogra_zyga, rather --dont-use-the-great-chinese-wall09:45
ogra_thats the issue here09:46
zygaso what are the options?09:46
zygawhere do people get those bits from?09:46
zygamoon? :)09:46
ogra_zyga, in the workshop the presenter shares them09:46
zygaI see09:46
ogra_he downloaded it in davance over night09:46
zygaif snapcraft had caching sufficient to do "snapcraft cache"09:47
zygathen one option would be to copy that tree over to everyone09:47
zygabut there are many things that are tricky to do caching / offline work right09:47
ogra_the point is that liuxg has limited time forhis workshops ... debs already use a package proxy ... but the plugin still downloads09:47
zygaI bet sergiusens know this far better than I even imagine the problem09:47
ogra_yeah, i'm fine with copying a cache ... as long as you cover this usecase09:48
ogra_not everything needs to be an option ;) you can make it a hidden feature, a cache dir to copy, a hidden env var etc09:48
liuxgzyga, ogra_, yes, that is the point. during a workshop, the download of the nodejs can be tedious, even in my daily work. it takes a few minutes to get it done.09:49
liuxgogra_, I have reported a bug for it. https://bugs.launchpad.net/snapcraft/+bug/1662464, thanks for your help09:52
mupBug #1662464: node-v4.4.4-linux-x64.tar.gz is downloaded again and again during the build of a snap <Snapcraft:New> <https://launchpad.net/bugs/1662464>09:52
liuxgsergiusens, is there any way to use the nodejs from the cache? thanks09:54
JerryKaomvo, ping10:04
mvoJerryKao: pong10:05
JerryKaohi mvo, how to check snapd version in core system?10:06
ogra_snap version10:06
ogra_like on a classic system10:06
JerryKaoogra_, thanks10:07
mupPR snapd#2799 closed: tests: fix pattern and use MATCH in find-private <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2799>10:32
mvoara: one quick question - what is the output of "snap version" in the non-chatty version that fails for you?10:34
aramvo, 2.22.110:35
mvothanks10:37
mupBug #1662357 changed: Can't use lsb_release on Ubuntu Core 16 <Snappy:New> <Snappy Ubuntu Core:New> <lsb (Ubuntu):New> <https://launchpad.net/bugs/1662357>10:37
ogra_mvo, would you be opposed if i made lsb_relese non-executable with a build time hack on the core images ... we're always getting bugs for it10:38
mvoogra_: hm, can we remove it entirely?10:38
ogra_i can rm it but not remove the package easily10:38
ogra_we also need it in the classic tarball ... there i made it work fine10:39
mvoogra_: right, either way is fine with me then, rm the binary feels slightly cleaner10:39
ogra_no prob, will do that then ...10:40
mvota10:41
mupPR snapd#2677 closed: snap: improve the error message for `snap try` <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2677>11:35
=== hikiko is now known as hikiko|ln
=== chihchun is now known as chihchun_afk
mupPR snapd#2800 opened: daemon: show "$snapname (delta)" in progress when downloading deltas <Created by mvo5> <https://github.com/snapcore/snapd/pull/2800>12:15
mupPR snapd#2801 opened: snap-confine: add the key for which hsearch_r fails <Created by mvo5> <https://github.com/snapcore/snapd/pull/2801>12:23
kwHi guys, has anyone here tried to upgrade/change the kernel in ubuntu core?12:27
zygakw: hey, can you be more specific? the kernel is reglarly updated12:28
ogra_zyga, well ...12:29
kwYes, sure. Let me rephrase.12:29
ogra_kw, what hardware ?12:30
kwI'm using up board with ubuntu core installed. The original goal is to overclock the cpu frequency a little bit but it seems that the kernel wouldn't allow. ( not sure how to confirm)12:32
kwWe have a working one beside (up board with legacy ubuntu 14.04 and higher cpu freq)12:33
kwthat's probably where the guess is from12:33
kwso I'm thinking the possibilities to upgrade the kernel in ubuntu core12:34
kwit would be appreciated, if anyone could give any recommendation,12:35
zygakw: you will need to roll your own kernel snap12:35
zygakw: and a model assertion that describes that12:35
zygakw: and (AFAIK, could be wrong) a gadget snap12:35
kwyes ,I was also thinking about that and I found this12:36
kwhttps://docs.ubuntu.com/core/en/guides/build-device/image-building12:36
kwnot sure if this is the manual I should follow. the information is limited though12:36
zygakw: the kernel and gadget need to be signed by your "brand" key12:38
zygakw: you will need to build an image with that assertion12:38
zygakw: you cannot change a kernel on an already running device (only the brand can do that)12:38
zygakw: not sure,12:38
ogra_zyga, hmm, its an ATOM, i would expect our pc kernel snap to work on this12:41
zygaogra_: yeah, it should work12:41
kwI see12:41
ogra_i rather think you want your own gadget and modify cmdline options12:41
kwis there tutorial or instruction for creating custom kernel and gadget snap?12:42
ogra_and possibly ship some sysctl.d files12:42
ogra_kw, https://github.com/snapcore/pc-amd64-gadget12:43
ogra_pull that, install snapcraft on your desktop ... then run snapcraft in the toplevel dir12:43
ogra_and indeed make changes before calling snapcraft as needed :)12:43
kwyes, this also works for me. thanks12:44
ogra_with ubuntu-image you just need to use the --extra-snaps option and point to your snap then12:45
ogra_the local one will override the one from the store12:45
kwI see.12:47
kwI think I'll give it a try first and see how it goes.12:48
kwI'm not familiar with snap enough yet12:48
kwmany thanks :)12:48
=== hikiko|ln is now known as hikiko
ogra_just ask if you run into more issues :)12:53
mupPR snapd#2801 closed: snap-confine: add the key for which hsearch_r fails <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2801>13:13
joedborghey all13:22
joedborghas anyone got experience with creating a snap package where git binary is needed for the application you're snapping (e.g. NPM)?13:22
ogra_add git-core to build packages or some such13:23
ogra_or just the toplevel 2git"13:23
ogra_*"git"13:23
zygajoedborg: could be hairy (it will pull in perl and a zoo of other bits I bet) but you can try13:24
ogra_thoug, doesnt the nodejs plugin provide all bits needed for npm builds ?13:24
joedborgi've tried adding it as a build-package and stage-package as well as a separate part and build it13:25
joedborgbut it always says that the "https helper is missing"13:25
joedborgso it can't pull any https repos13:25
joedborgI'm trying to package bower13:25
joedborgNPM was just an example13:25
ogra_try libcurl4-openssl-dev in build-packages13:26
joedborgyep, I've tried that too13:26
ogra_i think that provides https13:26
joedborgas well as       - gettext13:26
joedborg      - libssl-dev13:26
joedborg      - libcurl4-openssl-dev13:26
joedborg      - libexpat1-dev13:26
joedborgand adding the --with-curl and --with-expat flags to the configure13:27
joedborgand then given it home and network plugs13:27
ogra_err, wait, you are trying to run git *inside* your snap at execution time ??13:28
zygaogra_: yes13:29
ogra_ah, i misunderstood13:29
zygajoedborg: I'd suggest trying to usea classic confinement snap13:29
joedborgzyga: yeah, I made the snap like that originally but want to try to get it into strict confinement13:29
zygajoedborg: depending on what you want from git (I suspect npm just wants to clone)13:32
zygajoedborg: you could build a super small git version in your snap13:32
zygajoedborg: just enough to have basic bits written in C13:32
zygajoedborg: should be simple and fast13:32
zygajoedborg: (build git from source, disable all the useless option)13:32
joedborgzyga: you mean write my own, calling libgit?13:34
zygajoedborg: no, just build upstream git but trim all the deps13:34
zygajoedborg: npm doesn't need 99% of git, just git clone I suspect13:34
zygajoedborg: and a minmal build of git from source should be good13:34
zygajoedborg: and you can pick any version you want :)13:34
joedborgzyga: yes, that's what I've also been trying, but if I cannot build the current source with git-http, I think I'd have the same issue even if i cut the bloat out, right?13:35
zygajoedborg: what's the problem with building?13:36
joedborgzyga:   git:13:36
joedborg    source: https://github.com/git/git13:36
joedborg    source-type: git13:36
joedborg    source-depth: 113:36
joedborg    plugin: autotools13:36
joedborg    configflags:13:36
joedborg      - --with-curl13:36
zygajoedborg: bloat may be built-in (deps)13:36
joedborg      - --with-expat13:36
joedborg    build-packages:13:36
joedborg      - gettext13:36
joedborg      - libssl-dev13:36
joedborg      - libcurl4-openssl-dev13:36
joedborg      - libexpat1-dev13:36
joedborg    stage-packages:13:36
joedborg      - libcurl313:36
zygajoedborg: rather than pasting here please use pastebin, irc likes things this way13:36
joedborgthis builds without warnings13:36
zygajoedborg: does it work in the end?13:36
zygajoedborg: note that I'm not a snapcraft expert, I work on snapd internals13:37
zygajoedborg: perhaps sergiusens or kyrofa can give you better advice13:37
joedborgzyga: okay, here is is as a Gist https://gist.github.com/joedborg/c496eaa6de26a14d73b55a6db372f53113:37
joedborgand the build looks okay, I even see "checking if Curl supports SSL... yes"13:39
zygajoedborg: and what is the part that doesn't work?13:40
joedborgzyga: but then, if i install with --devmode (to see what's going on) and try to get bower to pull something (which is done via git) I get "Failed to execute "git ls-remote --tags --heads https://github.com/jquery/jquery-dist.git", exit code of #128 fatal: Unable to find remote helper for 'https'"13:42
zygajoedborg: what probably happens is that your git looks for /usr/bin/something13:44
zygajoedborg: and that's not found there13:44
zygajoedborg: apart from teaching git to use $SNAP and be smarter13:45
zygajoedborg: I'd suggest configuring with --prefix=/snap/$SNAP_NAME/current/usr13:45
zygajoedborg: and changing the installed files with organize13:45
zygajoedborg: so that your snap contains just the /usr part13:45
zygajoedborg: I did that a few times when apps love to hardcode where to run stuff from13:45
zygajoedborg: otherwise it just looks for files in the usual spot and they are not there13:46
joedborgzyga: that makes sense, because the helper should be in "/snap/libexec/git-core"13:46
zygajoedborg: look at the output of `dpkg -L git`13:46
zygajoedborg: this is where git keeps all the commands13:46
joedborgzyga: so I guess it's an environment problem13:46
zygajoedborg: play with --prefix and other bits13:46
zygajoedborg: I bet you can get it to work13:46
zygajoedborg: environment?13:47
joedborgzyga: if that's the case, I think I'd just need to add libexec/git-core to $PATH inside the snap13:48
zygajoedborg: depending on how git runs those13:48
zygajoedborg: if it uses PATH to search, yeah13:48
zygajoedborg: if it has a hard-coded path, you need to do more13:48
joedborgI've just got to work out how to do that from snapcraft13:48
zygajoedborg: --prefix=/snap/yoursnapname/current/usr13:49
zygajoedborg: then use organize13:49
zygajoedborg: (in the part)13:49
zygajoedborg: to strip that so that only usr is placed in the prime dir13:49
mupPR snapd#2768 closed: interfaces: miscellaneous updates for hardware-observe, kernel-module-control, unity7 and default <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2768>13:51
ogra_https://git-scm.com/book/tr/v2/Git-Internals-Environment-Variables#Global-Behavior13:51
ogra_you migth want to use a wrapper around git that sets some of these global vars ;)13:51
zygaogra_: yeah, nice13:51
zygajoedborg: GIT_EXEC_PATH13:51
zygathough I think building git with correct prefix is pretty good too13:52
joedborgzyga: trying the prefix first, can't work the syntax out for setting envars in snapcraft yaml13:52
zygajoedborg: you need a wrapper script or latest snapcraft13:53
zyga(it's a new feature in snapcraft)13:53
zygasergiusens: ^^13:53
ogra_ah, did that land already ?13:53
zyganot sure, it might have13:54
joedborgzyga: i'm on 2.2613:54
ogra_i saw a commit but didnt follow the status13:54
joedborgzyga: you get the same issue when setting prefix - i assume because path still isn't pointing to the libexec/git-core directory13:59
zygajoedborg: note that that is not on PATH in any distro either13:59
zygajoedborg: look at what git is doing internally13:59
mupPR snapd#2746 closed: interfaces: remove some syscalls already in the default policy plus comment cleanups <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2746>14:00
ogra_GIT_EXEC_PATH is the one that needs to point to libexec/git-core14:00
ogra_(check on any ubuntu install with "git --exec-path" ... it should return /usr/lib/git-core)14:01
ogra_(which has all the binaries)14:01
zygaogra_: question is, how does git decide on that value?14:01
ogra_why does that matter as long as it respects your override14:02
zygaogra_: it matters to know how git works as this may be something we may fix in general14:02
ogra_i guess it is set at build time normally14:02
zygaogra_: depending on ... ? prefix?14:02
ogra_combo ...14:02
ogra_at build time i guess prefix is just /usr14:03
ogra_so it combines with the distros typical libexec path14:03
ogra_which is lib in our case14:03
joedborgogra_ zyga: would that be baked in when git is packaged for apt?  i don't think we have any GIT_* envars set14:07
ogra_the vars are for user overrides ... so indeed they are not set by the package :)14:07
ogra_they are nontheless the right thing to use in a snap14:07
joedborgorga_: do you know if this can be passed in via snapcraft?14:08
ogra_https://github.com/snapcore/snapcraft/pull/1103 is the commit adding support for that to snapcraft btw14:08
mupPR snapcraft#1103: meta: support for the environment keyword <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1103>14:08
ogra_merged 23h ago14:08
joedborgokay, I'll pull master down and built it and try with that14:09
ogra_hah14:09
ogra_look  at the changed files there ... there is even:14:10
ogra_+      PATH: $PATH:$SNAP/libexec/git-core14:10
ogra_+      GIT_TEMPLATE_DIR: $SNAP/share/git-core/templates14:10
ogra_so exactly what you want14:11
mupPR snapd#2802 opened: snap-confine: make sc_map_search/read_number take const const char * arguments <Created by mvo5> <https://github.com/snapcore/snapd/pull/2802>14:20
joedborgogra_: just getting through the snapcraft master build :)14:24
mupPR snapd#2803 opened: asserts: introduce a variant of model assertions for classic systems <Created by pedronis> <https://github.com/snapcore/snapd/pull/2803>14:30
joedborgogra_: seems to still fail the YAML check14:38
mupPR snapd#2770 closed: interfaces/core-support: allow modifying snap rsyslog configuration <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2770>14:56
jdstrandogra_: fyi ^14:59
ogra_\o/14:59
ogra_jdstrand, next is timesyncd :)14:59
jdstrandogra_: I'm sending up a PR for /etc/systemd/timesyncd.conf now14:59
ogra_hah, snap15:00
jdstrandyep! :)15:00
jdstrand:)15:00
ogra_and then the more complex sysctl.d15:00
jdstrandoh, I haven't seen that one. is there a bug?15:00
ogra_though thats only complex on the configure hook side ...15:00
ogra_hmm, not sure, let me search15:01
ogra_bug 1485683 and bug 155267915:01
mupBug #1485683: /etc/sysctl.d is not applied on boot <Snappy:Expired> <https://launchpad.net/bugs/1485683>15:01
mupBug #1552679: snappy config ubuntu-core should get support for manipulating /etc/sysctl.conf <Snappy:Triaged by chipaca> <https://launchpad.net/bugs/1552679>15:01
ogra_hmm. probably only the latter one15:02
jdstrandogra_: do you want to modify /etc/sysctl.conf or /etc/sysctl.d/{,[0-9][0-9]-}snap*.conf ?15:03
ogra_yeah, one fixed filename would be enough though15:03
ogra_i doubt we will use multiple files since the configure hook needs to generate all of it on every run15:04
jdstrandogra_: shall I send something up for that?15:04
ogra_that would be awesome15:04
jdstrandok15:04
jdstrandogra_: will you be applying the sysctl values in the config hook or some other way?15:06
ogra_the config hook will create or re-create the file if it runs15:07
jdstrandogra_: will the config hook also run 'sysctl -p /etc/sysctl.d/<file>'?15:08
ogra_i'd like a more atomic way, but the current implementation of the config handling doesnt provide that ... i could create a file per option but i fear that gets messy15:08
ogra_oh, i didnt think of that, yeah it should immediately apply the new settings with sysctl -p15:08
mterryElleo: so my in-progress unity8 interface had some maliit access bits and jdstrand pointed me to your maliit interface branch.  jdstrand, how granular do we want those to be?  Elleo, do we plan to ship the OSK separate from the unity8 snap?15:09
Elleomterry: when I'd suggested including maliit access in the unity8 interface tvoss wasn't very keen on the idea, so might be a good idea to check up on his thinking there15:12
zygamterry: FYI: one snap can use many interfaces15:12
Elleomterry: but we're likely to have scenarios where we want the OSK but not unity8 (e.g. probably in kiosk cases)15:13
jdstrandI figured that maliit and unity8 interfaces would be separate, but unity8-session snap would slots both15:13
mterryzyga: I know, it's just a matter of what we want app developers to put: "[maliit, mir, unity8]" or just [mir, unity8]15:13
jamespagejdstrand, hey I understand you might be the person to talk to about getting auto-aliases added to my snaps in the snapstore - is that right?15:13
jdstrandjamespage: I am one person who can help with that, yes15:14
mterryElleo, jdstrand: OK I can take the maliit bits out of u815:14
jdstrandmterry: I think the former ([maliit, mir, unity8]). this can all be made the default in the sdk15:14
jdstrandfor the unity8 tempalte15:14
mterryyar15:15
mupPR snapd#2804 opened: interfaces/core-support: allow modifying systemd-timesyncd and sysctl configuration <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2804>15:30
jdstrandogra_: fyi, ^15:31
=== qengho_ is now known as qengho
ogra_yeah, just saw it pass on telegram :)15:31
jdstrandfun :)15:31
ogra_mup is everywhere !15:31
jdstrandheh15:31
ryebotWe're snapping an application that calls out to iptables - is there a way to do that without classic confinement? We've looked into using the network-control plug, but that doesn't appear to have the juju we need.15:35
ogra_ogra@localhost:~$ snap interfaces|grep firewall15:36
ogra_:firewall-control         -15:36
ogra_:)15:36
ogra_not sure thats available on classic installs though ...15:37
ogra_(i see it exposed there ...)15:37
ryebotThanks ogra_15:40
ppisatiogra_: i'm rebuilding a snapdragon image from scratch, and it stops at "/scripts/local-premount" - does it ring any bell?15:43
ogra_ppisati, how did you rebuild ?15:43
ppisatiogra_: right, i didn't explain well enough15:43
ogra_(do you have a "writable" label, else the boot will wait for 2min til it times out)15:44
ppisatiogra_: if i use the kernel from the store, everything is fine15:44
ogra_ah15:44
ppisatiogra_: my problem only happens with a src built kernel snap15:44
ppisatii'm using the -stable channel FWIW15:44
ogra_ppisati, there is a bug in the kernel plugin15:44
ogra_sergiusens just worked on a patch afaik15:44
ogra_(modules and firmware land in the wrong dir)15:44
ppisatioh15:45
ppisatilp165817715:45
ogra_in /lib/firmware and /lib/modules ... while they should be in /firmware and /modules15:45
ppisatiogra_: i was tryting to follow up to the snapdragon's guy on the ml15:45
ppisatiogra_: so i was trying to reproduce all the steps to generate a new image with a custom kernel15:46
ogra_with the eragon board ?15:46
ppisatiogra_: nope, snapdragon15:46
ogra_yeah, seems thats one of the main issues he hits15:46
ogra_hmm15:46
ppisatisergiusens: do you have anything for lp1658177?15:46
ppisatiogra_: i don't know, it appears he has many issues15:49
ogra_yeah15:49
ppisatiogra_: but i wanted to be sure that our kernel (and our building workflow was fine)15:49
ogra_he showed his demsg and there his kernel only has half the cmdline15:49
ppisatiogra_: so tried to build eveyrthing from scratch and i hit this15:49
ppisatiogra_: right15:49
ryebotogra_: that worked, thanks!15:50
ogra_:)15:50
=== sergiusens_ is now known as sergiusens
kwFor some reason, we had to port some open source tools as snap package that we can continue what we wanted to do. Can we just upload those tools to the store? I saw that for some package, there are different versions of it. Is there any rules to manage this currently?16:36
kwThis might be a strange question though16:36
zygakw: hey16:43
zygakw: you can just upload those to the store16:43
zygakw: versions have no relevance in the store16:43
zygakw: it's just a convenience for the user16:43
zygakw: but it doesn't decide on updates or anything like that16:43
mupPR snapd#2798 closed: interfaces/builtin: instead of just /proc/bus/pci/devices allow full read access on /proc/bus/pci <Created by morphis> <Closed by jdstrand> <https://github.com/snapcore/snapd/pull/2798>16:57
qenghokw: The most recent update (" that is applied to the "channel" a user is tracking becomes what is received by the user. The "version" is information for brains, not computers.16:58
qenghokw: The most recent update ("revision") that is applied to the "channel" a user is tracking becomes what is received by the user. The "version" is information for brains, not computers.16:58
mupPR snapd#2805 opened: snap: improve message after `snap refresh pkg1 pkg2` <Created by mvo5> <https://github.com/snapcore/snapd/pull/2805>17:04
pmcgowanogra_, there is no db image at http://cdimage.ubuntu.com/ubuntu-core/16/stable/17:23
pmcgowanwhich https://developer.ubuntu.com/core/get-started/dragonboard-410c points to17:24
ogra_pmcgowan, http://cdimage.ubuntu.com/ubuntu-core/16/stable/current/17:24
pmcgowanyeah but17:24
ogra_slangasek, can we get that missing symlink too ?17:24
pmcgowanthanks17:24
mupPR snapcraft#1085 closed: snapcraft: fix or ignore PEP8 static errors <Created by 3v1n0> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1085>17:25
slangasek"db image"?17:25
slangasekoh, dragonboard17:25
ogra_yeah "insider speak" :P17:25
slangaseksorry, seems to be a bad symlink17:25
ogra_np17:25
slangasekbecause of a differing filename17:25
ogra_96boards insists on the numbering there17:26
slangasekfixed17:26
ogra_because there are multiple dragonboards17:26
ogra_thanks !17:26
pmcgowanogra_, the reason I was getting it is my current install won't refresh any snaps, was that a known error at some point?17:26
pmcgowanthe downloads just hang17:26
ogra_pmcgowan, oh, i have the same burt was blaming my old install from nov.17:27
ogra_zyga, ^^^^17:27
slangasekogra_: sure - the script I inherited from mvo didn't name it that way.  Guess I'll update the script17:27
ogra_slangasek, yes please17:27
pmcgowanI have an oldish core but it used to work17:27
ogra_pmcgowan, right ... we didnt get anywhere debugging that on my board17:27
ogra_core                16.04.1       551  canonical  -17:27
ogra_thats what i'm stuck at17:28
pmcgowanI have 71717:28
zygaogra_: mmm17:28
ogra_but it doesnt download anything at all ... there is a macroon issue i think17:28
ogra_zyga, so pmcgowan sees similar issues with not being able to update on a dragonboard17:28
zygaI don't remember the issue exactly17:28
ogra_macraoon auth issue iirc17:28
zygahmmm17:28
zygaah17:29
pmcgowanI entered this bug https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/166260317:29
zygaI know17:29
mupBug #1662603: snap refresh hang during download <snapd (Ubuntu):New> <https://launchpad.net/bugs/1662603>17:29
zygapmcgowan: move aside /root/.snap please17:29
ogra_in fact Chipaca actually debugged it more woth me than you17:29
zygapmcgowan: it's fixed now, just get that out of the way and it will refresh17:29
zygapmcgowan: or more accurately, the config will apply17:29
zygapmcgowan: (it breaks core snap tho)17:29
zygapmcgowan: if you don't hae /root/.snap then this is a different bug17:29
ogra_i dont think that was it17:29
pmcgowanI dont have ".snap" just snap17:30
ogra_right17:30
pmcgowanzyga, I have a .snap in the user home dir17:31
pmcgowanbut not for root17:32
ogra_pmcgowan, can you file a bug, i dont think we have one yet ... i'll bring it up with the team tomorrow ...17:32
pmcgowanogra_, I did see above17:32
ogra_if it isnt my messed up install and you see it too i guess it is more serious17:32
ogra_oops17:32
pmcgowanogra_, I previously had that issue where current pointed to an old version, and fixed it manually somehow17:35
ogra_yeah, that one was fixed17:35
ogra_i remember this one17:35
pmcgowanreally dont want to wipe it and start over17:35
pmcgowanzyga, let me know if I can add more info to the bug17:36
zygapmcgowan: checking17:40
pmcgowanogra_, the macaroon in auth.json on my desktop is very different than on the db, is that normal?17:40
zygapcoca: can you refresh just core?17:40
zygapmcgowan: can you refresh just core?17:41
ogra_pmcgowan, i thought macaroons are device specific17:41
zygapcoca: (sorry, bad tab-complete)17:41
ogra_zyga, you cant refresh anything17:41
pmcgowanzyga, nope, that hangs17:41
pcocazyga, no worries :)17:41
zygapmcgowan: can you tell me what happens? snap refresh core17:41
zygathen show snap change for that17:41
pmcgowansure I have that, it shows all the steps with downloading Doing17:42
pmcgowanbut it never finishes17:42
zygapmcgowan: specifically on the core?17:42
zygahmmm17:42
zygapmcgowan: can you show your syslog please17:42
zyga(journalctl)17:42
pmcgowanzyga, here is one in progress http://pastebin.ubuntu.com/23948993/17:43
pmcgowanzyga, core was the same as that17:43
zygapmcgowan: mir-kiosk is another thing, I'm thinking about core specifically17:43
zygaif you are stuck on broken core because you cannot update17:43
zygavs all the snaps are broken but you can update core17:43
zygapmcgowan: can you set your $HOME/.snap directory aside17:44
zygathe one in your home directory, not root17:44
zygapmcgowan: then snap refresh core17:44
pmcgowanzyga, sure on sec17:44
zyga(snap abort changes if they are in progress)17:44
ogra_pmcgowan, was your board off for a while ?17:45
pmcgowanogra_, yes, at least two weeks17:45
pmcgowanmaybe more17:45
ogra_pmcgowan, Chipaca seems to have a theory that it is realted to that17:45
ogra_yeah, mine too17:45
zygamine too17:45
zygabut the PSU is too far away to turn on and I'm somewhat swamped with laundry up here so I won't reach it easily17:46
pmcgowanzyga, sudo snap refresh core17:47
pmcgowanerror: cannot perform the following tasks:17:47
pmcgowan- Download snap "core" (892) from channel "stable" (cannot download non-free snap without purchase)17:47
zygahmmmm17:48
zygalooks like a store bug or something I'm not familiar with17:48
zygathanks for letting us know17:48
ogra_just FYI i checked the store page and the core snap still says it is free17:55
ogra_Price17:55
ogra_Free17:55
ogra_Licence17:55
ogra_Other Open Source17:55
zygajdstrand: hey, can you please look at https://github.com/snapcore/snapd/pull/277818:25
mupPR snapd#2778: cmd: use safer functions in sc_mount_opt2str <Created by zyga> <https://github.com/snapcore/snapd/pull/2778>18:25
zygafailry short and simple, large part of the diff is boring format change caused by indent18:25
seshuIs there a way to make the entire system point to beta channel? Our QA wants to test autoupdate of our snap and its behavior.18:28
kyrofaseshu, channels are per-snap. Some snaps may not even have releases in beta18:29
seshuKyrofa: If I point and download my snap from a particular channel, would a higher version upload to same channel gets pushed to device as autoupdate?18:30
kyrofaseshu, indeed18:31
kyrofaseshu, note though that the version has nothing to do with it-- it's the fact that it's a higher revision18:31
kyrofaWhich is something assigned by the store. Essentially, since you uploaded another one, it gets a higher revision18:31
seshukyrofa: Great! That's what I wanted to know. I guess, the update happens within next 6-12 hours after I upload and publish.18:33
kyrofaseshu, indeed, autoupdates happen four times a day, but the exact spacing is somewhat random so as to even the load18:33
kyrofaseshu, if you want to update immediately, you can use the `snap refresh` command18:33
seshukyrofa: One more quick question...would a reboot or network event trigger such autoupdates...In case, I don't want the user to wait an entire day to get my updated snap on to his system18:34
kyrofaseshu, that's a good question, I'm not sure. zyga or mvo probably know18:35
seshukyrofa: assuming mine is a system without terminal and keyboard...hence cannot do snap refresh18:35
kyrofaseshu, right, that's what this was made for18:35
seshuzyga: would a reboot or network or (any special) event trigger autoupdates...In case, I don't want the user to wait an entire day to get my updated snap on to his system and `snap refresh` is not an option for the user (as my system is headless and without keyboard attached).18:40
mupBug #1662627 opened: snapd project also open for bugs <Snappy:New> <https://launchpad.net/bugs/1662627>18:41
zygaseshu: looking18:42
zygaseshu: not at this time18:43
seshuzyga: Thanks for checking. Would autoupdate happen atleast at first boot (after flashing the image or first time out-of-the-box) assuming the factory installs base image few months prior the actual deployment in the field and there may be updates to pre-bundled snaps (including core snap...which would need reboot)...coz in critical deployments any reboot after the install setup could cause major loss (i mean in factory automation set18:46
rogpeppeanyone know how I can run a command at bootstrap time in Snappy? (as root)18:47
zygaseshu: I think first boot is special, yes18:49
zygaseshu: we do a few things there, that should ensure that your snaps are fresh18:49
mupPR snapd#2803 closed: asserts: introduce a variant of model assertions for classic systems <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2803>18:49
zygarogpeppe: can you be more specific (what do you mean by bootstrap?)18:49
rogpeppezyga: for background, i have a raspberry pi with a hardware rtc but the kernel /dev/rtc device doesn't seem to work (I'm fairly sure I've configured the right overlay). I can use my own code to read the rtc and system clock time, but I don't know how to get that to run before the snap services do.18:50
zygahmmm18:51
zygaogra_: ^^18:51
rogpeppes/system clock time/set system clock time/18:51
zyga(he's EOD now)18:51
seshuzyga: Great...that's nice...would you please point to any documentation or details to know more about the first boot behavior.18:51
zygarogpeppe: that smells like a derivative gadget snap to me18:51
zygaseshu: I don't think we have any, let me check though18:51
zygaseshu: no we don't have that18:51
rogpeppezyga: mm hmm.18:52
rogpeppezyga: :(18:52
rogpeppeseshu: :)18:52
zygaseshu: I can write something tomorrow, it will be available on the snapd wiki18:52
* rogpeppe can't type18:52
rogpeppezyga: that sailed right over my head. what's a "derivative gadget snap" ?18:52
zygarogpeppe: you need to take the stock gadget snap for pi and patch it with that logic and build an image using that gadget snap18:52
seshuzyga: Sure helps! thanks a ton.18:52
zygarogpeppe: unless there's a way to make that work with an add-on snap18:52
zygarogpeppe: and an interface18:53
zygarogpeppe: on a generic18:53
seshuThank you kurofa and zyga.18:53
zygarogpeppe: I think you want to chat with ogra_ tomorrow when he's around (europe)18:53
zygarogpeppe: as he may have an easier suggestion18:53
rogpeppezyga: so you're saying i can't use the stock ubuntu-core image?18:53
zygaseshu: stick around, I'll ping you tomorrow18:53
* rogpeppe reads up about gadget snaps18:53
zygarogpeppe: well, I'm saying that we don't allow to stick unconfined stuff that runs as root on boot, yes18:54
zygarogpeppe: https://github.com/snapcore/snapd/wiki/Gadget-snap18:54
rogpeppezyga: ok, i suspected that was the case.18:54
zygarogpeppe: https://github.com/snapcore/pi3-gadget18:54
zyga(there's a pi2-gadget repo as well)18:54
rogpeppezyga: i'm wondering if it was a bad idea using snappy for this :)18:54
zygarogpeppe: not if you want security and snaps people make :)18:54
zygarogpeppe: if it is a common RTC we could perhaps support it in the gadget snap for pi in general18:55
zygarogpeppe: and everyone could use it18:55
rogpeppezyga: well, yeah, that would be nice. but being able to install temporary hacks to stop things crashing is also nice sometimes. I know those two things are oppositional :)18:55
zygarogpeppe: I really suggest that you talk to ogra_ tomorrow to find a solution18:55
zygarogpeppe: well18:55
zygarogpeppe: temporary hack is something else18:55
rogpeppezyga: i raised it on the mailing list a while ago18:55
zygarogpeppe: just stick a systemd service18:55
zygarogpeppe: (manually)18:55
seshuzyga: Sure...18:56
zygarogpeppe: the shell you log into is not confined18:56
rogpeppezyga: and poked again last week18:56
rogpeppezyga: but no response18:56
zygarogpeppe: you can experiment and do stuff like that18:56
zygarogpeppe: I see, well, sometimes people are busy18:56
rogpeppezyga: it's important that it needs to happen automatically on reboot18:56
zygarogpeppe: a systemd unit will give you that18:56
zygarogpeppe: you can even ensure it runs before snapd or other bits18:56
zygarogpeppe: but that's a one-off hack18:56
zygarogpeppe: for a way to incorporate that into snappy proper you have to talk to ogra or see if you can achieve this with your gadget snap18:57
rogpeppezyga: i know, but it's a little bit frustrating as i'm actually trying to use this to control a household electrical system and it's a bit embarrassing when it fails after a power cut...18:57
zygarogpeppe: I bet it is,18:57
jdstrandzyga: re 2778, ok18:59
zygajdstrand: thanks19:00
looljdstrand: hey ever seen something like this? http://paste.ubuntu.com/23949356/19:02
loolthis is a regular snap I had installed in devmode19:03
loolI changed it ot classic19:03
loolI tried a reboot to clear the loaded apparmor profiles but it didn't help19:03
rogpeppezyga: so if i add, say, /etc/systemd/system/rtcsync.service and start it, that might do the job?19:03
zygalool: is this on old snapd?19:03
zygarogpeppe: I think so19:03
loolubuntu@fbwedge100:~$ snap version19:03
loolsnap    2.20.1ubuntu119:03
loolsnapd   2.20.1ubuntu119:03
jdstrandlool: you can't use plugs with classic19:03
rogpeppezyga: (assuming the right systemd magic - my head still hasn't migrated from upstart yet...)19:04
zygalool: update, that's been fixed long ago19:04
loolzyga: ok19:04
zygalool: (and regenerate the profile)19:04
looljdstrand: ok, the store rejects plugs: [] in hooks though19:04
zyga(we should _really_ do that automatically soo)19:04
zygalool: just don't do any plugs19:04
jdstrandlool: hmm?19:04
loolzyga: ok, will update and install the snap19:04
jdstrandlool: the store will let you know that you are using plugs with classic. what are you referring to?19:05
zygalool: recent snapd lets you disable / enable a snap to refresh security19:05
rogpeppezyga: i can always make my service pause for 10s when it runs to make sure that the other one gets to run first...19:05
zygajdstrand: note that plugs on classic snap make sense with --jailmode and the store should not reject those19:05
zygarogpeppe: the other one?19:05
looljdstrand: no I mean a regular snap with plugs: [] will be rejected19:05
zygarogpeppe: I refer you to excellent systemd documentation, it has all the bells and whistles you need19:05
loolsorry, a configure hook wiht plugs: []19:06
zygarogpeppe: you should set up correct dependencies19:06
zygarogpeppe: and not use any timers19:06
rogpeppezyga: ah, ok. i really must sit down one day and rtfm, yes19:06
jdstrandlool: I'd need to see the yaml. just drop 'plugs' at all if you don't want it rather than specifying an empty list?19:06
rogpeppezyga: thanks19:06
zygarogpeppe: systemd starts things in parallel so your 'wait for 10s' thing won't matter19:06
zygarogpeppe: unless you express that as a dependency19:07
rogpeppezyga: given that snappy creates the other service for me, is it possible to make it depend on my rtcsync service?19:07
kyrofazyga, are dependent services supported, though?19:07
looljdstrand: if I drop plugs entirely snapcraft rejects it19:07
zygarogpeppe: yes, but I suggest to make your hack to run early on boot19:07
zygarogpeppe: it really depends on what you want to do there19:07
zygakyrofa: no19:07
looljdstrand: https://github.com/lool/sonic-snap/blob/master/snapcraft.yaml19:08
zygakyrofa: but systemd has reverse dependency syntax19:08
zygakyrofa: a service can run before something else19:08
rogpeppezyga: i want to do as little as possible pending the real driver/kernel fix :)19:08
jdstrandlool: I feel like I am missing a lot of context. are we talking about snapcraft.yaml, snap.yaml or the store?19:08
rogpeppezyga: ah, i wondered if it might19:08
looljdstrand: both19:08
rogpeppezyga: thanks19:08
looljdstrand: sorry, I'm doing too many things in parallel19:08
rogpeppezyga: i'll give that a go19:08
kyrofazyga, yeah, would sure be nice to expose that in snapd19:08
looljdstrand: if I dont specify plugs at all, snapcraft rejects it, so I specify an empty list, but then the store rejects it19:09
jdstrandlool: that yaml is using devmode. what is the yaml that uses classic?19:09
looljdstrand: I've just changed this snap from devmode to classic to run gdb on it19:09
loollocally19:09
rogpeppezyga: where would you suggest starting in the systemd docs?19:09
jdstrandsergiusens: snapcraft now requires 'plugs' in snapcraft.yaml?19:09
rogpeppezyga: is the canonical place? https://www.freedesktop.org/wiki/Software/systemd/19:09
zygarogpeppe: man systemd.unit19:09
zygarogpeppe: man systemd.service19:10
zygarogpeppe: that wiki is probably also good but you have everything on your system already19:10
looljdstrand: $ snapcraft19:10
loolIssues while validating snapcraft.yaml: The 'hooks/configure' property does not match the required schema: None is not of type 'object'19:10
rogpeppezyga: ah, great, i like section 5 pages.19:10
loolif I drop the plugs line19:10
loolwith 2.2619:10
jdstrandsergiusens: and it generates 'plugs: []' in snap.yaml? if so, why? ^19:11
loolzyga: hmm $ sudo snap refresh --edge core19:11
lool2017-02-07T19:06:44Z INFO snap "core" has bad plugs or slots: core-support (unknown interface)19:11
loolerror: cannot perform the following tasks:19:11
lool- Setup snap "core" (1126) security profiles (no state entry for key)19:11
jdstrandlool: what if you do 'configure: null'?19:11
zygalool: oooooh19:11
zygalool: that's pretty interesting/bad19:11
zygalool: so core support is a new interface19:11
looljdstrand: Issues while validating snapcraft.yaml: The 'hooks/configure' property does not match the required schema: None is not of type 'object'19:11
zygalool: that is there to support... core19:11
rogpeppezyga: thanks a lot for your help. i think that's enough to get me a system that works...19:12
zygalool: and I suspect we install new core19:12
loolzyga: yeah I figured, seems like the upgrade path is broken though19:12
zygalool: try to conifgure it (it ships a hook now)19:12
zygalool: and it dies19:12
zygalool: can you report this please19:12
loolsnappy project?19:12
zygalool: snapd please19:12
zygarogpeppe: good luck, and don't forget to talk to ogra tomorrow19:12
ryebotIs there a plug that allows a snap to use sysctl?19:14
loolzyga: https://bugs.launchpad.net/snapd/+bug/166263619:14
mupBug #1662636: Can't upgrade to edge core snap due to missing core-support interface <snapd:New> <https://launchpad.net/bugs/1662636>19:14
looljdstrand: the second copy-paste was with configure: null19:14
zygalool: just to checek, can you add snap changes & snap change N for that change to the bug report19:15
loolzyga: would it help to use 2.22 from -proposed?19:15
zygalool: (actually just the change)19:15
zygalool: not sure yet, hold on19:16
zygalool: I specifically want to see what failed (which task in that change)19:16
loolzyga: actually I lied, this system is NOT up-to-date19:16
ryebotspecifically, the app we're trying to snap is failing with "can't set sysctl net/ipv4/conf/all/route_localnet: open /proc/sys/net/ipv4/conf/all/route_localnet: permission denied"19:17
ryebotis that possible without classic snaps?19:17
loolzyga: upgrading now19:17
ryebotclassic confinement*19:17
zygaryebot: not likely, classic confinement has no limitations19:18
zygaryebot: but look at dmesg |grep DENIED19:18
zygamaybe we're missing something19:18
ryebotzyga: yeah, it definitely works with classic confinement19:19
ryebotzyga: trying to confine it now19:19
zygaryebot: ah, I misread your question19:19
zygalet me check19:19
ryebotzyga: thanks :)19:19
loolzyga: I'm upgrading to xenial-updates19:19
looland then will repro19:20
zygaryebot: I don't think there's an interface that covers this, perhaps https://github.com/snapcore/snapd/blob/master/interfaces/builtin/network_control.go should but I don't know19:20
ryebotzyga: I'll give it a shot; thanks19:21
looljdstrand: BTW is there a shortcut to gdb-ing a snap? here are the options I thought of: 1) switch to classic snap, snap run --shell, run gdb there; 2) set SNAP env var manually, run binaries (but then namespaces aren't setup); 3) add gdb as a stage-package and snap run --shell19:35
loolnone of these are very pleasing, is there something smarter to do?19:35
mcphailCan you debug in "snap try"?19:36
balloonsanyway I can do something like this: source: file://$GOPATH/src/github.com/ to pull and use local sources to build my snap instead of a remote?19:37
loolmcphail: I guess; I'm actually building the snap on another host19:38
balloonsnote, I can specify the absolute path, and that does work19:38
mupBug #1662627 changed: snapd project also open for bugs <Snappy:Invalid> <https://launchpad.net/bugs/1662627>19:44
sergiusenslool: jdstrand you only define hooks in `snapcraft.yaml` if you need to define plugs, what is going on?19:46
loolsergiusens: hooks have plugs19:48
loolsergiusens: but you can't define a hook without the plugs entry19:48
loolif you do an empty plugs list that's rejected by the store19:48
zygalool: use snap run --shell19:50
zygalool: and yes, use gdb from there19:50
zygalool: if this is on classic you have gdb available in the host (via /var/lib/snapd/hostfs)19:51
zygalool: if core then not sure19:51
zygalool: didn't try that19:51
zygalool: I think we could grow snap debug --strace | --gdb | ... over time19:51
zygalool: that would do all the magic for symbols and what not19:51
* zyga wonders about -debug snap with detached symbols19:52
zygae.g. foo might have a private foo-debug snap19:52
zygainstall both, content does the rest19:52
seshuany issue with snap store? I'm unable to install my snap from --edge and --beta channel...got struck at Download snap XXXX from channel "edge" for a while now...19:53
mupPR snapcraft#940 closed: store: implement delta uploads in push <Created by squidsoup> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/940>19:55
mupPR snapcraft#1114 opened: tests: avoid snapping progress to leak into report <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1114>20:01
ryebotzyga: That actually got us part of the way there, thanks!20:07
ryebotzyga: Now we're hitting "open /sys/module/nf_conntrack/parameters/hashsize: permission denied"20:08
ryebotnetwork_control.go supports "@{PROC}/sys/net/nf_conntrack_max rw", but unfortunately I don't see sys/module/nf... in there.20:09
zygaryebot: oh, that's great20:27
zygaryebot: can you open a bug on this (in the snapd project on launchpad)20:27
zygaryebot: and make sure to tag it "snapd-interface"20:28
ryebotzyga: will do!20:28
zygaryebot: thank you20:29
zygaryebot: our security team will review it and if it is within the policy, it will be added in a few days20:30
ryebotzyga: awesome, thanks!20:30
jdstrandryebot: feel free to ping me when you file it20:31
ryebotjdstrand: cool, will do20:31
zygaseshu: yes, we think there's an issue20:32
zygaseshu: can you look if this bug describes the problem you are seing...20:32
zygaseshu: hmm, it's not filed?20:33
* zyga should EOD and rest20:33
jdstrandtvoss, zyga: fyi, https://lists.freedesktop.org/archives/xdg-app/2017-February/000534.html20:33
pedroniszyga: it's filed on the package20:34
pedronisnot snappy or snapd20:34
zygapedronis: ah, thanks20:34
pedronis(it's confusing all these places)20:34
ryebotjdstrand zyga: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1662662 <-- lmk if you need more information20:34
mupBug #1662662: No interface allows access to "/sys/module/nf_conntrack/" <cdk> <snapd-interface> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1662662>20:34
zygajdstrand: very interesting20:35
zygajdstrand: thank you20:35
pedroniszyga: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/166260320:35
mupBug #1662603: snap refresh hang during download <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1662603>20:36
zygaseshu: ^^20:36
pedronisseshu: what device are you running snap from?20:36
jdstrandryebot: thanks, triaged and assigned to me20:37
ryebotjdstrand: You rock, thanks a lot!20:38
jdstrandryebot: thank you for filing the bug! :)20:38
ryebotnp!20:38
zygajdstrand: we should discuss the state of nvidia support20:40
zygajdstrand: it's more complex with glvnd20:40
jdstrandzyga: probably should discuss with tvoss. I'm happy to participate for implementation ideas but I'm not well-versed in gl20:50
popeyzyga: arch appears to have snapd 2.16, do you know when they might get 2.21?20:50
mhall119sergiusens: how can I make an architecture-agnostic snap with snapcraft?20:54
sergiusensmhall119: force it with `architectures: [all]`20:56
sergiusensyou seem to ask this question a lot :-P20:56
mhall119I do?20:56
mhall119all or any? that's the part I can never remember20:57
popeysergiusens: https://github.com/snapcore/snapcraft/blob/master/snapcraft/internal/libraries.py#L84 is that relatively new? Pretty neat.20:57
popeyI only discovered it today :)20:57
popeyzyga: ignore me, wiki has the data20:57
zygapopey: no, I poked the package as out-of-date but I had no reply20:59
zygapopey: I don't have time to update it now20:59
zyga(the package)20:59
sergiusenspopey: this is what sort of needs disabling that was discussed on-list :-/21:00
zygajdstrand: I have looked at this a while ago but I think we should come up with a solid plan forward21:02
zygajdstrand: and it's 100% required to have nvidia hardware to hack on this, I don't have any anymore21:02
jdstrandhmm, me either21:03
zyga(had old GPU but I left it in poland as it was not working reliably)21:03
mupPR snapd#2778 closed: cmd: use safer functions in sc_mount_opt2str <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2778>21:03
zygajdstrand: I merged the PR, I'll follow up with same cleanups in more places21:03
zygajdstrand: thanks for the strnlen tip21:03
kyrofapopey, yeah we like it too, but it's just not deterministic enough21:04
zygajamiebennett: ^^21:07
zygajamiebennett: (the nvidia discussion)21:07
mhall119thanks sergiusens, you got me all squared away :)21:15
balloonssergiusens, is there a way to use local source, even for the godeps?21:22
balloonsif you use source: ., godeps will still download the depends, even though I have them in $GOPATH21:23
sergiusensballoons: GOPATH for the plugin is different that GOPATH in your env21:24
balloonssergiusens, yea that seemed quite apparent when I tried to use file://$GOPATH. Still, is there anyway for godeps to find the dependencies, or not really?21:26
popeykyrofa: yeah, it threw me today. One of my snaps magically acquired the right libraries, but didn't when built on another arch machine - ppa missing.21:26
popeykyrofa: took me a while to figure out, then I saw the warnings (which have an odd b/ in front of them) and found that source code21:27
kyrofapopey, yeah, exactly. Magic is awesome but only if you can promise it'll always work, eh?21:27
sergiusensballoons: not that I can think of, not really a godeps person here21:28
balloonsperhaps kyrofa would know?21:30
sergiusensballoons: I don't think you can aggregate GOPATHs though21:31
sergiusensdon't clean the pull step is what I can think of21:31
sergiusensand maybe root for having the rebuild support in place ;-)21:31
balloonsis this a wishlist bug perhaps?21:31
sergiusensit's almost like next in line21:32
kyrofaYeah we're close21:32
=== JanC_ is now known as JanC
balloonsohh, is there an open issue or something for me to watch?21:38
balloonsI'd be keen to use it :-)21:38
kyrofaballoons, https://bugs.launchpad.net/snapcraft/+bug/164787721:40
mupBug #1647877: The pull step is not marked as dirty when the source of the dump plugin is changed <dirty> <Snapcraft:Confirmed for kyrofa> <https://launchpad.net/bugs/1647877>21:40
balloonsthanks guys!21:41
mupPR snapcraft#1114 closed: tests: avoid snapping progress to leak into report <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1114>21:43
mupPR snapd#2800 closed: daemon: show "$snapname (delta)" in progress when downloading deltas <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2800>21:47
mupPR snapd#2792 closed: tests: add spread test for delta downloads <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2792>21:48
cholcombesnappy: i'm getting a `classic confinement requires the core snap to be installed. Install it by running `snap install core`.` on my builds.  is that something you need to do or me?21:57
balloonscholcombe, you need to have the core snap installed; you can fix it by installing it21:57
cholcombeballoons, https://code.launchpad.net/~xfactor973/+snap/ceph-safe-disk i can't do that21:57
cholcombei have LP building for me21:57
balloonscholcombe, ahh, lp can't build classic snaps yep21:58
cholcombedarn21:58
cholcombealright dev mode it is21:58
balloonsyea sadness21:58
cholcombeballoons, is there a bug i can reference around that?  Just so i can remember to update this when that gets fixed21:59
balloonshttps://bugs.launchpad.net/launchpad-buildd/+bug/165094622:00
mupBug #1650946: unhelpful error when building a classic snap: classic confinement requires the core_dynamic_linker to be set <launchpad-buildd:Triaged> <Snapcraft:Fix Released by sergiusens> <https://launchpad.net/bugs/1650946>22:00
sergiusensballoons: cholcombe that's going to be in snapcraft 2.27 and in master tonight/tomorrow22:05
cholcombesergiusens, oh cool! alright22:05
balloonssergiusens, but it still needs lp changes right?22:08
balloonsIf I can build with -proposed or your daily build ppa to get snapcraft 2.27 , I'll do it. I'd love to switch to classic for lp builds22:09
sergiusensballoons: yeah, but timelines should align and the lp folks are working on another solution as well22:09
sergiusensballoons: snapcraft has no PPA, it goes against its principles :-)22:10
balloonssergiusens, :-)22:10
mskalkahas anyone tried installing the Juju charm-tools snap lately? I can fetch it just fine but when I try to install it errors out with: error: cannot install "charm": snap not found22:11
sergiusensmskalka: maybe marcoceppi knows22:13
mskalkalooks like it's just that one snap too, others install fine22:17
kyrofaIt's a classic snap-- do you need to pass --classic?22:21
kyrofamskalka, ^^22:21
mupPR snapcraft#1098 closed: Ignore .tox directories when creating cleanbuild tar <Created by OddBloke> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1098>22:28
mupPR snapcraft#1115 opened: kernel plugin: fix kernel snap layout <Created by lool> <https://github.com/snapcore/snapcraft/pull/1115>22:46
mupPR snapd#2773 closed: interfaces/mount: generate per-snap mount profile <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2773>22:53
mupPR snapcraft#1110 closed: Show error messages for snap processing errors <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1110>23:13
mupPR snapd#2747 closed: interfaces/mount-observe: add quotactl with arg filtering (LP: #1626359) <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2747>23:15
mupBug #1637596 changed: Configure hook in tried snap with ecryptfs: permission denied <snapd:New for zyga> <https://launchpad.net/bugs/1637596>23:55
mupBug #1653769 changed: Missing keyring interface <snapd-interface> <snapd:Triaged> <https://launchpad.net/bugs/1653769>23:55
mupBug #1655125 changed: Missing interface: content sharing in the other direction <snapd-interface> <snapd:New> <https://launchpad.net/bugs/1655125>23:58

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