/srv/irclogs.ubuntu.com/2019/09/18/#snappy.txt

=== katnip` is now known as katnip
=== katnip is now known as Guest66061
=== Guest66061 is now known as katnip`
jdstrandroadmr: thanks! I'm hoping to have another one soon :)06:53
roadmrjdstrand: sure thing, just let me know07:03
zygarogpeppe: good morning07:06
rogpeppezyga: hiya07:07
zygarogpeppe: we're still sprinting so attention is spotty, I will not be able to do much interactive debugging today07:07
zygaI wanted to check if the board misbehaved today07:08
rogpeppezyga: yup, it's down currently07:08
rogpeppezyga: i need to work out what's going on with the memory. perhaps using too much memory is killing the whole thing.07:08
zygarogpeppe: perhaps if the service is leaking memory you can restart it on a timer07:09
zygasay hourly07:09
rogpeppezyga: i'm also wondering if it's possible that swap was configured by default before but isn't any more07:09
zygarogpeppe: I touched on the swap situation yesterday in the team but we're not sure, we need to look07:09
zygapeople here suggest that my memory is rusty and it's off by default but you can turn it on07:10
rogpeppezyga: i just added a pprof handler to the service, so hopefully i can look into it and find out what's taking all the memory07:10
rogpeppezyga: it's also possible that the newer Go version isn't garbage collecting as much07:10
zygarogpeppe: which version are you on?07:11
rogpeppezyga: 1.1307:11
zygarogpeppe: we're building snapd with 1.1007:11
rogpeppezyga: ancient :)07:12
zygarogpeppe: there were some changes in go memory handling but we have not seen actual leaks outside of a super specific case with a custom kernel07:12
zygarogpeppe: compromise for practicality :)07:12
rogpeppezyga: neither me. there's a tweakable parameter too - I could try tweaking GOGC07:14
zygarogpeppe: perhaps do one more thing07:14
zygarogpeppe: add a timer or something like that07:15
zygaor even a screen session07:15
zygathat logs dstat / top07:15
zygaso you see what's going on after it crashes07:15
zygaif it's really taking all the memory07:15
rogpeppeyeah, that's a good idea07:15
zygatop has a continuous mode, perhaps on a minute interval it would be useufl07:15
rogpeppeBTW I think i've also been bitten by that systemd bug where it loses the last few messages written to the command's output07:16
rogpeppewhich means that it loses the whole panic message when it panics (not that that matters too much - i know where the panic was coming from: the clock issue)07:16
zygarogpeppe: is it the rate limiting behavior?07:17
zygaI'm not familiar with the bug itself07:17
zygayou can also perhaps log to a file explicitly but I think journald should not behave this way07:17
zyga(it could be just a bug though)07:17
rogpeppezyga: no, the problem is that systemd uses unix socket tricks to get the process id of the writer, but when the writer has just exited, it can't do that, so the messages don't get associated with the right unit07:18
rogpeppezyga: (i can't remember if they're just discarded or if they just end up somewhere else)07:18
rogpeppezyga: i think it might be this bug https://github.com/systemd/systemd/issues/291307:19
zygachecking07:21
zygawow, that's useful07:21
mupPR snapcraft#2722 closed: meta: fixes for desktop file handling <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2722>07:29
mupPR snapd#7478 opened: snapstate: increase settleTimeout in TestRemodelSwitchToDifferentKernel <Created by mvo5> <https://github.com/snapcore/snapd/pull/7478>07:30
mupPR snapd#7479 opened: tests: skip centos when running nigthly suite <Simple ๐Ÿ˜ƒ> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7479>07:40
mupPR snapcraft#2724 opened: docs: add a Code of Conduct <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2724>07:44
sergiusensChipaca: ^07:44
sergiusensI used the contributor template on Github, it seemed a bit more project related and less Ubuntu specific (after reading the Ubuntu one)07:45
sergiusensplease tell me what you think :-)07:45
Chipacasergiusens: SGTM but I'd want to check it with somebody ubuntu-facing in canonical07:47
sergiusensChipaca: I checked with Wimpress and popey , they are +1 on this one07:48
mupPR snapd#7480 opened: store: download propagates options to delta download <Created by chipaca> <https://github.com/snapcore/snapd/pull/7480>07:48
Chipacaverterok: https://github.com/snapcore/snapd/pull/748007:48
mupPR #7480: store: download propagates options to delta download <Created by chipaca> <https://github.com/snapcore/snapd/pull/7480>07:48
Chipacasergiusens: schweet07:48
verterokChipaca: that was fast!07:48
Chipacathings are either fast, or impossible07:49
verterokheh07:49
verterokthanks07:49
Chipacanow it needs to pass pesky things like peer review07:49
Chipacamvo: https://github.com/snapcore/snapd/pull/7480.patch07:55
mupPR #7480: store: download propagates options to delta download <Created by chipaca> <https://github.com/snapcore/snapd/pull/7480>07:55
mupPR snapd#7481 opened: data/selinux: allow snapd to issue sigkill to journalctl <Simple ๐Ÿ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7481>07:55
mupPR snapcraft#2724 closed: docs: add a Code of Conduct <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2724>07:56
mupPR snapd#7482 opened: tests/main/listing: account for dots in ~pre suffix <Simple ๐Ÿ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7482>08:07
mupPR snapd#7482 closed: tests/main/listing: account for dots in ~pre suffix <Simple ๐Ÿ˜ƒ> <Created by bboozzoo> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/7482>08:16
mupPR snapd#7483 opened: We need a CoC, because people can't be nice <Created by chipaca> <https://github.com/snapcore/snapd/pull/7483>08:31
Chipacazyga: #184113708:34
mupBug #1841137: /dev/loopX devices left around for removed snap revisions <snapd:Confirmed for zyga> <https://launchpad.net/bugs/1841137>08:35
mupPR snapcraft#2725 opened: Update HACKING.md <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2725>08:56
Chipacasergiusens: CLOSE ME?08:56
sergiusensChipaca: just playing with autopkgtest08:57
Chipacaah ok08:57
mupPR snapcraft#2725 closed: Update HACKING.md <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/2725>08:59
mupPR snapd#7480 closed: store: download propagates options to delta download <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7480>09:26
mupPR snapd#7483 closed: docs: Add Code of Conduct <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7483>09:29
Chipacaverterok: on master, fwiw09:38
verterokcool09:38
Chipacaverterok: and on the 2.42 branch09:39
verterok\o/09:40
mupPR snapd#7484 opened: osutil: generalize SyncDir with FileStater interface <Created by zyga> <https://github.com/snapcore/snapd/pull/7484>10:13
zygadot-tobias: I'm investigating that issue now10:26
dot-tobiaszyga: ๐Ÿ™10:30
mupPR snapd#7481 closed: data/selinux: allow snapd to issue sigkill to journalctl <Simple ๐Ÿ˜ƒ> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7481>11:39
mupPR snapd#7474 closed: release: 2.42~pre1 <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/7474>11:41
jameshzyga: https://discourse.gnome.org/t/sandboxing-portal/1651/211:53
zygathanks11:53
mupPR snapd#7476 closed: usersession/userd: make sure to export DBus interfaces before requesting a name <Created by bboozzoo> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/7476>12:14
mupPR snapd#7485 opened: data/selinux: allow snapd/snap to do statfs() on the cgroup mountpoint <Simple ๐Ÿ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7485>12:26
mupPR snapcraft#2726 opened: Update README.md - Update information, shady staff <Created by JohnRLentonIsALyingBitch> <https://github.com/snapcore/snapcraft/pull/2726>12:26
roadmr^^ has this been reported to github abuse?12:35
diddledanroadmr: I think we're probably heading that way if not already done12:40
roadmrI did :)12:40
diddledanwe all know who it was12:40
mupPR snapcraft#2726 closed: Update README.md - Update information, shady staff <Created by JohnRLentonIsALyingBitch> <Closed by cjp256> <https://github.com/snapcore/snapcraft/pull/2726>12:47
cwayneroadmr: yep12:49
zygadot-tobias: hello14:04
zygadot-tobias: can you report snap version with the context of https://forum.snapcraft.io/t/snap-does-not-start-after-reboot/5750/10 aka https://bugs.launchpad.net/snapd/+bug/184449614:05
mupBug #1844496: โ€œDevice or resource busyโ€ error during snap refresh when using layout with variable <snapd:In Progress by zyga> <https://launchpad.net/bugs/1844496>14:05
zygadot-tobias: I attempted to reproduce it on 2.42~pre1.1 without success (aka snapd from edge)14:05
zygadot-tobias: I believe my test may be imperfect but I want to check with you first14:05
zygadot-tobias: I wrote a small test, I'll run it against older release in a moment14:07
joedborgzyga: could you please give a once over to https://forum.snapcraft.io/t/apparmor-error-when-trying-to-connect-plugs/13303?14:10
zygajoedborg: sure14:10
jdstrandjoedborg, I know what that is14:11
jdstrandzyga: ^14:11
zygaack14:11
joedborgjdstrand: ah awesome14:11
jdstrandjoedborg: can you show me your snapcraft.yml?14:11
zygathanks, I'm no longer looking unless jdstrand says otherwise14:12
zygaseems like something that instantiates the interface twice14:12
zygaso we get a duplicate14:12
joedborghttps://www.irccloud.com/pastebin/BkZH0sq0/14:12
jdstrandyes. and I think the two flavors might be used in the same app14:12
joedborgjdstrand: ^14:12
jdstrandhmm14:13
zygaks8-{kubelet,kubeproxy} are probably applied to a hook14:13
jdstrandjoedborg: can you give me the snap.yaml from the snap?14:13
jdstrandzyga: oh, yes.14:13
joedborgfrom the actual built snap?14:14
jdstrandjoedborg: did you add another hook beyond configure?14:14
jdstrandjoedborg: nm, answer that ^14:14
joedborgjdstrand: umm im not sure what that mean14:14
joedborg*means14:14
zygajoedborg: find meta/14:15
jdstrandjoedborg: what is in meta/hooks14:15
zygajdstrand: in the snap14:15
zygaer, joedborg ^14:15
joedborgahhhhh, sorry, i see14:15
joedborgno, just configure14:15
jdstrandjoedborg: can you paste unsquasfs -lls ./your.snap|grep meta14:16
jdstrandjoedborg: err, unsquashfs14:16
joedborghttps://www.irccloud.com/pastebin/hIMNXh1L/14:17
zygajdstrand: I'm surprised now14:17
jdstrandjoedborg: perhaps put the snap somewhere so I can look? (and perhaps zyga)14:18
jdstrandjoedborg: I need to step into a meeting in a moment14:18
zygaindeed14:19
joedborgno worries, 2 seconds14:19
joedborgi'll upload it to our google drive and drop the link14:24
zygathank you14:26
joedborghttps://drive.google.com/open?id=1fZXdTCW0cGHxGxSHNdkX0mQOa4OZCtAa14:29
joedborgzyga: ^14:30
zygadownloading now14:30
zygajoedborg: I have the snap now14:37
zygajoedborg: reproduced14:38
zygajoedborg: can you please file a placeholder bug, I'll use it for tracking14:38
jameshtravis seems really slow today14:42
joedborgzyga: i have a guess what it might be - i'm rebuilding now14:42
zygajoedborg: whatever it really is it's a bug on snapd for sure14:43
zygajoedborg: can you share what your idea is?14:43
zygaunless the snap is manipulating profiles directly, that is14:43
joedborgzyga: i removed the kube-proxy app from the list of apps, but retained mentions to it elsewhere14:43
zygaI don't see that app mentioned in the yaml14:44
zyga(or that string at all)14:44
zygaoh14:45
zygaI see14:45
zygathe bug is as that this interface is then added to all the apps in the snap14:45
zygajdstrand: ^14:45
mupPR snapd#7486 opened: tests: add regression test for lp: #1844496 <Created by zyga> <https://github.com/snapcore/snapd/pull/7486>14:47
zygajoedborg: it's an invalid snap.yaml but the validation layer doesn't pick this up14:48
zygawell14:48
zyganot syntactically invalid14:49
zygajoedborg: I can file a bug now if you don't have one already14:49
joedborgzyga: sorry I was in a meeting, I can raise it unless you have? Yeah I agree, snapcraft should complain14:54
zygajoedborg: I'll handle that, thank you for reporting14:54
zygajoedborg: to unblock you, remove the "unused" interface declaration14:54
zygajoedborg: the one for k8s-proxy14:54
zygaand you should be good14:54
joedborgzyga: yeah itโ€™s still building from that, Iโ€™ll let you know :) thanks!14:56
zygajoedborg, jdstrand: filed as https://bugs.launchpad.net/snapd/+bug/184454615:00
mupBug #1844546: usage of multiple flavours of kubernetes-support interface for a single app is invalid but not validated <snapd:Confirmed> <https://launchpad.net/bugs/1844546>15:00
jdstrandzyga: note that microk8s strict already does this15:03
zygajdstrand: hmm, does what exactly?15:04
jdstrandzyga: https://github.com/ubuntu/microk8s/blob/feature/strict-v2/snapcraft.yaml15:04
jdstrandzyga: uses both flavor of the kubernetes interface in the same snap (but not same command)15:05
zygaRight15:05
zygaThatโ€™s the issue here15:05
jdstrandzyga: note the 'plugs: []' which is why I asked about other hooks15:05
jdstrandzyga: I'm saying with microk8s, there wasn't the install issue15:05
jdstrandzyga: I didn15:06
jdstrand't see what was different about the new k8s-worker15:06
zygaAh15:06
jdstrand(yet, I'm in a meetin)15:06
jdstrandso I was confused why there was a problem15:06
jdstrandzyga: it is known (at least to me and samuele) that there is a problem if you don't specify plugs with hooks15:07
jdstrandnot sure I filed it15:07
jdstrandzyga: but I couldn't see the difference between the yaml I pasted and the yaml joedborg pasted15:08
jdstrandzyga: gotta run15:08
zygajdstrand: sure15:08
zygajdstrand: read the bug once you have the time to see if you agree with my analysis15:08
jdstrandok15:08
zygathank you so much :)15:08
jdstrandzyga: briefly, what you decribe is definitely a bug (and related to the one I mentioned above), but that doesn't explain joedborg's afaics since he *did* use both k8s interfaces in two places and *did* use plugs in the configure hook15:23
jdstrandwhich should've avoided15:23
jdstrandit15:23
jdstrandmeh, gotta go again15:24
mupPR snapd#7485 closed: data/selinux: allow snapd/snap to do statfs() on the cgroup mountpoint <Simple ๐Ÿ˜ƒ> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7485>15:24
mupPR snapd#7477 closed: packaging: use snapfuse_ll to speed up snapfuse performance <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7477>17:43
zygajdstrand: I think I have a different opinion on that but it's something I should revisit tomorrow with fresh eyes21:38
jdstrandjoedborg (oh, the snap you put in drive doesn't have kube-proxy. you should k8s-kubeproxy from toplevel slots23:29
jdstrandmeh23:29
jdstrandjoedborg: that was for you, but I meant to (cc zyga) ^ :)23:30
jdstrandzyga: now I understand where you were coming from. the pastes had snap.yamls with a kube-proxy command. I'll comment in the but23:30
jdstrandbug*23:31
joedborgYeah I figured that after telling zyga, I think the issue is that it passes validation23:31
jdstrandjoedborg: yes. I'm mentioning that to unblock you23:31
jdstrandjoedborg: sounds lik eyou didn't need me though. sorry for the delay. meeting then team dinner23:32
joedborgjdstrand: no worries! Thanks, hope Paris is going well. I also sent an email with a future blocker23:33
joedborgNo rush, just FYI23:33
jdstrandok23:34
jdstrandI'll comment in zyga's bug and see how much gas I have left in the tank :)23:34
jdstrandand yes, Paris is good :)23:34

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