/srv/irclogs.ubuntu.com/2019/03/05/#snappy.txt

mwhudsoner does cmd/snap progress reporting essentially assume that any task where total > 1 is downloading something?00:03
mwhudsonthat sounds like a chipaca question00:03
mwhudsonbehold my snazzy progress bar! https://asciinema.org/a/aTbeNl5BnF2jtbWlXZT8ed7eE00:54
=== chihchun_afk is now known as chihchun
zygaHello05:35
mborzeckimorning06:07
zygahey mborzecki  :-)06:08
zygahow are you doing>?06:08
mborzeckizyga: hey06:08
mborzeckizyga: fine, 'connections' landed yesterday :)06:08
zygaI saw, nice work  :)06:09
mborzeckizyga: hm need to figure out why the spread test fails in #648506:10
mupPR #6485: interfaces/seccomp: regenerate changed profiles only <β›” Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6485>06:10
mborzeckizyga: the small s-c patches are waiting for perdronis right?06:11
zygamborzecki: and jdstrand06:11
zygamborzecki: I'm making breakfast for kids now06:11
zygare06:37
zygamborzecki: looks l like core18 + snapd not working06:37
zygamborzecki: did you try to get a debug shell?06:38
zygathough given that this is prepare it  may be broken too06:38
mborzeckizyga: which pr?06:38
zygaperhaps  we need  to adjust that code thttps://github.com/snapcore/snapd/pull/648506:38
mupPR #6485: interfaces/seccomp: regenerate changed profiles only <β›” Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6485>06:38
zygaso that we bail out early if snap is not on path06:38
mborzeckizyga: stuck looking at some review now06:39
zygaok06:39
mborzeckizyga: but that's interesting06:39
=== pstolowski|afk is now known as pstolowski
pstolowskimornings08:03
mvogood morning pstolowski08:05
zygaHey PaweΕ‚, Michael08:15
mborzeckipstolowski, mvo: morning guys08:18
mvohey zyga and mborzecki !08:19
mvo6492 needs a second review (its on the 2.38 critical path)08:24
mvopedronis: 6356 looks good to me, unless you want to do something with it I will merge it08:25
mupPR snapd#6560 closed: cmd/snap-confine: drop uid from random /tmp name <Simple πŸ˜ƒ> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6560>08:26
mupPR snapd#6561 closed: cmd/snap-confine: chown private /tmp to root.root <Simple πŸ˜ƒ> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6561>08:26
pedronismvo: it's fine to merge for me,  but make sure people are aware you would like follow ups08:32
mvopedronis: I will wait for john - followups are not strictly needed, its mostly ideas/suggestions nothing strictly required08:34
pedronisok08:34
mborzecki5.0 kernel is already in testing repo in arch, hope we don't make any assumptions about kernel versions in our code08:37
pedronismborzecki: we compare it in a couple of places to see if it's higher than some version08:41
pedronisbut usually there's a distro check as well08:42
pedronismborzecki: I see code like in apparmor backend.go seccomp backend.go and sanity/version.go08:42
pedronisthey should be fine afaict08:42
mborzeckiyeah08:42
mvomborzecki: when we compare we use the semantic versions compare that follows the debian rules which the kernel honors currently so we should be good08:44
pedronismvo: you left some optional comments also in #6322 for pstolowski08:44
mupPR #6322: overlord/hookstate: apply pending transaction changes onto temporary configuration for snapctl get <Complex> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6322>08:45
pstolowskipedronis: i noted these comments and will address in a followup, these were cosmetics08:47
zygaHey, with dog at vet, I’ll start around 10 today08:48
zygaThanks for merging mvo08:49
dokohow is mvo merged?08:51
zygaMvo is very dedicated, one could say merged with is duties ;-)08:52
mvohaha08:54
mvopedronis: I addressed the feedback in 6381, the one question is if I should remove "setDeviceFromModelAssertion" again from that PR and move it into a later one09:31
mupPR snapd#6539 closed: cmd, daemon: split out the common bits of mapLocal and mapRemote <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/6539>09:36
mvo6492 needs a second review09:47
mvoChipaca: I will merge 6356, there are some nitpicks/ideas in my review but feel free to ignore or do in a followup09:48
Chipacahmm09:48
* Chipaca looks09:48
Chipacamvo: ok :-)09:48
mwhudsonChipaca: for some reason i think you might like this https://asciinema.org/a/aTbeNl5BnF2jtbWlXZT8ed7eE09:48
mvozyga: you mentioned you want to re-review 6549, could you please make it a priority? I would like to finalize 2.38~pre1 this morning09:48
Chipacamwhudson: nice!09:49
Chipacamwhudson: how much would that break if the snap progress bar took up more lines?09:50
mwhudsonChipaca: not at all, it's pinging v2/changes/$id09:50
Chipacamwhudson: ah, it's doing its own thing? ok09:50
joedborgjdstrand: I'm unable to pause them due to this issue https://github.com/canonical-websites/build.snapcraft.io/issues/62309:50
Chipacamwhudson: using ansimeter?09:51
mwhudsonChipaca: no, urwid has it's own process bar thingy09:51
zygamvo: ack09:51
zygamvo: let me look now09:51
zygawow, it's windy today09:51
mwhudsonChipaca: you can tell it's not ansimeter becuase it's not reporting time remaining :)09:51
Chipacaah and it says MiB09:51
Chipacaok09:51
mvomwhudson: nice indeed09:51
Chipacamwhudson: basically, you can have more than 1 thing in Doing09:52
mwhudsonChipaca: wait.go / ansimeter seems to assume that anything that has total > 1 is downloading something09:52
mupPR snapd#6356 closed: overlord/snapstate: during refresh, re-refresh on epoch bump <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6356>09:52
Chipacamwhudson: and currently we just report the first one09:52
Chipacawhich is 'fun'09:52
mwhudsonChipaca: ah!09:52
mvodid I mention that 6492 needs a second review ? *please* ?09:52
mwhudsoni guess it wouldn't be so hard to cope with that in my code09:52
mwhudsonChipaca: is this something that happens in practice?09:52
Chipacamwhudson: that's why if you install something that needs to download a content snap, it'll stay in 'connecting' for ages09:53
mwhudsonah ha09:53
Chipacamvo: i'll do it09:53
mwhudsonso if i was refreshing to a version of subiquity that depended on core18, for example...09:53
mvoChipaca: thank you!09:53
zygamvo: I can look as well after apparmor review09:54
mvozyga: appreicated, but if john looks that is enough, its relatively small and already has a review :) thanks still!09:54
zygaok09:54
Chipacamvo: in 6492 you say you "added the check for .Active", but I don't see it09:57
Chipacamvo: ah, i see the last commit now, ok09:57
Chipacamvo: we don't block disabling snapd though09:58
Chipacamvo: so you could have snapd installed and disabled09:59
Chipacamvo: (add TypeSnapd to snapstate's canDisable)09:59
Chipacamvo: why am i not writing this on github10:00
mupPR snapd#6562 opened: timings: base API for recording timings in state <Created by stolowski> <https://github.com/snapcore/snapd/pull/6562>10:05
pedronisChipaca: lots of things break, we don't check for Active core either10:05
Chipacapedronis: core _is_ in the list that can't be disabled10:05
pedronisChipaca: is it?10:05
Chipaca[]snap.Type{snap.TypeGadget, snap.TypeKernel, snap.TypeOS}10:05
pedronisit wasn't for a long time10:06
Chipacacore is TypeOS10:06
Chipacawe don't check TypeBase10:06
pedronisanyway sounds a different problem10:06
pedroniswe do need to switch to a type10:06
pedronisfor snapd10:06
Chipacapedronis: ?10:06
Chipacasnapd is TypeSnapd already10:06
pedronisChipaca: it isn't10:07
pedronisChipaca: look at snapcraft.yaml10:07
Chipacadang10:07
Chipacawe _have_ TypeSnapd10:07
pedronisor do snap info snapd10:07
pedronisChipaca: we do10:07
pedronisbut the store and snapcraft weren't on the plan10:08
Chipacaare we dum10:08
Chipaca:-(10:08
Chipacawe r dum10:08
pedronissounds we need to push10:08
pedronisChipaca: I created a card for mvo10:10
=== cpaelzer_ is now known as cpaelzer
Chipacaoh no! i have only one PR up!10:13
* Chipaca strives to fix this10:13
pedronisChipaca: you can write docs instead10:13
Chipacapedronis: :-)10:13
Chipacapedronis: I also have a followup to the snapinfo pr that just landed, that i'm running spread on locally now that it's rebased10:14
mupPR snapd#6492 closed: snapstate: restart into the snapd snap on classic <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6492>10:16
mborzeckiwonder whether we should really fail to initialize seccomp backend when snap-seccomp version-info does nto match the patter or is otherwise invalid10:30
pedronismborzecki: we control both sides, no?10:31
mborzeckipedronis: yes, so it's unlinkely to happen10:31
mborzeckipedronis: however unlikely, should this fail, backend will not initialize and snapd won't start10:32
pedronismborzecki: we have many (slightly unlikely) things that will make snapd not start10:33
mborzeckiok, so maybe not a problem after all10:33
mborzeckiespecially since both ends are in sync10:33
pedronisI mean, if we didn't control the other side, I would agree10:34
pedronisthat being robust is more important10:34
pedronisbut if we do, something is off anyway10:34
mborzeckiagreed10:34
mupPR snapd#6563 opened: ctlcmd/tests: tests tweaks (followup to #6322) <Simple πŸ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6563>10:48
pstolowskimvo: ^ trivial per your comment to 632210:50
mvopstolowski: thanks, I have a look in a wee bit10:55
zygajdstrand: reviewed https://github.com/snapcore/snapd/pull/6549#pullrequestreview-21060827311:10
mupPR #6549: apparmor: support AppArmor 2.13 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/6549>11:10
mvozyga: I answered some questions, please let me know if its sufficient for merge or if you would prefer more info (it seems the open issues can be done in a followup maybe?)11:14
zygalooking11:14
zygamvo: replied11:15
zygamvo: can we add the snapd part and then merge it?11:15
zygamvo: unless you think my questions about profileIsRemovableOnCoreSetup warrant more time11:16
mvozyga: good question, I'm not super happy with the function but I played around and all my attempts to change it just made it different but not "better"11:17
zygamvo: I'd split it to spearate checks per line11:17
zygawith comment that explains what is being matched11:17
zygaunlike one very long line11:18
mvozyga: if you have an idea, could you please do it and add a comment what it would look like?11:18
zygasure11:18
zygadoing that now11:18
mvota11:20
zygamvo: I tried and none of my ideas were any better11:28
zygamvo: I'll defer to you in case you want to land and release11:28
=== sparkieg` is now known as sparkiegeek
mvozyga: thank you, I had the same experience, might be worthwhile to add a note in the PR (or a FIXME in the code) that it would be nice to find something nicer looking11:34
mvozyga: but otherwise I think we are good to merge and can polish in a followup :) (sorry, a bit in OCD mode to get a first 2.38~pre1 out)11:35
zygamvo: there's always .111:35
zyga;-)11:35
zyga(right?)11:35
mvozyga: *cough*11:37
mvozyga: in this case a ~pre2 ,)11:37
zygaI, for one, embrace the trigger happy merge because we need to get faster, not slower11:38
mborzeckidamn spread snap-seccomp spread test, it's passing on arch nowm but failing on ubuntu still for some reason11:42
zygamborzecki: hmm?11:43
mborzeckiand debian sid doesn't build because we're patching the source code11:43
mborzeckizyga: tests/regression/lp-1805838 is failing with the seccomp branch, even with the fixes i added11:43
zygaoh11:44
zygathat's serious11:44
pedronisyes, we do need to patch the patches11:53
pedronisat least now they are in the same tree11:53
mvomborzecki: what PR is that?11:54
mborzeckimvo: #648511:54
mupPR #6485: interfaces/seccomp: regenerate changed profiles only <β›” Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6485>11:54
mborzeckimvo: no worries, i'll update those, but it took a while to figure out what's happening there11:55
mvomborzecki: thank you!11:55
mupPR snapd#6549 closed: apparmor: support AppArmor 2.13 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6549>11:55
mborzeckibtw. fedora packaging does sed to place that libseccomp-go import, we should probably use the same patch as for debian there instead11:56
pedronismvo: do we need to keep the configure hook in core in sync with the code in snapd?  (it's mostly not used on classic), and if you get a new core you get also a new snapd11:58
pedronismvo: Q is about this:  https://github.com/snapcore/core/pull/10211:58
mupPR core#102: hooks: add force_turbo to PI_CONFIG_KEYS <Created by zyga> <https://github.com/snapcore/core/pull/102>11:58
mvopedronis: I think we don't, we do it all internally now, don't we?12:00
pedronismvo: yes, that's why the question, I wonder if we can drop it now completely? or make it empty?12:00
pedronismvo: we needed for a while for reverts, during the transition12:01
mvopedronis: yeah, I think making it empty is the right move12:02
mvopedronis: lets add a card, should be trivial12:02
pstolowskidammit, power outage here12:02
pedronismvo: https://trello.com/c/IakOtfSS/183-replace-hooks-configure-in-core-with-an-empty-one12:12
zygabrb12:12
mvopedronis: ta12:13
mvopedronis: https://github.com/snapcore/snapd/blob/release/2.38/packaging/ubuntu-16.04/changelog has the 2.38~pre1 changelog12:14
pedronismvo: thx, will look at in a little bit12:15
mvopedronis: no rush, its a ~pre112:15
mupPR snapd#6564 opened: cmd/snap, tests: refactor info to unify handling of 'direct' snaps <Created by chipaca> <https://github.com/snapcore/snapd/pull/6564>12:29
pedronismvo: I looked at the new things since the last list, I was aware of most of them, I also double checked a couple of snap-confine stuff12:32
mborzeckipstolowski: any storms cooming your way today?12:33
pstolowskimborzecki: nope12:34
mborzeckimvo: zyga: i've updated the seccomp patch, please take a look if that's fine by you or should i add a new one on top of the current series12:34
zygamborzecki: sure, give me a sec to look12:34
mborzeckipstolowski: well, the season has already started :P12:34
=== ricab is now known as ricab|lunch
pstolowskimborzecki: in that case it's a maintenance in the nearby area12:46
zygamborzecki: hmmm12:58
zygamborzecki: snap-seccomp version must go into system key, otherwise snapd update with new snap-seccomp won't trigger a regeneration12:59
mborzeckizyga: build id will change13:00
mborzeckioh, w813:00
mborzeckihm13:00
zygaoh, perhaps that is sufficient?13:00
mborzeckinvm, need to look at it again13:01
pedronismborzecki: I mentioned something related in the PR13:01
mborzeckioff to pick up the kids13:03
zygamborzecki: review sent13:08
mupPR snapd#6324 closed: Fixing socket permissions on 4.15 kernels  <Created by kubiko> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/6324>13:29
jdstrandzyga: I think I answered your questions in PR 654913:37
mupPR #6549: apparmor: support AppArmor 2.13 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6549>13:37
jdstrandmvo, zyga: fwiw, I rewrote that function a bunch of times too. see my comment on why I landed on what I did13:40
jdstrandjoedborg: ok, can you at least make a fix to it and say that it 'architectures: [ all ]' (it doesn't ship any binaries). that will make it easier to deal with reviews, but you should also request classic confinement in the forum since nothing passes review atm13:45
joedborgokay jdstrand13:46
pedronisjdstrand: I asked a question there13:46
=== ricab|lunch is now known as ricab
zygajdstrand: thank you, looking13:55
jdstrandpedronis: answered13:56
zygajdstrand: thank you for the answers13:57
zygajdstrand: note that some of my questions and the rfc branch was trigged by my unfamiliarity with 2.1313:57
jdstrandI rewrote this a bunch of ways and like mvo couldn't come up with something better (in my mind). I picked one; classic bikeshed13:57
jdstrandhappy to do a followup PR if there is something clearly better13:57
zygajdstrand: tumbleweed is using 2.13 now so I'm learing about it13:58
jdstrandzyga: it really isn't that different13:58
zyga.features file is fun13:58
zygalisp but with braces instead of parentheses ;)13:58
jdstrandzyga: the only thing that 2.13 is different about is it creates a hash of the features and kernel abi as a subdir of the cache dir and puts everything in there13:59
zygajdstrand: oh, interesting, so 2.13 already has cache populated with snapd stuff13:59
jdstrandzyga: the unified directory is not dictated by 2.13. that is just something Debian did, but anyone could have13:59
zygajdstrand: unified directory?14:00
zygado you mean /var/cache/apparmor?14:00
jdstrandzyga: if tumbleweed has 2.13 and is generating snap policy, I think you'll find that you cannot remove snaps on tumbleweed right now14:00
zygajdstrand: on TW /var/cache/apparmor/$cache.0/ has stuff like snap-confine.core.123414:00
zygaoh!14:00
zygajdstrand: fun14:00
* zyga tries14:00
jdstrandzyga: yes, /var/cache/apparmor14:00
jdstrandzyga: the cache location is still chosen by the distro. in Debian and soon to be ubuntu 19.04, it is /var/cache/apparmor. it might be that elsewhere.14:02
zygacannot remove vlc on TW https://www.irccloud.com/pastebin/7HWJOWvZ/14:02
zygastandup time14:02
zygabut I will dig in a moment14:02
jdstrandzyga: the choosing of the cache location is separate from the forest behavior is all I'm saying. the fact the Debian combined /etc/apparmor.d/cache and /var/cache/apparmor into on unified dir is separate from 2.1314:02
zygaChipaca: ^ is this expected?14:03
zygajdstrand: ah, I see now14:03
zygajdstrand: thank you for this14:03
jdstrandnp14:03
zygajdstrand: I am iterating on responses and patches based on your feedback, thank you for that as well14:03
Chipacazyga: no, that's not expected14:03
jdstrandzyga: I maintain that it is an isolated changed in just Unload that breaking out a bunch of code and added machinery is probably not worth it14:04
jdstrandzyga: but I'll let others decide that14:04
jdstrandadding*14:04
Chipacazyga: what does β€˜find /var/snap/vlc -ls’ print out14:05
jdstrandzyga: note that the vls removal is a different error than what I saw with 2.13 apparmor on Ubuntu. It seems you are hitting a different error earlier than when snapd tries to remove the cache files but can't14:06
jdstrandvlc*14:06
zygazyga@yantra:~> sudo find /var/snap/vlc -ls14:06
zyga  2234362      4 drwxr-xr-x   3  root     root         4096 mar  5 15:01 /var/snap/vlc14:06
zyga  2367702      4 drwxr-xr-x   2  root     root         4096 lis  6 22:06 /var/snap/vlc/55514:06
zygaack14:07
Chipacazyga: so the question is why did os.RemoveAll fail to remove that14:07
zygaChipaca: note that this is reproducible!14:08
zygaundo works14:08
zygaso ... good?14:08
zygahttps://www.irccloud.com/pastebin/qdZMzJ6Q/14:08
Chipacazyga: undo of remove does not work14:08
zygait's interesting that we snap disconnect14:08
zygawhy do we do that? CC pstolowski14:08
pstolowskizyga: because of hooks that may run on the other end of connection14:09
zygaaha14:09
pstolowski(interface hooks)14:10
zygawe should be able to optimize away the ones that don't have any14:10
pstolowskizyga: +114:10
Chipacazyga: so the question is why do you have revision 555 there14:10
zygadunno14:10
Chipaca(also maybe we should be more resilient about this)14:10
zygawhy cannot snapd remove it?14:10
Chipacazyga: because it doesn't try to14:10
Chipacait doesn't expect that to be there14:11
zygaaaah14:11
pstolowskizyga: actually we probably don't create hook tasks if not needed already14:11
zygaI see14:11
Chipacazyga: it removes all the revisions, and then the parent14:11
zygapstolowski: I'm pretty sure disconnecting stuff from vlc is not needed when you remove the snap14:11
zygaand all the connections go to core14:11
Chipacazyga: vlc has mpris which doesn't go to core, fwiw14:11
zygaChipaca: yes but mpris is not connected14:12
zygahttps://www.irccloud.com/pastebin/tJtbkHRy/14:15
zygaChipaca: it's from october14:15
zygabut this is my dev machine so anything is possible14:15
Chipacazyga: snap list --all ?14:15
zygatried it, not there14:16
ChipacaI can't find an obvious way of repro'ing it14:22
Chipacamaybe there's a cleanup missing14:22
Chipaca?14:22
zygano worries, we know it may happen14:22
zygashall I report it for tracking:14:22
Chipacathat is, a refresh or install that fails and doesn't un-mkdir?14:22
zyga?14:22
Chipacahah!14:28
Chipacazyga: yes indeed we do!14:28
Chipacazyga: o/s/b/link.go, updateCurrentSymlinks14:28
Chipacazyga: happily does a MkdirAll(snap.DataDir())14:28
Chipacazyga: and then more stuff14:28
Chipacazyga: and that more stuff can fail14:28
Chipacazyga: and there is no clean up of the mkdir on fail14:29
zygagood14:29
zygaI'm happy we're happy now :)14:29
* Chipaca looks around14:29
Chipacawe are?14:29
zygashallow eyeballs all that stuff14:29
mupPR snapd#6565 opened: snap: remove obsolete license-* fields in the yaml <Created by mvo5> <https://github.com/snapcore/snapd/pull/6565>14:39
Chipacazyga: i'll push a pr in a bit14:40
Chipacafirst i need to go move my car14:40
Chipacaoh! mvo: tomorrow I need to go to do an anual paperwork thing for kid #2 (kid #1's is in a couple of weeks), probably won't make it to the standup even14:40
Chipacai'll file for a half-day later14:41
pedronisjdstrand: hi, could you adjust the summaries in #5644 , then it could be landed as per agreement14:42
mupPR #5644: interfaces: add audio-playback/audio-record and make pulseaudio manually connect <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5644>14:42
pedronisassuming the tests follow-up14:42
jdstrandpedronis: so, I was wanting to ask you about that. I did make some changes before your last comment ot make changes14:43
jdstrandpedronis: what is it you are looking for exactly?14:43
jdstrand(and yes, when tests can be written, I'll write them)14:43
pedronisjdstrand: https://github.com/snapcore/snapd/pull/5644/files#r21267477714:44
mupPR #5644: interfaces: add audio-playback/audio-record and make pulseaudio manually connect <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5644>14:44
jdstrandpedronis: oh, that change. ack. I thought this was something else14:45
mvoChipaca: thanks14:45
mvoChipaca: no worries14:45
pedronisjdstrand: to be fair, I see we use your spelling quite a bit14:46
pedroniswell, not quite a bit14:47
pedronisbut in a few cases14:47
pedronisdegville: interestingly there are a few things that are document for snapcraft.yaml but not snap.yaml :)14:49
pedronisdegville: https://forum.snapcraft.io/t/snapcraft-app-and-service-metadata/833514:49
degvillepedronis: yeah, I've been pinged about updates to snapcraft.yaml  but didn't think to push them back to the snap.yaml doc.14:50
zygaLunch14:50
zygaChipaca: thank you! :-)14:50
pedronisjdstrand: pulseaudio is interesting because the summary in the code talks about operating as the service, but the doc doesn't https://forum.snapcraft.io/t/the-pulseaudio-interface/790614:51
pedronisjdstrand: while I would, sort of, expect the reverse14:52
pedronisjdstrand: I mean the simple summary to explain the plug/consumer POV, the "extended" docs to explain that the slot can be implemented by apps14:54
mborzeckizyga: pedronis: under the assumption that snapd and snap-seccomp are in sync, i think we don't need to include snap-seccomp version in version-info, just the library version and the hash are enough14:55
zygamborzecki: what about system-key?14:55
zygamborzecki: I agree with your statement14:55
zygamborzecki: but system-key correctness is essential for correctness14:55
mborzeckizyga: we still need that, i.e. put version-info in system-key14:55
pedronis?14:56
mborzeckizyga: what i mean we don't necessarily need to include the compiler version in the output14:56
pedronisI'm missing something14:56
mborzecki(snap-seccomp being the compiler)14:56
zygapedronis: I think mborzecki is working with the assumption that we have snapd build-id in system-key14:56
zygathough14:56
zygato be fair14:57
zygaI think it's not correct14:57
mborzeckiwhich we have14:57
zygaonce we get reproducible builds14:57
zygasnapd can remain unchanged14:57
zygawhile snap-seccomp can change14:57
pedronisyes14:57
zygaso in that sense it's not fully sufficient14:57
pedronisthat's the part that is delicate14:57
pedronisI sort of think we are trying to avoid adding a number14:57
pedronisat the expense of subtle bugs14:57
mborzeckihm maybe we should then use the build-id of snap-seccomp too14:58
zygapedronis: I agree14:58
zygapedronis: let's do it cleanly14:58
zygamborzecki: that would be okay14:58
mborzeckiso version-info would be: <build-id> <library-version> <hash>14:58
zygaand I prefer the build-id over a version14:58
zygaversions are easy to misuse14:58
pedronisthat's fine, in the end this an optimisation over always regen14:59
mborzeckiyup14:59
mborzeckiok, build-id it is14:59
zygapstolowski: https://github.com/snapcore/snapd/pull/656315:00
mupPR #6563: ctlcmd/tests: tests tweaks (followup to #6322) <Simple πŸ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6563>15:00
pstolowskizyga: k, merging, thx15:02
mupPR snapd#6563 closed: ctlcmd/tests: tests tweaks (followup to #6322) <Simple πŸ˜ƒ> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/6563>15:02
jdstrandpedronis: ok, https://github.com/snapcore/snapd/pull/5644 updated. note, it is for master/2.38 and *not* for 2.38 (I need time to do the other supporting work in electron, snapcraft, etc, etc)15:05
jdstrandmeh15:05
mupPR #5644: interfaces: add audio-playback/audio-record and make pulseaudio manually connect <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5644>15:05
jdstrandmaster/2.39*15:05
jdstrandthis is 2.39 material, not 2.38 (so many typos this morning :)15:05
jdstrandbut not in the PR! ;)15:06
zygajdstrand: I nuked stdio from https://github.com/snapcore/snapd/pull/649815:08
mupPR #6498: cmd/libsnap: add cgroup-pids-support module <Created by zyga> <https://github.com/snapcore/snapd/pull/6498>15:08
jdstrandack, thanks15:08
=== chihchun is now known as chihchun_afk
mvosil2100: https://github.com/snapcore/core/pull/103 is probably something for you :)15:16
mupPR core#103: hooks: apt warning should return an error <Created by townsend2010> <https://github.com/snapcore/core/pull/103>15:16
sil2100mvo: hey! Oh, it's for core?15:17
mvosil2100: yeah15:17
mvosil2100: oh, sorry15:17
sil2100But yeah, it makes sense :)15:17
sil2100+115:17
mvosil2100: yeah, its for core, I guess that means still our turf15:17
mvosil2100: sorry, ENEEDMORETEA :)15:18
mupPR core#103 closed: hooks: apt warning should return an error <Created by townsend2010> <Merged by mvo5> <https://github.com/snapcore/core/pull/103>15:18
sil2100mvo: hm, do we actually have a warning wrapper like this in core18? Would have to check15:19
* sil2100 is too deep in point releases in the last weeks15:19
mvosil2100: oh, indeed - are they all done now? or one more to go?15:21
ChrisTownsendmvo: Hey, thanks for merging that.  It will help us on Multipass and our support for core.15:21
ChrisTownsendI didn't see an analogous script in the core18 code though.15:21
sil2100One in progress, hopefully the last one ;)15:22
mvoChrisTownsend: thank you! we may need to add one for core18 too, I will sync with sil2100  on that (but no worries, will also exit 1)15:27
ChrisTownsendmvo: Sure, glad to contribute:)15:27
mupPR snapd#6566 opened: interface: avahi-observe: Fixing socket permissions on 4.15 kernels w… <Simple πŸ˜ƒ> <Created by jdstrand> <https://github.com/snapcore/snapd/pull/6566>15:30
jdstrandmvo: hey, just as a heads up, I don't have any policy updates for 2.38 other than getting ^ in for ondra15:36
ondrajdstrand thank you :)15:38
jdstrandondra: you're welcome. I owed it to you for the delay in the PR review ;)15:39
ondrajdstrand no worries, it only came back when ogra started to use 4.15 kernel on some of his new boards15:40
jdstrandcool15:40
jdstrandglad it hasn't been a persistent pain point15:40
ograyeah, i have a bunch of new rockchip boards (and images)15:40
ograusing ubuntu-bionic.git (and -disco) for the kernels15:40
jdstrandneat15:41
Chipacamvo: you around?15:48
Chipacazyga: v15:50
zygav?15:51
zygaah15:51
zygaincoming :)15:51
* Chipaca waits for mup15:51
mupPR snapd#6567 opened: overlord/snapstate/backend: make LinkSnap clean up more <Created by chipaca> <https://github.com/snapcore/snapd/pull/6567>15:51
Chipacazyga: ^15:51
zygaheh :)15:51
Chipacazyga: there's still a bug there, as pointed out in the pr15:52
pedronisondra: hi, btw you still a couple of PRs open where jdstrand left feedback asking changes15:52
Chipacaand it might be something that's impacting people15:52
Chipacabecause, it aligns with some funny "why is it thinking it needs to boot this" errors15:52
ondrapedronis yep, on my list. I was on hols and then tradeshow and only back in the office this week15:52
pedronisondra: ok15:52
zygabreak, time to take the dog out again16:00
mvoChipaca: in meetings16:01
* Chipaca hugs mvo 16:01
mvoChipaca: how can I help you?16:01
Chipacamvo: wondering if there's an easy way to 'undo' boot.SetNextBoot(info)16:01
Chipacamvo: in https://github.com/snapcore/snapd/pull/6567/files#diff-1fdad998bbd61f4345491c0b17b6585eR11516:02
mupPR #6567: overlord/snapstate/backend: make LinkSnap clean up more <Created by chipaca> <https://github.com/snapcore/snapd/pull/6567>16:02
mvoChipaca: I think so, just unsetting snap_try_core should be enough16:03
mvoChipaca: still in  a meeting so a bit terse16:03
Chipacamvo: no worries :-)16:03
mupPR snapd#6568 opened: overlord/snapstate: fix restoring of "old-current" revision config in undoLinkSnap <Created by stolowski> <https://github.com/snapcore/snapd/pull/6568>16:14
kenvandinemborzecki: hey, i'm playing around with parallel installs and ran into an issue.  mvo said i should raise it here with you16:24
kenvandinei installed gedit from edge as gedit_master16:24
kenvandinethe gtk-common-themes content interfaces all connected fine16:24
kenvandinebut the gnome-3-28-1804 content interface didn't16:25
kenvandinei manually connected it and it seems to have failed16:25
Chipacakenvandine: what's 'snap tasks' of the failed change? (maybe --last=connect)16:32
kenvandineDone    today at 11:21 EST  today at 11:21 EST  Connect gedit_master:gnome-3-28-1804 to gnome-3-28-1804:gnome-3-28-180416:32
kenvandinethat was my manual connect16:32
kenvandinebut the content is not mounted in the snap16:33
Chipacaah (?)16:33
kenvandinei installed another parallel snap and that connected everything just fine16:48
mborzeckikenvandine: let me try that locally16:53
kenvandinei'm guessing if i remove gedit_master and install again it might work16:54
kenvandinesince other snaps are working16:54
kenvandinebut i'll leave it broken in case i can collect any useful info for you16:54
mborzeckikenvandine: it ought to be deterministic :P16:54
kenvandine*ought* to be16:55
mborzeckikenvandine: can you upload `snap change` of that install to pastebin?16:56
kenvandinemborzecki: you mean the line from snap changes?16:57
mborzeckikenvandine: the output of `snap change <that-change-id>`16:58
kenvandineoh16:58
kenvandinenever done that before :)16:58
mborzeckiinstalled here just fine16:58
kenvandinehttp://paste.ubuntu.com/p/sGxcwknFRp/16:58
kenvandineyeah, i've since installed several other gnome snaps fine16:58
kenvandinelooking at the change, it doesn't even list gnome-3-28-180416:59
mborzeckikenvandine: ok, can you run `snap changes` locate the manual connect that failed and paste snap changes <that-id> ?17:02
Chipacamborzecki: snap tasks <that id>17:03
Chipacaor snap change <that id>17:03
kenvandinemborzecki: Done    today at 11:20 EST  today at 11:20 EST  Connect gedit_master:gnome-3-28-1804 to gnome-3-28-1804:gnome-3-28-180417:03
kenvandineit didn't think it failed17:03
Chipacakenvandine: anything interesting in jouranlctl -u snapd ?17:03
Chipacaor some other command that rhymes with that17:03
kenvandineMar 05 11:20:03 x230 snapd[1778]: api.go:1077: Installing snap "gedit_master" revision unset17:04
kenvandineonly thing around the same time17:04
kenvandinethe interface is currently connected, but the mount point is empty17:05
mborzeckiah ok, so the content interface is conencted but the data is nto visible?17:05
kenvandineright17:05
kenvandinemborzecki: although it didn't connect at install17:05
kenvandinelike it should have17:06
kenvandinei manually connected it17:06
mborzeckikenvandine: ok, maybe try this, sudo nsenter -m/run/snapd/ns/gedit_master.mnt /bin/findmnt and paste the output17:11
kenvandinemborzecki: http://paste.ubuntu.com/p/xHmnP6mSgT/17:15
mborzeckikenvandine: nothing stands out, can you also paste the contents of /var/lib/snapd/mount/snap.gedit_master.fstab ?17:27
kenvandinemborzecki: http://paste.ubuntu.com/p/5m5JpD2pgw/17:29
mborzeckikenvandine: the content mount points of gtk-common-themes and gnome-* seem to be populated here just fine, i mean mounted and there's data inside17:29
kenvandineyeah17:30
kenvandinesame here for all the other snaps17:30
kenvandinethat i installed since17:30
kenvandineso i suspect if i remove and reinstall it will be fine17:30
kenvandinethis was the first snap i installed after enabling parallel installs on core17:31
mborzeckikenvandine: ok, let's see if we can reproduce it at least, can you stop gedit, run sudo /usr/lib/snapd/snap-discard-ns gedit_master and then run `SNAPD_DEBUG=1 SNAP_CONFINE_DEBUG=1 snap run gedit_master` and paste the output17:35
kenvandinemborzecki: https://pastebin.ubuntu.com/p/XCKtXgRSYx/17:38
kenvandinemborzecki: it actually ran fine17:38
mborzeckikenvandine: idk, things seem to look fine in the outputs, probably be good if zyga could take a look too17:44
kenvandinenow it all works fine17:44
kenvandineso something there cleared it up17:44
kenvandinei guess the snap-discard-ns ?17:44
mborzeckikenvandine: yes, that tool removes the mount namespace and it will be recreated on the next snap run17:45
zygakenvandine: yes, you can use it to get a clean slate17:55
zygapedronis: hey, do you want to have a look at https://github.com/snapcore/snapd/pull/6498 before  it lands?17:56
mupPR #6498: cmd/libsnap: add cgroup-pids-support module <Created by zyga> <https://github.com/snapcore/snapd/pull/6498>17:56
pedroniszyga: I think it was alright,  do we have something using it yet? or is that coming?17:56
zygapedronis: that's upcoming in another branch17:57
zygapedronis: just separated for different review people usually17:57
zygapedronis: (and shorter)17:57
zygapedronis: though it's already used17:57
zygapedronis: because of freezer code now beign based on this17:57
pedronisyes, that I understand17:57
pedronisok17:58
zygaone question, I forgot to add copyright headers17:58
zygas/question/change/17:58
zygaok, pushed18:06
* zyga EODs18:31

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