/srv/irclogs.ubuntu.com/2021/04/01/#snappy.txt

=== amurray_ is now known as amurray
=== popey9 is now known as popey
pstolowskimorning07:09
zygagoooood morning :-)07:18
mvogood morning pstolowski and zyga!07:27
pstolowskicjwatson: hi, do you have any eta for the rollout of your cla fix?07:45
jameshpstolowski: I think the difference is that the new action doesn't whitelist existing committers, so ends up hitting LP more often07:53
jameshSetting the accept-existing-contributors input parameter might get it to pass as often as the old workflow07:53
pstolowskijamesh: ah, interesting07:54
pstolowskijamesh: would that be an argument to github action (not familiar with them)?07:57
jameshpstolowski: yeah.  I'll put together a simple PR so we have something to discuss07:58
pstolowskijamesh: thanks07:58
mupPR snapd#10104 opened: Use x-gvfs-hide mount option to hide squashfs loopback devices in Gnome gvfs <Created by lhotari> <https://github.com/snapcore/snapd/pull/10104>08:14
mupPR snapd#10105 opened: ci: set the accept-existing-contributors parameter for the cla-check action <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/10105>08:44
=== alan_g_ is now known as alan_g
jameshpstolowski: ^^^ this one will probably get you unstuck08:45
pstolowskijamesh: +1, thank you!08:48
pstolowskimvo: ^ can you given 2nd review?08:49
cjwatsonpstolowski: Hopefully today - we have some QA to do on other revisions that are in the way first09:45
pstolowskicjwatson: great, thank you. in the meantime we may have a remedy from jamesh to lessen the stress on lp (PR above)09:46
cjwatsonpstolowski: Well, fewer requests are always good, but it's not a stress thing09:46
pstolowskicjwatson: yeah i understand it's a suboptimal query; but at least this should unblock our own landings09:47
jameshIt's interesting the Launchpad API documentation says "If you want a method to check if a given person is a member of a team, you should probably look at IPerson.inTeam()", which is not exposed by the API09:59
jameshMaybe exposing that would let scripts like this perform simpler queries10:00
cjwatsonjamesh: That certainly occurred to me, but I wanted to put out the immediate fire first, especially since it's a short week10:08
* pstolowski lunch10:43
pstolowskimvo: can you merge https://github.com/snapcore/snapd/pull/10105 manually?12:33
mupPR #10105: ci: set the accept-existing-contributors parameter for the cla-check action <Skip spread> <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/10105>12:33
pedronispstolowski: are you blocked on me atm? I looked at https://github.com/snapcore/snapd/pull/10053 but don't think I can do a full review today12:51
mupPR #10053: o/snapstate: helper for getting snaps affected by refresh, define new hook <Needs Samuele review> <Refresh control> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10053>12:51
pstolowskipedronis: no i'm not, thanks for asking12:52
cjwatsonpstolowski,mvo: CLA checks should be fixed now12:59
pstolowski\o/12:59
pstolowskicjwatson: thank you!12:59
mvo\o/13:02
mupPR snapd#10100 closed: github: revert cla-check action <Skip spread> <Created by bboozzoo> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/10100>13:05
pedronispstolowski: there are a couple of failure of the degraded test in https://github.com/snapcore/snapd/pull/10077 and I'm not sure if they are related to the PR or just random (degraded does fail sometimes)13:31
mupPR #10077: o/configstate: fix panic with a sequence of config unset ops over same path <Bug> <Squash-merge> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10077>13:31
pstolowskipedronis: ok, i'll investigate, thanks for heads up13:31
jamwith snapd 2.49.2 we are seeing failures for our juju-db snap to be able to start correctly. did apparmor rules change between 2.49.0 and 2.49.2 ?13:35
mupPR snapd#10106 opened: secboot,boot: provide fde-hooks v2 API interface to hooks <Created by mvo5> <https://github.com/snapcore/snapd/pull/10106>13:35
ijohnsonjam: what system are you seeing this on ?13:35
jamfocal13:36
ijohnsonjam: with stock ubuntu kernel ?13:36
jamyes13:36
ijohnsonhmm13:36
ijohnsonjam: if you can share more details on a forum post or on a launchpad bug and we'll take a look13:37
ijohnsonplease include system journal logs from snapd as well as the output of `snap version` and `snap changes`13:37
ijohnsonalso if you are seeing juju-db not starting with 2.49.2, please try reverting with `snap revert` and then see if it works13:38
mvopedronis: I will push a PR that *may* help with the prepare issue, I have found an issues here13:48
mvopedronis: I opned 10107, let's see if it helps, I will re-run if needed13:57
mvopedronis: (if it passes I will re-run to ensure it's not chance but a real effect we see)13:57
mupPR snapd#10107 opened: packaging: stop snapd.{socket,service} before purging data <Test Robustness> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10107>14:00
pedronisijohnson: jam: we also need apparmor denial logs if any in the system log14:08
ijohnsonyes that too14:08
jamthanks, I will try to get some context for you.14:08
pstolowskipedronis: i've run degraded test manually on 20.04 and 20.10 and it passed14:10
pedronismvo: we need to tell sergio not to promote until we have clarified these issues, though maybe it was already 2.49.114:10
pedronisjam: you moved from 2.49.0 to 2.49.2,  so you don't know if the issue was already in 2.49.1 ?14:11
jampedronis, we know that we are seeing it in 2.49.2, I'm not able to reproduce locally, so I'm proxying for people in AU that were trying and didn't get it working.14:11
jammy understanding is they tried reverting to 2.49.1 but that didn't get it to work.14:11
jampedronis, so I've been able to reproduce it, is it just /var/log/syslog that you are looking for the apparmor issues?14:54
ijohnsonjam: use `journalctl --no-pager | grep DENIED` for denials14:54
jamijohnson, what is the best place to report this, open a launchpad bug and start including logs there, or a forum post (and which forum :)14:56
ijohnsonjam: let's just use the launchpad, bugs.launchpad.net/snapd14:56
ijohnsonthanks14:56
jamijohnson, so if I revert snapd, what steps do I need to do to make sure the snap is installed correctly with the old logic?14:57
ijohnsonjam: what is `snap list` on this machine ?14:57
jamI just did 'snap revert snapd' but I might have old/new install of the other snap14:58
jamhttps://paste.ubuntu.com/p/DH6cN2yYJb/14:58
ijohnsonjam: ok so you have both the `core` and `snapd` snaps installed, which gets a bit confusing, can you also revert the core snap wit h`snap revert core`, so that you are on 2.49 for both core and snapd, and then see if you can reproduce still ?15:05
jamijohnson, sure. I should also note that 'journalct | grep DENIED' is about 3.8M lines. And while I can just paste the end of it for you, is there a way I can get a reset so I can be sure I'm giving you fresh information?15:09
ijohnsonjam: what about `journalctl -b 0 --no-pager | grep DENIED` ?15:09
ijohnsonis that any shorter?15:09
ijohnsonthat should just be the current boot15:10
jam600k15:10
jamshorter15:10
jambut still a bit unweildy15:10
jambut still helpful, yes15:11
ijohnsonlet me figure out hte options to journalctl to limit it to just the past couple of hours15:11
jamijohnson, so juju-db is using core18, presumably I should revert that one as well?15:11
jamor maybe you only get snapd from core15:11
ijohnsonjam: no core18 is fine15:11
ijohnsonyeah exactly, snapd can come from either the core snap or the snapd snap, whichever is the newest iirc15:12
ijohnsonthough maybe we do have rules to always prefer the snapd snap over the core snap, I don't recall off the top of my head, but I know that re-exec like this is confusing :-|15:12
jamcore                 16-2.49            10859  latest/stable    canonical✓  core15:12
jamsnapd                2.49               11107  latest/stable    canonical✓  snapd15:12
jamjuju-db              4.0.9              29     4.0/stable       juju-qa     -15:13
jamso with those, I am still seeing the issue, though I have re installed a second time juju-db15:13
jamafter the revert15:13
ijohnsonjam: ok, here's for the past 1 hour `journalctl --no-pager --since "$(date -d '1 hour ago' "+%Y-%m-%d %H:%M:%S")" | grep DENIED`15:17
ijohnsonyou can change that to however many hours you need to demonstrate when juju-db fails to start15:17
jamsure. I can actually use that to 'now' go run the thing, and then give you just the recent content. Thank you15:18
jamso just with the reproducer, I get:15:20
jam$ sudo journalctl --no-pager --since "$dt" | grep DENIED15:20
jam42:Apr 01 10:20:25 focal audit[3611588]: AVC apparmor="DENIED" operation="open" profile="snap.juju-db.mongod" name="/sys/block/" pid=3611588 comm="mongod" requested_mask="r" denied_mask="r" fsuid=1001 ouid=015:20
jam44:Apr 01 10:20:25 focal kernel: audit: type=1400 audit(1617290425.219:322223): apparmor="DENIED" operation="open" profile="snap.juju-db.mongod" name="/sys/block/" pid=3611588 comm="mongod" requested_mask="r" denied_mask="r" fsuid=1001 ouid=015:20
ijohnsonhmm doesn't seem like it would have been related, so to beclear after core at 16-2.49 and snapd at 2.49, you can still reproduce the issue with juju-db ?15:22
jamreverting to core 16-2.49 and snapd 2.49 I'm still seeing the failure, yes. so it doesn't seem related to 2.49.2 at least.15:23
ijohnsonjam: can you confirm the output of `snap version` too ?15:23
jam$ snap version15:23
jamsnap    2.4915:23
jamsnapd   2.4915:23
jamseries  1615:23
jamubuntu  20.0415:23
jamkernel  5.4.0-70-generic15:23
ijohnsonok, so I think we can confirm this is not related to the 2.49.2 release at least15:24
ijohnsonbut please file a bug on launchpad with all these details and we'll have a look15:24
ijohnsonalso journal of the failing unit would be useful, you can get that for the last hour with:15:24
ijohnson`journalctl -u snap.juju-db.* --no-pager --since "$(date -d '1 hour ago' "+%Y-%m-%d %H:%M:%S")" `15:24
jamijohnson, so just to confirm, the snap I'm running appears to be:   4.0/stable:       4.0.9  2019-06-05 (29) 62MB -15:27
jamwhich means it hasn't been changed for about 1.5years, thus isn't the source of it not working now.15:28
ijohnsonright agreed, but seeing how it is failing to start will be helpful to understand what else might have changed to break it15:28
jamsure. I just wanted to make sure my understanding of what I was running was the right one. :)15:29
diddledanello folks. I'm looking into WSL2's native gui support - they put the wayland socket at /mnt/wslg/runtime-dir/wayland-0 and the pulseaudio runtime at /mnt/wslg/runtime-dir/pulse (containing native and pid)15:29
ijohnsonhey diddledan15:30
diddledanif we want to ever support GUI snaps on WSL2 we'll need to allow those locations methinks15:30
diddledan(I have an issue with XWayland via their native support right now, but I think that's a WSL bug rather than because I've started systemd)15:31
jamijohnson, the specific failures seem to revolve around: 2021-04-01T11:29:21.722-0400 W FTDC     [initandlisten] Error getting directory iterator '/sys/block': Permission denied15:31
diddledanif you want to play along at home, I enable systemd with https://github.com/diddledan/one-script-wsl2-systemd15:32
ijohnsonjam: right, certainly seems related15:32
diddledanspecifically https://github.com/diddledan/one-script-wsl2-systemd/tree/build-21286+15:32
ijohnsondiddledan: so you think the wayland interface needs to also allow permission to read/write to /mnt/wslg/runtime-dir/wayland-0 and the audio-playback interface needs to allow permission to /mnt/wslg/runtime-dir/pulse ?15:33
diddledanthat's what I was thinking, yes. The alternative would be to expose those via bind-mounts into the snap world view15:33
ijohnsonah right because probably most linux apps are not going to look there they are probably going to look in the existing one in `/run/user/[0-9]*/wayland-[0-9]*`15:34
diddledanright. although WSL does set XDG_RUNTIME_DIR to point to /mnt/wslg/runtime-dir but that gets nuked when we launch a strictly confined snap15:35
ijohnsonhmm yeah I guess I would be curious to hear what jamesh has to say about that, I admit to being fairly ignorant about wayland specifics15:36
diddledanme too :-)15:36
diddledanenthusiatic amateur covers me ;-p15:36
diddledanPULSE_SERVER=/mnt/wslg/PulseServer is set in the environment of WSL too15:37
diddledanthat's another socket file so probably also needs to be considered15:38
diddledanthey also look to be starting a dbus daemon and putting it's runtime dir at /mnt/wslg/runtime-dir/dbus-1 and also dconf at /mnt/wslg/runtime-dir/dconf15:39
jamijohnson, I was trying to create a reproducer with a more minimal configuration. however, I can't figure out where the charm is *supposed* to be able to write data. $SNAP_DATA it complains is read-only15:44
diddledanjam: are you running as root?15:45
diddledan$SNAP_DATA is only writable by root, see15:45
jamk. Well historically we use 'juju-db.mongod' to initialize our test suite, but any dir under $HOME it is now telling me that it is readonly15:46
jamso I was trying to find a better dir for it to play in15:46
diddledanhmm, $HOME should be writable15:46
jamso I was able to 'snap run --shell juju-db.mongod mkdir /tmp/foo' and create stuff there (which looks to be /tmp/snap.juju-db/tmp/foo) which at least gets me past the readonly error15:49
ijohnsonjam if you can't get a minimal reproducer that's fine, the full reproducer should be useful anyways15:52
ijohnsonI do note that you are using charms, which adds a whole other layer of fun on top of snaps15:52
diddledan;-)15:53
jamijohnson, so in this case, I'm just running a test suite locally, which means it is *just* snaps15:54
ijohnsonah perfect15:54
diddledanijohnson: I've documented all my findings about the WSL gui support in a bug for snapd https://bugs.launchpad.net/snapd/+bug/192226216:04
mupBug #1922262: Add support for WSL2 Native GUI capability <snapd:New> <https://launchpad.net/bugs/1922262>16:04
ijohnsonnice thanks for that16:04
mvopedronis, ijohnson 10107 looks promising, first run did not error in prepare anywhere, I triggered a re-run16:35
ijohnsonNice16:37
=== ijohnson is now known as ijohnson|lunch
* mvo calls it a day but I will check mattermost and tg16:49
mupPR snapd#10102 closed: daemon: introduce apiBaseSuite.(json|sync|async|error)Req  (and some apiBaseSuite cosmetics) <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10102>19:06
=== ijohnson|lunch is now known as ijohnson
diddledanwho do I have to sweet-talk into making it so the store won't issue a 500 error when you upload a >~1GB snap?!22:11

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