/srv/irclogs.ubuntu.com/2020/09/11/#snappy.txt

mupPR core20#86 opened: .travis.yml: use stable snapcraft now <Created by anonymouse64> <https://github.com/snapcore/core20/pull/86>01:34
mborzeckimorning05:22
mborzeckischool run and then a quick errand, back around 905:22
pstolowskimorning07:01
pedroniszyga-kaveri: hi, we are getting google:ubuntu-16.04-64:tests/main/lxd:snapd_cgroup_just_outside failures sometimes, also cgroup-tracking on arch sometimes fails07:03
pedroniszyga-kaveri: for example, https://github.com/snapcore/snapd/pull/9325/checks?check_run_id=110022772507:03
mupPR #9325: strutil: add SortedListsUniqueMerge <Created by pedronis> <https://github.com/snapcore/snapd/pull/9325>07:03
pedronismborzecki: hi, should we sync?07:06
mupPR snapd#9325 closed: strutil: add SortedListsUniqueMerge <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/9325>07:07
pedronismvo: mborzecki: hello, should we sync?07:16
mvopedronis: I'm trying to get an overview about the open PR over the night right now07:17
mvopedronis: but yeah, a quick sync would be good I think07:18
mborzeckire07:20
mborzeckipedronis: sorry starting only now, i can join in 507:20
pedronismborzecki: mvo: ok, I can be in SU in 507:20
mvopedronis, mborzecki call we meet at :30 ? nice round time, only slightly more than 5min :)?07:21
pedronisthat's fine too07:22
mborzeckimvo:  works for me07:23
mupPR snapd#9324 closed: secboot: adjust parameters to buildPCRProtectionProfile <Simple πŸ˜ƒ> <UC20> <Created by cmatsuoka> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9324>07:52
pedronismborzecki: I will push some tweak to the reasel PR, it seems some code was copied before applying feedback about errors08:02
mborzeckipedronis: ok08:12
mupPR snapd#9320 closed: boot: group SealKeyModelParams by model, improve testing <Run nested> <UC20> <Created by cmatsuoka> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9320>08:17
pedronisthx08:18
zygagood morning08:22
mborzeckizyga: hey08:34
zygalong night08:35
* zyga EODd at about 1AM08:35
pedronismborzecki: mvo: I merged master and fixed/adjusted things into #9322, it's ready for 2nd/3rd reviews08:41
mupPR #9322: boot: add call to reseal an existing key <Run nested> <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9322>08:41
mvopedronis: cool, will refresh and go over it again08:41
mvopedronis: approved 9322 as well, funny that we have very similar comments there08:58
mborzeckipedronis: InstallHostFDEDataDir is avaialble in run mode?09:00
pedronismborzecki: for that one we really need a different var for run mode09:01
pedronisI think09:01
pedronisInt09:02
pedronisInstallHost doesn't make sense during run mode09:02
pedronismborzecki: we might need a helper that gives a dir based on mode, depends on details09:03
mvopstolowski: I noticed the spread tests in 9221 tend to fail, are you on this or shall I have a look ? I'm reviewing this right now and was wondering09:11
pstolowskimvo: i'm working on it right now, apart from shellcheck errors it needs to be disabled on some systems because it's too intrusive e.g. for selinux09:13
pstolowskiand also for core09:13
pstolowski(as it's messing up with /var/lib/snapd)09:13
mvopstolowski: cool, I will just wait for the update then09:20
ijohnsonhey mvo, good morning, did you restart tests in #9208 at all? the most recent run I see on that PR does not have the kernel-failover test failing, just the fundamentals test and preparing generally failing09:33
mupPR #9208: tests/nested/core20/kernel-failover: add test for failed refresh of uc20 kernel <Run nested> <Test Robustness> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9208>09:33
mvoijohnson: I didn't restart, I though master was merged09:35
ijohnsonmvo: ok, sorry just trying to understand your comment there cause you said the failover test was failing in that pr09:36
mvono worries, just restart if needed09:38
ijohnsonok, just that I haven't seen the actual kernel-failover test fail and if you saw it fail I would be very interested in logs :-)09:39
zygagood morning ijohnson :)09:40
ijohnsonmorning zyga09:40
zygagosh09:48
zygagnome-shell is stuck09:48
zygaI have a full-screen prompt09:48
zygalike polkit09:48
zygathat prompts me about ssh key of a host09:49
zygaI have no idea why09:49
zygathere are two buttons that don't do anything09:49
zygathe machine is up, I can run stuff but I cannot get that modal popup to go away09:49
zygaI guess it's save and reboot for the new kernel anyway :/09:49
zygabut one argument against modal shell popups09:49
zygaand lack of QA09:49
zyga(this is on focal)09:50
zygait's 2020 but I can ssh -X from a mac to ubuntu and run git gui09:55
zygaI'm happy09:55
mborzeckipedronis: do i remember correctly we shoudl always reseal if the boot chain contains an unasserted kernel?10:01
pedronismborzecki: yes, there's a todo in bootchain how to achieve that10:01
pedronismborzecki: see predictableBootChainsEqualForReseal10:02
mupPR snapd#9327 opened: overlord: assorted typos and miscellaneous changes <Simple πŸ˜ƒ> <Skip spread> <Created by zyga> <https://github.com/snapcore/snapd/pull/9327>10:03
zygaman after this is all done I feel you guys should do a presentation about resaling10:08
zygait seems to have grown into this large complex system all by itself10:09
zyganot that it's any different from the reality it models10:09
ijohnsonI'm actually very curious if there's another linux distro out there that does full disk encryption with automatic resealing like this, I'm inclined to think not10:11
zygaijohnson windows ;D10:15
zygabut jokes aside, it does work for windows10:15
ijohnsonhaha yeah10:15
zygawhich is impressive as it shipped about ~ well boatload years ago10:15
zygawhen was bitlocker introduced?10:15
zygaijohnson also macos but there it's a bit different in implementation10:16
ijohnsonyeah that's not using a generic tpm 2.0 afaik10:16
ijohnson(for mac)10:16
zygaI suspect apple's T2 is more like android encryption10:16
ijohnsonyeah10:16
zygayeah10:16
zygayeah, T2 is totally different10:16
ijohnsonI remember setting up bitlocker on windows 7 in like 201010:16
zygabut it does handshake each hardware in the system10:17
zygaright, I was wondering if I remembered win7 had bitlocker in the pro edition10:17
zygastill10:17
zygait's one hell of a thing to bring it to linux this way10:17
zygaI would love to see this eventually arrive to classic desktop for 22.0410:17
zygaeven if you have some more rigidity in result10:17
ijohnsonyeah the automatic nature of it makes it super useful for installing I think, if your system has tpm 2.0 + uefi, bam fde for free w/ no passphrase, etc.10:18
zygaI think this will be very popular for corporate users10:19
zygaoh my10:27
* zyga realized unexport-content should be after unlink-snap10:27
pstolowskimvo: pushed to 922110:31
mvopstolowski: thanks, looking10:31
zygaI need more spread tests10:32
zygaor a check in all tests10:32
mupPR snapd#9327 closed: overlord: assorted typos and miscellaneous changes <Simple πŸ˜ƒ> <Skip spread> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9327>10:33
zygathanks mvo10:33
mupPR snapd#9328 opened: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>10:38
mborzeckipedronis: ^^10:39
zyganeat, no failures10:44
zygalet's add some spread tests now10:44
mvopstolowski: let me poke at this a bit, I have some ideas10:46
pstolowskimvo: ok, thank you. i'm playing with it as well10:48
mvopstolowski: how does http://paste.ubuntu.com/p/ZDk8fR5Pz9/ look (untested, but should give hte idea)?10:53
zygamvo are we measuring space in snapshots or in the parent dir?10:55
pstolowskimvo: hmm i wonder if we will get correct size in snapd if it's not a single filesystem10:55
pstolowskiyeah exactly, what zyga says10:55
zygabrb, need to stretch a little10:56
zygapstolowski I wonder if we could stop snapd, mv all of var/lib/snapd over, mount a tmpfs, copy things and resume the test10:58
zygabonus points for cleanup that just unmounts10:58
pstolowskiyeah i had that initially but hit some issues (don't remember what that was anymore, probably solvable)11:00
mvopstolowski: it looks like we test for the actual path so that should work, I can tweak and run locally to double check11:04
pstolowskimvo: i can try that, i like how it simplifies it and avoid space calc11:05
mvopstolowski: yeah, that's the appeal11:06
mborzeckipedronis: hmm boot.Device needs to have Model() now too right?11:19
pedronismborzecki: yes11:19
pedronisI knew about that but forgot to mention11:19
pedronismborzecki: I reviewed #9328, mostly a lot of nitpicks11:20
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>11:20
mborzeckipedronis: cool, thanks (and thanks to mvo too!)11:20
pedronismborzecki: thx for it11:20
pstolowskimvo: so this gives this - Download snap "hello-world" (29) from channel "stable" (link /var/lib/snapd/snaps/hello-world_29.snap /var/lib/snapd/cache/b07bdb78e762c2e6020c75fafc92055b323a6f8da3ab42a3963da5ade386aba11f77e3c8f919b8aa23f3aa5c06c844f9: invalid cross-device link) :(11:24
pstolowskimvo: which reminded me that i tried this approach before11:24
pstolowskimvo: that's because of our hardlink cache logic11:24
pedronismborzecki: one more comment11:24
pstolowskii need a short break and lunch11:25
* pstolowski lunch11:25
mvopstolowski: yeah, just noticed this too, slightly annoying that our code is not more robust here, I think that's a bug in itself. oh well11:27
* mvo also lunches11:27
* zyga is bad at taking breaks11:28
zygataking one now for real11:28
pedronismborzecki: should I do a small PR to complete predictableBootChainsEqualForReseal ?11:33
mborzeckipedronis: go ahead11:34
mborzeckithanks!11:34
pedronismborzecki: made another remark11:34
mupPR snapd#9329 opened: boot: consider boot chains with unrevisioned kernels incomparable <Skip spread> <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/9329>11:58
pedronismborzecki: done ^11:58
ogra_so in #9307 i added "tee" to  tests/lib/snaps/test-snapd-policy-app-consumer/meta/snap.yaml , yet the test still fails and does not seem to find my added lines ...12:00
mupPR #9307: interfaces/tee: add TEE/OPTEE interface <Needs security review> <Created by ogra1> <https://github.com/snapcore/snapd/pull/9307>12:00
ogra_https://github.com/snapcore/snapd/pull/9307/checks?check_run_id=1092075286 is just telling me to add it to that file12:00
ogra_am i missing anything (and do we perhaps have some doc where to typically turn the knobs to add the expected tests)12:01
ogra_(bah, there seems to be a missing space in the plug decl. ignore the question .. i'll ask again if it fails again)12:06
pedronisijohnson: answered your review question12:08
zyga  hmm12:10
ijohnsonpedronis: ack makes sense, but why skip spread on that PR?12:12
zygasigh12:12
pedronisijohnson: nothing is using that function yet12:12
ijohnsonok12:12
pedronisijohnson: #9328 uses it, but in a helper that itself is not used yet, but ideally we should land this first then that12:14
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>12:14
ijohnsonmakes sense, I +1d it12:14
ijohnsonI'm working through a review of 9328 now12:14
ijohnsonwell actually gonna make more coffee then will continue working through that12:14
mborzeckiwow, seal tests are pita to set up12:14
pedronismborzecki: yes, we might need some helper12:15
ijohnsonmborzecki: hmm is it a typo in TestMakeBootable20RunMode that we use Revision: snap.Revision{N: 0}, for pc-kernel_1.snap ?12:22
ijohnsonshould that actually be snap.Revision{N:1}, ?12:22
ijohnsonit's just unexpected to me that in the BootChain you read from the file at the end of that test we get `KernelRevision: "",`12:22
pedronisthat seems weird12:23
pedronisrevisions starts at 1, 0 is unset12:23
pedronisif the goal is to make it look local/unasserted then its N: -112:23
ijohnsonyeah I think it's a typo from the previous PR12:24
ijohnson(which coincidentally I approved /o\ )12:24
pstolowskimvo: fyi my get_disk_usage helper has an issue in that spread test, i might have a fix12:26
ijohnsonpedronis: I finished lookingat 9328, is there another pr I should look at before SU today?12:29
ijohnsons/today/right now/12:29
pedronisijohnson: #9322 could use a 3rd review (given that I worked a bit on it myself)12:30
mupPR #9322: boot: add call to reseal an existing key <Run nested> <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9322>12:30
ijohnsonsure12:30
pedronis#9239 needs a 2nd review, it's small12:36
mupPR #9239: many: misc doc-comment changes and typo fixes <Simple πŸ˜ƒ> <Skip spread> <Created by anonymouse64> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9239>12:36
ijohnsonoh?12:36
pedronisheh12:37
pedronisI meant #932912:37
mupPR #9329: boot: consider boot chains with unrevisioned kernels incomparable <Skip spread> <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/9329>12:37
ijohnsonmborzecki: are you still running arch? are you able to install the vokoscreen-ng snap via snap install ?12:39
mupPR snapd#9329 closed: boot: consider boot chains with unrevisioned kernels incomparable <Skip spread> <UC20> <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9329>12:53
mupPR snapd#9322 closed: boot: add call to reseal an existing key <Run nested> <UC20> <Created by cmatsuoka> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9322>12:58
mupPR snapd#9330 opened: boot: reseal when updating boot assets <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9330>13:28
pedronismborzecki: I re-reviewed #932813:47
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>13:47
pstolowskimvo: only unrelated failures in #9221 now13:50
mupPR #9221: tests: disk space awareness spread test <Disk space awareness> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9221>13:50
* zyga errand 13:50
mvopstolowski: cool, looking13:53
cachiozyga, when you have a momento could you take a look again to #931613:55
mupPR #9316: tests: use full path to test-snapd-refresh.version binary <Simple πŸ˜ƒ> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9316>13:55
ijohnsoncachio: I commented on your other similar PR that's the wrong way to fix this13:56
ijohnsonwe should figure out why /snap/bin is not on $PATH13:56
cachioijohnson, you mean for the tests.tool right?13:59
cachiobecause it is on $PATH for snap run o if I just execute the snap13:59
ijohnsoncachio: I mean this comment https://github.com/snapcore/snapd/pull/9315#issuecomment-69037516614:00
mupPR #9315: tests: fix snap-routime-portal-info test <Simple πŸ˜ƒ> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9315>14:00
cachioijohnson, I am not sure yet but think the issue is related to the tests.session setup, but really couldn't find where14:04
cachiobecuause it fails just when we run using tests.session14:05
cachioijohnson, I mean, this works: su -c 'snap run test-snapd-refresh.version' test | MATCH v114:06
mborzeckipedronis: cmatsuoka: hmm, current code assumes we always have a trusted assets bootloader :/14:24
mborzeckiand fails otherwise14:24
mborzecki(i mean the reseal code)14:24
pedronismborzecki: we should check that outside, if it's not trusted there is nothing to do, really14:25
pedroniswe need to cleanup bootloader interface zoo14:25
pedronisbut basically is like that atm14:25
pedronismborzecki: do you need more input on this?14:26
pedronismborzecki: well, outside, maybe inside, I don't know how you structured your helpers14:27
* cachio afk 14:34
zygacachio sure14:38
zygacachio replied14:39
mupPR snapd#9331 opened: boot: reseal when changing kernel <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9331>15:14
mborzeckipedronis: mvo: cmatsuoka: more like an RFC really ^^15:16
mvomborzecki: thank you!15:17
cmatsuokamborzecki: I'll check after lunch, thanks!15:19
mvomborzecki: why rfc? it looks pretty reasonable from a quick look15:19
mvomborzecki: anything to watch out for?15:19
mborzeckimvo: hope i got all the places that need to be tweaked, the tests could use more work15:20
mborzeckiand bootloadertest.MockTrustedBootAssetsBootloader is kind of getting in the way15:20
* mvo nods15:21
mborzeckibtw. the tests are spotty for calls to seal/reseal when the bootlaoder is not a trusted assets one15:21
mborzeckiand probably the same if there's no trusted assets (even if bl implements the interface)15:21
mborzeckilanding #9328 will make the other PRs considerably smaller15:24
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>15:24
mborzeckiwth `src/github.com/snapcore/snapd/overlord/snapstate/check_snap.go:485:26: ambiguous selector deviceCtx.Model`?15:29
mborzeckibut it builds just fine locally, maybe a go version change?15:29
pedronismborzecki: IsResealNeed is not used yet, right?15:37
mborzeckipedronis: it's not15:38
mborzeckipedronis: cmatsuoka: mvo: do we need to sync? i'll need to wrap it up ~6 to take the kids to a swimming class15:42
pedronismborzecki: I think the code is understable, anyway we need to land one piece at a time15:45
pstolowskii see recurring failures of google:ubuntu-16.04-64:tests/main/lxd:snapd_cgroup_just_inside15:47
pedronisyes, I mentioned that in the morning15:47
pstolowskiright, not sure zyga saw your message15:51
pedronisthere are some missing tests in 932815:52
pedronismmh15:53
mborzeckidamn, i'm late, i'll check back in later16:02
pedronismborzecki: sorry, my answer was a no16:03
pedronismaybe it wasn't clear16:03
cmatsuokamborzecki: sorry, I was away, back now16:13
pedroniscmatsuoka: can we sync quickly?16:15
cmatsuokapedronis: sure16:16
pedroniscmatsuoka: going to the standup channel16:16
pedroniscmatsuoka: https://github.com/snapcore/snapd/pull/9328#pullrequestreview-48695180616:32
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>16:32
cmatsuokapedronis: ack16:32
* pedronis dinner break16:34
cachioijohnson, updated the PR following the zyga's recomendation16:55
ijohnsoncachio: ok, which pr ?16:55
cachioijohnson, #931516:56
mupPR #9315: tests: fix snap-routime-portal-info test <Simple πŸ˜ƒ> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9315>16:56
cachioijohnson, I think it is still open the fact that the env is not correct and needs to be fixed16:57
cachioijohnson, there is  another one opened with that discussion #931616:57
mupPR #9316: tests: use full path to test-snapd-refresh.version binary <Simple πŸ˜ƒ> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9316>16:57
ijohnsonok, as long as we know that's the issue and that should be fixed eventually I think it's fine to fix the way you did16:57
ijohnsoncachio: can you add a TODO in tests.session somewhere to debug why that doesn't work?16:58
ijohnsondoesn't have to be in these PR's, can be a different PR16:58
cachioijohnson, sure, thanks!!16:58
pedronisijohnson: nested tests failed here: https://github.com/snapcore/snapd/pull/9328 we need to understand why17:20
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>17:20
ijohnsonpedronis: mmm looks like the generic problem we keep seeing where sometimes uc20 users don't get created or get created too slowly17:21
pedronisshould I just try again?17:21
ijohnsonjust a second let me finish perusing the logs17:22
ijohnsonI mean to be clear, yes there is a real problem with the nested uc20 tests somewhere and I'm doing my best to track it down17:22
ijohnsonbut just because they failed on this pr doesn't mean that this pr caused that17:23
ijohnsonpedronis: yeah go ahead and restart that pr, there's nothing indicative in the logs17:25
ijohnsonpedronis: note that the minimal-smoke test just timed out there, the other one we just never got a user login17:26
* ijohnson lunches17:26
pedronisijohnson: let's see how it goes, the PR adds writing one more file during install fwiw17:26
pedronisso it's not completely neutral17:26
cachiopedronis, hey, I am trying to fix some tests which require a model signed by canonical17:34
cachiopedronis, is it ok if I add a env var to set when the model is not signed by canonical so then we can skip some parts of the tests17:34
cachiobecause surrently the smapd-model test fails on beta validation because I am signing the models used for those images17:35
pedroniscachio: it depends, we have other option nowadays,  you can also put serial-authority: generic in your model17:35
cachiopedronis, ahh, right17:36
pedronisthe test needs changes but not skipping full bits then17:36
cachioMy idea is just to skip small parts of the test17:36
cachioI'll try adding serial-authority: generic first17:37
pedronisI understand my point is that you could set a var that says if we expect serial signed by canonical or generic etc but depends on details17:37
pedroniscachio: is it a lot of tests ? a few17:37
pedronis?17:37
cachiopedronis, just a few17:37
cachiorefresh-* and snap-model17:38
pedroniscachio: I don't have  a lot of time today, if you can make a list I could look next week?17:38
cachiopedronis, sure17:38
cachiothanks17:38
mborzeckire17:55
cachiopedronis, I think the problem is solved now, I moved all the model to canonical, I used to use my models because I needed a user assertion but now I am using cloud init in all the cases17:59
cachioso I'll just leave the model signed by me for nested tests where we test user assertions18:00
cachiopedronis, does it make sense?18:00
pedronismborzecki: cmatsuoka: I just noticed, is not that we don't check if we have the right boot loader, we also don't check if we have a key or encrypted disk at all, in reseal? is that right?18:00
cmatsuokahmm, this check will be needed somewhere18:01
* cmatsuoka takes note18:01
mborzeckipedronis: yes, we don't18:01
pedronisok, just double checking18:02
mborzeckiheh, https://github.com/snapcore/snapd/pull/9330 panics (the unit tests are passing though)18:03
mupPR #9330: boot: reseal when updating boot assets <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9330>18:03
pedronisyes, I expect one I said is part of the problem18:04
pedronis*what I said18:04
mborzeckinot sure why modeenv would be nil though there18:04
pedronisbecause nothing has change?18:05
pedronismaybe we have nop18:05
pedronisanyway I'm trying to look a bit around18:05
pedronisin the code18:05
pedronisto re-understand some things18:05
mupPR snapd#9332 opened: spread.yaml, tests/nested: misc changes <Run nested> <Simple πŸ˜ƒ> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9332>18:10
mupPR snapd#9333 opened: tests/nested, fakestore: changes necessary to run nested uc20 signed/secured tests <Run nested> <Test Robustness> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9333>18:15
mupPR snapd#9334 opened: tests/nested/manual: add test for grades above signed booting with testkeys <Run nested> <Test Robustness> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9334>18:15
pedronismborzecki: we don't track assets at install if we are not encrpyting, but we try at update18:15
mborzeckipedronis: yes, we create the observer, probably shouldn't be18:15
pedronisyes, trying to find the cleanest way to achieve that18:16
mborzeckipedronis: there's a checkEncryption helper in devicestate18:17
pedronisI know18:18
pedroniswe don't want to use that18:18
pedronisit's more whether we should encrypt first time18:18
mupPR snapd#9065 closed: debug: forward systemd journald output to serial console when booting for uc20 <Precious Logs> <Run nested> <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/9065>18:20
pedronismborzecki: we can call BeforeWrite and then Cancel together right?18:28
* ijohnson soft-eows18:29
mborzeckipedronis: cancel is called after before write, but it may also be called without before write (if we never got past the backup pass)18:31
mborzeckipedronis: added TODO that it makes no sense to reseal in canceled if we never resealed in before write18:32
pedronismborzecki: this is not the end of the story, but does this change in itself make sense: https://paste.ubuntu.com/p/XrgxJSyrM9/18:40
mborzeckipedronis: got a bit more changes, i'll push them to 9330 in a bit18:41
pedronismborzecki: changes about what?18:42
mborzeckipedronis: tests mostly18:42
mborzeckipedronis: but the change in BeforeWrite is almost the same18:42
pedronismborzecki: sorry, I thought you were done coding18:42
pedronisfor the day18:42
mborzeckipedronis: came back for a bit, high priority thing after all18:43
pedronismborzecki: yes, but maybe we need to sync, I don't think we want to do the same things twice :)18:44
cmatsuokaI'll merge #932818:44
mupPR #9328: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9328>18:44
zygare18:45
mupPR snapd#9328 closed: boot: store boot chains during install, helper for checking whether reseal is needed <Run nested> <UC20> <Created by bboozzoo> <Merged by cmatsuoka> <https://github.com/snapcore/snapd/pull/9328>18:45
mborzeckipedronis: pushed a patch to this branch: https://github.com/snapcore/snapd/compare/master...bboozzoo:bboozzoo/uc20-reseal-with-boot-assets-wip (the last one)18:46
mborzeckipedronis: this one exactly: https://github.com/snapcore/snapd/commit/ed30e18ed284ce77893ea5031e3d871cbfca836e18:46
pedronismborzecki: ok, better than my quick thing18:48
mborzeckipedronis: shall i push it?18:48
pedronisyes18:49
mborzeckiok18:49
pedroniscode wise, that diff is all I did18:49
pedronisI'm thinking about something but haven't coded it yet18:49
mborzeckik, pushed now18:50
mupPR snapd#9316 closed: tests: use full path to test-snapd-refresh.version binary <Simple πŸ˜ƒ> <Created by sergiocazzolato> <Merged by zyga> <https://github.com/snapcore/snapd/pull/9316>18:50
mborzeckiah, and 9328 landed, i can merge master too now18:50
pedronisyes18:51
mborzeckipushed, added 'run nested' label and closed/reopened so that we get a full run18:52
mborzeckieod for real this time, time to tuck the kids to bed18:52
mupPR snapd#9335 opened: boot: verify boot chain file in seal and reseal tests <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9335>18:55
pedronisijohnson: could you review https://github.com/snapcore/snapd/pull/9335 ?19:02
mupPR #9335: boot: verify boot chain file in seal and reseal tests <Skip spread> <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9335>19:02
* cmatsuoka afk for 30min, virtual school meeting for parents19:13
ijohnsonpedronis sure in a little bit19:18
pedronisthx19:19
mvoanything i can help withß19:22
mvo?19:22
ijohnson+1d19:26
pedronismvo: I think our reseal code has all the wrong dirs19:37
mvopedronis: oh no!19:37
mvoijohnson: did you see that the nested tests failed in 9334 =19:37
mvo?19:37
mvo(sorry if I'm stating something that was already discussed)19:38
mvopedronis: do you have more details somewhere?19:38
pedronismvo: no, just staring at code, there's too much Install * in there19:38
* mvo nods19:39
mupPR snapcraft#3283 opened: specifications: unified provider <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3283>19:47
pedronismvo: maybe they work anyway, not sure19:49
mvopedronis: I suspect we have the same /run/mnt mounts in run mode19:49
mvopedronis: but I need to double check19:49
* mvo checks19:49
mvopedronis: I guess you mean  InstallHostFDEDataDir = dirs.SnapFDEDirUnder(InstallHostWritableDir) which is  InstallHostWritableDir = filepath.Join(InitramfsRunMntDir, "ubuntu-data", "system-data") ? we have /run/mnt/ubuntu-data also in run mode19:56
mvo(or am I misunderstanding?)19:56
pedronisyes, I mean those19:56
pedronismvo: anyway #9330 can be reviewed (though I'm not sure is not missing some code to really work when we haven't encrypted)19:59
mupPR #9330: boot: reseal when updating boot assets <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9330>19:59
ijohnsonmvo mmm no I did not I'll have a look20:04
cmatsuokapedronis: it seems to be the case, I think it will fail if the system is not encrypted20:04
mvopedronis, cmatsuoka should we makr 9330 as "ready" (i.e. move it out of draft?)20:12
mvoit looks reasonable to me20:12
pedronismvo: yes20:12
cmatsuokamvo: yes, I think so20:15
mvota20:16
* cmatsuoka is getting confused with his local branches, time to remove a few of them20:24
mvoI merged master into 9331, it's a bit smaller now20:24
pedronismvo: anyway I'm working on resealing only if we had sealed keys and if the boot chains are different20:25
pedronisthat's a piece that no PR has atm20:25
mvook20:25
pedronismaybe we need to land 9330, maybe not20:25
mupPR snapd#9335 closed: boot: verify boot chain file in seal and reseal tests <Skip spread> <UC20> <Created by cmatsuoka> <Merged by cmatsuoka> <https://github.com/snapcore/snapd/pull/9335>20:25
pedronissorry, I meant, maybe we need that logic already to land 9330 maybe not20:26
mvopedronis: aha, right20:26
pedronismvo: I looked at 9331 a bit, I think it will need a bit more work20:26
pedronisbut haven't done a proper review20:26
mvopedronis: ok, what's your hunch on what is missing?20:27
pedronistests I think and the changes in bootstate20.go seems a bit too invasive (maybe they are really needd like that, not sure)20:28
* mvo nods20:28
mvothanks20:28
ijohnsonpedronis anything for me to review before EOW ?21:20
pedronisijohnson: I'm trying to finish something but is not quite ready yet21:21
pedronisdefeated by SnapFDEDir = SnapDeviceDirUnder(rootdir)21:22
pedronisspot the error21:22
ijohnsonshould it have a filepath.Join somewhere?21:22
pedronisno s/Device/FDE/21:23
pedronisanyway apparently nothing is using it yet, except the test code I was writing21:23
cmatsuokaouch21:23
ijohnsonAh21:24
pedronisnow unit tests are passing, maybe I can propose this but is on top of #933021:27
mupPR #9330: boot: reseal when updating boot assets <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9330>21:27
* cmatsuoka needs to eod, but I'll check the PR at some point during the weekend21:36
cmatsuokaor he will, to be consistent21:36
pedronisok, I proposed #9336 on top of #933021:39
mupPR #9336: boot,many: do not reseal unless is meaningful and necessary <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/9336>21:39
mupPR #9330: boot: reseal when updating boot assets <Run nested> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9330>21:39
ijohnsonI'll try to take a look later tonight21:39
ijohnsonHave a good weekend pedronis and cmatsuoka21:39
cmatsuokathanks! you too21:39
mupPR snapd#9336 opened: boot,many: do not reseal unless is meaningful and necessary <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/9336>21:40
pedronisseems I skipped one commit :/21:42
pedronisijohnson: I'll have to close it and open it again, it's a bit confusing atm21:44
mupPR snapd#9336 closed: boot,many: do not reseal unless is meaningful and necessary <UC20> <Created by pedronis> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/9336>21:46
pedronisreproposed as #933722:05
mupPR #9337: boot,many: reseal only when meaningful and necessary <Run nested> <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/9337>22:05
mupPR snapd#9337 opened: boot,many: reseal only when meaningful and necessary <Run nested> <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/9337>22:06
ijohnsonack I'll take a look at that one then22:14
mupPR snapd#9315 closed: tests: fix snap-routime-portal-info test <Simple πŸ˜ƒ> <Created by sergiocazzolato> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9315>22:21

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