[06:41] morning [06:48] PR snapd#9563 closed: secboot: set metadata and keyslots sizes when formatting LUKS2 volumes [06:52] good morning [06:52] I need to look after Lucy for an hour and a half now so I won't start until I can pass her over [07:17] z hey [07:41] back in the office [07:41] mborzecki, how are things? [07:46] zyga: heya [07:47] heh, surprising, `mkfs.ext4 ` and `mkfs.ext4 -T default ` produces quite different overhead in the fs [07:47] even though if you don't specificy -T, it's the same as 'default' [07:48] oh? [07:48] overhead as in % reserved for root? [07:52] zyga: idk, looked at free space only and it was like ~8MB vs ~5MB, but did not investigate further [07:52] interesting [07:52] maybe different feature set? [07:55] I'll start in ~30 minutes [08:01] morning [08:07] pstolowski: hey [08:07] zyga: so if you don't specify anything mkfs.ext4 has some heuristic to choose the settings based on block device size [08:13] o/ [08:16] mborzecki: hi, do we need to sync on something? [08:17] pedronis: not yet, i've opened https://github.com/snapcore/snapd/pull/9565 yesterday [08:17] PR #9565: [RFC] overlord/devicestate: bind mount ubuntu-save under /var/lib/snapd/save on startup [08:17] yes, saw it [08:17] hey pstolowski, pedronis [08:17] pedronis: there's some trouble with default ext4 parameters that we pass during install, instead of ~8MB of free space we get slightly above 4 [08:17] how are you? :) [08:18] mborzecki: in save ? [08:18] pedronis: looks like it's beacuse of using -T default instead of letting mkfs choose [08:18] pedronis: yes [08:18] ok [08:25] mborzecki: do you why we chose to pass default manually? [08:26] it doesnt seem a good idea in general [08:26] pedronis: iirc this follows what ubuntu-image does, the idea was to stick to it as close as possible [08:26] mmh [08:27] pedronis: i'm thinking that maybe it's best to just let mkfs use the defaults from /etc/mke2fs [08:27] yes, tha would be my impression reading the man page [08:33] mhm, i'm adding a little spread test for save, and will tweak the install next [08:56] hmm [08:56] fresh master fails on my machine [08:56] with the following error: [08:56] FAIL: firstboot_test.go:1547: firstBoot16Suite.TestPopulateFromSeedMissingBase [08:56] ... "cannot accept some assertions:\n" + [08:56] ... " - assertion is signed with expired public key \"ByUltd1OtnFrz7CpmYlxAB5YDg_hcimrdPamuMMYNtGzKOvJreXK-DpKYZYMG9Lv\" from \"canonical\"\n" + [08:58] PR snapd#9568 opened: interfaces,snap: use correct type: {os,snapd} for test data [08:59] mborzecki: I did a pass on #9565 [08:59] PR #9565: [RFC] overlord/devicestate: bind mount ubuntu-save under /var/lib/snapd/save on startup [08:59] pedronis: thanks, i'll check the comments in a bit [08:59] jamesh, I'd like to skip this call and focus on landing last few bits before I go [09:00] zyga: okay [09:01] pedronis, ^ is the assertion error expected? [09:01] did we forget to bump some key expiry date? [09:01] zyga: it's passing here [09:02] HMM [09:02] I did govendor sync as well as some secboot stuff was changed [09:03] pristine master: ... value *errors.errorString = &errors.errorString{s:"assertion is signed with expired public key \"UnnnrXnSNgBgPXpScoO0g3LVnpoFhL3lXme5LYUOhKqLcvioXURIz4jPvzR9zo2b\" from \"canonical\""} ("assertion is signed with expired public key \"UnnnrXnSNgBgPXpScoO0g3LVnpoFhL3lXme5LYUOhKqLcvioXURIz4jPvzR9zo2b\" from \"canonical\"") [09:03] but in a different test now: FAIL: writer_test.go:1989: writerSuite.TestDownloadedCore20CheckBase [09:03] PR snapd#9569 opened: tests/nested/core20/save: a test that verifies ubuntu-save is present and set up [09:03] and the error I saw before is gone [09:03] wth? [09:04] another run and it passed [09:04] wat? [09:05] I nuked my go cache and I cannot reproduce this [09:06] so weird [09:18] zyga: I read there's a bug in go with recent tzdata versions [09:18] aha [09:18] not sure it's relevant or not [09:18] here I have the not affected/ing tzdata fwiw [09:58] hm maybe we need to ship /etc/mke2fs.conf in the core snap for the heuristic to work [09:58] i did the chabnge, doble checked it's used but the size change isn't there [10:07] fwiw, there's a buitlin use in that scenario [10:08] https://github.com/tytso/e2fsprogs/blob/ae3a1d571beb1b86cedfee6652a327854499da3f/misc/mke2fs.conf.in [10:17] heh, so the built-in config on 20.04 is somewhat different from what i have [10:20] so the difference is blocksize, whic is 1024 in the default mke2fs.conf but somehow 4096 in focal [10:39] PR snapd#9570 opened: gadget/internal: let mkfs.ext4 figure out the best setup [10:54] re, sorry, I had to power off this VM for a call [10:57] mborzecki, could you please help me with and vulnerable hosts will be notified. [10:57] er [10:57] copy paste fiasco [10:58] https://github.com/snapcore/snapd/pull/9530 [10:58] PR #9530: interfaces: share /tmp/.X11-unix/ from host or provider <⚠ Critical> <β›” Blocked> [10:59] PR snapd#9568 closed: interfaces,snap: use correct type: {os,snapd} for test data [11:03] pedronis, I'd like to return to https://github.com/snapcore/snapd/pull/9546 [11:03] PR #9546: overlord: add inert export manager [11:03] pedronis, I will look at reducing the structure if that is possible but any advice on what you were thinking about would be useful [11:03] zyga: let me comment there in a couple of minutes [11:04] pedronis, thank you, I'll put my full attention to this [11:15] back with tea [11:21] PR snapcraft#3338 closed: Rename plugins keys [11:22] zyga: commented [11:22] * pedronis lunch [11:22] looking [11:24] thanks! [12:24] PR snapd#9571 opened: tests: re-enable the apt hooks test [12:31] brb [12:31] PR snapcraft#3343 opened: build providers: set snapd proxy settings after setup_environment() [12:42] re [12:46] mborzecki: I added a couple more commens and follow up comments to 9565 [12:47] pedronis: thanks, saw them [12:48] ijohnson: hey, i've replied to your questions on preseed+hooks PR, i hope it makes sense now? [12:54] hey pstolowski yes thank you for the excellent explanation it makes sense now [12:55] I will approve shortly [12:57] thx [13:00] mborzecki, hey [13:00] in f33 I see this https://paste.ubuntu.com/p/SnMj8xF3Hr/ [13:00] for selinux-clean test [13:00] could be needed any change in the selinux policy? [13:17] cachio probably a change in the fs layout that makes us do something new [13:18] zyga-mbp, ok, I'll research a bit more [13:18] cachio: yeah, we may need to tweak something [13:19] it's really annoying that there's no path [13:19] just a type [13:19] zyga-mbp: still an umount by s-c, there shouldn't be too many of those [13:19] mborzecki that includes all of snap-update-ns, no? [13:20] so ... well, a lot [13:20] snap-confine doesn't unmount anything IIRC [13:20] (anything that is not fixed) [13:20] hm, s-u-n should run with a seaprate context (maybe it's not?) [13:22] mborzecki it is for apparmor but I don't think it is for selinux [13:23] zyga-mbp: there's snappy_mount_t, transitions should be set up [13:28] hahah the new github jobs status emails are brilliant, huge heading 'some jobs were not successful', but doesn't really say which ones [13:33] pedronis: i've updated #9565 [13:33] PR #9565: overlord/devicestate: bind mount ubuntu-save under /var/lib/snapd/save on startup [13:34] mborzecki: thx [13:41] * zyga-mbp is making progress but needs to interrupt for a while, should resume after standup [13:41] most of the code is updated, some new tests are being added now [13:47] pedronis: can you take a look at https://github.com/snapcore/snapd/pull/9566#discussion_r514269126 ? shouldn't this be /run/mnt/ubuntu-save/device/fde, so InitramfsUbuntuSaveDir + "device/fde" ? [13:47] PR #9566: boot: store the TPM{PolicyAuthKey,LockoutAuth}File in ubuntu-save [13:48] or we should bind mount save under install host writable save during install? [13:49] mborzecki: I don't know, we have save mounted somewhere by gadget/install ? [13:49] we should pick the right dir though [13:50] mborzecki: maybe the SideData should tell use that [13:50] *us [13:50] pedronis: yes, it's under InitramfsUbuntuSaveDir aka /run/mnt/ubuntu-save [13:50] I mean, the bind mount seems overkill for install [13:51] as long as we have the right path to use [13:51] i'll look into it [13:51] thx [13:55] PR snapd#9571 closed: tests: re-enable the apt hooks test [13:55] pedronis: the final path in run mode is supposed to be /var/lib/snapd/save/device/fde right? [13:56] yes [13:57] Would the hardware-observe interface give my snap access to /sys/class/dmi/id/chassis_type and /sys/firmware/acpi/pm_profile? snappy-debug just advises to β€œadjust program to not access ” [13:57] ack [14:00] PR snapd#8395 closed: o/ifacestate: handle interface hooks when preseeding [14:32] PR snapcraft#3344 opened: pyproject: add isort with black-compatible configuration [14:47] * zyga-mbp has terrible headache and takes a break [14:48] dot-tobias: your snap by default should have read access to `/sys/class/**` by the default profile, do you need write access ? [14:49] dot-tobias: regarding /sys/firmware/acpi, we don't seem to have any interface which allows that (either read or write), do you need read or write access to that? [14:55] PR snapd#9572 opened: tests: update google sru backend to support groovy [14:59] * cachio lunch [15:01] errands, afk [15:16] * zyga-mbp feels better but will resume work at 18:30 [15:29] not so better, whatever it is :/ [15:45] PR snapd#9573 opened: o/devicetate,dirs: keep device keys in ubuntu-save/save for UC20 [15:55] PR snapd#9574 opened: o/devicestate,a/sysdb: make a backup of the device serial to save [15:56] * zyga-mbp gets some meds [15:56] func (*containsCheckerSuite) TestContainsUncomparableType(c *check.C) { [15:56] if runtime.Compiler != "go" { [15:57] This test will never pass.. it's "gc", I think [15:57] Not exactly life threatening, though :) [15:58] niemeyer: good catch I can fix that in snapd [15:58] ijohnson: Thanks [15:58] mvo: mborzecki: I opened my PRs [15:59] ijohnson: While you're there, another trivial: cmdVersion.Execute doesn't return the error from printVersions [16:00] Not a big deal for the current implementation, but it's not ideal at least [16:00] sure that at least doesn't make any tests fail :-) [16:03] niemeyer: #9575 :-) [16:03] PR #9575: testutil, cmd/snap/version: fix misc little errors [16:05] ijohnson: Speed coding? :) [16:05] ijohnson: Thanks! [16:05] haha just happened to be switching between other things and so it was easy enough to just do it [16:05] PR snapd#9575 opened: testutil, cmd/snap/version: fix misc little errors [16:11] zyga-mbp: notice that some of your comments are actually about #9565 from mborzecki [16:11] PR #9565: overlord/devicestate: bind mount ubuntu-save under /var/lib/snapd/save on startup [16:11] whichc my PR is stacked on [16:11] pedronis ah, I see [16:15] pedronis: mborzecki: #9560 is now updated [16:15] PR #9560: gadget/many: drop usage of gpt attr 59 for indicating creation of partitions [16:17] gofmt 1.9 strikes again! [16:33] * mvo is in non-stop meetings fwiw, but will read backlog [16:57] pedronis: good news, i think we don't need go 1.13, older go has .WithContext() method that returns new request, and we even use it in the code. what is more, it seems to be working [16:57] i also solved other issues i mentioned, and yes, the problem with the test was solved by pushing more data to fill the buffer [16:58] pstolowski: ah, good [16:58] pedronis: zyga-mbp: pushed the updates to 9565 [16:58] (needs 2nd reviews still) [17:02] mborzecki: some feedback from ijohnson in 9565, I can work on applying the feedback in a wee bit if you want? [17:08] cmatsuoka: it would be great if you could open your PR about the 1.5 object sealing today even if it's not perfect (maybe as a draft?). then samuele and the rest of .eu can look at it/help in our morning :) [17:09] mvo: yes, will do [17:11] PR snapd#9572 closed: tests: update google sru backend to support groovy [17:13] * mvo hugs cmatsuoka [17:16] mvo: I used the "messy-but-works" alternative because having someting ready in time is important, if I try to tidy up all the details beforehand we'd be at the risk of not having it done end-to-end [17:17] mvo: so I'll try to tidy it up as much as I can after it works but I'll open a draft PR anyway [17:20] cmatsuoka: great, thanks so much! [17:30] mvo: if needed I can move the meeting with Igor around if you wanted to meet before the SU tomorrow? [17:30] we were just going to go over my etrace blog post and get it published tomorrow [17:33] mmm github actions is very confused on 9565 [17:33] * ijohnson sympathizes with github actions for being very confused === King_InuYasha is now known as Conan_Kudo === Conan_Kudo is now known as King_InuYasha [17:42] ijohnson: should be fine, but thank you! [17:45] ack sounds good === ijohnson is now known as ijohnson|lunch === ijohnson|lunch is now known as ijohnson [20:57] PR snapd#9569 closed: tests/nested/core20/save: a test that verifies ubuntu-save is present and set up [20:58] PR snapcraft#3342 closed: unit tests: mock os.environ.copy() for deb tests [22:08] PR snapcraft#3341 closed: repo: move apt ppa helpers into apt_ppa module