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

=== jaggz| is now known as jaggz
=== chihchun_afk is now known as chihchun
mupPR snapd#3617 opened: Using udev tagging for snap interfaces <Created by adglkh> <https://github.com/snapcore/snapd/pull/3617>05:36
=== sdrobertw is now known as nchip
=== nchip is now known as sdrobertw
didrockssergiusens_: kyrofa: hey, any idea what's happening on https://build.snapcraft.io/user/ubuntu/ubuntu-make/59531 ? Local build works (on artful), and the only change with latest successful build on amd64 (https://build.snapcraft.io/user/ubuntu/ubuntu-make/56636) is changing a README.md…06:10
didrockssergiusens_: kyrofa: as build.snapcraft.io doesn't have a way to retrigger any build, I did a small edit on README.md, but the failure is reproducible: https://build.snapcraft.io/user/ubuntu/ubuntu-make/5984206:10
didrockscjwatson: hey, btw, do you know if there is a hidden way to retrigger a build on b.snapcraft.io? ^06:10
mupPR snapd#3618 opened: Merge release/2.26 back into master <Created by mvo5> <https://github.com/snapcore/snapd/pull/3618>06:27
mvostgraber: hey, I'm looking into https://forum.snapcraft.io/t/snapcraft-cannot-cleanbuild-in-snapped-lxd/1424/ right now and wonder where i can find the lxd snapcraft.yaml and the source of the snap?06:32
mvopedronis: unless you think gustavo should have a look as well, I'm keen to merge 3496. sorry for the long delay with the review.06:43
mvopedronis: if you could update 3560 once its in, that would be great, then the diff is smaller :)06:43
pedronismvo: hi, I think it's ok to merge07:23
* pedronis has breakfast07:23
mupPR snapd#3496 closed: cmd/snap-repair:  start of Runner, implement first pass of Peek and Fetch <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3496>07:24
pedronisI'll update the descendants after07:24
mvopedronis: thank you! I can also do that I think07:25
mvopedronis: but its fine, I will wait for you (enjoy breakfast) - I am in the middle of a different branch right now anyway :)07:25
pedronismvo: might be better if I do it, I used rebased in at least on of them at some point, fear it might get confusing07:26
pedronisfor me07:26
mvopedronis: sounds good, thank you07:26
pedronismvo: done with snapd#3560  , the later ones are based on that one07:43
mupPR snapd#3560: cmd/snap-repair: implement most logic to get the next repair to run/retry in a brand sequence <Created by pedronis> <https://github.com/snapcore/snapd/pull/3560>07:43
mupPR snapd#3616 closed: cmd/snap-repair: implement Runner.Verify and use it to check signatures of repairs from Next <Created by pedronis> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/3616>07:54
=== chihchun is now known as chihchun_afk
zyga-ubuntugood morning08:03
* zyga-ubuntu waves from very very rainy warsaw08:03
zyga-ubuntuhey Chipaca08:14
Chipacazyga-ubuntu: \o!08:14
* zyga-ubuntu is working from the quiet national library today08:15
Chipacazyga-ubuntu: i've got the ideal thing for you then!08:22
Chipacazyga-ubuntu: https://www.youtube.com/watch?v=yf0Amcgxot8&t=7908:22
zyga-ubuntuChipaca: well08:24
zyga-ubuntuChipaca: no sound allowed in here :)08:24
mvozyga-ubuntu: hey, good morning!08:24
mvoChipaca: hey, good morning!08:25
Chipacazyga-ubuntu: https://www.youtube.com/watch?v=g4mHPeMGTJM :-(08:25
Chipacamvo: o/!08:25
zyga-ubuntuChipaca: I'll watch it back home08:25
zyga-ubuntuChipaca: or at the 2nd library08:25
* zyga-ubuntu is sad that none of the libraries actually allow you to borrow books anymore08:25
zyga-ubuntujust read on site08:25
Chipacazyga-ubuntu: whaat :-(08:26
zyga-ubuntuthey should be called more appropriately08:26
zyga-ubuntuChipaca: yep08:26
Chipacazyga-ubuntu: that speaks badly of y'awl08:26
zyga-ubuntuChipaca: both the national library and the university library08:26
zyga-ubuntuat least for regular mere non-PHD folks like me08:26
Chipacazyga-ubuntu: wellp, time to work on your phd then08:26
* Chipaca runs08:26
zyga-ubuntuyes, just need to find a lottery ticket that lets me not work for 5 years08:27
zyga-ubuntuthen 5 more08:27
zyga-ubuntu^_^08:27
zyga-ubuntubut yeah, otherwise very much what I want tod o08:28
Chipacazyga-ubuntu: it's really easy, i have a 2-step plan for you08:31
Chipacazyga-ubuntu: 1. be rich; 2. don't be poor08:31
zyga-ubuntuChipaca: ah and you forgot one thing08:31
zyga-ubuntuChipaca: 3 be young and pretty08:31
Chipacazyga-ubuntu: i counted that under 'rich'08:32
zyga-ubuntuChipaca: in the mean time https://github.com/snapcore/snapd/pull/361908:32
mupPR snapd#3619: interfaces/builtin: reduce duplication and remove cruft in Sanitize{Plug,Slot} <Created by zyga> <https://github.com/snapcore/snapd/pull/3619>08:32
zyga-ubuntusome gardening08:32
zyga-ubuntufiles changed, 5208:32
mupPR snapd#3619 opened: interfaces/builtin: reduce duplication and remove cruft in Sanitize{Plug,Slot} <Created by zyga> <https://github.com/snapcore/snapd/pull/3619>08:32
Chipacazyga-ubuntu: i'll do that next then08:32
zyga-ubuntubut lots of red in it :)08:32
zyga-ubuntujust cruft lifting08:32
zyga-ubuntulet me go and see if the book I'm interested in is available now08:32
mvoChipaca: any news on the profile.d stuff from last night? sorry for nagging08:39
Chipacamvo: no :-(08:39
mvoChipaca: can I help in any way, happy to poke at this too, high priority for me currently08:40
mupPR snapd#3616 opened: cmd/snap-repair: implement Runner.Verify and use it to check signatures of repairs from Next <Created by pedronis> <https://github.com/snapcore/snapd/pull/3616>08:40
Chipacamvo: so... one thing we _could_ do08:41
Chipacamvo: but makes me uncomfortable to think about too much on my own08:41
Chipacamvo: is to make snap tweak the user's bashrc08:41
pedronismmh08:42
Chipacamvo: it could be either forwards, adding a 'source profile.sh # added by snap' line08:42
Chipacamvo: ir negative, seeking out the broken 'source bash-completion' and commenting it out08:42
zyga-ubunture08:43
Chipacamvo: i like 0 of these -- but it'd get the job done08:43
zyga-ubuntuon the upside I got the book :)08:43
zyga-ubuntuand I can work here all day08:43
zyga-ubuntuso win-win08:43
zyga-ubuntu(and it's quiet)08:43
pedronisChipaca: sounds a strange idea (tweaking bashrc); I supose everything else is worse?08:44
Chipacapedronis: more like nothing else works08:44
Chipacathat i could think of at least08:44
Chipacabut i'm an egg08:44
pedronisbecause ?08:44
Chipacapedronis: there's a bug in … debian i guess?08:45
Chipacapedronis: there's /etc/profile.d/bash_completion.sh08:45
pedronisbut nothing uses it?08:45
Chipacapedronis: that loads the bash completion work08:45
Chipacapedronis: that gets loaded by /etc/profle, along with everything else in profile.d08:46
Chipacapedronis: but then the default .bashrc, from /etc/skel, loads it _again_08:46
Chipacapedronis: our profile snipped needs to load after bash completion is loaded08:46
Chipacasnippet*08:46
pedronisI see bashrc ends up loading:  /usr/share/bash-completion/bash_completion08:46
Chipacayes08:47
Chipacaso, there's a number of ways that we can make it work08:47
Chipacaif we patch bash-completion itself08:47
zyga-ubuntuChipaca: step 1: fix debial stable08:47
zyga-ubuntuChipaca: ^_^08:48
Chipacabut if we can't do that, then we're stuck08:48
zyga-ubuntubut at least you can hope to fix that ;)08:48
Chipacazyga-ubuntu: aw bless08:48
Chipacathe easiest way to fix bash completion is to make it not load the default completer if there is one already08:48
zyga-ubuntuChipaca: one more, this time fully red: https://github.com/snapcore/snapd/pull/362008:49
mupPR snapd#3620: interfaces/builtin: discard empty Validate{Plug,Slot} <Created by zyga> <https://github.com/snapcore/snapd/pull/3620>08:49
mupPR snapd#3620 opened: interfaces/builtin: discard empty Validate{Plug,Slot} <Created by zyga> <https://github.com/snapcore/snapd/pull/3620>08:50
pedronisChipaca: fwiw it seems to source stuff from /etc/bash_completion.d  but as back compat thing08:51
Chipacapedronis: yes08:51
pedronisand then ~/.bash_completion08:52
zyga-ubuntumvo: did you see latest comments on https://bugs.launchpad.net/snappy/+bug/167419308:56
mupBug #1674193: core snap's configuration hangs on debian | openSUSE | mainline kernel <Snappy:Fix Committed by morphis> <snapd (Debian):Fix Committed> <snapd (Fedora):Fix Committed by morphis> <snapd (openSUSE):Fix Released by morphis> <https://launchpad.net/bugs/1674193>08:56
zyga-ubuntumvo: I fail to see how that is possible since that is exactly what was fixed last week08:56
mvoChipaca: modifying the users .bashrc makes me uneasy. the other thing is that is tricky is when/how do we do it? iterate over all users? do it in snap run (which is too late)? other?08:57
mvozyga-ubuntu: looking08:57
Chipacamvo: thank you08:57
mvoChipaca: sorry :/08:57
Chipacamvo: no, really thank you :-)08:57
Chipacamvo: easiest way to kill something that makes me uneasy to think about doing is by pointing out it wouldn't work :-)08:58
zyga-ubuntumvo: unless we are missing something and people start with not-up-to-date debian 908:58
mvoChipaca: heh :)08:59
mvozyga-ubuntu: yeah, its very confusing, I download an image now08:59
pedronisChipaca: so we need to ship a different  bash_completion ? with some bits added?09:03
mvozyga-ubuntu: aha, I think I know what is happening there. on undo we will not restart into the old snapd. so I guess what happend is: snapd-2.21 refreshes, restarts into 2.26.14, something fails (configure hook?), things are undone. snapd 2.26.14 keeps running, however there is no 2.26.14 snap anymore.09:11
zyga-ubuntumvo: oh09:12
zyga-ubuntumvo: did you manage to reproduce it?09:12
zyga-ubuntumvo: and didn't we ignore configure hook on core errors?09:12
mvozyga-ubuntu: strange enough - I got a configure hang on debina9 though, then it fails with cannot stat /var/lib/snapd/seccomp: no such file or directory09:13
zyga-ubuntu(errors in the configure hook when running on the core snap)09:13
mvozyga-ubuntu: yes, we ignore those I suspect the issue is that it starts from 2.21 but I need to double check09:14
cjwatsondidrocks: there is not09:14
mvozyga-ubuntu: ok, this is confusing - the configure hook (snap-confine to be precise) is waiting for /var/lib/snapd/seccomp/bpf/snap.core.hook.configure.bin to show up. it *does* show up in the host, however strace shows me that snap-confine (the configure hook) is not seeing this. we are not doing any namespace stuff on debian, right? so why would it not see it?09:24
zyga-ubuntumvo: we do namespace stuff on debian just the same but I believe we read the bpf parts before that *and* even if I'm wrong /var/lib/snapd is shared with the host09:25
zyga-ubuntumvo: there's systemd in your system, right/09:25
mvozyga-ubuntu: let me check, this is a stock skretch install09:27
mvozyga-ubuntu: yes, systemd is there09:27
zyga-ubuntuhmm mhm09:28
zyga-ubuntumagic09:28
zyga-ubuntuand why didn't it ever happen in spread?09:28
mvozyga-ubuntu: spread uses sid, right ? maybe its rleated to stretch09:29
mvozyga-ubuntu: anyway, puzzling09:29
mvozyga-ubuntu: what was the nsenter magic again to get inside the env of the core configure hook?09:29
zyga-ubuntumvo: I think spread uses sid, yes09:29
zyga-ubuntumvo: but spread qemu is stretch09:29
zyga-ubuntumvo: nsenter -m/run/snapd/ns/core.mnt09:30
mvozyga-ubuntu: /var/lib/snapd is empty in there09:30
mvozyga-ubuntu: like completely empty09:31
mvozyga-ubuntu: but mount claims /var/lib/snapd is mounted (type ext4 etc)09:31
zyga-ubuntumvo: can you pastebin /proc/self/mountinfo09:32
zyga-ubuntu(from that namespace)09:32
zyga-ubuntuand from outside09:32
mvozyga-ubuntu: mountinfo says /var/lib/snapd//detleted /var/lib/snapd09:32
zyga-ubuntuand pastebin both to the forum09:32
zyga-ubuntuoh09:32
zyga-ubuntucute!?! (not)09:32
zyga-ubuntuanyway, let's do this in the forum09:32
zyga-ubuntuvery interesting I must say09:32
mvozyga-ubuntu: created the topic now09:39
* zyga-ubuntu looks09:41
zyga-ubuntumvo: did you pure snapd at any time?09:42
zyga-ubuntumvo: maybe what happened is that the core.mnt namespace sticks around09:42
zyga-ubuntuyou purge snapd09:42
zyga-ubuntuand re-install09:43
zyga-ubuntuand we use a stale core.mnt file09:43
zyga-ubuntu(hence //deleted)09:43
zyga-ubuntudo a quick test please09:43
zyga-ubuntuunmount /run/snapd/ns/core.mnt09:43
zyga-ubuntuand install core again09:43
mvozyga-ubuntu: sure, one sec09:44
* zyga-ubuntu found the power plug and is happy not to live on a ticking clock anymore09:44
zyga-ubuntubut whatever it is, my fix for stale mount namespace needs to include //deleted checks09:44
zyga-ubuntumvo: any luck with unmounted core.mnt?09:50
mvozyga-ubuntu: I was just trying to reproduce it again09:50
mvozyga-ubuntu: I did reboot into a different kernel for testing in the meantime09:51
mvozyga-ubuntu: hrm, hrm, now I cannot reproduce it anymore, even when I purge snapd09:51
zyga-ubuntumvo: replied09:52
zyga-ubuntumvo: run conifugre hook, purge, run configure hook09:52
pedronisChipaca: naming is hard(tm)09:55
mvozyga-ubuntu: did this now, not breaking09:55
Chipaca(╯°□°)╯︵ ┻━┻09:55
zyga-ubuntumvo: I must say it is interesting how many edges we found to be rough over the months/year09:55
zyga-ubuntuChipaca: huh?09:55
mvozyga-ubuntu: yes, the re-exec thing from arbitrary starting points makes things complicated09:56
Chipacazyga-ubuntu: that was to pedronis :-)09:56
Chipaca┬─┬ ノ( ゜-゜ノ) sorry09:56
* zyga-ubuntu wonders how many other fantastic emjoji we'd have if the table could include a teapot or a plant09:57
Chipacazyga-ubuntu: ┬─┬⃰͡ (ᵔᵕᵔ͜ )09:58
Chipacazyga-ubuntu: it's just too small for your eyes to see09:58
zyga-ubuntuhahah09:59
zyga-ubuntunice :)09:59
zyga-ubuntumvo: can you use snapshots in your vm?09:59
zyga-ubuntumvo: maybe start with a pristine image, snapshot that09:59
zyga-ubuntumvo: install snapd, snapshot that (separately)09:59
zyga-ubuntumvo: and try to get into the problem09:59
zyga-ubuntumvo: then whatever you have can be inspected forever09:59
mvozyga-ubuntu: yeah, too late now, whatever I did I did not snapshot  :(09:59
mvozyga-ubuntu: and can not get back into currently10:00
zyga-ubuntumvo: since now you said purging doesn't make it broken I wonder if that shoots my hypothesis10:00
mvozyga-ubuntu: like - now it is working10:00
mvozyga-ubuntu: I think your hypothesis is good, maybe it was not a purge, maybe it was something else (an upgrade?)10:00
mvozyga-ubuntu: I took a somewhat old VM, apt full-upgraded,  dpkg --purge snapd (because it had core already); snap install --edge core; BOOM10:01
zyga-ubuntumvo: do we remove /run/snapd/ns on purge?10:01
zyga-ubuntuif we do then purge is not the thing10:01
zyga-ubuntubecause that thing cannot be stale when it is gone10:01
mvozyga-ubuntu: we do umount /run7snapd/ns on purge10:02
zyga-ubuntumvo: in that case it must have been something else10:03
zyga-ubuntumvo: is dpkg doing some fancy things when it updates packages? any directory changes?10:03
zyga-ubuntumvo: did the apt-get --dist-upgrade include snapd?10:04
pedronismvo:  when did we start to do that though?  (unmount /run/snapd/ns in purge? )10:07
mvopedronis: I see message related to it on my debian box, I need to check when exactly we started doing that10:09
mvozyga-ubuntu: yes, snapd was upgraded 2.21-2, 2.21-2+b110:10
mvozyga-ubuntu: /me tries to reproduce using upgrade10:10
zyga-ubuntumvo: aha, interesting10:11
zyga-ubuntumvo: I doubt dpkg would do something that would cause the package update to remove a directory like /var/lib/snapd though10:11
zyga-ubuntumvo: but if you can try the 2.21-2 -> 2.21-2+b1 update again10:11
zyga-ubuntuthat would be a useful data point10:11
zyga-ubuntuI recall that //deleted shows up when the backing store goes away10:12
zyga-ubuntuI moved my kernel sources to my desktop so I cannot cross reference locally, let me check something online10:12
mvozyga-ubuntu: hrm, hrm, upgrade, purge, install, upgrade, no boom, just works10:14
zyga-ubuntumvo: http://elixir.free-electrons.com/linux/latest/source/fs/dcache.c#L3363 and http://elixir.free-electrons.com/linux/latest/source/fs/proc_namespace.c#L13010:19
=== sergiusens_ is now known as sergiusens
ogra_cjwatson, did anything change with the builders last night ? all (except s390x it seems) my daily builds of the core snap suddenly fail with:10:34
ogra_P: Begin bootstrapping system...10:34
ogra_[2017-07-25 04:17:00] lb_testroot10:34
ogra_E: need root privileges10:34
ogra_P: Begin unmounting filesystems...10:34
ogra_P: Saving caches...10:34
ogra_chroot: cannot change root directory to 'chroot': No such file or directory10:34
ogra_cjwatson, https://launchpad.net/~snappy-dev/+snap/core for details10:34
cjwatsonogra_: fix for https://bugs.launchpad.net/launchpad-buildd/+bug/1702656 was (mostly) rolled out10:35
mupBug #1702656: Run snapcraft as non-root (with passwordless sudo) <launchpad-buildd:Fix Committed by cjwatson> <https://launchpad.net/bugs/1702656>10:35
ogra_cjwatson, ah, thanks10:35
cjwatsonogra_: can you just run with sudo?10:35
ogra_cjwatson, is that configured passwordless in the buildd ?10:38
cjwatsonogra_: yes10:39
mvozyga-ubuntu: thanks, I give up on this for now and have lunch. slightly frustrating10:40
cjwatsonogra_: I think just changing "ENV := PROJECT=ubuntu-core ..." to "ENV := sudo PROJECT=ubuntu-core ..." would do the trick10:40
cjwatsonMaybe with SUDO := sudo and $(SUDO) if you want a bit of extra configurability10:40
ogra_thanks! will add that10:41
ogra_(though it might need more, the check and install targets in the makefile touch the chroot as well)10:42
zyga-ubuntumvo: I'll check it myself back home10:42
zyga-ubuntumvo: one interesting fact is that snap-confine (which may run in classic snap environment) now needs to run snap-update-ns10:42
zyga-ubuntumvo: so if the rabbit hole wasn't deep enough I just brough a new shovel10:42
zyga-ubuntu(now as in litterally right now on my disk in a new branch)10:42
niemeyerHello all10:52
zyga-ubuntuniemeyer: o/10:52
cjwatsonogra_: ah, right, yeah10:53
cjwatsonogra_: would appreciate confirmation when you get a result, as we ought to do manual upgrades of s390x10:53
ogra_cjwatson, will let you know10:53
cjwatsonta10:54
Chipacamvo: i have good news: on fedora 25 the profile.d approach would work10:54
mupPR core#51 opened: use sudo to work around LP: #1702656 <Created by ogra1> <https://github.com/snapcore/core/pull/51>11:08
ogra_mvo, zyga-ubuntu ^^^^ can i get two acks to actually test-build in the LP buildd11:19
ogra_(travis passes fine but wont help since the LP env is different now)11:19
zyga-ubuntuyep11:26
zyga-ubuntuogra_: +111:26
ogra_thx11:26
mvoogra_: yes, go for it11:27
mvoChipaca: oh, nice. what is the difference?11:27
ogra_thanks !11:27
mupPR core#51 closed: use sudo to work around LP: #1702656 <Created by ogra1> <Merged by ogra1> <https://github.com/snapcore/core/pull/51>11:27
* ogra_ triggers test builds and crosses fingers that he catched all occurences11:28
cjwatsonogra_: sorry for the disruption, I test-built various things but totally forgot about core being a special snowflake11:28
mupPR snapd#3618 closed: Merge release/2.26 back into master <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3618>11:28
cjwatsonI think it's long-term better this way11:28
ogra_cjwatson, well there is more in my set of snaps that uses chroots in chroots etc ... but now that i know about it i can adapt ... no prob11:29
ogra_ppisati, ^^^ you might need to look into this too for the kernel snap builds (adding sudo to the commands that actually require root ... like the chroot and debootstrap commands in the Makefile)11:31
ogra_grrr ... forgot to sync Gh to LP before hitting the build button ...11:37
ogra_bah ... needs more sudo it seems11:43
ogra_rm -f config/hooks/*11:43
ogra_rm: cannot remove 'config/hooks/00-uid-gid-fix.chroot_early': Permission denied11:43
ogra_rm: cannot remove 'config/hooks/01-divert-grub-install.chroot_early': Permission denied11:43
ogra_rm: cannot remove 'config/hooks/01-setup_user.chroot': Permission denied11:43
ogra_...11:43
ogra_funny, i wouldnt have expected that to be root owned11:44
ogra_(given the unprivileged snapcraft did put it in place originally)11:44
mupPR core#52 opened: also use sudo for all file operations <Created by ogra1> <https://github.com/snapcore/core/pull/52>11:49
ogra_mvo, zyga-ubuntu ^^^^ one more please11:50
ogra_(it should be fine then)11:51
zyga-ubuntuogra_: looking11:51
zyga-ubuntuogra_: done11:51
ogra_thx11:51
mvo+111:51
* ogra_ waits for travis ... 11:52
Chipacamvo: they don't do bash completion in .bashrc :-)11:53
Chipacamvo: they just have the /etc/profile.d/bash_completion.sh11:53
niemeyerChipaca: More comments on snapd#3614.. let me know if you'd like to talk about those11:54
mupPR snapd#3614: daemon, client, cmd/snap: implement "snap status" <Created by chipaca> <https://github.com/snapcore/snapd/pull/3614>11:54
Chipacaniemeyer: i've seen them come in, yes11:54
Chipacai'm beyond the point of talking about this stuff. I'll just do whatever you say.11:54
mvoChipaca: aha, nice11:55
niemeyerChipaca: Okay, so let's keep that in the PR queue until you're ready to talk about it again11:55
Chipacaniemeyer: i've been working on this same bit of functionality for over a month, i'm ready to be done with it11:56
niemeyerChipaca: Or somebody else is.. we need someone that is willing to think through the points made so we can have a shared idea of the problem11:56
mupPR snapd#3621 opened: cmd/snap-{confine,update-ns}: apply mount proifles using snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/3621>11:57
zyga-ubuntufirst WIP branch on snap-update-ns/snap-confine and layouts11:57
zyga-ubuntuignore it for now, I mainly pushed it to see if tests pass and discuss something with jdstrand later11:57
niemeyerChipaca: In fairness, many of the points I made are exactly the same as a month ago11:57
Chipacai'm going to go have lunch11:58
niemeyerNice..11:58
zyga-ubuntuI'm past starving now, so I can spend some time to collect notes and then have a call with everyone11:58
niemeyerzyga-ubuntu: Tests are broken on snapd#362011:59
mupPR snapd#3620: interfaces/builtin: discard empty Validate{Plug,Slot} <Created by zyga> <https://github.com/snapcore/snapd/pull/3620>11:59
mupPR core#52 closed: also use sudo for all file operations <Created by ogra1> <Merged by ogra1> <https://github.com/snapcore/core/pull/52>12:01
niemeyercachio: In #3604, why is it increasing the number of workers?12:02
niemeyermvo: Can you have a look at snapd#3604 when you have a moment, specifically on the #cgo statement on snap-seccomp, to see if it looks okay considering the issues we know about12:03
mupPR snapd#3604: tests:  enable main suite for opensuse <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/3604>12:03
zyga-ubuntuniemeyer: oh, thanks12:04
zyga-ubuntucachio, fgimenez: random error on interface-cups-control: https://travis-ci.org/snapcore/snapd/builds/257218359?utm_source=github_status&utm_medium=notification12:11
zyga-ubuntusorry, interfaces-cups-control12:11
zyga-ubuntulet me know if you want to collect the long12:11
zyga-ubuntu*log12:11
zyga-ubuntuand if not I'll re-trigger this12:11
zyga-ubuntu"Error - scheduler not responding"12:12
ogra_cjwatson, ... hmm the build succeeds, but the staging step in snapcraft falls over when it tries to make use of the resulting dir ... https://launchpad.net/~snappy-dev/+snap/core/+build/59965/+files/buildlog_snap_ubuntu_xenial_amd64_core_BUILDING.txt.gz12:13
ogra_(since it is all root owned ... )12:13
fgimenezzyga-ubuntu: thanks! indeed, lpr scheduler not working, have you seen it on other archs?12:17
zyga-ubuntunope, first time I saw this12:19
zyga-ubuntuand I suspsect it's not related to the PR12:19
zyga-ubuntufgimenez: btw, I noticed that we have a disparity in debian testing12:19
zyga-ubuntufgimenez: the qemu image tests debian 912:19
ogra_cjwatson, snapcraft itself would have to run the staging step under sudo, i dont think i can do anything on the snap side for this ... :/12:19
zyga-ubuntufgimenez: but the linode machine tracks sid12:19
zyga-ubuntufgimenez: we should keep those separate as sid is moving12:20
ogra_cjwatson, couldnt you make the sudo behaviour conditional based on the snap type in snapcraft.yaml so that "type: os" and "type: kernel" simple keep the old behaviour ?12:21
ogra_*simply12:21
ogra_(and run the build as root)12:21
niemeyersnapd#3568 has a review.. any takes for the second review?12:31
mupPR snapd#3568: snapctl: add new `snapctl internal configure-core`  <Created by mvo5> <https://github.com/snapcore/snapd/pull/3568>12:31
zyga-ubuntuniemeyer: I can do that after standup, on my way to find anything edible that doens't run away12:33
niemeyerzyga-ubuntu: Thanks!12:34
niemeyerzyga-ubuntu: and good luck :)12:34
cjwatsonogra_: Hmm.  Ugly, but I guess we may have no alternative.12:37
sergiusensniemeyer: mvo I've been pinged about https://bugs.launchpad.net/juju/+bug/1705988 (error is -> run hook "configure": cannot change profile for the next exec call: No such file or directory)12:37
mupBug #1705988: snap install --classic juju fails <canonical-is> <juju:Incomplete> <snapd:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1705988>12:37
cjwatsonogra_: What about gadget?12:39
ogra_cjwatson, usually doesnt need root12:39
cjwatsonogra_: It'd mean we have to start parsing snapcraft.yaml directly in launchpad-buildd, which has previously been unnecessary.12:39
Chipacaniemeyer: 'm back from lunch. Less grumpy now.12:39
Chipacaniemeyer: let me rephrase what I said: I think you're right on most of the points, and on the points I don't, I haven't been able to convince you otherwise. I'll be implementing your suggestions as I understand them, and we can iterate.12:40
niemeyerChipaca: Thank you!12:40
ogra_cjwatson, yeah ... understood ... os has always been special though ... since you have a full root that includes /dev and all ... not sure if there is any way to do it differently ...12:41
niemeyerChipaca: You'll also see some self-conflict on the comments.. which means I'm also trying to figure that stuff out12:41
cjwatsonogra_: I'm inclined to just revert this launchpad-buildd change for now.12:41
ogra_i'm fine with that as well ... :)12:41
pedronismvo: you already branched 2.27 a while ago right? you will not take a new snapshot?12:41
cjwatsonev probably won't be, but such is life ...12:41
ogra_cjwatson, doesnt lp-buildd actually call snapcraft step-wise ? (i.e. not plain snapcraft but each step)12:42
cjwatsonogra_: Only in that it calls pull separately.12:42
ogra_cjwatson, then "snapcraft stage" could simply always run as root while all other steps keep the dropped privs12:42
ogra_ah, k ...12:43
cjwatsonogra_: Yeah, that's one viable option for the future.  I think it requires more testing than I want to put into a "stop the bleeding" change, though.12:43
ogra_yeah12:43
cjwatsonogra_: I'll update the bug with some ideas once I've reverted.12:43
ogra_snapcraft snap would likely also fall over on the /dev permissions12:44
ogra_so it'd be more12:44
ogra_cjwatson, can you keep the passwordless sudo in though ? ten i dont need to change core back :)12:45
ogra_*then12:45
cjwatsonogra_: sudo should be fine if it's already running as root.12:45
cjwatsonogra_: I don't think you'll need to change core back.12:46
ogra_oh, indeed, i call it as root12:47
mvopedronis: anything specially you want to see in 2.27, I would like to start of rc3 (mostly to avoid too much churn, we already have a ton)12:51
pedronismvo: no, I misread some code, what I was interested in, is already there, sorry for the bother12:51
mvopedronis: no problem12:52
* Chipaca reads https://medium.com/@Raedwulf/6-go-tips-you-should-probably-not-use-b252dfd0a3c4 and laughs maniacally12:54
Chipacaexhibit A: https://github.com/bouk/monkey12:54
Son_Gokumorning12:55
didrocksChipaca: excellent! :)12:57
* didrocks goes and rewrite code right away12:58
zyga-ubuntuooops13:01
zyga-ubuntuniemeyer: start without me please13:01
zyga-ubuntuniemeyer: I'm still stuck in the library :/13:01
zyga-ubuntulost track of time13:01
zyga-ubuntuniemeyer: my update for today is: pushed inital work towards layouts that moves late initialization to snap-update-ns13:02
zyga-ubuntuniemeyer: pushed some cleanups to interfaces13:02
zyga-ubuntuniemeyer: plan for the day: re-assemble my fedora box and fix fedora i386 build back home13:02
zyga-ubuntuniemeyer: and eat something13:02
* zyga-ubuntu is still starving13:02
zyga-ubuntuniemeyer: next up: chipaca13:03
zyga-ubuntu:D13:03
Son_Gokuyou're going to eat Chipaca?13:06
Son_Gokuwhat did he ever do to you?13:06
zyga-ubuntuwith all due respect I think Chipaca doesn't work as a sushi13:06
niemeyerzyga-ubuntu: Can you leave fedora to cachio, so you can focus on layouts and open PRs?13:07
zyga-ubuntuniemeyer: I'll try that #define _FILE_OFFSET_BITS 64 and if that doesn't work I'll give that to cachio13:10
niemeyerzyga-ubuntu: +113:11
zyga-ubuntuSon_Goku: https://fedoraproject.org/wiki/Changes/Platform_Python_Stack is pretty interesting13:17
* Son_Goku reads13:25
Son_Gokuoh boy13:25
Son_Gokuthe issue I see right up front is how do we handle upgrading the platform python stack?13:25
Son_Gokuthe reason we can do it without breaking the world in Python is because all the paths are versioned, including the interpreter itself13:25
zyga-ubuntuSon_Goku: it seems like "in one big swoop during offline update" is the answer13:26
zyga-ubuntuSon_Goku: and one big swoop says that *all* the packages follow13:26
Son_Gokuyeah13:26
zyga-ubuntuSon_Goku: another answer is, not to13:26
Son_Gokuright, but that's dumb13:26
zyga-ubuntuSon_Goku: as the platfrom python can say on 3.6 for decades13:26
zyga-ubuntuSon_Goku: yes but it is also valid13:26
cjwatsonogra_: https://portal.admin.canonical.com/104572 FYI13:27
Son_Gokufrom a maint point of view, especially since sensitive tools would depend on it, it'd be very stupid13:27
zyga-ubuntus/decates/across Fx -> F(x+1) updates13:27
zyga-ubuntuSon_Goku: well, it can stay on patched 3.6 for a long time with no issues13:27
Son_Gokusure13:27
zyga-ubuntuSon_Goku: backport any relevant patches but otherwise leave it be13:27
Son_Gokuyes, but at that point, why not just use micropython or something else actively maintained but fixed to specific lang version?13:28
zyga-ubuntuSon_Goku: what it says is that new fedora and old fedora can share tooling easily (ish))13:28
Son_Gokusure13:28
ppisatiogra_: got it, ta13:28
zyga-ubuntuSon_Goku: not sure if this is designed so that F27 can download F28 update tool13:28
Son_Gokuand that's what I'm concerned about13:28
Son_GokuI'm not sure that is particularly addressed13:28
zyga-ubuntuSon_Goku: but anyway, I found it interesting because traditionally it was not the case on any linux-based platfomr13:28
zyga-ubuntuSon_Goku: *platfomr13:28
zyga-ubuntuboy13:28
zyga-ubuntu*platform13:29
zyga-ubuntuSon_Goku: but it is the case on macos13:29
pedronisniemeyer: as I mentioned, it would be good to get some initial feedback on snapd#3573 , seems it was also a topic last week13:29
mupPR snapd#3573: overlord: always try to get a serial, be lazy on classic with no special store, nor any snaps <Created by pedronis> <https://github.com/snapcore/snapd/pull/3573>13:29
Son_Gokuzyga-ubuntu, yes, historically it's that way on macos, but when mac bumps the stack, applications get broken13:30
Son_GokuApple literally does not care13:30
zyga-ubuntuSon_Goku: indeed13:30
zyga-ubuntuSon_Goku: though AFAIR the upstream python installers for mac are installing a separate copy13:31
Son_Gokuyes13:31
Son_Gokubut most people don't do that13:31
zyga-ubuntuSon_Goku: I'll look forward to platform-{shell,perl,awk,sed,...} next ;)13:31
Son_Gokuthat would be dumb13:31
zyga-ubuntuwell13:31
Son_Gokuwe'll probably have a platform perl13:31
zyga-ubuntumore or just the same?13:31
Son_Gokubut shell/awk/sed etc are already specified as part of the core platform13:32
Son_Gokuzyga-ubuntu: https://github.com/fedora-modularity/hp13:32
=== LarreaMikel1 is now known as LarreaMikel
mvoniemeyer: we talked about the "empty" base snap - is the name "empty-base" good? or would you prefer something else? I want to upload one to the store now for easier testing/validation14:08
niemeyermvo: Hmm14:10
niemeyermvo: How about "bare"?14:12
zyga-ubuntumvo: note that we're not quite ready to work in an empty base, unless empty actually has stuff inside :)14:13
mvozyga-ubuntu: well, I want to have it so that we can make it ready :)14:14
mvoniemeyer: bare works for me14:14
zyga-ubuntumvo: understood14:14
niemeyermvo: It might not end up completely empty in the end.. we might want at least the mount points for /dev, /proc, /sys, ...14:15
zyga-ubunturight14:15
zyga-ubuntuwith a few of those it should soon work OK14:15
zyga-ubuntuI need to introduce a few more small changes to make certain things non-fatal14:16
mvook, "bare" it is and I created a bunch of stub dirs, lets see how this goes14:16
Chipacamvo: aw, am i too late to suggest calling it "classic-core"?14:19
zyga-ubuntuChipaca: uncore ;)14:31
* zyga-ubuntu cannot wait for busybox core 14:31
zyga-ubuntuin fact, I may just make one14:31
ogra_cjwatson, hmm, looks like the revert only landed in amd64, the other arches still have the former code14:32
zyga-ubuntuit would be cool if we could have a base snap where if stuff fails we can go to "emergency" mode and just drop into a busybox rootfs14:32
ogra_zyga-ubuntu, doesnt sound very secure though :)14:33
ogra_(trigger a failure and you get root shell access)14:33
zyga-ubuntuogra_: I'm sure there's a way to make it sanely there (for development needs)14:34
zyga-ubuntuogra_: I agre having it in production is probably unnecessary14:34
ogra_yeah, a toggle to turn it on/off manually would be good (defaulting to off)14:35
cjwatsonogra_: It takes time14:37
ogra_ah, k, i forgot  ... always working with snaps pretty much spolied me ;)14:37
* zyga-ubuntu goes to eat breakfast14:45
cjwatsonogra_: it's not about debs, it's that the image update job is a periodic thing and there's one per arch14:53
cjwatson(ish)14:53
ogra_ah14:53
ogra_i thought it was promotion14:53
ogra_s/promotion/publishing/14:54
jdstrandmvo: hey, is 'type: base' now a thing? ie, should I update the review tools?14:55
mvojdstrand: I think so, well, it should still emit a warning, i.e. we don't want to allow bases in without review14:56
mvojdstrand: if you could approve my busybox-static-mvo, that would be great. that is a snap with only the "bare" (empty) base14:56
jdstrandmvo: sure, I can take care of all that, just wanted to make sure that the yaml is finalized14:56
jdstrandmvo: so there is 'empty-base' and 'bare' and your 'busybox-static-mvo'14:57
jdstrandmvo: ?14:57
mvojdstrand: empty-base can be removed. bare and busybox-static-mvo I would love to have14:57
jdstrandmvo: ok14:58
jdstrandmvo: 'base: foo'. foo must be a string?15:12
mvojdstrand: yes15:12
jdstrandk15:12
jdstrandmvo: fyi, I approved busybox-static-mvo. bare was already approved. updating the review tools now15:13
jdstrandmvo: is 'base: foo' valid only for 'type: app'?15:16
mvojdstrand: so far yes15:21
zyga-ubuntuo/15:21
zyga-ubuntuwhat's up guys15:21
zyga-ubuntutests hate me today15:21
zyga-ubuntueconnreset15:22
zyga-ubuntuclassic-ubuntu-core-transition-auth15:22
zyga-ubuntuand more ...15:22
zyga-ubuntuis it just me?15:22
mvozyga-ubuntu: no, seems master is equally unhappy15:23
zyga-ubuntubut there is hope15:24
zyga-ubuntuI found my breakfast15:24
niemeyerzyga-ubuntu: Sent an update on the interfaces PR15:24
zyga-ubuntuniemeyer: thank you!15:24
niemeyerzyga-ubuntu: A bit long, but tried to provide concrete ideas that should unblock it15:25
niemeyerzyga-ubuntu: I'll step out for lunch.. please let me know how you feel about them later so we can be in sync15:25
zyga-ubuntuniemeyer: fantastic feedback, thank you!15:28
zyga-ubuntuniemeyer: I'm still reading but I think it's all appropriate and good; thank you for taking care about the big picture in the code :)15:29
niemeyerzyga-ubuntu: Sweet, glad you like it!15:29
zyga-ubuntujdstrand: FYI https://github.com/snapcore/snapd/pull/362115:35
mupPR snapd#3621: cmd/snap-{confine,update-ns}: apply mount profiles using snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/3621>15:35
zyga-ubuntujdstrand: some very early code there15:35
zyga-ubuntujdstrand: particularly one doing Ux15:35
zyga-ubuntujdstrand: I'm going to look at what would it take to move more of the startup logic to snap-update-ns15:35
zyga-ubuntujdstrand: and how we can do per-snap layout confinement profiles (just made that term up)15:36
zyga-ubuntujdstrand: as for the actual profile names, can I, say, use snap.foo.bar as the main apparmor profile and then do stuff like snap.foo.bar//layout as a sub-profile that applies to snap-update-ns?15:36
zyga-ubuntujdstrand: just syntax wise15:37
zyga-ubuntujdstrand: or do I need to encode that in some other way15:37
zyga-ubuntujdstrand: in each case snap-update-ns will run after pivot_root (I think pivot_root cannot move to goland easily)15:37
stgrabermvo: https://github.com/lxc/lxd-pkg-snap15:40
zyga-ubuntujdstrand: anyway, I'm off15:40
zyga-ubuntujdstrand: lets sync later15:40
Chipacaniemeyer: let me know when you have 15' to go over stuff?15:47
Chipacawtf, why is _everything_ breaking in spread :-(15:48
Chipacaoh15:55
ChipacaFTR, the store had a fairly bad hiccup ~1h ago15:58
Chipacaso that's why15:58
niemeyerChipaca: Back just now16:17
pedronisChipaca: yes, being fixed since16:26
Chipacaniemeyer: so, working from the commandline in, "snap status" as it stands in the PR is OK, yes?16:28
niemeyerChipaca: Double checking16:30
Chipacaniemeyer: thank you16:30
niemeyerChipaca: The output sounds sane.. I'm just wondering a bit about the command name itself16:32
niemeyerChipaca: I wonder if it feels too much like "snap status" would result in what we have as "snap list"16:32
niemeyerChipaca: (the status of snaps in the system)16:33
niemeyerChipaca: WDYT?16:33
Chipacaniemeyer: a little bit, yes16:33
Chipacaniemeyer: OTOH we decided against "snap service status" AFAIK16:34
Chipacaniemeyer: and if "snap status" feels like this, I reckon so will "snap restart"16:34
niemeyerChipaca: Indeed, and we have the same sort of ambiguity on enable/disable16:35
niemeyerChipaca: I guess status is fine from that angle, and the analogy of systemctl is definitely a plus16:37
niemeyerChipaca: Were you thinking about something specific when you asked?16:37
Chipacaniemeyer: no, just walking over the changes i need to make to be sure16:37
Chipacalayer by layer i mean16:38
niemeyerChipaca: I think we're good on that one.. I do wonder how we'll represent timers when they come16:38
niemeyerChipaca: Sounds like it'd make some sense to have them there..16:38
Chipacaniemeyer: I don't understand your concern there, but that might be because I don't know what timers are for snapd16:38
ChipacaI know what they are in systemd16:38
niemeyerChipaca: I think that's exactly my concern :)16:39
niemeyerChipaca: (the fact we don't have a clear view, which might lead to awkward corners soon)16:39
pedroniswell people asked to have systemd(-like) timers supported for snaps16:40
jdstrandroadmr: hi! can you pull r891 of the review tools? it isn't super-urgent16:40
roadmrjdstrand: sure!16:40
Chipacaniemeyer: timers can be active and enabled too, fwiw16:40
jdstrandmvo: ^ that has the base snap stuff and an override to allow 'bare' to pass automated review16:40
niemeyerChipaca: Right, that sounds sane16:40
niemeyerand may be stopped/etc16:41
Chipacaniemeyer: anyway, going one step further in, we'd have an Apps method on clients, that takes a list of things, and an options struct16:41
niemeyerChipaca: Yeah, singular I think16:41
cjwatsonogra_: Any new snap build will start with a version of launchpad-buildd without that bug now.16:41
niemeyerAppOptions?16:41
Chipacaniemeyer: singular...?16:42
ogra_cjwatson, ok16:42
niemeyerI think that's what we do on other cases.. double checking16:42
Chipacaniemeyer: and, here i'm not so sure: the options struct has an All bool, which if false means just services?16:42
niemeyerArgh.. we have ChangesOptions.. we should really fix that one :(16:42
Chipacawhy?16:42
Chipacait's <method name>Options16:42
niemeyerYeah, maybe16:43
Chipacaespecially given that we used to have Change and Changes, ChangesOptions and ChangeOptions are clearly different beasts16:43
niemeyerYeah, that's actually the issue16:44
niemeyerOften those option methods are useful in the context of a single thing16:44
niemeyerLet me try to find an example16:44
niemeyerfunc (client *Client) Install(name string, options *SnapOptions) (changeID string, err error) {16:44
niemeyervs.16:44
niemeyerfunc (client *Client) InstallMany(names []string, options *SnapOptions) (changeID string, err error) {16:44
niemeyerThe options are snap-related, the thing, rather than method-specific16:45
niemeyerthus ChangeOptions, AppOptions, etc16:45
niemeyerSimilarly, although we have ChangesOptions, we call it ChangeSelector in one of its fields16:47
niemeyerWith that background, yeah, indeed I'd suggest going with the singular, and eventually fixing ChangesOptions to agree16:47
ChipacaSo Apps([]string, AppOptions)?16:48
niemeyerYeah16:48
Chipacaok16:48
Chipacaniemeyer: and would the options struct has an All bool, which if false means just services?16:48
niemeyerChipaca: The opposite case feels more natural: return all by default as it's an /apps endpoint, and allow constraining to services by providing {Service: true}16:50
Chipacaok16:50
niemeyerChipaca: That opens the door for us to have a special kind of service which is hidden as well16:50
Chipacaniemeyer: and that translates to select="", "all", and "services" (with the two first ones being synonymous)16:51
niemeyerChipaca: and which we uncloak via a future All field16:51
niemeyerChipaca: Similar to what we do with snaps16:51
Chipacaah, so no select=all as synonymous for =""16:51
Chipacaniemeyer: ok so far?16:53
niemeyerChipaca: Yeah, I'd keep just "" and "service" (again singular due to precedence in /v2/snap's refresh)16:53
niemeyers/refresh/select16:53
niemeyerChipaca: For that latter use case, perhaps just "" and "service"16:53
niemeyerChipaca: Again singular (precedence in /v2/snaps's select16:53
niemeyerThanks irccloud16:53
Chipacaniemeyer: precedent, not precedence, i assume16:53
niemeyerIt told me it couldn't send my messages, and then did it later16:53
Chipacaok16:54
Chipacabut note that snaps uses adjectives16:54
Chipacabah, not even16:54
Chipacain snap's select it's "refresh" or "private"16:54
Chipacauhm16:54
Chipacasorry, that's in find16:54
niemeyerChipaca: Sort of.. I think it's a similar use case.. "the snap is a refresh.. the snap is private.. the app is a service"16:55
Chipacain snap it's "all" or "enabled"16:55
niemeyerChipaca: Sorry, I was really thinking of find16:55
Chipacaok, singular16:56
Chipacaniemeyer: then, inside daemon, there's the call to the helper that right now has a struct. I think I'll change that to mirror the client's options, for less surprises.16:56
niemeyerChipaca: Looking16:58
niemeyerChipaca: You mean the wantedAppInfo?16:58
Chipacayeap16:58
niemeyerChipaca: +116:59
niemeyerChipaca: I'm tempted to suggest "snap services".. I've been dueling with myself for the past 30 minutes on it17:02
niemeyerChipaca: Part of the question is: are timers services as well?17:04
niemeyerI suspect that as far as systemd is concerned, they are not17:05
Chipacaniemeyer: they are distinct17:06
niemeyerChipaca: So will we have a {Timer: true} flag?17:06
Chipacaniemeyer: although in systemd a timer is associated with a service of the same name17:06
niemeyer/o\17:07
Chipacaniemeyer: that is, the timer is _just_ a timer17:07
Chipacaniemeyer: when it fires, it runs the service with the same name17:07
pedronisI doubt we would model it that way though17:07
Chipacacorrect17:07
Chipacaniemeyer: (you can change which unit it fires, but the default is the one with the same name)17:08
niemeyerI guess the app would be a timer _and_ a service then?17:08
Chipacaniemeyer: an app would be … Daemon: timer ?17:08
Chipacaprobably not because the service will have its own daemon:17:09
Chipacaniemeyer: a daemon can have a timer?17:09
niemeyerChipaca: I was thinking of just having something like Schedule: <timing spec>17:09
niemeyerChipaca: Or simliar17:09
Chipacayup17:09
Chipacaso a service would have a timer / schedule / thing17:09
Chipacamakes sense to me17:09
niemeyerChipaca: We might imply "Daemon: timer" in that case perhaps?17:09
Chipacaniemeyer: no because the service can be one-shot or notify or …17:10
niemeyerChipaca: Or would it make sense for something to be a daemon *and* a timer?17:10
niemeyerChipaca: Ah, okay, combined even in that sense.. nice17:10
Chipacaniemeyer: man systemd.timer fwiw17:11
Chipacaniemeyer: also17:11
niemeyerChipaca: Yeah, I'm friends with that one.. have been trying to find a good syntax for ourselves17:11
Chipacaniemeyer: systemctl list-timers17:11
niemeyerChipaca: Thanks, hadn't seen that one17:12
Chipacaniemeyer: and i'd expect we'd want something similar, maybe under 'snap timers'17:12
Chipacabut, dunno17:13
niemeyerChipaca, pedronis: Okay, so, what's the experience we want? Do we show timers on "snap status/services" output?17:13
Chipacabecause, dunno what timers are for snap :-D17:13
niemeyerChipaca: +1 on "snap timers"17:13
Chipacaniemeyer: if a service has a schedule, maybe include a "last run" or "next run" column?17:14
Chipacaniemeyer: or a "see snap timers"?17:14
Chipacai mean17:14
Chipacano, i wouldn't show timers as lines in 'snap status' output17:14
ChipacaI'd show the services the timers fire, though17:15
niemeyerChipaca: Or perhaps just "Schedule", with the actual string, and leave the specialized output for "snap timers"17:15
Chipacaniemeyer: that sounds reasonable17:17
niemeyerChipaca: Okay, thanks, that gives much better understanding of what's to come.. so back to your original question:17:17
niemeyerChipaca: I think the output is mostly fine.. a couple of points to ponder about:17:18
niemeyer1. Should we always have the first field?  That makes it more tooling-friendly (think awk, grep, ...)17:18
niemeyer2. Would it be useful to have Daemon with the value of that field?17:19
niemeyer3. I'm slightly conflicted about the name of the "Service" header.. not sure if "App" would make it more clear or more confusing17:20
Chipaca1. i think yes, although i'm not sure it makes sense for it to be split17:20
Chipaca2. i don't think Daemon tells the user of the app anything they need to know, no17:21
Chipaca3. i think Service is a little clearer than App, but not by a wide margin17:22
niemeyerOkay.. for 1, should we just have it always then?17:22
niemeyerFor 2, sounds good17:22
Chipaca1., yes i think so17:22
niemeyer3. Okay17:22
niemeyerChipaca: Sounds like we have a plan then!17:23
Chipacaniemeyer: one last question: about the split of AppInfo and ServiceInfo in the client libs. It's mainly driven by the desire for the json to be nice and clean for non-service apps, and nice and explicit for service apps17:23
niemeyerChipaca: I understand, but I also see value in the conceptual flattening.. we've already decided to make them look alike long ago, and it earned us many bonus points in terms of having plugs/etc handling not care, being able to have commands and services, etc17:25
niemeyerChipaca: I think this is just being more honest about that internal representation, and passing the advantage of that flattening on to the client17:25
niemeyerChipaca: It's analogous to systemd's "units", if you see what I mean17:25
niemeyerI'm sure somebody complained about "starting a mount point", but hey, the flat CLI is nice17:26
Chipacahmm17:27
Chipacaniemeyer: in systemd, status of a unit (that is, the common ancestor of services, mountpoints, timers, ...) makes sense17:28
Chipacaniemeyer: whereas our apps are very distinct beasts17:28
Chipacabut, i'll flatten it17:28
Chipacano worries17:28
niemeyerChipaca: Not really.. we do have a bunch of common ground for apps17:28
niemeyerChipaca: plugs and slots, security profiles, etc etc17:28
niemeyerChipaca: Thanks!17:29
niemeyerChipaca: Ah, and I suggest going with "snap services", given all of that useful background17:29
Chipacaok17:30
Chipacabut not right now. Right now, time to walk the dog, and think of dinner, and maybe a beer17:30
Chipacao/17:30
niemeyerChipaca: Sounds great, thanks for the chat.. I'll copy that conversation into the forum17:30
Chipacatks17:30
Chipacathat's another thing that's harder to do in a hangout :-D17:30
=== JanC_ is now known as JanC
pedronisniemeyer: did you get a chance to look at that branch? do you want to do a quick HO instead?19:36
niemeyerpedronis: I didn't manage to look yet, sorry, but it's definitely on my queue of things for today.. a HO might help19:45
mupPR snapcraft#1418 opened: nodejs plugin: fix incorrect symlinks <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1418>19:48
pedronisniemeyer: let me know I'm available for another couple of hours19:51
niemeyerpedronis: Sounds good.. give me ~10 mins and I'll be with you19:52
pedronisok19:52
niemeyerpedronis: Heading to the standup HO20:07
mvojdstrand: thank you! :)20:12
jdstrandmvo: the strace?20:21

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