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

mupBug #1916816 opened: File picker and other native windows have garbled fonts in Arch & Manjaro <fonts> <Snappy:New> <https://launchpad.net/bugs/1916816>03:09
mupBug #1916816 changed: File picker and other native windows have garbled fonts in Arch & Manjaro <fonts> <Snappy:New> <https://launchpad.net/bugs/1916816>03:12
mupBug #1916816 opened: File picker and other native windows have garbled fonts in Arch & Manjaro <fonts> <Snappy:New> <https://launchpad.net/bugs/1916816>03:15
padgeoerheks: I ended up nuking the system, reinstalling snapd, then restoring from the snapshot that I made after things went south. Then I installed the Nextcloud snap after that. Everything is fine now -- I didn't lose anything. But my fs was boogered up from crashing, I guess.03:40
padgeoerheks:  I ended up nuking the system, reinstalling snapd, then restoring from the snapshot that I made after things went south. Then I installed the Nextcloud snap after that. Everything is fine now -- I didn't lose anything. But my fs was boogered up from crashing, I guess. (repost in case you missed it, and in case you care)03:53
mborzeckimorning06:56
mborzeckimvo: hey07:45
mvogood morning mborzecki07:48
mupPR snapd#9884 closed: tests/main/snap-repair: test running repair assertion w/ fakestore  <Test Robustness> <UC20> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9884>07:53
pstolowskimorning08:08
jameshalan_g: I think https://github.com/MirServer/snapd/pull/4 should help fix the spread failures in your desktop-launch PR08:09
mupPR MirServer/snapd#4: usersession/userd: only pass --collect if we have a new enough systemd <Created by jhenstridge> <https://github.com/MirServer/snapd/pull/4>08:09
mupPR snapd#9952 closed: interfaces: allow reading the Xauthority file KDE Plasma writes for Wayland sessions <Needs Samuele review> <Needs security review> <Simple 😃> <Created by jhenstridge> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/9952>08:13
mborzeckimvo: can you cherry pick https://github.com/snapcore/snapd/pull/9952 to 2.49?08:18
mupPR #9952: interfaces: allow reading the Xauthority file KDE Plasma writes for Wayland sessions <Needs Samuele review> <Needs security review> <Simple 😃> <Created by jhenstridge> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/9952>08:18
mvomborzecki: sure, done08:22
mborzeckimvo: thank you!08:22
mborzeckihmm the version i get in snap/snapd binaries built out of the development tree are weird, they are like `+git1000.gb5e86eb`08:23
mvomborzecki: oh, hm, it should be relativel to the last stable tag08:24
mborzeckimkversion didn't change recently08:24
mborzeckimvo: https://github.com/snapcore/snapd/pull/9961 fixes it for me08:31
mupPR #9961: mkversion: check that version from changelog is set before overriding the output version <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9961>08:31
mborzecki(and I can refresh snapcraft again)08:32
mupPR snapd#9961 opened: mkversion: check that version from changelog is set before overriding the output version <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9961>08:33
zygahello guys!08:41
mborzeckizyga: hey08:44
zygahttps://git.ostc-eu.org/OSTC/OHOS/components/staging/xts_acts/-/pipelines/115608:44
zygafirst spread job in openharmony08:45
zygafingers crossed, it will probably not work okay :)08:45
zygawith a bit of luck the results will be displayed in gitlab UI08:45
zygaas a nice navigable set of suites and tests08:45
mborzeckimvo: intersting, didn't realize we had HostScaledTimeout, should we fixup all the places where settle and other timeouts are used in the tests?08:46
mvomborzecki: it's probably fine, we added it because of the slow risv-v virtual builders but it's been a problem only in some of the tests08:47
mborzeckiok08:47
mvomborzecki: in theory it would be good to be consistent but probably not worth it08:47
zygamborzecki, it was added for riscv IIRC08:47
mvozyga: woah, nice08:47
zygamvo, exploring the unknown :)08:48
mvozyga: "To boldly go where no man has gone before!"08:49
zygamvo, I can repeat that, it will be even more interesting in zephyr08:50
=== oerheks1 is now known as oerheks
mupPR snapd#9945 closed: cmd/snap, boot: add debug set-boot-vars <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9945>09:48
=== TooLmaN_ is now known as TooLmaN
=== jnsgruk0 is now known as jnsgruk
=== padge_ is now known as padge
=== not_phunyguy is now known as phunyguy
=== mborzeck1 is now known as mborzecki
zygamvo_, one more patch for spread https://git.ostc-eu.org/OSTC/packaging/spread/-/blob/master/debian/patches/0004-Allow-disabling-kvm-with-SPREAD_QEMU_KVM.patch10:17
mupPR snapd#9962 opened: asserts: include the assertion timestamp in error message when outside of signing key validity range <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9962>10:48
mborzeckicachio: hi, did you get a chance to play with the openssue images from yesterday?11:01
pstolowskipedronis_: do you think refreshing of validation set asserts on install/remove deserves own task handler? while on install we can do it in validate-snap, for remove i don't see a good candidate11:20
mupPR snapd#9963 opened: wrappers: install D-Bus service activation files for snapd session tools on core <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/9963>11:24
=== pedronis_ is now known as pedronis
pedronispstolowski: we can't do it with a task, we need to do it before we do the actual operation11:27
pedronispstolowski: is the same as how we refresh snap-declarations11:27
pedroniswe do that from daemon or helper, not tasks11:27
pstolowskihmm11:28
pedronispstolowski: but yes, it's different from snap-declarations, we really need the snap declaration to do the actual ops, but for validations they matter before and during we talk to the store11:28
pedronisnot after11:28
pedronisbasically there is nothing to do in validate-snap about validation sets11:29
pedronispstolowski: you sound a bit confused, maybe we shouuld have a chat11:29
pstolowskipedronis: if you have a moment that would be great i think11:33
pedronispstolowski: going to the SU11:36
cachiomborzecki, hi12:00
cachioyes12:00
cachioI created a new image based on the one published for openstack12:00
mborzeckicachio: did you manage to get it to boot in gce?12:01
cachioit is getting stuck also that one12:01
mborzeckicachio: on govendor sync?12:01
cachiomborzecki, yes, I had to update that12:01
cachiomborzecki, yes12:01
zygahey cachio12:01
mborzeckicachio: can i try that somehow?12:01
cachiothe image is published12:01
zygacachio, I have four patches for spread now12:02
zygacachio, no luck in merging anything recently though12:02
mborzeckicachio: ah, so i can just lanuch a test on tw with spread and it should pick up the new image?12:02
cachiomborzecki, opensuse-tumbleweed-2-64-base-v2021022412:02
mborzeckioh, ok12:03
mborzeckithanks12:03
cachiono12:03
cachiothis is the new imaage12:03
cachiothe disk is not big12:03
cachiobut it is just for testing12:03
cachiozyga, hey12:03
cachionice12:03
cachiozyga, it is difficult to merge patches in spread :)12:03
cachiozyga, which are the new patches?12:04
mborzeckicachio: thanks12:12
zygacachio, I didn't open the PRs yet, they are all here: https://git.ostc-eu.org/OSTC/packaging/spread/-/tree/master/debian/patches12:13
cachiozyga, awesome, I'll take a look12:14
zygacachio, I can open a few PRs if you want12:14
zygawe can discuss there12:14
zyganiemeyer_, do you have some time to review several small spread patches?12:15
cachiozyga, it is ok for me, if you have patches it is better to add a pr12:15
zygacachio, yeah, I'll do that in a moment12:16
cachiotx12:18
* cachio afk 12:20
cachiomborzecki, hey https://paste.ubuntu.com/p/jVYtFCvbgP/13:04
cachiothis is what I found in tes tsecurity-dev-input-event-denied13:04
cachioadter connect the joystick, apparmor is not denying any more13:05
cachiosomething else is doing that13:05
mupPR snapd#9964 opened: asserts: use Fetcher in AddSequenceToUpdate <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9964>13:14
ijohnsonmorning folks13:18
zygahey ijohnson13:38
ijohnsonhello zyga13:38
zygacachio, udev13:38
zygacachio, you can verify that by looking at the device cgroup13:38
zygaand listing the set of allowed devices13:38
zygacachio, check out /sys/fs/cgroup/devices/snap.snap-store.ubuntu-software/devices.list (the snap name is just an example)13:39
zygacompare that with stat /dev/input/event213:40
zygait's based on major:minor numbers13:40
cachioon that13:42
cachiozyga, access is different13:43
cachiohttps://paste.ubuntu.com/p/BtMyBXGVpW/13:43
cachiohttps://paste.ubuntu.com/p/kB6WF8hrp4/13:44
mborzeckicachio: got this on opensuse: https://paste.ubuntu.com/p/vZPPTtCy6z/ looks like we need to accept the key somehow14:25
cachiomborzecki, yes14:26
cachioupdate the line to zypper --no-gpg-checks ref14:26
cachioline 560 in spread.yaml14:26
mborzeckiok14:26
zygacachio, stating the device cgroup file is useless, that is not relelevant there14:44
zygacachio, just the major:minor of the input device14:44
zygaand the contents of the access list14:44
zygabut this should give you everything to debug the rest14:44
cachiozyga, sure, let me create a new debug session14:45
zygamborzecki, I know that14:57
* zyga thinks14:57
zygathere's a command line option to agree14:57
mborzeckicachio: heh, still fails in the kernel: https://paste.ubuntu.com/p/mH3C3ftRY8/14:58
cachiomborzecki, yes14:59
cachioit is the same error that we got with the previous image14:59
mborzeckicachio: filed https://bugzilla.suse.com/show_bug.cgi?id=118276115:05
cachiomborzecki, awesome15:07
cachiothanks15:07
mborzeckihmm, maybe on monda i can try to fork their kiwi repo, and build as an image with ext4 instead of xfs15:08
ijohnsonhey cachio so I looked at your pastebins above about the device group vs apparmor denial and I think I see the problem15:09
cachioijohnson, nice, which is it?15:09
ijohnsoncachio: in https://paste.ubuntu.com/p/BtMyBXGVpW/ we can see that the device major/minor number for /dev/input/event2 is (in hex) d,42 (or in decimal 13,66)15:10
ijohnsonbut from your other paste, https://paste.ubuntu.com/p/kB6WF8hrp4/ the device cgroup does not have any rules for major number 1315:10
ijohnsonso for whatever reason /dev/input/event2 on this system has a device major/minor number that we don't allow for15:10
cachioijohnson, ah, well, that explains why it is failing15:11
zygaijohnson, what's the test scenario15:12
zygaI mean, we know about several bugs in how this works15:13
ijohnsonzyga: the security-dev-input-event-denied spread test fails15:13
ijohnsonzyga: see cachio's PR #996015:13
mupPR #9960: tests: update permission denied message for test-snapd-event on ubuntu 2104 <â›” Blocked> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9960>15:13
zygaijohnson, looking15:14
ijohnsonhmm although now I'm confused15:16
ijohnsonthat bit of the test is supposed to fail on AppArmor, not on the device cgroup15:17
ijohnsonso the fact that we don't have rules in the device cgroup makes sense15:17
zygacachio, ijohnson: do we know what changed?15:21
zygais it a new kernel?15:22
ijohnsonzyga: this test has been sporadically failing on arch, ubuntu 18.04, 20.04, and possibly others for a few months now, at least a couple times a week I have seen this failure15:23
zygaijohnson, weird and interesting15:23
ijohnsonwhen I try to reproduce it I always seem to fail, but maybe cachio can now reproduce it consistently with 21.0415:23
ijohnsonI added some more thoughts to the PR15:23
zygamaybe something is racy15:23
zyga name="/dev/input/event2" pid=32386 comm="read-evdev-devi"15:24
zygawhat is that program?15:24
zygaread-evdev-device?15:24
cachioit always fails for me15:24
ijohnsoncachio: which system ?15:24
zygais that a test program15:24
zygait's a bit opaque in test-snapd-event15:25
ijohnsonzyga: that program is tests/lib/snaps/test-snapd-event/bin/read-evdev-device script15:25
zygaah, so not a part of udev or something like that15:25
ijohnsonit just tries to open the /dev node15:25
* zyga looks 15:25
ijohnsoncachio: if you can reproduce it please let me know what system you can reproduce it on, I would be really interested in reproducing it here too15:26
zygahmm15:26
zygalooks complex15:26
zygabut in reality it means that the device just refuses to open15:26
cachioijohnson, well, I reproduce it running -> spread -debug google:ubuntu-21.04-64:tests/main/security-dev-input-event-denied15:28
zygaijohnson, when you run it locally, have a look at the apparmor and device list before trying15:28
zygato see if it makes sense in both cases15:28
* zyga goes to deploy DCO checks15:28
ijohnsonzyga: well I think what this means (the err msg being EPERM and not EACCESS) w/ the interface disconnected is that something was let through AppArmor first or for some odd reason we checked the device cgroup first15:28
ijohnsonthanks for your thoughts zyga, ttyl15:28
ijohnsoncachio: great, let me have a try here15:28
zygaijohnson, I think those are under kernel control15:28
zygaunless something broke and now we check something that was dormant before15:28
zygaping me back, I'll be around15:28
ijohnsonyeah I dunno, I'm trying to reproduce on hirsute15:37
* zyga runs 20.04 on the thinkpad and 20.10 on the desktop15:42
pedronispstolowski: I did a pass on the assertstate bits of #992216:19
mupPR #9922: api: validation sets monitor mode <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9922>16:19
pstolowskipedronis: ty16:19
pedronispstolowski: let me know if my comment are unclear, anyway worst case we'll chat on Monday as you are off tomorrow16:32
pstolowskisure16:32
* cachio lunch16:37
ijohnsoncachio: zyga: so I have confirmed that at least on hirsute, indeed the device cgroup is being used _before_ apparmor, so if I add the /dev/input/event2 to the device cgroup for the snap, then instead of getting EPERM from the device cgroup, I now get EACCES from AppArmor, and this is 100% reproducible for me16:55
ijohnsonso I think something has changed in hirsute for some reason16:55
zygaijohnson, ha16:55
zygainteresting16:55
zygayeah, must be the new kernel16:55
zygaijohnson, it's still cgroup v1?16:55
ijohnsonthis could be what changed in the other systems too, but what's weird is we see this same failure in like bionic for example on GCE, which shouldn't be using the new kernel16:55
ijohnsonzyga: I need to check but I'm fairly confident that the move to cgroups v2 for ubuntu was pushed out to 21.1016:56
zygajust type mount16:56
ijohnsonhttps://www.irccloud.com/pastebin/T9pMQVDp/16:57
ijohnsonI think that means hybrid ?16:57
zygayeah but without any controllers in v216:58
zygaso cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) matters16:58
zygaso v1 in practice16:58
ijohnsonright which should be what is in i.e. bionic too16:58
zygaijohnson, my suggestion would be to ask jj or the kernel team16:59
ijohnsonzyga: ack thanks yeah this does seem some sort of kernel related issue16:59
zygaijohnson, I hope :)17:04
pstolowskipedronis: i addressed most of your comments but not all, just pushed what i've but it's not ready for re-review yet, i need to ponder a bit about these tests17:13
Cuareo k17:18
ijohnsonzyga: one more thing if you're curious, I can reproduce this with the generic kernel we have in hirsute, not just the gce one, and interestingly the gcp kernel is 5.8 based, while the "new" one in hirsute is 5.10, so I actually am not sure that it is kernel related17:21
=== ijohnson is now known as ijohnson|lunch
zygaijohnson|lunch, oh17:21
zygaijohnson|lunch, what makes you think this is not related to the kernel?17:23
ijohnson|lunchbecause it is happening with an older kernel in gce and a new one17:23
ijohnson|lunchbut yeah honestly don't know, but I did ask jj17:24
ijohnson|lunchso we'll see what he thinkgs17:24
ijohnson|lunchanyways lunch for realz this time17:24
zygaah, I misread that17:25
zygaso it happens with two different kernels (5.8 and 5.10)17:25
zygawhat was the last working kernel?17:25
zygaenjoy :)17:25
* zyga EODs17:31
=== ijohnson|lunch is now known as ijohnson|groceri
padgeIs there a convention for snap authors (looking at Nextcloud) to release news about upcoming efforts/releases?19:04
=== dariball_ is now known as dariball
=== ogra_ is now known as Guest97578
=== ba is now known as bandali
=== E_Eickmeyer is now known as Eickmeyer
=== ijohnson|groceri is now known as ijohnson

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