/srv/irclogs.ubuntu.com/2020/04/20/#snappy.txt

mborzeckimorning05:44
mborzeckimvo: hey06:08
mvomborzecki: good morning!06:08
mborzeckihmm something for zyga https://paste.ubuntu.com/p/fMmRQNryVs/06:11
zygamborzecki, mvo: we must disable parallel instances for classic06:21
zygamborzecki: that is already excluded, I suspect someone ran a PR from earlier master06:22
zygaalthouhh06:22
zyga*although06:22
zyga2020-04-17T20:30:19.4282018Z + find /run/snapd -user test '!' -path '*/user@12345.service/*'06:22
zygainteresting, so there's another form on 20.04 now06:22
zygaoh well06:22
zygaI'll exclude that one too06:22
zygathanks06:22
mvothanks zyga06:23
zygahttps://bugs.launchpad.net/snapd/+bug/187370106:23
mupBug #1873701: support for parallel instances on classic breaks all snap remove in lxd <snapd:New> <https://launchpad.net/bugs/1873701>06:23
mborzeckizyga: what's broken with paralle instances?06:23
zygamvo: I believe this is urgent06:23
zygamvo: not security related06:24
zygamvo: it's just a bug that is particularly annoying, you cannot remove snaps, system is in a broken state06:24
mvozyga: right, when does it happen? it's behind a experimental flag so how easy is it to trigger?06:24
zygamvo: IIRC the flag is enabled on master now06:25
zygamvo: basically using edge breaks when you try to remove snaps06:25
mborzeckizyga: iirc it's still experimental on master06:25
zygamborzecki: hmmm then something is broken06:26
zygamborzecki: we may not respect the flag then06:26
zygamborzecki: it definitely takes effect on edge06:26
mvozyga: also why did we not caught this in tests :/06:26
zygamborzecki: try the bug instructions please06:26
mvozyga: what bugnumber is that again?06:26
zygamvo: just above06:26
zygamvo: 187370106:26
zygamvo: in other news snapd is entirely unusable in a 14.04 lxd container06:28
zygamvo: due to at least three bugs06:28
mborzeckizyga: hm not sure i see it, how's that parallel instances?06:28
zygamvo: not sure if we want to be explicit about that06:28
zygamborzecki: it's the /snap mount point06:28
zyga β”œβ”€/snap /dev/sda5[/var/snap/lxd/common/lxd/storage-pools/default/containers/sid/rootfs/snap]06:29
zygawe created this for parallel instances06:29
zygamvo: and there's a typical duplication of entries it causes06:29
zygaer mborzecki ^06:29
mborzeckizyga: ok, see that now, isn't that the shared code in s-c?06:30
zygayes06:30
mvozyga: oh, interessting. we sometimes hat "cannot umount ..." errors, do you think that could explain it?06:30
zygamborzecki: I think it just runs06:30
zygamvo: perhaps06:30
zygamvo: would have to look at a specific instance06:30
zygamvo: related to your work, another bug: https://bugs.launchpad.net/snapd/+bug/187370306:31
mupBug #1873703: snapd doesn't start in a Ubuntu 14.04 container <snapd:New> <https://launchpad.net/bugs/1873703>06:31
zygamvo: this one I believe affects 14.04 in general, I cannot explain why it doesn't fail in our tests06:31
zygamvo: it's also easy to reproduce06:31
zygamvo: one more https://bugs.launchpad.net/snapd/+bug/187370406:31
zygamvo: I guess we just never tested this case06:31
mupBug #1873704: snapd cannot be used in a Ubuntu 14.04 container - no squahsfuse <snapd:New> <https://launchpad.net/bugs/1873704>06:32
zygamvo: there's one more bug that I didn't report, 14.04 containers do not have loopback control device, making it impossible to mount any snap, even with side-loaded snap/squashfuse06:32
zygabut I want to ask stgraber about it first06:32
zygain other news, good morning06:34
mvozyga: the lxd one is confusing06:34
zygasorry to bring bad news up front06:34
mvozyga:  dpkg -L snapd |grep fuse06:34
mvo/usr/bin/snapfuse06:34
zygamvo: where? it's not in the archive package06:34
mvozyga:  apt list --installed snapd06:34
mvoListing... Done06:34
mvosnapd/focal,now 2.44.3+20.04 amd64 [installed,automatic]06:34
zygamvo: perhaps I messed something up but it was definitely not there when I tried06:34
mborzeckizyga: / wasn't shared under lxd, was it?06:35
zygamvo: that's a focal package :)06:35
zygamborzecki: correct06:35
zygamvo: 14.04 package is older and doesn't have it06:35
mborzeckizyga: right, so this is where the bind mount /snap -> /snap comes from06:35
mvozyga: maybe it's another instance of 14.04 deb needing an update, I pushed something some weeks ago and then it lost with the people who can actually update things in 14.04 :/06:35
zygamborzecki: I see06:35
mvozyga: old pkg> aha, yes, then that's the case06:35
zygamborzecki: I wonder what's the new thing then, was removing snaps in containers always broken06:36
zygamborzecki: can you reduce my reproduction case to something smaller06:36
zygamaybe the edge snapd there is not required?06:36
zygamborzecki: it was kind of late when I reported it06:36
mborzeckizyga: looking at the pr with classic & parallel, the change was to have that mount ns setup when we're running a !classic snap || the experimental flag is set06:39
mborzeckizyga: then we make sure that /snap is shared bind mount if / isn't06:39
mborzecki(so lxd case?)06:40
mborzeckithe experimental flag would also trigger /var/snap mount06:40
zygaindeed!06:40
zygamborzecki: so I guess the interesting combination is the edge refresh06:44
zygamborzecki: this code used to be absent06:44
zygamborzecki: right?06:44
mborzeckizyga: hmm i would think a scenario like this, install (mount appears), you run a snap (/snap -> /snap appears), refresh happens (new mount appears), remove only unmounts /snap/foo/{n,n+1}, the original /snap/foo/{n} mount hidden by the /snap -> /snap is still present?06:48
zygamborzecki: I don't think so, the app snap has only one revision06:49
mborzeckizyga: isnt't that similar to the problem we tried to solve with snap.mount unit that broke things on upgrade?06:49
zygamborzecki: it's the core snap that gets refreshed06:49
mborzeckizyga: ah core, ok, but the app snap was run, and it triggerd /snap -> /snap bind mount06:50
zygayes, that part is essential06:51
mborzeckizyga: then the mount /snap/open-watcom that had the /snap->/snap as its parent was cleaned up, but one that was under / was not06:53
zygathat's how I understand it as well06:54
mborzeckihm it'd be intersting to check that on older snapd, but that shared / check was present for a long time06:54
zygamborzecki: perhaps we should do something else, detach everything and remount / attach06:54
mborzeckiwonder if we call it earlier now06:55
mupPR snapd#8522 opened: asserts: introduce ModelGrade.Code <Created by pedronis> <https://github.com/snapcore/snapd/pull/8522>07:16
pstolowskimorning07:17
mborzeckipstolowski: good morning!07:17
mupPR snapd#8523 opened: image,seed/seedwriter: support redirect channel aka default tracks <Created by pedronis> <https://github.com/snapcore/snapd/pull/8523>07:36
mupPR snapd#8524 opened: bootloader: use binary.Read/Write <Simple πŸ˜ƒ> <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/8524>07:40
pedronismvo: mborzecki: hi, I proposed some small PRs, two are UC20 related, one is the default track fix for prepare-image07:44
mvopedronis: thank you07:57
pedronismborzecki: is #8487 ready for reviews?07:58
mupPR #8487: gadget, cmd/snap-bootstrap: MBR schema support <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8487>07:58
mborzeckipedronis: yes, please do07:58
zygare08:52
zygamborzecki: https://github.com/snapcore/snapd/pull/852509:02
mupPR #8525: tests: ignore user-12345 slice and service <Created by zyga> <https://github.com/snapcore/snapd/pull/8525>09:03
mupPR snapd#8525 opened: tests: ignore user-12345 slice and service <Created by zyga> <https://github.com/snapcore/snapd/pull/8525>09:03
zygamborzecki: I think that should fix it09:03
zygaI need a review for https://github.com/snapcore/snapd/pull/852509:13
mupPR #8525: tests: ignore user-12345 slice and service <Created by zyga> <https://github.com/snapcore/snapd/pull/8525>09:13
zygaer wait09:13
zygabad paste09:13
zygahttps://github.com/snapcore/snapd/pull/851509:13
mupPR #8515: testutil: add NewDBusTestConn <Created by zyga> <https://github.com/snapcore/snapd/pull/8515>09:13
pstolowskimvo: hey, found one issue in your initramfs PR; i'm testing it this morning and something is still not quite right, same symptoms as before with cloud-init 🧐09:29
pstolowski(to be clear, your change takes effect and does the thing)09:29
mborzeckimeh everything is red09:36
=== pedronis_ is now known as pedronis
mvopstolowski: aha, do you have more details? or maye the image so that I can run it myself?10:09
pstolowskimvo:  cloud-init is not run, extra-users are not created, don't have any other clues yet. i can share the image, give me a moment. nb ubuntu-image will need a change afaict, atm i'm moving system-defaults to the proper location alongside system-data and user-data manually10:16
mvopstolowski: yeah, sharing the image would be ideal, if it's not too much effort10:21
mvopstolowski: that should allow me to peek at things10:21
mvopstolowski: might be something silly, I really want to write this spread test but didn't had time yet :(10:22
pstolowskimvo: aaah i think i know10:26
pstolowskimvo: i didn't update writable-paths10:26
mvopstolowski: no update it in what way?10:28
pstolowskimvo: ah nvm, got confused. of course i'm not writing to /etc/systemd anymore, so not an issue. hmmm10:28
pstolowskimvo: ok i uploaded the image10:28
mvopstolowski: please share the link10:29
pstolowskimvo: sent you gdrive link10:30
mvopstolowski: checkin10:30
mvog10:30
mvopstolowski: downloading now10:32
pstolowskimvo: actually, it seems it didn't copy the rsyslog symlink from system-data-defaults to system-data (but did run, .done is there). it doesn't explain why cloud-init didn't run though10:34
mvopstolowski: interessting10:35
mvopstolowski: booting mine now10:35
pstolowskimaybe i did a mistake somewhere10:35
mvopstolowski: inspecting now, looks like something funny/funky with cloud-init10:40
mvopstolowski: fwiw, I see the /dev/null symlink in /etc/systemd/system/rsyslog.service10:41
pstolowskimvo: yes. but this might have been created by configure hook later10:42
mvopstolowski: aha, ok10:42
mvopstolowski: thanks, that's good to know10:42
pstolowskimvo:  we should see rsyslog -> null symlink in system-data/etc/... as well, copied from system-data-defaults afaiu?10:42
mvopstolowski: yes, I see it there10:44
mvopstolowski: I don't see the var/lib/snapd/features there but that's because snapd cleans this dir on restart10:44
pstolowskimvo: ah jeez, you're right it's there. i must have been blind10:44
mvopstolowski: no worries, let me look at cloud init some more10:45
pstolowskimvo: interesting (about features)10:45
zygapstolowski: to remove features future snapd wrote but we don't know abut10:45
pstolowskizyga: yes, makes sense10:46
mvopstolowski: and I suspect the state has this opiton not set (the experimental robust...)10:48
zygamvo: note, robust is now default10:49
zygawhen uset10:49
zygaunless you explicitly disabled it it should be enabled10:49
zygaunless this snapd is simply older10:49
mvopstolowski: as for cloud-init, it seems like it cannot found a data source, is there a cloud init no-cloud data file somewhere in this image?10:49
mvozyga: aha, thanks10:50
pstolowskimvo: ahh, i forgot to copy cloud-data onto the image!10:53
mvopstolowski: hopefully that is the missing piece of the puzzle!10:53
pstolowskimvo: yep. sorry about that! lots of hops and manual steps10:53
mvopstolowski: if it looks good after this test I will update my core-build PR and also provide this for core2010:53
mvopstolowski: yeah, no worries10:53
pstolowskimvo: note the .done bug10:53
mvopstolowski: yeah, thanks for spotting this, silly me10:54
mvopstolowski: that's what I meant with "will update my pr" :)10:54
pstolowskimvo: afaiu we also need to update ubuntu-image10:56
mvopstolowski: please remind me for what bits?10:57
mvopstolowski: could config?10:57
pedroniswe need to keep it as synced for UC 16/18 because we don't know what people did with hooks10:58
pedronisso u-i should still work10:58
pedronisfor them10:58
pedroniswe want to clean this up a bit but shouldn't be a blocker, or so I think10:58
mvoyeah, this is why I'm asking, I wonder if there is more10:58
pstolowskimvo, pedronis it doesn't seem to take system-data-defaults directory at the root level (alongside user-data and system-data)11:02
pstolowskiunless i messed something11:02
pedronisah11:02
pstolowskiatm i writing them under system-data and move manually before booting for the first time, jsut for the test11:03
pedronisthat's different and might need fixing11:03
pedronisit also works differently in UC16/18 vs UC2011:03
pstolowskii didn't dig into u-i python code yet11:03
pedronisthe directory structure is different11:03
pstolowskipedronis: should we put defaults under system-data to simplify?11:05
mupPR snapd#8524 closed: bootloader: use binary.Read/Write <Simple πŸ˜ƒ> <UC20> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8524>11:05
pedronispstolowski: maybe, something to discuss with mvo11:05
pstolowskimvo: success!11:07
pstolowskimvo: cloud-init works11:07
pstolowskimvo: ^ so the last bit to consider is what i just discussed above with Samuele11:12
zygabrb, a small break11:17
mupPR snapcraft#3060 closed: V2 npm plugin <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3060>11:41
pedronismborzecki: I reviewed #848711:46
mupPR #8487: gadget, cmd/snap-bootstrap: MBR schema support <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8487>11:46
mborzeckipedronis: thanks11:46
mupPR snapd#8523 closed: image,seed/seedwriter: support redirect channel aka default tracks <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8523>12:01
mupPR snapd#8526 opened: image: improve/adjust DownloadSnap doc comment <Created by pedronis> <https://github.com/snapcore/snapd/pull/8526>12:10
mupPR snapd#8527 opened: seed: clearer errors for missing essential snapd or snap <Created by pedronis> <https://github.com/snapcore/snapd/pull/8527>12:14
mvopstolowski: aha, indeed, I think this needs fixing in u-i12:14
mvopstolowski: let me think about this for a moment - we could use /system-data/.defaults12:15
zygamvo: FYI: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools-ubuntu-core/+bug/187379712:32
zygamvo: I didn't look deeper12:32
mupBug #1873797: add_mountroot_fail_hook is either buggy or not used properly, causes boot problems <initramfs-tools-ubuntu-core (Ubuntu):New> <https://launchpad.net/bugs/1873797>12:32
mvozyga: nice, thanks12:34
pstolowskizyga: should https://bugs.launchpad.net/snapd/+bug/1872115 be re-assigned to core? i don't know what to do about it tbh12:37
mupBug #1872115: [UC16] log rotation doesn't properly restart rsyslogd <snapd:New for stolowski> <https://launchpad.net/bugs/1872115>12:37
zygapstolowski: sure, feel free to reassign12:37
zygapstolowski: I can look after beta12:38
zygamvo: ^ if you agree12:38
mvopstolowski: +112:38
mvopstolowski: how do you feel about /writable/system-data/.defaults (cc pedronis) - this avoids the need to modify u-i I think12:39
pstolowskimvo: yes, this works for me, it's more less what i was suggesting12:39
pedronismvo: any particular reason to make it hidden?12:39
mvopedronis: no real reason, mostly worried about potential future clashes but probably a bit silly to worry about this12:40
mvopedronis: if not hidden, maybe /writable/system-data/config-defaults even ?12:40
pedronisI actually think that making it hidden makes clashes a bit more likely12:40
pedronisI have a /.cache which I don't know what makes it12:41
mborzeckipedronis: updated 848712:41
mvopedronis: ok, not-hidden is fine for me12:42
pedronismvo: pstolowski: let me think a bit about the name12:42
mvook12:43
pedronismvo: all other directories there are meant to be bind mounted, right?12:44
mvopedronis: correct12:44
mvozyga: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools-ubuntu-core/+bug/1873797 is about the new initramfs code, right?12:48
mupBug #1873797: add_mountroot_fail_hook is either buggy or not used properly, causes boot problems <initramfs-tools-ubuntu-core (Ubuntu):New> <https://launchpad.net/bugs/1873797>12:48
zygamvo: I don't know, it's just something that flashed through my inbox12:49
mvozyga: it's the old stuff12:49
mvozyga: meh, thanks!12:49
zygapresseding error on ubuntu 20.04 https://www.irccloud.com/pastebin/GMvrEUtj/13:19
zygamvo: ^ the log13:19
mupPR snapd#8525 closed: tests: ignore user-12345 slice and service <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/8525>13:19
mvozyga: yeah, I saw it, I suspect it's because something changed (lxd from using core->core18?)13:27
zygaah, inded13:27
zygathat did happen just recently13:27
zygaENOTEA13:41
zygaI'll eat lunch and make some tea13:42
zygattyl13:42
ijohnsonmborzecki: you said you were going to try and pick up the ubuntu-boot grub.cfg writing from snapd? this is also needed for the pi4 boot, since when we run makeBootable20RunMode during install mode, we need the ubuntu-boot uboot.env to be there during the reboot's initrd, otherwise snap-bootstrap can't find a bootloader13:45
ijohnsonmborzecki: what I was going to do in the short term until we rewrite the ubuntu-boot boot assets like this was to just have the pi gadget install it's empty uboot.env to ubuntu-boot, so that the gadget partition creation effectively installs an empty uboot.env there13:46
mupPR snapcraft#3063 opened: cli: update command names to new design <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3063>13:59
pedronisijohnson: to be clear, hard coding boot config is only for grub for now14:20
ijohnsonpedronis: why only grub ?14:20
pedronisijohnson: because we measure thing only with grub atm14:20
ijohnsonpedronis: but we basically have the same need for i.e. u-boot too for uc20?14:21
ijohnsonnot for measuring14:21
ijohnsonbut just for booting14:21
pedroniswe don't  measure14:21
pedronisso there no a deep constraint14:21
pedronisalso there's more variability on uboot land14:21
pedronisnot sure there will be one uboot.cfg14:21
* cachio afk -> bank14:45
ijohnsonmborzecki: did you see my messages above?15:32
ijohnsonmborzecki: I am pushing forward with just having the gadget put a uboot.env on ubuntu-boot, and pedronis doesn't think it's necessary so probably for now if you pick up my branch just make non-grub bootloaders no-op on that15:33
mupPR snapd#8528 opened: tests: naive fix for preseeding failure <Created by zyga> <https://github.com/snapcore/snapd/pull/8528>15:37
mupPR pc-amd64-gadget#43 opened: Clean up cmdline, after initrd&core land <Created by xnox> <https://github.com/snapcore/pc-amd64-gadget/pull/43>15:38
pedronismborzecki: I re-reviewed #8487, couple small comments15:41
mupPR #8487: gadget, cmd/snap-bootstrap: MBR schema support <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8487>15:41
ijohnsonpedronis: should I re-review that PR?15:41
ijohnsonmy original changes in the PR are probably not relevant15:41
mborzeckipedronis: thanks, i'll push it in a minute15:41
pedronisit does need a 2nd review15:41
mborzeckiijohnson: sorry missed that, let me check the backlog15:41
ijohnsonI'll try to review it today then, I'll also re-test it with the pi today15:41
mborzeckiijohnson: right, grub.cfg for now15:42
ijohnsonmborzecki: yep15:42
pstolowskicachio: ping16:03
cachiopstolowski, hey16:05
pstolowskicachio: do you have a moment for HO?16:05
cachioyes16:06
pstolowskicachio: ok, in standup HO16:06
pstolowskipedronis: having small issue with the gadget + system-files plug + install hook approach as gadget is modified/unasserted, so no autoconected, also connections: in gadget yaml has no effect. not sure if there is any way around this :}. would devmode make sense?16:28
pedronispstolowski: do you know why connections in gadget don't work?16:30
pstolowskipedronis: i suppose snapid is not avilable16:30
pstolowskiat least this is my understanding of the code atm16:30
pedronisah, yes16:31
ijohnsonmborzecki: https://github.com/snapcore/snapd/pull/8487#pullrequestreview-39660894016:31
mupPR #8487: gadget, cmd/snap-bootstrap: MBR schema support <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8487>16:31
pstolowskipedronis: i suppose i could update seed.yaml with devmode for the gadget (so the plug wouldn't be needed).. but that's slightly terrible16:35
pedronispstolowski: it's terrible but is the only thing that will work short term I fear, so it's  ok, the confinment of the hooks is not really what the test is about16:36
pstolowskimhm16:37
pedronis?16:39
pstolowskipedronis: no disagreement16:40
bdx@reviewers bump https://forum.snapcraft.io/t/classic-confinement-request-for-nhc-snap16:48
pedronispstolowski: also preseed tests are failing on 20.0416:56
pedronis2020-04-20T16:49:24.6022877Z + CORE_IMAGE=16:56
pedronis2020-04-20T16:49:24.6023208Z + unsquashfs ''16:57
pedronis2020-04-20T16:49:24.6023431Z Could not open , because No such file or directory16:57
ijohnsonpedronis: seems he quit17:03
ijohnsonpedronis: I thought I saw zyga send a PR for that17:03
mupPR snapcraft#3061 closed: plugins: introduce v2.RustPlugin <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3061>17:12
mupPR snapcraft#3064 opened: cmake v2 plugin: rename configflags to cmake-parameters <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3064>17:24
pedronisijohnson: yes, but it says it actually breaks in a different way17:25
ijohnsonah I didn't actually read the PR, I just saw the notification17:25
mborzeckiijohnson: pushed a fix, thanks for catching this17:28
=== ijohnson is now known as ijohnson|lunch
pedronisso the issue is that cloud images now carry snapd snap, not the core snap17:32
pedronisI disable those preseed tests on 20.04 for now17:42
pedronismmh, do we even need the hacks anymore17:45
=== bdx1 is now known as bdx
mupPR snapcraft#3065 opened: tests: fix local plugin spread test to be multi-arch aware <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3065>18:15
mupPR snapcraft#3031 closed: build_providers: pass through SNAPCRAFT_{BUILD,IMAGE}_INFO to container or VM <Created by jhenstridge> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3031>18:48
mupPR snapd#8529 opened: cmd/snap-bootstrap/initramfs-mounts: support non-ebl bootloaders <UC20> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8529>18:58
=== ijohnson|lunch is now known as ijohnson
ijohnsonpedronis: I opened ^ it would be great if you could review it in your AM and we land it ASAP, I think it's the last bit we need in the initrd specifically to support uc20 on raspi19:00
mupPR snapd#8522 closed: asserts: introduce ModelGrade.Code <UC20> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8522>19:00
mvoijohnson: thank you so much for this19:03
ijohnsonyaw mvo19:03
ijohnsonI will have 1 maybe 2 other PR's in addition to this to get the pi working, but those are just for snapd proper19:04
pedronisijohnson: mmh19:25
pedronisijohnson: I think we should really avoid to touch unrelated tests19:26
ijohnsonpedronis: ?19:27
pedronisthe Bootenv16 hack19:28
ijohnsonpedronis: hmm I guess I can get around that, what do you think the uc20 tests that want to use uc16 style thing should look like?19:28
pedronisthere is probably a simple way to do it without having to touch unrelated tests19:28
ijohnsonpedronis: how about `boottest.MockUC20LegacyKernelBootenv(bootloadertest.Mock("mock", c.MkDir()))` ?19:29
pedronisalso we should try to agree how to call the thing, because legacy is kind of misleading19:29
pedroniswe are stuck with this19:29
pedronisand also it's using kernel_status19:29
ijohnsonyes I really don't know what to call it19:30
ijohnsonwhat I called it in 8512 is "pure env"19:30
ijohnsonbecause it just strictly uses the "bootenv"19:30
pedronisijohnson: and sorry I'm coming from this angle, instead of great, yay progress. I suppose the touching of unrelated tests tend to put me in a slightly critical state of mind19:30
ijohnsonpedronis: it's okay19:31
ijohnsonpedronis: I understand, wdyt about my proposal to use "pure env"19:31
ijohnson?19:31
pedronisijohnson: so there are two things to it, right? one is that is using the env and no symlinks, the other is that the extracted kernel is not one image but a bunch of files in dirs?19:33
ijohnsonpedronis: yes that is true, but note that there's nothing that specifically says we don't have a single image19:34
ijohnsonpedronis: all the code I've written/worked with are just about using env and no symlinks19:34
ijohnsonI don't think we have any assumptions that aren't uboot specific about having multiple files19:34
ijohnsonbut maybe I'm forgetting something19:34
pedronisno, it's likely so19:35
pedronisijohnson: I'm just trying to find something that is not too far from ExtractedRunKernelImageBootloader19:36
ijohnsonpedronis: maybe ExtractedRunKernelImage is wrong19:36
ijohnsonpedronis: maybe we should change that to something like ExtractedRunKernelImageSymlink ?19:37
ijohnsonor ExtractedKernelSymlink19:37
pedronisijohnson: no, it's right because Image means one file19:37
ijohnsonmmm19:37
pedronisbut there are nuances we lose either way19:38
pedronisunless we use unbearably long new names19:38
ijohnsonhow about we just drop run and have ExtractedKernelImageSymlinkBootloader ?  then for this other one it would just be ExtractedKernelEnvBootloader ?19:38
ijohnsonI mean I don't think we get to have short names given the subject matter and the specificity we desire19:38
pedronisanyway it also not the time to rename the other one I think19:38
ijohnsonokay, how about ExtractedKernelEnvBootloader for this new thing ?19:38
ijohnsonit doesn't necessarily need to be an actual bootloader.Bootloader yet19:39
ijohnsonbut we would just call that kind of thing an "extracted kernel env" thing ?19:39
pedronisbut the kernel doesn't need to be extracted, as you said19:39
pedronisit is though in practice19:39
ijohnsonwell I may have mis-spoke, I think we do require it to be "extracted" in that it can't be in a .snap19:40
ijohnsonit needs to be extracted from the snap19:40
ijohnsonbut not really any more extracted19:40
pedronisEnvRefExtractedKernelBootloader19:44
ijohnsonsure that's fine19:45
ijohnsonso then for mocking we would have19:45
ijohnsonboottest.MockUC20EnvRefExtractedKernelRunBootenv(bootloadertest.Mock("mock", c.MkDir()))19:45
pedronisyes19:46
ijohnsona mouthful, but good enough19:46
ijohnsongive me a few minutes to update the PR to not change the other tests19:46
ijohnsonand use this new thing19:46
pedronisI mean you can probably cheat and use/change Bootenv16 if useful as long as it's not visible to the test using it19:47
ijohnsonyes that's exactly what I've done19:47
pedronisI mean the MockUC16 shouldn't take new params19:47
ijohnsonyes19:48
ijohnsonbut the struct now has an additional unexported member that is what status var19:49
ijohnsonto use19:49
pedronisthat's fine I suppose19:49
pedroniswe don't make it directly19:49
ijohnsonpedronis: okay updated back to just 3 files changed19:55
ijohnsonI am going to rename the things in#8512 too to match this new name19:56
pedronisijohnson: why is the first new test separate from the rest? is creating a bit of a confusing diff20:09
ijohnsonpedronis: as I explained in the commit msg / PR description ideally we shouldn't test this additional dimension of type of bootloader here in snap-bootstrap, we should test that in the boot pkg when all this logic goes there20:09
ijohnsonpedronis: so for now just to get adequate coverage / assurance things are working I just copied all the kernel tests we have and ported them to use that bootloader name we just invented20:10
ijohnsonpedronis: I apologize for the diff thing, I don't know why github does that20:10
ijohnsonit's more sensible if you look at just the commit20:10
ijohnsoni.e. https://github.com/snapcore/snapd/pull/8529/commits/1619e0824b62649e5957050ef7c70570bb0ed00820:11
mupPR #8529: cmd/snap-bootstrap/initramfs-mounts: support EnvRefExtractedKernelBootloader's <UC20> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8529>20:11
pedronisijohnson: that's not my question, my questions is why is TestInitramfsMountsRunModeStep2LegacyKernelBootstate all alone20:12
pedronisand all the other Legacy are later20:12
ijohnsonoh hmm I dunno20:12
ijohnsonI can move it if you like20:12
ijohnsonI guess I wrote that one first from scratch then just copy pasted all the other ones and changed the relevant bits20:13
* ijohnson has already forgotten20:13
pedronisijohnson: heh, it's ok, by yes if you don't have a strong reason to have it where you put it, having it together with the rest is preferable20:14
ijohnsonsure I can push another commit moving it by the others20:14
ijohnsonone second20:14
pedronisijohnson: did you rename them away from Legacy ?20:14
ijohnsonahhhhhh I will now :-)20:14
pedronisijohnson: jusrt s/Legacy/EnvRef/20:15
pedronisdon't think we want super long names20:15
* ijohnson glares at TestInitramfsMountsRunModeStep2EnvRefKernelBootstateUntrustedTryKernelSnapFallsBack20:16
pedronisijohnson: reviewed20:29
ijohnsonack, thanks for the review20:30
pedronisijohnson: thanks for working on making the diff a bit more digistible20:32
ijohnsonno problem , re the TODO, is the TODO just about not returning a Bootenv16 or is it about not using that at all for the implementation of MockUC20EnvRefExtractedKernelRunBootenv ?20:32
pedronisijohnson: it's about no returning a Bootenv16, I can see various ways, anyway is not an immediate concern, but is a bit confusing to use a thing called 16 related to 2020:40
ijohnsonpedronis: ack that makes sense20:41
pedronisijohnson: next I should review #8512 ?20:51
mupPR #8512: boot/bootstate20: add EnvRefExtractedKernelBootloader bootstate20 implementation <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8512>20:51
ijohnsonpedronis: yes, I will have the last PR open later tonight20:53
ijohnsonbut 8512 is the next one, then the one I am yet to open20:53
pedronisijohnson: ok, I'll look at 8512 in my morning, if you have a moment you should s/Legacy/EnvRef/ in the mostly test names there20:58
ijohnsonah yes, forgot about the tests there too20:58
ijohnsonhave a good night pedronis20:58
pedronisthanks, have a good end of the day20:59
mupPR snapcraft#3066 opened: autotools v2 plugin: rename configflags to autotools-configure-parame… <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3066>21:15
mupPR snapd#8530 opened:  boot: enable makeBootable20RunMode for EnvRefExtractedKernel bootloaders <UC20> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8530>21:19
mupPR snapcraft#3063 closed: cli: update command names to new design <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3063>21:36
mupPR snapcraft#3067 opened: requirements: uprev python-apt <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3067>21:48
mupPR snapd#8531 opened: secboot,cmd/snap-bootstrap: add model to pcr protection profile <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/8531>22:15
mupPR snapcraft#3065 closed: tests: fix local plugin spread test to be multi-arch aware <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3065>22:58
mupPR snapcraft#3067 closed: requirements: uprev python-apt <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3067>23:37

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