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

zygahello05:47
mborzeckimorning06:01
zygahey06:21
zygamborzecki: quick qustion, does the aur packaging limit architectures?06:21
zygamborzecki: someone is asking for snapd on manjaro on aarch6406:21
mborzeckizyga: yes and no, iirc the general consensus was that you put x86_64 there and then people building the package on other arches can edit PKGBUILD to their liking06:22
mborzeckialso aur helpers usually allow to ignore the arch and build with whatever the local one is06:22
mborzeckii've added i386 for some arch-on-x86 project poeple asked about06:22
mborzeckii can add aarch64 too06:23
zygamborzecki: uh, that's odd, why do you have to put x86_64?06:24
zygamborzecki: yeah, let's add aarch64 and just call it a day (on that issue)06:24
mborzeckihaha i see the forum topic now06:25
mborzeckiso poeple can close and call makepkg -i but don't bother to read the manpage :P06:25
zyga"snap install things quickly" :)06:29
mborzeckizyga: i'm seeing 434 syscalls known to libseccomp in the current master branch07:10
zygamborzecki: how are you measuring?07:10
mborzeckizyga: there's arch-syscall-dump tool in the source code that dumps the known syscalls for that arch07:11
zygaah, nice07:11
mborzeckizyga: this is combined for all arches: https://paste.ubuntu.com/p/3vDk88tFZf/07:11
zygabrb,dog.walk()07:32
zygare07:44
zygahello mvo07:44
mvohey zyga ! good morning07:45
zygawelcome back :)07:45
zygahow was your week off?07:45
mvozyga: it was very nice07:46
mvozyga: thank you07:46
mvozyga: what did I miss?07:46
zygamvo: let me think07:47
zygamvo: I think last week was mostly quiet07:48
zygamvo: for me some things that are important are 2.13 apparmor - we need to urgently release with support for it07:48
mvozyga: in what distros is it used? and what changes for us?07:48
zygamvo: I also raised the topic of snapd LTS but pedronis asked to move the discussion to this week, once you are back07:48
zygamvo: it's going in everywhere, opensuse, debian and ubuntu as well07:48
zygamvo: there's a PR from jdstrand07:49
zygamvo: I proposed  that 2.37 become the first LTS branch that just gets bug fixes and is periodically released again07:49
zygaand that we have tracks with that version07:49
zygamvo: apart from that, we have ongoing beta validation07:50
zygamvo: and I think that's it, lots of reviews to do07:50
mvozyga: thanks07:50
mvozyga: anything holding back beta validation? I mean, any issue that prevent the move to candidate?07:51
zygamvo: I don't recall any details, sorry07:51
mvozyga: ta, I will chase it07:55
mborzeckimvo: hey07:59
pstolowskimorning08:01
mvogood morning mborzecki  and pstolowski !08:03
Chipacamoin moin08:18
Chipacaooh, new git08:18
* Chipaca accepts the gift of the apt gods 08:18
* zyga reviews https://github.com/snapcore/snapd/pull/607908:24
mupPR #6079: cmd/snap: `snap connections` command <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6079>08:24
mborzeckizyga: thanks!08:25
mborzeckizyga: https://paste.ubuntu.com/p/cJ2v9hfJhH/ snap-seccomp version is added at the very beginning08:27
mborzeckiit's the library version followed by the hash of the supported syscall names08:28
zygamborzecki: looks great,08:36
zygamborzecki: would you mind moving the hash to the 2nd line and saying what it is08:36
mborzeckizyga: mhm, and the changes aren't that huge either08:36
zygamborzecki: "# hash of sorted list of supported system calls08:36
* zyga is slow today, both wife and older daughter have fever :/08:36
zygamborzecki: bonus points for naming the hash algo08:38
wgrantmvo: Morning, welcome back.08:43
wgrantmvo: Any idea on the current situation with backporting the catalog randomisation?08:43
mvowgrant: its in beta and we uploaded the SRU last week, afaict no SRU reviewer has looked at it yet, I will poke people about it today08:44
wgrantmvo: Does that include xenial/bionic-security?08:47
mupPR snapd#6558 opened: many: remove unused code (mostly) <Created by chipaca> <https://github.com/snapcore/snapd/pull/6558>08:52
pedronismvo: hi, welcome back, hope the week (mostly) off was restful08:57
=== alan_g_ is now known as alan_g
pedronisChipaca: hi,  #6545 should be mergeable if you are ok with the tweaks I pushed there08:58
mupPR #6545: cmd/snap, daemon: make the connectivity check use GET <Created by chipaca> <https://github.com/snapcore/snapd/pull/6545>08:58
smallville7123What's the difference between kotlin and kotlin/native08:58
smallville7123What's the difference between kotlin and kotlin-native*08:58
smallville7123For example, "Kotlin/Native compiler" and "Command line Kotlin compiler"09:02
smallville7123kotlin-native            0.9.3     jetbrains  classic  Kotlin/Native compiler09:04
smallville7123kotlin                   1.3.21    jetbrains  classic  Command line Kotlin compiler09:04
Chipacasmallville7123: read the description of both?09:06
smallville7123Where do i find thay09:06
smallville7123That09:06
Chipacasmallville7123: snap info kotlin kotlin-native (snap info kot-alt-*)09:07
smallville7123  Statically typed programming language for modern multiplatform applications09:09
smallville7123Yet its summery is  summary:   Command line Kotlin compiler09:09
smallville7123So which is it -_-09:09
Chipacapedronis: you introduced a double-lock on state, there09:10
Chipacaunless i missed something09:10
Chipacanope09:10
Chipacasmallville7123: read the description? the summary was already in the output of 'snap find'09:11
smallville7123Also why are there two if both are to be the same09:11
smallville7123What does one provide that the other doesnt09:12
Chipacasmallville7123: the information is there if you read it. And ultimately, even if it weren't, ask jetbrains; how should *we* know?09:12
smallville7123Cus YOU package and provide them09:13
pedronisChipaca: ?09:13
Chipacasmallville7123: we do not package it, jetbrains does09:13
Chipacapedronis: in the POST route09:13
pedronisChipaca: are we missing a test?09:13
Chipacapedronis: the state you pass to checkConnectivity is locked09:13
smallville7123-_-09:14
pedronisChipaca: checkConnectivity and unlocks and relocks09:14
pedronisnot locks and unlocks09:14
Chipacapedronis: hah. my bad.09:14
mupPR snapd#6545 closed: cmd/snap, daemon: make the connectivity check use GET <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/6545>09:16
Chipacapedronis: any conclusion on blob vs snapfile vs ...?09:20
Chipacapedronis: wrt #653209:20
mupPR #6532: daemon: allow downloading snaps blobs via .../blobs <Created by chipaca> <https://github.com/snapcore/snapd/pull/6532>09:20
mupPR snapd#6162 closed: interfaces/greengrass_support: update accesses for GGC 1.8 <Created by anonymouse64> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/6162>09:23
pedronisChipaca: no,  was focused on 2.38 things09:23
=== cpaelzer__ is now known as cpaelzer
pedronisChipaca: could you re-review #6079 ?09:24
mupPR #6079: cmd/snap: `snap connections` command <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6079>09:24
Chipacamborzecki: 6556 is included in 6079?09:26
mborzeckiChipaca: no, i've reverted that patch from 607909:27
mborzeckiChipaca: iirc the plan is snap conenctions for 2.38, then deprecation & hide interfaces in .3909:28
Chipacaok09:28
Chipacai need to step out for a bit, i'll review when i return09:29
zygamvo: one more thing, more core18 / core discovery, one more unhandled problem09:31
zygasorry, forgot to mention09:31
zygabut we can chat again when you have time09:31
zygapedronis: on 2nd thought I think snap-confine *does* know the boot base on core09:37
zygapedronis: we  parse os-release and differentiate classic, core18, core-other09:37
pedroniszyga: does it use the info though?09:37
zygapedronis: yes09:37
zygaand specifically for this choice too09:37
zygaI will double check and see if we have any tests09:37
zygabut it may be less terrible than we thought last week09:38
mvozyga: lets talk in ~45min again then my head should be a bit less busy09:43
pedroniszyga: yes, I see the relevant code now, it's quite spread out09:44
zygapedronis: because of ns hops09:45
pedronishops?09:45
zygapedronis: we look and remember and  then use the fact much  later09:45
zygabut yeah09:45
zygajoining various namespaces09:45
pedronisthere's a helper sc_should_use_normal_mode(distro, base_snap_name)09:46
pedronisit's used exactly twice09:46
zygayeah, and distro is probed early09:46
Chipacamborzecki: +1 to 607909:49
Chipacamborzecki: thank you09:49
mborzeckiChipaca: thanks for the review!09:49
mborzeckiwill be out for a while, left a note in the forum10:02
Chipacaok, _now_ i'm stepping out for a bit10:05
* dot-tobias waves10:14
mupPR snapd#6558 closed: many: remove unused code (mostly) <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6558>10:25
pedronismvo: you should look at #6549 (there's a question there about when to cover the snapd snap), and also re-review #632210:37
mupPR #6549: apparmor: support AppArmor 2.13 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/6549>10:37
mupPR #6322: overlord/hookstate: apply pending transaction changes onto temporary configuration for snapctl get <Complex> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6322>10:37
mupPR snapd#6559 opened: pkg/apparmor: scratch documentation of apparmor <Created by zyga> <https://github.com/snapcore/snapd/pull/6559>11:05
pstolowskipedronis: hey, does this https://pastebin.ubuntu.com/p/tF3X8RV6t9/ more less match the idea re flattening? this is a dump of state with 5 timings, for each timing there are 3 nested timings, flattened per-timing11:30
pedronispstolowski: yes11:36
pedronisassuming it works as I would expect11:36
pstolowskipedronis: i'll show you an example in a moment11:36
pedronispstolowski: I mean what happens if there is more than one 1 etc11:37
pedroniszyga: it's a bit unclear which of/whether your last comments on #6549 should block it11:38
mupPR #6549: apparmor: support AppArmor 2.13 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/6549>11:38
zygapedronis: I don't want to block it yet, it mainly depends on the reaction to my small RFC branch11:39
pedroniszyga: we are trying to do 2.38 today or tomorrow11:40
zygapedronis: I see11:40
zygapedronis: I'm happy with 2.38 having this code if you don't object11:40
zygaand growing something easier to follow in master11:41
pedronisok11:41
pedroniswe still need to understand what to do about the snapd snap case11:41
pstolowskipedronis: then you have this: https://pastebin.ubuntu.com/p/Bp9gGj7gvz/ (see the first and last nested measurement of each timing)11:42
pedronispstolowski: yes, that's what I would expect11:42
pstolowskipedronis: ok, good11:42
pstolowskipedronis: and this is how it's used https://pastebin.ubuntu.com/p/5hgwQqHckt/11:50
pedronispstolowski: thx, looks reasonable11:52
mvopstolowski: nice stuff!11:55
* mvo is very excited about this feature11:55
mupPR snapd#6557 closed: tests/main/high-user-handling: fix the test for Go 1.12 (2.37) <Simple 😃> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6557>11:56
mupPR snapd#6543 closed: Add force_turbo to the list valid pi config keys <Created by sergey-borovkov> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6543>11:57
mborzeckire11:59
pstolowskipedronis, mvo thanks for quick feedback, in that case i'll polish it a bit and propose a base PR12:06
mvopstolowski: sounds great12:07
Chipacawe should split spread tests into "distros that often break because of mirrors and other related bull" and "real distros :-p", and use travis's can-fail flag for the former12:09
Chipacaallow_failures i mean12:10
=== ricab is now known as ricab|lunch
pedronismvo: it seems I created confusion with my comment about Active12:46
* zyga takes the dog out 13:01
zygamvo: I pushed an update to https://github.com/snapcore/snapd/pull/649813:01
mupPR #6498: cmd/libsnap: add cgroup-pids-support module <Created by zyga> <https://github.com/snapcore/snapd/pull/6498>13:01
=== mborzeck1 is now known as mborzecki
mborzeckidamn, sudden power loss :/13:11
ChipacaI remember having to have an UPS for my router :-)13:12
Chipacamborzecki: thank you for pointing out the changing of publisher across revisions btw13:13
mborzeckiChipaca: np13:14
Chipacait would've been a regression13:14
mborzeckiChipaca: my router & nas are under a ups already, but the desktop isnt :P13:14
ChipacaI've got these nifty computers with an integrated UPS13:14
mborzeckicall 'em laptops?13:14
Chipaca:-D13:15
ijohnsonhey folks if I wanted to see which commit of snapd the edge channel of the core snap was built from, is this doable? i.e. I currently have 2.37.4+git1173.2c7e249~ubuntu16.04.1 but 2c7e249 doesn't seem to be a commit in snapd13:29
pedronisijohnson: there is some indirection, it is built from here: https://git.launchpad.net/snapd-vendor/commit/?id=2c7e24947044fd67c166871d81374dcee76b135c13:41
ijohnsonah I see, so then that repo builds into the PPA here https://code.launchpad.net/~snappy-dev/+archive/ubuntu/edge which is then what goes into this: https://code.launchpad.net/~snappy-dev/+snap/core which is the core snap released, correct?13:45
=== ricab|lunch is now known as ricab
mvozyga: thank you for the update to 649813:58
lbordaQuestion: I have two snaps and I need them to talk each other via redirection to sterr and stout (using example juju status > file.log ) from another classic snap. Currently I get apparmor errors (DENIED) is there a slot, plug or interface I should use to make them accept the syscall ?14:19
lbordalooks like I got some help here: https://github.com/lborda/snap-bug/issues/1 will give it a try14:21
lbordasergiusens, ^ ty14:21
jdstrandlborda: the denial says you are doing something different than what you describe. perhaps use a pipe of /dev/stderr /dev/stdout?14:35
jdstranderr14:36
jdstrandpipe or* /dev/stderr and /dev/stdout?14:36
lbordajdstrand, to explain exactly what I am doing is: I am running snap-bug which call popen(juju status) and using juju status > log.file from it... should I not be using that ? see the reproducer there... I am using popen for that... https://github.com/lborda/snap-bug/blob/master/collect.py14:38
jdstrandyes, that is what I figured. the problem isn't the snaps, but snap-confine. they may be two classic snaps that are effectively unconfined, but they are going through a strictly confined snap-confine14:40
jdstrand(when you call the second snap)14:40
jdstrandsnap-confine doesn't have access to log.file, as can be seen from the denial14:41
jdstrandand it needs it due to fd inheritence14:41
mborzeckijdstrand: hi, when you have some time, could you take a look at https://github.com/snapcore/snapd/pull/6485 ?14:47
mupPR #6485: interfaces/seccomp: regenerate changed profiles only <â›” Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6485>14:47
jdstrandlborda: instead of specifying stdout and stderr as files, perhaps use Popen.communicate to get the output, then write that out yourself14:48
jdstrandthere are probably other ways to fix it14:49
jdstrandmborzecki: ack14:49
mborzeckijdstrand: thanks!14:49
lbordajdstrand, I can give it a try. looks like a workaround... is this  bug related to my issue ? https://bugs.launchpad.net/snapd/+bug/181586914:58
mupBug #1815869: Command of classic snap fails with denial when output is redirected <snapd:Fix Released by zyga> <https://launchpad.net/bugs/1815869>14:58
jdstrandlborda: the underlying issue (fd inheritence with apparmor) is the same, but that is a different issue15:02
jdstrandlborda: this has some detail: https://forum.snapcraft.io/t/snapd-2-32-breaks-live-server-installer/4597/1015:04
jdstrandlborda: but put more siccinctly, it is a limitation that should improve with time15:05
jdstrandsuccinctly*15:05
lbordajdstrand, yes agree different issue same underlying issue...15:07
lbordajdstrand, agree well let me do some attempts here... I am working on getting cdk and juju log output so we can gather logs for later troubleshooting... having access to the $USER env is a must15:08
jdstrandlborda: the individual snaps have that. snap-confine does not. it is the way you are gathering the output that is causing snap-confine to become entangled. snap-confine has access to /dev/stdout and /dev/stderr, so if you can adjsut your calls to use those, you should be fine15:10
jdstrandwhich communicate() should do (untested)15:10
lbordajdstrand, yes looks like it! :) give me a few to make changes here15:10
sborovkovhi, is there any apparmor stuff still working when snap is installed in devmode?15:14
sborovkovafter I upgraded Qt to the latest version in my snap, I can't get qt webkit running for whatever reason, even though it's still at the same version and only qt's version went up (and all other libraries it comes with)15:15
sborovkovit works fine on the raspbian with 0 issues15:15
sborovkovdoes not start even in devmode on the core15:15
zygare15:20
zygamvo: thank  you  :)15:20
zygajdstrand: hello :-)15:21
zygajdstrand: I sent a small patch to snap-confine, your review  is required https://github.com/snapcore/snapd/pull/649815:30
mupPR #6498: cmd/libsnap: add cgroup-pids-support module <Created by zyga> <https://github.com/snapcore/snapd/pull/6498>15:30
mupPR # closed: snapd#5644, snapd#5822, snapd#5915, snapd#6079, snapd#6098, snapd#6108, snapd#6177, snapd#6238, snapd#6258, snapd#6270, snapd#6322, snapd#6324, snapd#6325, snapd#6327, snapd#6329, snapd#6341, snapd#6347, snapd#6356, snapd#6360, snapd#6367, snapd#6381, snapd#6401, snapd#6404,15:30
mupsnapd#6410, snapd#6418, snapd#6436, snapd#6485, snapd#6491, snapd#6492, snapd#6498, snapd#6502, snapd#6532, snapd#6539, snapd#6541, snapd#6549, snapd#6553, snapd#6556, snapd#655915:30
mupPR # opened: snapd#5644, snapd#5822, snapd#5915, snapd#6079, snapd#6098, snapd#6108, snapd#6177, snapd#6238, snapd#6258, snapd#6270, snapd#6322, snapd#6324, snapd#6325, snapd#6327, snapd#6329, snapd#6341, snapd#6347, snapd#6356, snapd#6360, snapd#6367, snapd#6381, snapd#6401, snapd#6404,15:31
mupsnapd#6410, snapd#6418, snapd#6436, snapd#6485, snapd#6491, snapd#6492, snapd#6498, snapd#6502, snapd#6532, snapd#6539, snapd#6541, snapd#6549, snapd#6553, snapd#6556, snapd#655915:31
Chipacasborovkov: in devmode, apparmor is set to allow everything but log15:36
Chipacasborovkov: seccomp, also15:37
sborovkovChipaca, so basically nothing is forbidden? the only messages I see bbefore it crashes is that it can't create some kind of udev monitor and send some dbus commands to NetworkManager which is followed by "could not create AF_NETLINK socket" and a crash of process15:47
Chipacasborovkov: nothing is forbidden by apparmor / seccomp, but the view of the system remains the same as in strict15:48
sborovkovI guess the cause should be somewhere in there then :(15:49
Chipacasborovkov: don't you get anything in the system logs?15:51
sborovkovall I see are those errors, I pasted above, it crashes right after bbeing unable to create AF_NETLINK socket15:52
sborovkovI thought it'd work in the devmode at least but that's not the case15:52
sborovkovI guess I will try to get that process running in gdb.15:53
Chipacasborovkov: snap run --gdb ?15:55
sborovkovI did not even know that was a thing now :)15:56
Chipacasborovkov: also 'snap run --strace' :-)15:57
Chipacaand trace-exec …15:57
Chipacait's getting all fancy and grown-up15:57
sborovkovthat's pretty cool, not sure it's going to work for me though - my main process is not crashing15:58
sborovkovwebb process does15:58
sborovkovand I have done bind mount of the directory containing modified snap so gdb spews out some errors because of that I guess15:59
zygapopey: hey, sublime-text  doesn't work on 18.1016:41
zygaI'm not sure what happened because it used to work16:42
om26ercould anyone with appropriate permissions please click "retry" there ? https://launchpad.net/~build.snapcraft.io/+snap/c7f9e9a2d76707f5da7a8175b964b834/+build/48295017:00
cjwatsonom26er: done17:00
om26erapparently the upload to store failed and I can't retry (and I am not admin on that said repo to force a rebuild)17:00
om26ercjwatson, thanks :)17:00
=== pstolowski is now known as pstolowski|afk
mupPR snapd#6560 opened: cmd/snap-confine: drop uid from random /tmp name <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6560>17:04
mvo6549 needs a second review17:09
mupPR snapd#6079 closed: cmd/snap: `snap connections` command <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6079>17:10
pedronis\o/17:11
mvopstolowski|afk: I will merge 6322 - I had some nitpicks (mostly tests) but can all be followups17:11
mvopedronis: want to look at 6322 again before it goes in ?17:12
mvo6492 also needs a second review17:12
pedronismvo: 6322 should be fine if you are ok with17:13
pedronismvo: yes, 6492 is next on my list17:13
mvopedronis: I think you did 6492 already :)17:14
pedronismvo: ah, yes, was confusing it with another one17:14
mvopstolowski|afk: nice job on 6322 btw, I find this easier to read than the old code17:14
mupPR snapd#6322 closed: 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>17:14
mvopedronis: ok, I hope I did not merge too early then :/17:15
mupPR snapd#6561 opened: cmd/snap-confine: chown private /tmp to root.root <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/6561>17:48
zygajdstrand: I opened one more cleanup from my review of older notes ^17:48
zygapedronis: design quesion, should the contents of private /tmp directory be preserved across  "snap  refresh" of said snap?17:51
pedroniszyga: you mean in a world where we are sure nothing runs of the snap during the refresh?17:56
zygapedronis: yes17:58
zygapedronis: should it retain  contents across refresh?17:58
zygapedronis: today it doesn't but I don't think that was deliberae17:58
zyga*deliberate17:58
zygapedronis: it could easily do so17:59
pedroniszyga: that's interesting because I would have expected the reverse18:01
zygapedronis: why?18:01
zygapedronis: or sorry, reverse  as in, it is retained?18:02
pedronisbecause if stuff can be running, how can we delete its content?18:02
zygawe don't technically delete the contents18:02
pedronisit's a tmpfs in the namespace?18:02
zygaah, wait, I think I was mistaken a little, the conditions are more complex18:02
zygait's not a tmpfs, it's a real directory in /tmp18:03
zygawe "delete" it when the base snap changes18:03
zygabut retain it while refreshing18:03
zygaI was thinking of refreshes but it is really the base that matters here, not the app18:03
zygaso the question, asked properly is: should we retain the /tmp that snaps see when the base has refreshed (we currently do not)18:04
pedronisI need to go have dinner, seems I need to understand this more18:04
zygapedronis: sure, it's not urgent, just observation from the  two tiny patches I posted18:05
zygajdstrand: hey, I posted https://github.com/snapcore/snapd/pull/6559 with some apparmor-y things in relation to your 2.13 work18:12
mupPR #6559: pkg/apparmor: scratch documentation of apparmor <Created by zyga> <https://github.com/snapcore/snapd/pull/6559>18:12
zygajdstrand: I understand 2.13 is urgent  so I don't want to block your PR but I would like to know what you think about the ideas I posted18:13
* zyga EODs18:32
pedronismvo: I tried to answer your naming nitpick, let me know18:33
=== tobias is now known as Guest93332
mupPR snapcraft#2494 opened: sources: handle network request errors <Created by cmatsuoka> <https://github.com/snapcore/snapcraft/pull/2494>20:16
=== devil is now known as Guest97162

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