/srv/irclogs.ubuntu.com/2021/02/17/#snappy.txt

=== ijohnson|lunch is now known as ijohnson
mborzeckimorning07:04
mborzeckimvo: hey08:00
mvogood morning mborzecki08:03
pstolowskimorning08:06
mvogood morning pstolowski08:06
mborzeckipstolowski: hey08:09
pstolowskio/08:10
mborzeckihaha, so i think i've reproduced a strange scenario that was reported in the forum09:12
mborzeckithere's a gnome-platform content snap used by gimp09:12
mborzeckii ran gimp, then i enabled parallel-instances, installed hello-world_foo and ran it09:12
mborzeckinow gimp does not work09:13
mborzeckithe LD_LIBRARY_PATH is missing entries pointing to gnome-platform snap09:14
mborzeckithe $SNAP/data-dir/gnome-platform directory is empty, there should be a gnome-platform snap content09:15
mborzeckidiscarding the mount ns fixed that ofc09:18
mborzeckidegville: hi, i've added a note under the parallel installs doc page: https://forum.snapcraft.io/t/parallel-installs/7679/18 do you think it's something we could put in the admonition box at the top of the page too?09:37
degvillemborzecki: morning! yes, definitely. I'll do that now - thanks!09:37
mborzeckidegville: cool, thank you!09:38
mvomborzecki: I updated 9907, a quick look would be cool, it should DTRT now for kernel refreshes, if all of this looks reasonable I will create the manager tests for the refreshes from old-style to new  style next09:46
mvo(cc pedronis -^)09:47
pedronismborzecki: fun, if we turn it on by default we need to decide what to do in general09:50
pedronismborzecki: also is this behavior new? it was never reported09:51
mborzeckiit's not new, it's been like this at least for a couple releases, since 2.43 most likely09:52
pedronismvo: we need to still land #9859 first?09:55
mupPR #9859: overlord: add manager gadget refresh test <UC20> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9859>09:55
mvopedronis: that would be good yes10:07
* pstolowski dentist10:32
Laneyhey (mvo?), I was just notified that proposed-migration is crashing in focal. There's probably a bug on our side there but I think I could quickly work around it if I could delete snapd's old binaries on riscv64: https://paste.ubuntu.com/p/2ZBtV7K5kP/ - what do you think of that?11:24
LaneyI did try to retry that build but it just fails instantly with no log, have asked LP what's up with that11:24
mvoLaney: thanks for letting me know. it's fine to delete snapd on riscv64 for now11:25
Laney\m/11:26
mupPR snapd#9928 closed: boot: cmd/snap-bootstrap: handle a candidate recovery system <⛔ Blocked> <Created by bboozzoo> <Closed by bboozzoo> <https://github.com/snapcore/snapd/pull/9928>11:31
pedronismvo: I'm confused by you rcomment in #9907, updates and install don't need to do the same thing (for now)12:05
mupPR #9907: gadget,devicestate: perform kernel asset update for $kernel: style refs <UC20> <⛔ Blocked> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9907>12:05
pedronismvo: I commented there too12:05
mvopedronis: thanks, looking12:07
mvopedronis: aha, I see. sorry, well, I meant to look at this but I can remove the blocked for now12:08
mvopedronis: sorry for the confusion12:08
pedronismvo: well, we need to fix that but is relevant only for prepare-image12:09
pedronismaking updates fully multi-volume is a much larger task12:09
* mvo nods12:11
pstolowskire12:20
pedronismvo: I made some comments in #990713:35
mupPR #9907: gadget,devicestate: perform kernel asset update for $kernel: style refs <UC20> <⛔ Blocked> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9907>13:35
mvopedronis: \o/ thank you13:44
pedronismvo: it's missing unit tests about the new code also?13:49
pedronismvo: I mean I don't see a lot of new tests in gadget and devicestate13:49
mvopedronis: yes, lots more needed14:01
abeatomvo, pedronis fyi, this MR improves apparmor_parser runtime quite a bit, and when it lands, the `-O no-expr-simplify` parameter used by snapd will not be needed anymore (actually removing it will make things faster): https://gitlab.com/apparmor/apparmor/-/merge_requests/71114:09
mvoabeato: I saw the PR yesterday, it's very cool. what are the chances for this going upstream?14:10
abeatomvo, well, it's merged now :)14:10
mvoabeato: woah, nice14:10
=== alan_g_ is now known as alan_g
zygare14:36
zygahey degville, long time no see :)14:36
degvillezyga: hello!!! hope you're doing ok :)14:36
zygadegville I'm quite busy, not the holidays I was expecting :)14:41
zygaand working from home with kids and working wife is, challenging at times14:41
zygabut I'm good, learning a lot and driving a lot :)14:42
zygaI still use your mike :)14:42
mvoabeato: sorry, was in a meeting. this is great news. I guess we need to wait a bit with the rmeoval of no-expr-simplify until we have apparmor released widely enough with your improvement14:59
abeatomvo, sure it will take a bit of time indeed. There is some discussion in the MR about vendoring apparmor_parser, does that mean that snapd snap will include its own apparmor_parser binary?15:01
mvoabeato: I think that is what the security team suggested - to vendor apparmor_parser inside the snapd snap15:02
abeatomvo, interesting. Of course that will make easy to include this change.15:02
mvoyeah15:02
abeatothat's great :)15:03
degvillezyga: great to hear the mike is still being used! It's s shame we never got around to the podcast, but maybe one day :) And yeah, it's tough at home with the kids. It's the same here - this week they're holiday which is a useful respite.15:19
zygadegville I'm still open to doing a podcast at some point but now I'm just too busy to add anything new15:19
=== King_InuYasha is now known as Conan_Kudo
degvillezyga: cool. Let's reconvene when everything has settled a little more :)15:20
=== Conan_Kudo is now known as King_InuYasha
ijohnsoncachio: so I ran uc20-recovery external with my pi and it worked fine with snapd from stable, should I try candidate or beta of snapd next ?15:43
cachioijohnson, yes, I can point you to the image I used15:44
ijohnsonah ok great15:44
mupBug #1915642 changed: snapd: dbus avc permissions denied <Snappy:Fix Released by maciek-borzecki> <https://launchpad.net/bugs/1915642>16:03
* cachio lunch16:37
mupPR snapd#9792 closed: tests: enable ubuntu 21.04 for spread tests <Squash-merge> <Created by sergiocazzolato> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9792>16:43
mvocachio: hm, 9792 still gives me "2021-02-17 14:33:54 Cannot allocate google:ubuntu-21.04-64: cannot allocate new Google server google:ubuntu-21.04-64 (feb171430-514043): cannot find ready marker in console output for google:ubuntu-21.04-64 (feb171430-514043)" in the logs?16:48
zygahey mvo16:52
zygahow is today?16:52
zygaI had a long day16:52
mvozyga: same here16:58
mvozyga: and it's not over yet16:58
zygaoh16:58
zygaI'm sorry, I'll let you work16:58
cachiomvo, yes, the problem in the image is not fixed17:16
cachioI'll ping cloud team17:16
cachioI already raise that problem17:16
mupPR snapd#9938 opened: daemon: move single snap querying and ops to api_snaps.go <Created by pedronis> <https://github.com/snapcore/snapd/pull/9938>17:18
=== ijohnson is now known as ijohnson|lunch
mvocachio: thank you!18:06
cachioijohnson|lunch, hey, could you reproduce the errorr?19:52
=== ijohnson|lunch is now known as ijohnson
ijohnsoncachio: yeah actually it failed, it couldn't restore20:32
ijohnsonhttps://www.irccloud.com/pastebin/05EN3tMb/20:32
ijohnsoncachio: heh I seem to have finally reproduced that infinite mounting situation that broke the tpe server with this test a long time ago if you recall20:48
ijohnsonmaybe that's what is happening for your system too20:49
cachionice20:50
cachiodo you need the console for the vm?20:50
ijohnsonno idea how this happened20:50
ijohnsoncachio: I'll let you know, it will probably fail in a few minutes, so not quite yet20:50
cachioijohnson, I remember that error20:50
ijohnsoncachio: could you send me the console output from that gce instance now?20:57
ijohnsonI think it should be stuck now, or if not it should be stuck soon20:57
cachioijohnson, https://paste.ubuntu.com/p/wbHKhXbc57/20:57
ijohnsoncachio: ah thanks that was super helpful, I think that the virtual disks in gce are weird/unexpected for my code21:00
cachioahh, nice21:01
* cachio afk+21:21
ijohnsoncachio: when you get back can you send me the console output for feb172110-529289 ?21:31
=== mup_ is now known as mup
cachioijohnson, https://paste.ubuntu.com/p/qwpNhHbvPv/22:15
cachiosorry for the delay22:15
ijohnsoncachio: no worries thanks for that info, also I reflashed my pi with your image and re-ran uc20-recovery and it worked, so I think there's some kind of race condition around the restoring process and if we hit that race condition there is some sort of infinite mount problem that makes the test fail22:34
zygathat mount be it22:37
* zyga runs22:37
ijohnsonhaha22:41
zyga"infinte" mounts can happen when rbinding something that's not protected with unbidnable22:47
ijohnsonmmm interesting22:47
zygait's sadly copied, not "symlinked" so that does tend to explode22:47
zygawe do that in writable mimic logic IIRC22:48
ijohnsonhmm but I'm not rbinding the mount22:48
ijohnsonall I do is22:48
ijohnsonsudo mount --bind /host/ubuntu-data/user-data/gopath /home/gopath22:48
ijohnson(where /home is on a tmpfs, not actually on ubuntu-data)22:49
zygaijohnson I can only find https://github.com/snapcore/snapd/blob/f9db38ed6d71d2c356bdf55297ddd1358223d397/cmd/snap-confine/mount-support.c#L23922:49
zygaI thought we also did this from snap-update-ns22:50
ijohnsonthis is the code22:50
ijohnsonhttps://github.com/snapcore/snapd/blob/release/2.49/tests/core/uc20-recovery/task.yaml#L64-L7222:50
ijohnsonoh unless you're saying maybe something from snapd is _also_ doing a bind mount on top of what my sshrc script is doing22:50
zygawhy the /dev/null redirect?22:50
ijohnsonjust to not confuse ssh since this is run every time someone logs in over ssh22:51
ijohnsonerr rather22:51
ijohnsonjust to not confuse spread, since it logs in over ssh22:51
zygawait?22:51
zygaevery time?22:51
ijohnsonuh yeah, but there should only be one command run this way, since the test logs in runs a check, then reboots to go back to run mode22:52
zygadid you try to a dd some guard?22:52
zyganot sure but I would definitely check22:52
ijohnsonI could try that, but this is the first I've managed to reproduce it22:52
zygaI mean, it's super hard to know without seeing the kernel console22:52
ijohnsonmmm I think I lost dmesg from that run22:52
zygabonus points for forkstat logged over serial22:52
ijohnsonbut I can try and save that next time I see it22:53
zygayeah, I'd love to have a look22:53

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