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

mborzeckimorning06:45
=== mborzeck1 is now known as mborzeck
=== mborzeck is now known as mborzecki
mborzeckimvo: hey07:27
mvogood morning mborzecki07:27
mborzeckimvo: more friction with greengrass: https://forum.snapcraft.io/t/aws-iot-greengrass-1-8-x-doesnt-start-on-ubuntu-core-16/22066 not sure what to make of it yet07:28
mvomborzecki: looking, thanks07:30
mborzeckimvo: trying to install in in a core18 vm, wierd the denial suggests it's snap-confine, but we obviously allow /sys/fs/cgroup/devices manipulation from s-c07:32
mvomborzecki: yeah, that is strange07:34
pstolowskimorning08:03
mupPR snapd#9816 closed: interfaces, wrappers: misc comment fixes, etc <Simple 😃> <Skip spread> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9816>08:05
mvogood morning pstolowski08:06
mborzeckipstolowski: hey08:07
zygagood morning08:31
mvogood morning zyga08:41
mborzeckizyga: remmeber that problem with my display not waking up on 5.10.4? someone bisected and found the patch that broke it: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/?id=2f168cf391c8f615a95ab7d5264db880b225ab2209:26
mborzeckiit's supposedly fixed in 5.10.5 but damn those lts kernels are buggy on release day09:26
zygaoh well, nice find on the bisect at least09:27
zygainteresting that those are in the same group though09:28
zygadrm and watchdog09:28
mborzeckimvo: does it make sense? https://github.com/snapcore/snapd/pull/9545#discussion_r55385417210:09
mupPR #9545: devicestate: keep log from install-mode on installed system <Run nested> <UC20> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9545>10:09
mvomborzecki: looking10:11
mvomborzecki: oh, sweet, I think it totally would10:11
mborzeckimvo: zcat, zgrep are in core*, so browsing will be easy too10:11
mvomborzecki: \o/ you rock10:11
mborzeckiwow #8699 is now 1.2k lines10:19
mupPR #8699: interfaces/desktop-launch: support confined snaps launching other snaps <Needs Samuele review> <Created by AlanGriffiths> <https://github.com/snapcore/snapd/pull/8699>10:19
mborzeckimvo: btw `warning: bogus date in %changelog: Thu Dec 15 2020 Michael Vogt <mvo@ubuntu.com>`10:50
mborzeckilooks like it was Tue ;)10:50
=== pedronis_ is now known as pedronis
mborzeckifunny, we were shipping system-shutdown on fedora for no reason11:04
mvomborzecki: uh, sorry for that11:10
ograhmm, is there a trick to switch a snap to jailmode without reinstalling it (i'd love to not lose my data) ? switching channels seemingly doesnt have any effect12:22
ogra(i tried with snap refresh as well as snap switch, going back and forth between beta and edge)12:23
pstolowskiogra: don't know the answer, but remember you have snapshots ;)12:29
mvoogra: we don't have this, it's something I personally would love to have. probably not a lot of work but ENOTIME :/12:30
ograwell, i'll just switch the snap in edge to strict and try it that way ...12:31
ograelse i'll resort to a snapshot ... thanks pawel !12:31
ograheh .. i love how the download counter of snapd says "ages!" for the ETA time it shows for the first few seconds when it gets 0MB/s12:39
ograogra@ubuntu:~$ snap info kodi-pi-standalone|grep ^installed12:40
ograinstalled:          18.9.0            (1😎 307MB jailmode12:40
ograyay, that worked ... (and it still starts and plays the TV program, hooray)12:41
ograhmm, no new denials, but mouse input is gone now ... very weird12:44
ogra... and indeedd there is no desktop plug on UC20 ...12:48
* ogra tries adding uhid in the hope it helps12:49
mupPR snapd#9817 opened: cmd/snapd-generator: don't create mount overrides for snap-try snaps <Bug> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9817>12:51
ijohnsonogra: there's no desktop plug on uc20?13:57
zygaijohnson, IIRC not on core13:59
zygaclassic only13:59
ograijohnson, there is the plug ... but nothing behind it (and snapd refuses to connect)14:03
ograi'm on UC20 using https://snapcraft.io/kodi-pi-standalone14:03
zygaogra, https://github.com/snapcore/snapd/blob/master/interfaces/builtin/desktop.go#L37114:04
ografor the first time in strict mode now that the MMAL patch landed in snapd ... and it all works fine excpet for input devices14:04
ograyeah14:04
ograbut we must have a way to access kbd/mouse without desktop ... just havent found the right interface combo yet14:05
ograuhid isnt enough ...14:06
ogratrying uinput ... if thats not enough i'll try raw-usb too14:06
ograheh ... i see ... at last resort i could probably use device-buttons14:14
ograargh !14:14
ograWill need manual review...14:15
ograThe Store automatic review failed.14:15
ogra...14:15
ograso much about uniput14:15
* ogra tries raw-usb instead14:15
ogragrrr ... why do i still have to go to the old dashboard UI to reject releases that failed auto-review14:18
mborzeckipstolowski: https://github.com/snapcore/snapd/pull/9792 <-- the PR from cachio, there were some failures in preseeding iirc14:18
mupPR #9792: tests: enable ubuntu 21.04 for spread tests <Run nested> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9792>14:18
mborzeckipstolowski: do we need some adjustments there?14:18
pstolowskimborzecki: most likely. Failed to find executable : No such file or directory. no idea what is it about, needs investigation14:21
ograyay ... raw-usb helps for the mouse14:28
ogra... and for the kbd too 👋/14:29
ograbah ... emoji plugin fail again14:29
pstolowskimborzecki, cachio i'll investigate these failures14:33
mborzeckipstolowski: thanks!14:33
pstolowskiuh, https://github.com/github/hub -> "UbuntuSnapWe do not recommend installing the snap anymore."14:35
ograhrm ... mouse gone again after reboot14:48
ograhmm, so there seems to be some kind of race ... i can get it to recognize the mouse/kbd sometimes, but not all the time14:56
mupPR snapd#9818 opened: cmd/libsnap-confine-private: make unit tests execute happily in a container <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9818>15:07
cachiopstolowski, , sorry, having connection issues15:10
cachiowhich executable is not found?15:10
mupPR snapd#9819 opened: snap-confine: make host /etc/ssl available for snaps on classic <Created by mvo5> <https://github.com/snapcore/snapd/pull/9819>15:12
ogra*sniff* ... this is depressing 😞15:13
dot-tobiaswaveform80: re https://bugs.launchpad.net/snap-core18/+bug/1910094 → Can confirm that your patched u-boot-rpi PPA bins resolve the core18 refresh issue on installations that run my pi-gadget based custom gadget. Thank you for the quick investigation! (cc ogra, mvo)15:25
mupBug #1910094: uboot fails to save env after core18 refresh <snap-core18:New> <https://launchpad.net/bugs/1910094>15:25
ograyay !15:25
mborzeckipstolowski: added some comments https://github.com/snapcore/snapd/pull/9817#pullrequestreview-56433917515:27
mupPR #9817: cmd/snapd-generator: don't create mount overrides for snap-try snaps <Bug> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9817>15:27
zygamvo, https://github.com/snapcore/snapd/pull/9819#pullrequestreview-56434696015:29
mupPR #9819: snap-confine: make host /etc/ssl available for snaps on classic <Created by mvo5> <https://github.com/snapcore/snapd/pull/9819>15:29
zygapstolowski, https://github.com/snapcore/snapd/pull/9817#pullrequestreview-56435212615:34
mupPR #9817: cmd/snapd-generator: don't create mount overrides for snap-try snaps <Bug> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9817>15:34
* zyga waves and goes back to yocto15:34
zyga(yuck-to)15:34
pstolowskizyga ty!15:36
pstolowskizyga: amazing, i didn't know of that helper, awesome15:40
zygapstolowski, there was more but we never goto to it15:44
zyga*got to it15:44
zygaendless reviews and design discussions15:45
zygabut that part landed15:45
pstolowskicachio: i'm getting "Cannot allocate google:ubuntu-21.04-64: cannot allocate new Google server google:ubuntu-21.04-64 (jan081556-593916): cannot find ready marker in console output for google:ubuntu-21.04-64"16:00
pstolowskicachio: no idea what executable that is, need to debug16:00
cachiopstolowski, about the image which cannot be allocated I can't do much because is not ours16:01
cachiopstolowski, I'll try to start it ans see the serial log and send that info to the cloud team16:01
pstolowskicachio: but this is from spread -debug google:ubuntu-21.04-64:tests/main/preseed16:02
zygapstolowski, cachio: that error message basically says: the boot output is not recognized16:03
zygaboot it manually and see16:03
zyganot via spread16:03
zygavia the gce api16:03
cachiopstolowski, let me try it16:04
* zyga EOWs16:20
zygaenjoy your weekend everyone16:20
zygacachio, I'll catch you next week16:20
cachiozyga, sure, thanks, nice weekend16:23
cachiopstolowski, https://paste.ubuntu.com/p/Yb4ygdKrVQ/16:26
cachiothis is what I see in the serial16:26
cachiosomething chagne in the image and fails to start16:26
pstolowskicachio: i see16:27
cachiothe problem is that is not managed by us16:27
cachiopstolowski, this is the image affected daily-ubuntu-2104-hirsute-v2021010816:28
cachioI am trying with the previous  image16:29
cachiopstolowski, so, if you want to run the test16:32
cachioyou can use -> image: ubuntu-os-cloud-devel/daily-ubuntu-2104-hirsute-v2021010716:32
cachiothat works well16:32
cachiothe current image is broken16:32
pstolowskicachio: ok, thanks16:33
mupPR snapcraft#3405 opened: [feature] ROS plugins v2 out of source tree builds <Created by artivis> <https://github.com/snapcore/snapcraft/pull/3405>16:48
mupPR snapcraft#3402 closed: cli: add missing quote key creation hint <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3402>16:58
mupPR snapcraft#3403 closed: storeapi: remove unused MissingSnapdError <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3403>16:58
pstolowskizyga: doh, sc_infofile_get_key doesn't like [...] ini groups17:02
zygapstolowski, oh17:02
zygapstolowski, bummer, hmm17:02
zygaI have two proposals17:02
zygawell, maybe one17:02
zygaadd sc_infofile_get_ini_key17:02
zygawhich finds the [section] first17:02
zygaand then does the rest17:02
zygahow does that sound17:02
zygaI want to stress this over the special-cased logic in one spot17:03
zygait should be easy to implement17:03
zygajust check if [ section starts17:03
zygamatch on the section name or iterate until the next section17:03
zygapstolowski, wdyt?17:05
pstolowskizyga: yes that sounds like a good idea17:05
zygaI can help, look at the original for inspiration17:05
zygaor if tomorrow is raining I can code it with you :)17:05
* zyga looks at phone 17:05
zygalooks like winter is here :)17:06
zygamaybe rain won't happen17:06
zygaanyway, if wether sucks and we're at home17:06
pstolowskizyga: thanks for the suggestions; i'll get back to it on monday (don't worry about it and relax over the weekend ;))!17:08
zygacheers, let's chat next week then17:08
pstolowskio/17:17
mupPR snapcraft#3406 opened: pluginhandler: do not walk symlinks for include filesets <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3406>17:23
mvozyga: thank you so much for your snap-cofnine review!17:26
zygamvo, pleasure :)17:27
zygamvo, I have some things I may be able to contribute17:27
zygamvo, I did some work on using static analysis tools17:27
zygamvo, and those would be useful for snap-confine17:28
mvozyga: sweet17:28
zygamvo, have a look at https://git.ostc-eu.org/ohos/third_party_bounds_checking_function/-/blob/feature/zmk/Makefile#L66 for an example17:29
zygathis integrates five different tools17:29
zygamake check or make static-check runs them17:29
zygaI'll iterate on this some more so that they are properly integrated in zmk but I suspect they may find something in our code already17:29
mvozyga: good stuff but too tired to grasp it tonight :)18:09
=== ijohnson is now known as ijohnson|lunch
mupBug #1910790 opened: `man htop` return nothing for htop installed as snap <amd64> <apport-bug> <focal> <Snappy:New> <https://launchpad.net/bugs/1910790>19:09
mupBug #1910790 changed: `man htop` return nothing for htop installed as snap <amd64> <apport-bug> <focal> <Snappy:New> <https://launchpad.net/bugs/1910790>19:12
mupBug #1910790 opened: `man htop` return nothing for htop installed as snap <amd64> <apport-bug> <focal> <Snappy:New> <https://launchpad.net/bugs/1910790>19:15
mupPR snapcraft#3407 opened: WIP: Add new gnome-3-38 extension which uses gnome-3-38-2004 and core20 <Created by kenvandine> <https://github.com/snapcore/snapcraft/pull/3407>19:23
mupPR snapcraft#3406 closed: pluginhandler: do not walk symlinks for include filesets <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3406>20:08
=== ijohnson|lunch is now known as ijohnson
mupBug #1910790 changed: `man htop` return nothing for htop installed as snap <amd64> <apport-bug> <focal> <Snappy:Confirmed> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1910790>21:52
ograsigh ... why dont we have any interface that allows me access to kbd/mouse without requiring me to use x11, wayland or mir ...22:51
ograthats really a blocker for my kdi-pi snap22:52
ogra*kodi22:52
ijohnsonwell the x11 interface is "transitional" in the sense that perhaps we need new interfaces for subsets of access to those things22:52
ijohnsonseems reasonable to have an interface for just asking kbd/mouse22:52
ijohnsonogra: if you know the denials you are hitting, you could open a new forum topic about it and we can discuss the name of a new interface which enables this22:53
ograijohnson, heh, the fun is that i dont get any denials at all ... it just blocks ... kodi notices that and doesnt bother further22:58
ijohnsonogra: is that in devmode or strict ?22:58
ograstrict22:58
ijohnsonso you probably are hitting the device cgroup22:58
ograyeah, something like that ... it doesnt get through to appamor or any other bit that would log anywhere22:59
ograi'm currebtly paying with looping back wayland ... but that will require security team approval i guess ... given kodi runs as daemon23:00
ijohnsonogra: try doing `sudo echo 'a *:* rwm > /sys/fs/cgroup/devices/snap.<snap-name>.<app-name>/devices.allow`23:00
ijohnsoniirc that will allow all devices in your device cgroup23:00
ijohnsonthen you should at least see apparmor denials23:01
=== King_InuYasha is now known as Conan_Kudo
=== Conan_Kudo is now known as King_InuYasha
ograhmm, what is really interesting that using a slot of either of the above interfaces is sufficient, i dont actually need a loopback connection to the interface at all23:32
ograjust a "slot: [ wayland ]" (or mitr or x11) is enough23:32
ogra*mir23:32
ograijohnson, not printing anything extra ...23:43
ograall i get is:23:43
ogra2021-01-09 00:39:47.711 T:4064208912   ERROR: open_restricted - failed to open /dev/input/event1 (Operation not permitted)23:43
ograin the kodi app log23:43
ograbut nothing corresponding in dmesg or the journal23:43
ijohnsonogra what is `cat /sys/fs/cgroup/devices/snap.<name>/devices.list` ?23:44
ograijohnson, https://paste.ubuntu.com/p/VJz3QDpyrv/23:45
ijohnsonhmm the command I gave you before didn't work23:48
ijohnsonah i bet snap-confine undid the change23:48
ograah, and it would indeed do that if i echoed again and restarted the daemon23:49
ijohnsonyeah, I need to go get dinner, but I'll share with you on monday a way to make it work23:51
ograwell, if you feel likel taking a look yourself :23:52
ograsnapcraft.i👋kodi-pi-standalone/23:52
ogradamn23:52
ograsnapcraft.io /kodi-pi-standalone/23:52
ograthe one in edge is the strict one23:52
ograneeds UC2023:53
ogra(on a Pi3 or 4)23:53
ograoh, an needs snapd from edge23:53
ogra*and23:53
ograanyway, enjoy your weekend23:53

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