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

dot-tobiasmvo: re saveenv issue (had to leave early yesterday, right after filing this): https://bugs.launchpad.net/snap-core18/+bug/1910094 → for uc20, uboot.env.in was removed in favor of u-boot-pi, so idk if this also applies for uc20.05:29
mupBug #1910094: uboot fails to save env after core18 refresh <snap-core18:New> <https://launchpad.net/bugs/1910094>05:29
mborzeckimorning07:05
mupPR snapd#9811 closed: tests: fix library path used for tests.pkgs <Simple 😃> <Created by sergiocazzolato> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9811>07:07
mupPR snapd#9808 closed: tests/main/snap-validate-basic: disable test on Fedora due to go-flags panics <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9808>07:32
dot-tobiasmorning mborzecki 👋07:33
mborzeckidot-tobias: hey07:34
mborzeckizyga: mvo: hey07:39
zygagood morning guys :)07:39
mvogood morning mborzecki and zyga07:39
mborzeckimvo: zyga: have i shared those over the holiday break? https://imgur.com/a/zddivon07:50
zygayes, you did07:51
zygathe spike of mystery07:51
mvomborzecki: I remember this one - wasn't the spike apparmor_parser running?07:51
mborzeckimvo: yes, the bottom two are apparmor_parser replaced with symlink to /bin/true, and the last one is both aa parser and snap-seccomp07:52
mborzeckimvo: zyga: added one more graph from just calling apparmor_parser -R for snap.hello-world profiles followed by apparmor_parser --replace <opts-we-use-in-snapd> /var/lib/snapd/apparmor/profiles/snap.hello-world.*07:54
mvomborzecki: 50mb is a lot07:56
mborzeckinot skipping cache makes the memory usage lower ofc, but iirc zyga explained there was a corner case when the timestamps are messed up or something and that breaks things07:56
mvomborzecki: in this last graph, especially since hello-world is presumably a simple profile07:56
mborzeckimvo: well, it isn't that simple ;)07:56
mborzeckimvo: there's a lot of rules, and i wanted to try exploding rules such as `/{,usr/}bin/arch ixr` to see if that changes anything07:57
mvomborzecki: oh, interessting08:02
mupPR snapd#9794 closed: daemon: start moving implementation to api_snaps.go <Cleanup :broom:> <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9794>08:02
zygamborzecki, IIRC early pi boot sceniario08:03
zygamborzecki, across rollback or something08:03
zygamborzecki, we would reuse stale cache08:03
zygamborzecki, in the end cache is still mtime based08:03
zygamborzecki, this change came from jdstrand (IIRC, it was >2 years ago)08:03
zygaofftopic, this is the day when we are setting up mattermost/irc bridge08:04
zygadid that ever happen to canonical irc?08:04
zygaer08:04
zygacanonical mattermost08:04
mborzeckizyga: idk, i'm using mm chat in ff08:05
zygamborzecki, yeah but for internal stuff08:06
zygaI'm curious to know if there is any channel on mattermost that got bridged to an irc channel08:06
zygawe're doing that so that the community space is not fractured08:06
mborzeckimvo: hah, i see your superpowers extend to ogra's repositories too :)08:16
zygamy new router arrives today, cannot wait to set that up after work08:17
zygabut now, last day of static analysis wrap up08:17
zygao/08:17
jameshzyga: I think don't think there is any server side ircd integration.  Some people use matterircd, but that is really a single-user bridge08:17
zygajamesh, I think we use matterbridge (or want to)08:18
zygabut yeah, it looks like a way that's really meant for one user08:19
zygawe'll see08:19
mvomborzecki: yeah, slightly surprised about this but I don't complain08:22
jameshzyga: I guess it depends on what your goal is: allow a user to continue using their IRC client, or to bridge to an existing community of people who can't access the Mattermost server?08:26
zygajamesh, our mattermost is open to all but we wanted to let people who hang around on IRC to not miss anything, lower barrier of entry08:27
jameshzyga: understandable.  I guess that's the reason most public Canonical/Ubuntu stuff is on Freenode08:30
zygajamesh, given we also use gitlab, mattermost integrations are valuable08:31
zygaso if those get to translate to irc, even imperfectly, it would be an added advantage08:32
jameshzyga: I kind of wonder if some kind of limited guest account access to mattermost might solve that too.08:33
zygajamesh, yeah but again our mattermost is not closed08:33
zygait's just something that requires you to have _a_ account08:33
zygaso we wanted to lower the barrier of entry even more08:34
jameshzyga: sure, but presumably I'd still need to create an account to ask a question.  If there was some kind of anonymous guest account system, that could be even more accessible than IRC08:35
zygaah, I see what you mean now08:35
zygayeah, but I don't know if mattermost supports that kind of thing08:36
jameshIf you're bridging to IRC, you're essentially allowing anonymous users into those mattermost channels anyway.08:37
zygasure, the only question is if there's a better way of doing that08:37
jameshzyga: it looks like a feature that is on their radar but unimplemented: https://docs.mattermost.com/overview/faq.html#does-mattermost-have-an-official-website-based-plugin-to-offer-anonymous-chat-to-visitors08:39
mborzeckimvo: there's a bug in postrm, we have an if that check whether we're running inside the container (closer to the end of the file), and unmounts /snap in such case, however, couple of lines before there's and attempt to rm -rf /snap which fails with EBUSY08:48
mvomborzecki: oh, thanks for noticing. is there an easy fix? just reshuffle some lines? also I wonder why we did not find it in spread testing :/08:48
mborzeckimvo: this bit: https://github.com/snapcore/snapd/blob/master/packaging/ubuntu-16.04/snapd.postrm#L118-L14208:49
mborzeckimvo: yeah, stgraber pointed me to it in https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1903967 i'm working on a fix and a spread test08:49
mupBug #1903967: Can't purge snapd: rm: cannot remove '/snap': Device or resource busy <lxd (Ubuntu):Invalid> <snapd (Ubuntu):Incomplete> <https://launchpad.net/bugs/1903967>08:49
mvomborzecki: oh, so the discard lines need to be moved up?08:49
mvomborzecki: \o/ thank you!08:49
mborzeckimvo: afaict none of the spread tests executed apt remove --purge snapd in a container08:49
mvomborzecki: *nod*08:50
mborzeckimvo: https://github.com/snapcore/snapd/pull/981209:33
mupPR #9812: packaging/deb, tests/main/lxd-postrm-purge: fix purge inside containers <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9812>09:33
mvomborzecki: \o/09:33
mupPR snapd#9812 opened: packaging/deb, tests/main/lxd-postrm-purge: fix purge inside containers <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9812>09:33
zygamborzecki, nice09:43
zygamborzecki, 2/3 reviewed, one sec09:43
zygamborzecki, reviewed09:54
zygacoffee and more meetings09:54
zygamborzecki, +110:26
=== msalvatore_ is now known as msalvatore
mborzeckigo-flags feels like a mess tbh12:40
mborzeckiactually validate has --forget option which has no hidden tag, but it does not show up either :/12:41
mborzeckifunny thing, when parser is initialized with HelpFlag, there's no panic, and that's because when the option is present it collects information from all registered 'groups'12:53
=== zyga_ is now known as zyga
mborzeckithe 'fix' in go-flags: https://github.com/jessevdk/go-flags/pull/35415:15
mupPR jessevdk/go-flags#354: fix a panic when generating help while the subcommand and all option groups are hidden <Created by bboozzoo> <https://github.com/jessevdk/go-flags/pull/354>15:15
mborzeckioff to the the vet with my meowing furball15:30
* cachio lunch16:33
mupPR snapd#9813 opened: tests: use os-query tool to check debian, trusty and tumbleweed <Simple 😃> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9813>16:35
mupPR snapcraft#3399 closed: cli: do not require snapd deb for assertions <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3399>17:22
ijohnsoncachio: shouldn't this line also check for aarch* for the is_arm function?18:06
ijohnsonhttps://github.com/sergiocazzolato/snapd/blob/master/tests/lib/tools/os.query#L10218:06
ijohnsonerr I guess the right link is https://github.com/snapcore/snapd/blob/master/tests/lib/tools/os.query#L10218:06
cachioijohnson, yes18:12
cachioijohnson, I think we just have armv7 and armv818:13
cachiobut the check should be18:13
cachiouname -m | grep -qx '(^arm.*|^aarch*)'18:14
cachioijohnson, right?18:14
ijohnsoncachio: yes exactly18:17
=== ijohnson is now known as ijohnson|lunch
cachioijohnson|lunch, I'll update that18:27
cachiothanks for that18:27
mupPR snapcraft#3400 opened: requirements: uprev python-apt <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3400>18:42
mupPR snapd#9814 opened: tests: update check to verify is the current system is arm <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9814>18:45
* cachio afk719:16
mupPR snapcraft#3400 closed: requirements: uprev python-apt <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3400>19:22
hardwireanybody have a good gadget/device config for pi zero w?21:02
hardwirefor core2021:02
=== ijohnson|lunch is now known as ijohnson
ijohnsonhardwire: ubuntu core 20 (well any ubuntu series) does not run on the pi zero w because that device is armv6 and ubuntu requires armv721:24
hardwirearmhf is a no go on that series?21:51
hardwireMostly just an understanding issue on my side between pi os, debian os, ubuntu os and if the difference is due to minimum standards with ubuntu kernel configs and compatible gcc flags that are purposefully altered from debian upstream.. or if there's some other gap in my understanding that just isn't obvious right now.21:58
hardwireI'd like to use snap on these systems.. not sure if that means moving a bunch of this to an armv6 snap core.22:00
hardwireThe big gotcha I think is that armhf would be a 'misnomer' for any ubuntu pools recompiled to support armv622:01
hardwireUnfortunately I think that is what threw me off22:01
hardwirenot even sure if uboot is set up to boot armv6 from those images either22:09
ijohnsonhardwire: yes it's different for ubuntu vs debian in that respect ubuntu only supports armv7, whereas debian supports armv6 (or at least raspbian does)22:40
ijohnsonunfortunately the issue is larger than just building an armv6 "core" snap, you would need to first compile ubuntu debian packages from the archive for armv6 and then use those to construct the core snap, since the current armhf core snap is built that way22:41
hardwirethat would be a lot of no fun but possibly worth it.22:44
hardwireI think it may be more worth it to snaperize raspberry pi os.22:44
hardwirethat's a real word I just made up.22:44
ijohnsonyou could look into using Raspberry Pi 3 Model A+ instead of the raspberry pi zero w22:44
hardwireNot with 3000+ Pi Zero W in the field.22:45
ijohnsonnot quite the same size, but smaller and cheaper than a normal raspberry pi22:45
ijohnsonah fair enough22:45
hardwireI'm consulting to help deal with a 'rushed to production' issue.22:45
hardwireDoing OTA without snap will be a pain.  I'm left with ostree or a very custom setup.22:46
hardwireI'd really like to target things so that the ext4 containing the mountable snaps was not also /writable as well.22:46
ijohnsonyeah that is tough22:46
ijohnsonyou mean you want the .snap files on a different partition than the writable partition ?22:47
hardwireI do appreciate whoever padded the core20 images to 8gb22:47
hardwirethat was useful.22:47
ijohnsonha that was a bug that they are padded like that, but glad it was helpful to someone :-)22:47
hardwireI typically made a sparse file and then use dd with notrunc to overlay the image.22:48
hardwireIt took me a while to realize core20 was different than core1822:48
hardwirebut I think it helps some folks not scratch their heads when the initial setup doesn't works so hot.22:48
hardwireso it looks like setting up a snap based project to create a core/kernel for arm6 might be the best solution.. pulling from "offical" pi upstreams.22:51
hardwireofficial even.22:51
hardwirethere's gonna be a few gotchas for sure.22:51
hardwireI bet I'd get sued by either ubuntu or snapple if I called it snappleberry pi22:51
hardwirethe initial tar for core18/core20 isn't too far a stretch from vanilla22:52

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