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

=== markusfluer1 is now known as markusfluer
zygao/07:54
mupPR snapcraft#1123 closed: Adding Fish shell source and IDEA IDE to gitignore <Created by joedborg> <Closed by joedborg> <https://github.com/snapcore/snapcraft/pull/1123>08:25
cappeIt doesnt work very good, restartunit error, socket error and so on. Im on the latest ubuntu09:43
cappei was here some weeks ago trying to solve the bug(?)09:44
cappe(at least report it)09:44
morphis_ogra_: ping09:52
ogra_morphis_, yo09:52
morphis_ogra_: didn't you enabled ALSA support for the pi sometime ago with a change in the config.txt?09:52
ogra_morphis_, well, audio device support, but yes ... all edge builds should have it09:53
morphis_ah only in edge09:54
ogra_well09:54
ogra_we cant update gadgets in stable ... so you wouldnt get it09:54
morphis_why that?09:54
ogra_because nothing in /boot gets updated on gadget upgrade09:55
morphis_ah right09:55
ogra_only snap.yaml (and i think gasget.yaml)09:55
morphis_that problem ..09:55
morphis_:-)09:55
ogra_morphis_, mvo was working on a config.txt inrterface, that might help around this09:55
morphis_I remember09:55
morphis_yeah saw those PRs but AFAIK it hasn't landed yet09:56
ogra_but i guess as long as the core-support interface is completely disable that wont work09:56
morphis_yeah09:56
ogra_even if it would land ... the base interface needs to come back first09:56
morphis_ogra_: ok, another thing with the latest gadget from edge for the pi3 I should be able to get Mir working, right?10:01
ogra_morphis_, i have mir kiosk running here, so yes10:02
morphis_great10:02
=== rgogunskiy_ is now known as rgogunskiy
mupPR snapd#2940 opened: interfaces: use kmod and seccomp specs <Created by stolowski> <https://github.com/snapcore/snapd/pull/2940>11:37
=== tinwood is now known as tinwood_swap
mupPR snapd#2941 opened: Connectivity status interface <Created by xavi-garcia-mena> <https://github.com/snapcore/snapd/pull/2941>12:03
=== dragly_ is now known as dragly
ElleoI seem to have got into a strange state where snapd refuses to acknowledge that an interface I'm working on exists; I've tried reverting to a known good commit but when installing snaps it still claims it's an unknown interface13:13
Elleois there some sort of interface registry or anything that could have got into a bad state?13:13
ogra_Elleo, well, snapd re-execs to the snapd inside the core snap ...13:14
ogra_i belive your interface would have to exist inside there ... ( zyga ? )13:15
Elleoogra_: is that a new change? this was working a couple of weeks ago13:17
ogra_not *that* new ... but also not really old ... i have to defer to zyga perhaps i'm wrong13:18
zygaElleo: hey13:20
zygaElleo: first of all, set SNAP_REEXEC=013:20
zygaElleo: otherwise your snapd will reexec and you won't see what you are hacking on13:20
zygaElleo: second of all, is the interface supposed to be on the core snap or on a different snap?13:20
* Chipaca waves at vds 13:23
* vds waves back to Chipaca :)13:24
Elleozyga: for different snaps, it's the maliit interface13:24
Elleozyga: setting SNAP_REEXEC=0 fixes my problem, thanks :)13:26
mupPR snapd#2942 opened: tests: add core-snap-refresh test <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2942>13:34
zygaElleo: great :-)13:34
=== yofel_ is now known as yofel
didrocksogra_: hey! I thought the postgresql snap was using aliases (I need one example from tutorial), ideally doing aliases and config script. Do you have any idea handy?14:01
ogra_uhm ... i have neither ever used aliases nor ever used the postgres snap14:02
didrocksogra_: ok, I'll create an example for it I guess :)14:03
ogra_didrocks, i know that samuele is our alias specialist though ... but he seems to be not on IRC14:04
didrocksogra_: ah, I can wait for him to see if there is already an interesting example in the store14:04
pedronisdidrocks: how aliases work will change again, there was some confiusion around the decision of the first implementation ... and we were asked to tweak how they works. the end result is that there will be nothing to do in the snap, it's something that developer will have to ask reviewers to setup14:05
pedronisanyway this will change in 2.24 (current estimate)14:05
didrockspedronis: ok, thanks for the head's up. I'm only doing the consumer-side for now (snap user), so I guess that part won't change?14:06
pedronis*confusion around the decisions14:06
ogra_oops, seems i'm blind !14:06
didrocksogra_: you're not *that* old :)14:06
ogra_(why did pe<tab> not properly expand ?)14:06
pedronisdidrocks: it will change as well (users will be able to setup snaps but given that the snap itself will have no opinions they have to specify everything, unless has I said the snap has aliases setup in the store, then there is nothing to do, it's all automatic)14:07
ogra_didrocks, no, i just smell like it :P14:07
pedroniss/to setup snaps/to setup aliases/14:07
didrockspedronis: oh interesting, ok, waiting for the change then…14:08
pedronisdidrocks: so if something merits automatic aliases, it can be setup with the old way, and we will migrate it, but indeed I would not recommend asking users to play with them atm14:09
didrockspedronis: ok, I'm just skipping that part of the tutorial for now14:09
didrocks(well, skipping writing it)14:09
ogra_or make it a one word tutorial "guess"14:10
ogra_;)14:10
didrocks:)14:11
Chipacaogra_— your tab completion probably doesn't expand on first tab if more than n options are available?14:19
ogra_well, i tabbed a few times14:20
Chipacaspeaking of which, tab completion is a mystery wrapped in a conundrum, but the mystery is putrid and the conundrum is covered in hives14:21
ogra_hahaha14:21
=== hikiko is now known as hikiko|ln
Chipacamup, poke bdmurray14:22
mupChipaca: Plugin "ldap" is not enabled here.14:22
Chipacaah14:22
Chipaca6am still14:22
Chipacaanyway i'll take a break from this14:22
ogra_seems to be always 6am there14:22
Chipacaogra_— i always get impatient about the same time i guess :-D14:22
ogra_or pacific time is actually on a fixed hour permanently :)14:23
elopioppisati: I am back, and I am the test guy. How can I help you?14:53
ppisatielopio: https://github.com/snapcore/snapcraft/pull/114914:57
mupPR snapcraft#1149: kernel plugin: if kernel's target == NULL, use per-arch default target <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1149>14:57
ppisatielopio: let's start with this one14:57
elopioppisati: ok. That one timed out downloading a snap. There's an open bug for the store related to that. I've just retried it.15:06
elopioppisati: you have to add unit tests to cover the code paths you added.15:06
ppisatielopio: so, is that being retried now or not?15:15
ppisatielopio: and, how about these other two:15:17
ppisatihttps://github.com/snapcore/snapcraft/pull/115015:18
mupPR snapcraft#1150: kernel plugin: remove MAKEFLAGS from the environment <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1150>15:18
ppisatihttps://github.com/snapcore/snapcraft/pull/114815:18
mupPR snapcraft#1148: kernel plugin: if dtb target == NULL and arch == (arm||arm64), build and install all dtbs <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1148>15:18
=== hikiko|ln is now known as hikiko
mupPR snapd#2943 opened: many: only tweak core config if hook exists <Created by zyga> <https://github.com/snapcore/snapd/pull/2943>15:23
elopioppisati: those two are green. I will trigger the autopkgtests there in a moment.15:28
ppisatielopio: while the other is still red for the open bug, right?15:33
elopioppisati: the other should pass with a retry. You can add the tests, don't worry about that failure15:37
kyrofaHey ogra_, do you have any recommendations for workaround for bug #166786515:57
mupBug #1667865: Unable to sideload large snap on DragonBoard <Snappy:New> <https://launchpad.net/bugs/1667865>15:57
kyrofafstab has a big "do not edit" banner on it15:58
ogra_kyrofa, unmount /tmp16:05
ogra_(and reboot after installing the snap)16:05
kyrofaogra_, that makes /tmp read-only16:06
ogra_huh ? shouldnt16:07
kyrofaerror: cannot read POST form: open /tmp/multipart-072813492: read-only file system16:07
ogra_yeah16:07
ogra_hmm16:07
ogra_mount it to some place in /writable then16:08
kyrofaogra_, there we go...16:09
kyrofaogra_, what would you say is the ideal fix for that bug?16:10
ogra_well, snapd was supposed to have a fix ... by not using /tmp to unpack16:10
kyrofaOkay, agreed16:11
ogra_but i'm not sure if that has landed anywhere ...16:11
mupPR snapcraft#1162 opened: tests: pass the autopkgtest secret to the container <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1162>16:14
kyrofaogra_, let's say that work hadn't happened. Where is the ideal location to do this work?16:24
ogra_kyrofa, snapd i suppose16:25
kyrofaogra_, I was thinking /var/tmp, thoughts?16:25
kyrofaogra_, I mean on the filesystem16:25
ogra_oh, you mean the unpacking16:25
ogra_yeah, /var/tmp seems to be on disk by default alread16:25
ogra_y16:25
kyrofaYeah I realize now I used "work" twice in the same sentence to refer to two different things :P16:25
=== topi`_ is now known as topi`
mupBug #1668349 opened: Classic snap fails to run  <Snappy:New> <https://launchpad.net/bugs/1668349>17:29
mupPR snapd#2944 opened: interfaces/builtin/alsa: add read access to alsa state dir <Created by ssweeny> <https://github.com/snapcore/snapd/pull/2944>17:52
mupPR snapcraft#1162 closed: tests: pass the autopkgtest secret to the container <Created by elopio> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1162>18:41
=== iliv_ is now known as iliv
mupPR snapd#2943 closed: many: only tweak core config if hook exists <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2943>19:13
lazyPowerkyrofa: hey there, i think you pinged me on friday re: my mail about etcd snap channel unable to find a revision19:45
kyrofalazyPower, hmm... that was a long time ago. My memory isn't what it used to be ;)19:47
mupPR snapd#2945 opened: interfaces: miscellaneous policy updates for unity7, udisks2 and browser-support (LP: #1667480) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2945>20:33
lazyPowerkyrofa: thats true, but i'm  not positive that was you either :)20:45
mupPR snapd#2946 opened: interfaces: consistently use 'const' instead of 'var' for security policy <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2946>21:17
zygajdstrand: hey, could you please have a look at https://github.com/snapcore/snapd/pull/2947/files21:35
mupPR snapd#2947: cmd/snap-confine,tests: bind-mount /etc/os-release <Created by zyga> <https://github.com/snapcore/snapd/pull/2947>21:35
mupPR snapd#2947 opened: cmd/snap-confine,tests: bind-mount /etc/os-release <Created by zyga> <https://github.com/snapcore/snapd/pull/2947>21:35
mupPR snapcraft#1163 opened: docs: update the directory where the API pages are generated <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1163>21:54
jdstrandzyga: I thought you were off this week?22:01
zygajdstrand: starting tomorrow :)22:13
zygajdstrand: one more https://github.com/snapcore/snapd/pull/282722:13
mupPR snapd#2827: cmd: add helpers for mounting / unmounting <Created by zyga> <https://github.com/snapcore/snapd/pull/2827>22:13
zygajdstrand: I'd love to land that one22:13
zygajdstrand: I did what you asked me to do, made a 2nd build of snap-confine22:13
zygajdstrand: I have enough patches piledl locally to send one each day during all my holidays :)22:14
zygajdstrand: the one about /etc/os-release is more important as people are hit hard by this issue (canonical-livepatch)22:15
zygajdstrand: the scond one is just a +1 as I basically did what you asked all along22:15
zygasecond*22:15
* zyga wonders how a BT keyboard can be so terrible at multi-keypress22:15
zygajdstrand: this one is really interesting: it begins the meaty part of snap-update-ns: https://github.com/snapcore/snapd/pull/293822:16
mupPR snapd#2938: cmd/snap-update-ns: compute next action to transition mount profile <Created by zyga> <https://github.com/snapcore/snapd/pull/2938>22:16
zygajdstrand: I'll merge master into it / rebase on master when I land https://github.com/snapcore/snapd/pull/293622:16
mupPR snapd#2936: interfaces/apparmor: compensate for kernel behavior change <Created by zyga> <https://github.com/snapcore/snapd/pull/2936>22:16
jdstrand2827 is already on my list22:16
zygathank you!22:16
zygaI will be partially offline but I'll try to see what's going on next week22:17
zygaer22:17
zygathis week22:17
zygatomorrow I just need to pack a few bits and not miss my plane :")22:17
Pharaoh_Atemhmm22:17
zygaPharaoh_Atem: hey22:17
Pharaoh_Atemit seems stupid that you don't identify in /etc/os-release that ubuntu-core is like ubuntu22:18
zygaPharaoh_Atem: well22:18
zygaPharaoh_Atem: it's not22:18
Pharaoh_Atembut it is22:18
zygaPharaoh_Atem: it is in some ways22:18
Pharaoh_Atemor add UBUNTUCORE_* IDs22:18
zygaPharaoh_Atem: but it is so much read only that I think it is good to not identify like any other distro22:18
zyga(via ID_LIKE)22:18
zygaPharaoh_Atem: though propose it, maybe ogra will agree and it gets merged22:19
zygaogra_: ^ ID_LIKE=ubuntu for core22:19
Pharaoh_Atemuhh22:19
Pharaoh_AtemI'd do the following22:19
Pharaoh_AtemID_LIKE=ubuntu debian22:19
Pharaoh_AtemUBUNTUCORE_ORIGVERSION=16.0422:19
zygais is space-separated or comma-separated?22:19
Pharaoh_Atemspace separated22:19
zygaisn't that ID_VERSION=16 ?22:19
zyga(16.04 is not a thing, core is just 16)22:20
Pharaoh_AtemI know22:20
Pharaoh_Atembut it's derived from 16.0422:20
zygabut it is 16, distinct series22:20
Pharaoh_Atemseries 16 could move from derived on 16.04 to 16.10, etc.22:20
zygano, it won't ever move22:20
zygait will stay 16 forever22:20
nacci don't think that's what the series means22:20
zygawe'll get 18 series but not 16.1022:20
naccyeah what zyga said :)22:20
zygaPharaoh_Atem: I think the more interesting question is this:22:21
Pharaoh_Atemexcept that you need something to match between livepatch and local22:21
zygaPharaoh_Atem: once we have base snaps, where does /etc/os-release live? is it core or is it in the base snap?22:21
Pharaoh_Atemsince you guys did the thing where you hardcode stuff22:21
Pharaoh_Atemzyga: it probably belongs in the base snap22:21
Pharaoh_Atemideally, the core snap should only include snapd22:22
zygaPharaoh_Atem: livepatch was hit by our bug where it could no longer realize where it is running on22:22
zygaPharaoh_Atem: I think that bug is fixed with my PR (although devil in the details)22:22
Pharaoh_Atemthe answer is not to go back to lsb-release, though22:22
zygaPharaoh_Atem: as for core vs base I'm not sure; I think it could belong to both but it's not clear what that means22:22
zygaPharaoh_Atem: no, I'll make sure it's not lsb_release22:22
zygaanyway, need to sleep and finish things22:23
mupPR snapd#2936 closed: interfaces/apparmor: compensate for kernel behavior change <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2936>23:12
mupPR snapd#2948 opened: interfaces/bluez,network-manager: implement ConnectedSlot policy <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2948>23:13

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