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

mupBug #1901262 changed: Unable to mount NTFS drives with write support <ntfs> <ntfs-3g> <Snappy:Expired> <https://launchpad.net/bugs/1901262>04:26
mupBug #1904319 changed: pi 400 mate 20.10 gitkraken snap fails to launch <20.10> <gitkraken> <groovy> <mate> <snap> <Snappy:Expired> <https://launchpad.net/bugs/1904319>04:26
mborzeckimorning07:09
zygagood morning07:09
zygamborzecki mvo found an interesting bug last night07:09
mborzeckizyga: hey07:10
mborzeckiwhat bug?07:10
zygamborzecki we may need to make some mount profiles exempt from robust mount namespace updates07:10
mborzeckiis there a lp ticket?07:10
zygamborzecki tl;dr /var/lib/snapd/hostfs/tmp/.X11-unix /tmp/.X11-unix none bind,ro 0 0 should not be unmounted during mount namespace update07:10
zygaI think so but we discussed bug details "by hand" not through the system07:11
zygamborzecki I was thinking that snapd could mark some mount entries with x-snapd.fragile07:11
zygaand those would not be unmounted during the re-construction process07:11
zyga(well, not always I mean)07:11
zygaand those would use the old algorithm that was used before the robust mount namespace updates we added07:11
zygaI'm sure mvo will be around and explain everything07:12
jameshwhat in particular breaks when that gets unmounted?07:13
zygajamesh that's very interessting07:13
zygachrome crashes with int307:13
mborzeckihow was that found?07:13
mborzeckiah07:13
zygaas in debugger break?07:13
zygamborzecki dunno, ask mvo07:13
jameshis it AppArmor permissions based on file path of the socket?07:13
zygajamesh yes, I strongly suspect that07:13
zygare-validation revoking access07:13
gbissonHi! Is there a documentation or guidelines on how to modify a gadget from uc18 to uc20? Mine is working fine in uc18, but uc20 gives me troubles07:53
gbissonFirst the error messages were explicit, like you have to remove uboot.env for some reason, fair enough07:53
gbissonBut now my ubuntu-image command just fails without much of an error message: https://gist.github.com/gibsson/8fa0b7acd772d714f2d295853419bae807:54
zygagbisson uc20 and uc18 are quite different, not sure where the docs are now but it may require some changes to fit the new structure07:58
gbissonzyga: thanks, I get that it is different, yet I'd expect some doc to migrate from one to the other, is anybody able to give on insights on the differences?08:00
zygagbisson there may be a doc like that, I just don't know08:01
zygamborzecki perhaps you have a pointer?08:01
mborzeckigbisson: is your model published anywhere?08:03
pstolowskimorning08:04
mborzeckipstolowski: hey08:04
gbissonmorphis: hi, yes it is on the store: nitrogen-gadget, source code is here: https://github.com/boundarydevices/ubuntu-core/tree/20-armhf/gadget08:05
gbissonI haven't pushed my latest changes yet, give me a sec08:05
mborzeckiok08:06
gbissonit's done, I basically only removed uboot.env.in and touched uboot.conf like rpi does08:06
zygapstolowski hey08:06
gbissonI guess I understand the issue, the gadget.yawl needs to have a system-seed08:16
mborzeckigbisson: tried building with you model and got the same error08:20
mborzeckigbisson: also yes, you need system-seed and system-save08:20
gbissonmborzecki: sure about system-save? the pi-gadget says: "ubuntu-save is optional for unencrypted devices"08:21
mborzeckigbisson: it is, if you're 100% you're not going to do encryption then it should be ok08:21
gbissonmborzecki: ok, thanks!08:22
mborzeckigbisson: but afaik it can also be used if you do some factory-like modes, which is still wip08:23
gbissonmborzecki: is the 16M size still valid? also, can we use gpt instead of mbr in the gadget.yaml?08:24
mborzeckigbisson: 16M will likely be ok, keep in mind there's some overhead from ext4, we try to use 1k block size so that should give you at least 8MB of free space there, but if you deploy that on emmc with 4k logical block sizes you'd likely end up with very little free space08:26
mborzeckigbisson: and you can use gpt if your system can boot from that08:26
zygagood morning mvo08:38
gbissonmborzecki: ok thanks for the details08:40
mvogood morning zyga08:41
=== juergh_ is now known as juergh
mwhudsonis there any chance someone could do https://forum.snapcraft.io/t/create-1-16-track-for-go/22643 quickly?09:05
diddledanmorning09:07
gbissonmborzecki: what is system-boot for now? seems like system-seed replaced it? (as it contains all boot-assets)09:07
mborzeckigbisson: system-boot is created when system gets installed and should contain the run system bootloader, the usual way we expect it to work is to have bootloaders chainload from seed (aka recovery) -> boot (actual), that's theory which mostly matches how we can make it work with grub, practice may be little different with uboot/lk09:10
gbissonmborzecki: ok so it's needed. Do you have a gpt example by any chance? I only could find mbr and not sure what "type" to use for gpt09:11
mborzeckigbisson: iirc with uboot, there' a boot.sel file which lives on system-boot, gets modified by snapd when a new core/kernel arrives and is read by uboot which lives on system-seed (couldn't chainload so there's just one bootloader)09:11
gbissonmborzecki: I see boot.sel in seed part for now, not sure what to do with it09:13
mborzeckigbisson: let me see, there's amd64 gadget https://github.com/snapcore/pc-amd64-gadget/blob/20/gadget.yaml and there's a dragonboard one https://github.com/snapcore/dragonboard-gadget/tree/18 but i don't see a 20 branch there yet09:13
gbissonmborzecki: thanks, indeed dragonboard clearly won't work on uc20 right now09:15
gbissonmborzecki: so uboot must load boot.sel from seed (recovery) part the first time and then use the one from boot part instead?09:32
mborzeckigbisson: you can take a look at the pi kernel for reference: https://git.launchpad.net/ubuntu/+source/flash-kernel/tree/bootscript/all/bootscr.rpi?h=ubuntu/focal-updates09:53
gbissonmborzecki: perfect thanks!09:59
pstolowskipedronis: hi, is there a reason FindSequence(..) is not defined for RODatabase interface?10:05
pedronispstolowski: no, I suppose it just wasn't needed so far10:06
pstolowskiack. i'm not sure it's needed yet10:16
pstolowskii'm heading to the dentist. bbl10:34
mupPR snapd#9916 opened: daemon: move postSnap and inst.dispatch tests to api_snaps_test.go <Created by pedronis> <https://github.com/snapcore/snapd/pull/9916>10:45
mupPR snapd#9917 opened: interfaces: opengl: add Xilinx zocl bits <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/9917>11:25
=== msalvatore_ is now known as msalvatore
mvoa review for #9859 would be great11:54
mupPR #9859: overlord: add manager gadget refresh test <UC20> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9859>11:54
pstolowskire12:34
mvowelcome back pstolowski12:39
mupPR snapd#9918 opened: boot: use a common helper for mocking boot assets in cache <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9918>13:05
dot-tobiasDoes snapd restart services when I have already started them in a post-refresh hook via snapctl? Use case: I need to start a service in order to perform migrations, and another one to be up before the last post-refresh line. Would be suboptimal if snapd restarts them again after the post-refresh hook 😊13:19
ijohnsondot-tobias: snapd shouldn't specifically _restart_ services after the post-refresh hook, if the service is inactive but enabled, snapd will start it, but if the service is active and enabled, then snapd will still "start" it but the start will do nothing if I recall correctly13:27
ijohnsongbisson: hey if you're still around, I'm curious what bootloader you are using in your nitrogen-gadget? it seems to be an arm based board with u-boot that is _not_ the raspi, is that correct?14:46
ograijohnson, nitrogen is IMX IIRC15:12
ogralikely u-boot15:12
ijohnsonmmm right, they will need to use boot.scr instead of uboot.env then15:13
ijohnson(for now at least)15:13
ogrado we have any documentation about how the differences are between UC18 u-boot and UC20 u-boot ? while i have a kernel ready for my https://wiki.radxa.com/RockpiN10 port, figuring out these required gadget changes is really hard15:15
ogras/how/all/15:15
ijohnsonno we don't unfortunately we talked about writing something up to help folks migrate15:16
ijohnsonbut that hasn't been written just yet15:16
ograthat would be great15:16
ograyeah, understood ...15:16
ograbut i guess uboot.env would stay simply untouched and upstream-style, just making sure to consume boot.scr from it then ?15:17
ogra(and snapd only modifies boot,scr)15:18
dot-tobiasijohnson: Thanks! Was hoping for that, thanks for the clarification!15:23
ijohnsondot-tobias: np happy to help, if that's not how things work feel free to reach out again and we can take a look15:24
ijohnsonogra: well the issue is more that u-boot itself when it sees both uboot.env and boot.scr does weird things like ignoring one and only using the other iirc15:24
ograyeah, i didnt literally mean uboot.env but simply the built in environment15:25
ograi.e. make sure the default env loads boot.scr (created during gadget creation)... snapd handles the rest15:25
zygaijohnson nitrogen is an coretex m board15:27
ograhttps://boundarydevices.com/product/nitrogen6x/15:35
ograand https://boundarydevices.com/nitrogen-sbcs-and-soms/15:35
ograiMX 6-815:36
ogranot actually coretex-m 🙂15:37
ogra(some come with additional -m attached though)15:37
mupBug #1912615 changed: Snapd refresh doesn't recover from connection interruption <snapd:Fix Committed> <https://launchpad.net/bugs/1912615>15:54
mupPR snapcraft#3435 opened: extensions: Fix Documents, Pictures etc symlinks <Created by diddledan> <https://github.com/snapcore/snapcraft/pull/3435>15:56
diddledanit me!15:57
mupBug #1912615 opened: Snapd refresh doesn't recover from connection interruption <snapd:Fix Committed> <https://launchpad.net/bugs/1912615>16:06
mupBug #1912615 changed: Snapd refresh doesn't recover from connection interruption <snapd:Fix Committed> <https://launchpad.net/bugs/1912615>16:12
pstolowskipedronis: i think https://bugs.launchpad.net/snapd/+bug/1899992 is an interesting general issue where we let valid core config in, but over time it stops being valid (because of various factors other than us declaring something obsolete), and this breaks all core config processing on first validation error16:29
mupBug #1899992: refresh.timer=managed prevents setting other configurations, e.g. proxy.http <snapd:Triaged> <https://launchpad.net/bugs/1899992>16:29
mupBug #1899992 changed: refresh.timer=managed prevents setting other configurations, e.g. proxy.http <snapd:Triaged> <https://launchpad.net/bugs/1899992>16:30
pedronispstolowski: yes, it's a config option whose validity can change over time16:31
pedronispstolowski: we need to think a bit what to do16:32
gbissonijohnson: yes I'm using i.MX platforms with uboot16:32
mupBug #1899992 opened: refresh.timer=managed prevents setting other configurations, e.g. proxy.http <snapd:Triaged> <https://launchpad.net/bugs/1899992>16:33
pstolowskipedronis: yes.. i think options that were once valid and we let them in, should only result in warnings later and not prevent other settings. not sure how annoying that will be16:36
pstolowskianyway, something for later16:36
pedronispstolowski: in theory we should only validate the delta16:37
pedronis(that's not how the code is organized right now, I know)16:37
pstolowskipedronis: that's a good point, although it would make sense to let the user know that some setting is no longer effective16:37
pedronisI know, but anyway even under that principle (validate only delta), this is a case where the code applying things would have to deal with invalid things (because validity is not only a property of the value)16:39
zygaogra: interesting, different nitrogen16:39
ograyeah 🙂16:39
pedronispstolowski: so we could do something special there16:40
mupBug #1899992 changed: refresh.timer=managed prevents setting other configurations, e.g. proxy.http <snapd:Triaged> <https://launchpad.net/bugs/1899992>16:42
pstolowskipedronis: ok, we can discuss and i can take a look a this after validation sets or when i'm blocked16:44
mupBug #1899992 opened: refresh.timer=managed prevents setting other configurations, e.g. proxy.http <snapd:Triaged by stolowski> <https://launchpad.net/bugs/1899992>16:48
mupBug #1899992 changed: refresh.timer=managed prevents setting other configurations, e.g. proxy.http <snapd:Triaged by stolowski> <https://launchpad.net/bugs/1899992>16:51
pstolowskimup: please stop16:53
muppstolowski: I apologize, but I'm pretty strict about only responding to known commands.16:53
pedronispstolowski: I approved #9893 with some comments17:11
mupPR #9893: store: support validation sets with fetch-assertions action <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9893>17:11
pstolowskipedronis: thanks!17:13
=== Ringtailed-Fox is now known as RingtailedFox

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