[05:47] morning [06:16] mvo: hey [06:17] hey mborzecki [06:17] mvo: idk if you've seen https://github.com/snapcore/snapd/pull/8325#issuecomment-614223448 [06:17] PR #8325: snap-bootstrap: copy auth data from real ubuntu-data in recovery mode [06:17] mborzecki: how are the tests today? [06:17] mborzecki: not seen yet, looking [06:17] mborzecki: oh no :( [06:18] mborzecki: I wonder if the initrd really "reads" what we ask it to mount or if it has it's own list of things to mount [06:20] on a side note, i tried some tricks with snap-store and zoom-client snaps, sice one only renders boxes and theother just segfaults on arch (backtrace points to something fonts related) [06:20] mounting a clean tmpfs over /etc/fonts so that it dones't pick up anything from the host does not change anyting so still no luck :( [06:22] mborzecki: hrm, hrm, this is strange, does mounting tmpfs over the fontcache dirs also yield no results? [06:23] mvo: first thing i tried ;) [06:27] mborzecki: heh - I suspected that. sad :( [06:27] mborzecki: also strange what is bleeding into the namespace [06:32] PR snapd#8506 closed: Add libnvidia-opticalflow as Nvidia library [06:46] PR snapd#8497 closed: boot/bootstate20: re-factor kernel methods to use new interface for state [06:57] hey [06:57] what's up guys? [06:58] * zyga is feeling terrible [06:58] zyga: hey [06:58] since 5AM I'm awake and blowing my nose every 20-40 seconds [06:58] something I'm allergic to is blooming [06:59] mborzecki: jamie asked us to review the base permissions PR [06:59] mhm, added myself there [07:01] hi [07:01] pstolowski: hey [07:12] hey pawel [07:12] I will start late [07:12] sorry [07:16] jamesh: any idea whether the cache namespace is still per job when a matrix setup is used? [07:18] mborzecki: I'd assume it is shared. Or is the real question whether matrixed jobs have their own github.job value? [07:20] jamesh: that or whether a different combination of matrix elements is a new job, thus a new namespace(?) or still the same job, so a shared namespace [07:21] mborzecki: a job is a unit of work deployed to a single runner, so the matrix expands to multiple jobs [07:21] jamesh: can check that by pushing code but wanted to ask you first, since i seems you've been on that road already :P [08:05] PR core18#150 closed: static: make /etc/dbus-1/session.d writable [08:09] * zyga is unable to work for some time [08:15] * zyga loves summer but sometimes hates the spring [08:27] quitk errand, back in 30 [09:07] PR snapd#8507 opened: packaging: fix build on Centos8 to support BUILDTAGS [09:17] re [09:21] mvo: hey, i've found out some more about my yesterday's problem (and also recreated the image from the spread test locally). i think that for some reason the extra user defined by cloud init data is not copied to extra-users (but sshd actually works) - as if messing with /etc wrt early config somehow affected cloud init (?) [09:22] pstolowski: meh, sorry, I did not really managed to look at this yet, can ypu please paste the link again? so sorry [09:23] mvo: system-data/var/lib/cloud/seed/nocloud-net/ on the image looks ok to me, afaict [09:23] mvo: no worries, i know it was late yesterday [09:23] mvo: https://github.com/stolowski/snapd/tree/core18-early-config [09:30] pstolowski: aha, that is interessting, can you share the image via gdrive or something? if you boot it with "systemd.debug-shell=1" do you see anything interessting in the cloud-init logs that may indicate what went wrong? [09:32] mvo: let me try; sure i can upload it [09:33] * zyga found some anti-allegric meds [09:34] pstolowski: maybe first poke a bit with the debug shell but if you don't find anything I can poke a bit too [09:34] mvo: yes, looking, thanks [09:34] pstolowski: the general rule is that if there is a "clash" of files/dirs in /snap/core18/current/... with the dir in the image and writable-path then there is aproblem [09:35] pstolowski: i.e. if there is /var/lib/cloud in writable-path and there is such a dir in core18 with relevant data and the image also creates it [09:35] pstolowski: does that explaination make sense? if not, we can have a quick HO [09:42] mvo: yes, makes sense [09:42] * zyga gets to work [10:03] mvo: passing systemd.debug-shell=1 to kernel commandline has no effect (no extra tty created for it), is it expected to work with core? [10:03] try _ [10:03] pstolowski: it changed across versions [10:03] pedronis: systemd.debug_shell=1 [10:03] er [10:03] pstolowski: ^ [10:03] sorry pedronis, bad tab complete [10:04] pstolowski: it should work, this is core or core18 ? but in either case it should work :( [10:04] mvo: core18 [10:04] * mvo quickly double checks [10:04] mvo: ^^^^ [10:04] mvo: systemd.debug_shell=1 [10:05] ah underscore? [10:06] cat /snap/core18/current/lib/systemd/system/debug-shell.service and man systemd-debug-generator [10:06] yes [10:06] it used to be - [10:06] now it is _ [10:06] pstolowski: fwiw on uc18 https://photos.app.goo.gl/UfrQFWkfRhAaEqNC6 works for me [10:07] mvo: https://github.com/systemd/systemd/blob/master/src/debug-generator/debug-generator.c#L62 [10:08] zyga: sure, just saying this works on uc18 [10:08] sure :) [10:08] shame old value doesn't work [10:08] zyga: yeah, it seems strange to break backwards compat [10:08] zyga: oh well [10:08] zyga: otoh, it's just a debug value [10:15] mvo: and you're getting a tty9 with a debug shell? [10:16] pstolowski: yes [10:17] pstolowski: not sure which one, I just use alt-arrow to cycle through them [10:17] mhmm [10:34] mvo: yes, it works, thank you! i had to run qemu with its ui; for some reason with -nographic it wouldn't work (i was using sendkey .. from the monitor) [10:36] pstolowski: ok [10:55] PR snapcraft#3045 opened: grammar: pick from properties if attributes not in the plugin [10:58] mvo: so it appears that cloud-init is not executed at all (no logs in /var/log/). only when i start cloud-init service manually it creates extra-users. i could see that /var/lib/cloud was mounted at boot time [11:01] pstolowski: anything interesting in /etc/cloud ? [11:06] PR snapd#8508 opened: github: run all spread systems in a single go with cached results <⛔ Blocked> [11:08] pstolowski: what does /etc/cloud look like? any "nocloud" files anywhere? [11:18] mvo: I am a bit confused by the caching branches, shouldn't the test be re-run if there were more commits to the PR? [11:19] pedronis, mvo : cloud.cfg, ds-identity.cfg, templates and cloud.cfg.d [11:21] pedronis: they will be [11:21] pedronis: it's all a bit mood right now anyway because there is a bug [11:21] pstolowski: is there anything in /run/cloud-init ? [11:24] pedronis: yes, cloud.cfg, enabled, and two .log files. fwtw i run cloud-init service manually, should i check this directory right after boot of my pristine image? === alan_g is now known as alan_g_ [11:25] pstolowski: yes [11:43] pedronis: it looks the same [11:45] pstolowski: look at the log files then, something cloud-init run [11:47] pedronis: there are no logs from cloud-init until i manually systemctl restart cloud-init (as if it wasn't run during the boot) [11:48] pstolowski: sorry, then didn't look the same [11:48] pstolowski: there's only an empty directory for /run/cloud-init? no directory? only ds-indentify stuff? [11:50] pedronis: /run/cloud-init & /etc/cloud look the same (and run/cloud-init has two .log files). but there are no logs under /var/log unless i start cloud-init manually [11:50] pstolowski: sorry, I mean to look at the logs in run/cloud-init [11:51] I know you said there are no /var/logs [11:54] "Found single datasource: NoCloud" in ds-identify.log; relevant? [11:55] yes, but that's just expected [11:55] it means it will look at user-data etc in the usual places [12:07] pstolowski: mvo: also our early does debug-shell run? [12:08] it might just be normally too early? [12:09] from the description it sounds like it's meant ot run very [12:09] early [12:10] pedronis: fwtw i see 'Cloud-init target reached' as one of the last messages on tty1; the other tty has console-conf waiting [12:10] PR snapd#8502 closed: github: try caching test results [12:10] ehh bummer [12:11] mborzecki: well, it's not all lost, once the github cache thing is fixed we will land this! [12:14] mvo: thanks for trying! subscribed to https://github.com/actions/cache/issues/208 [12:18] good morning all [12:28] pstolowski: can you remind me? we are trying to debug why ssh doesn't work right? [12:28] pedronis: yes. but sshd works, just user doesn't get created [12:30] pstolowski: ok, maybe we can do a HO sharing a screen and I can help more? [12:30] pedronis: and it seems the be happening when i add defaults: to gadget. although i probably need to re-try without defaults again [12:32] I made good progress today [12:32] I'm writing actually useful dbus tests now [12:32] I'll split this off this effort and propose separately after the standup [12:33] pedronis: sure, appreciate it [12:36] pedronis: is after standup fine? [12:37] pstolowski: might after a short break after the standup [12:37] ok [12:46] ijohnson: does this look like the same snap upgrade problem you investigated? https://bugs.launchpad.net/snapd/+bug/1873260 [12:46] Bug #1873260: All installed snaps are broken after upgrading to Focal [12:53] cmatsuoka: no that looks slightly different on the surface [12:53] cmatsuoka: I'll respond though [12:54] ijohnson: thanks [13:05] PR snapcraft#3045 closed: grammar: pick from properties if attributes not in the plugin [13:13] ijohnson: there's a bug for this issue but I cannot find it now [13:13] zyga: you mean the stale snapd tools in the mount ns ? [13:13] yes [13:13] k, let me know if you find it but if not I'll just file a new one sometime today [13:13] ok [13:13] it's just a pretty old bug as we went to core18 with it [13:14] PR snapcraft#3044 closed: build providers: use ubuntu-ports mirrors for non-x86 platforms [13:20] ijohnson: let's open a new one [13:20] ijohnson: perhaps it is reported on the forum, not in the tracker [13:20] or may have been reported in github while we still had issues [13:20] I think it must be the forum [13:20] because we discussed ideas there [13:20] https://forum.snapcraft.io/t/injecting-snapd-tools-into-base-snaps-and-keeping-them-up-to-date/12139 [13:20] ijohnson: ^^^^ [13:21] and you commented on it as the last person :) [13:21] right I remember your forum topic [13:21] :-) [13:21] please link it to the bug [13:21] and we should really make some progress and fix it [13:21] it will affect all core18 and core20 systems [13:34] hi, is this somehow intentional or should I file a bug about it: https://paste.ubuntu.com/p/5pxZwTYgx3/ ? [13:35] (inside a snap run --shell for a strictly confined snap) [13:37] ackk: yes because `test -r` will use the `stat`syscall which we always allow [13:39] ijohnson, won't that break stuff as if you test that you can read something and then try to read it, it fails? [13:39] ackk: I'll defer to jdstrand and/or zyga on why stat is always allowed, I don't recall the why, I just recall that it is [13:39] ackk: stat is always allowed by apparmor [13:40] ackk: it's not mediated IIRC [13:40] ackk: (by apparmor) [13:40] zyga, so it ends up lying because the policy is actually only enforced on open() ? [13:40] ackk: and you are correct, there is even a comment somewhere in the LSM stack about this [13:40] yes [13:40] I see [13:40] zyga: you mean stat is always allowed by seccomp [13:41] zyga, side, note, why is /etc/issue not readable? :) [13:41] ackk: as in, not allowed by the policy? [13:41] because anything that was allowed by the policy would be something we have to keep [13:41] so it was used as a way to limit what we need to keep across core revisions [13:42] so if you cannot read it, it's not "ABI" [13:42] as to issue specifically [13:42] just nobody asked? [13:42] ijohnson: seccomp separately [13:42] ijohnson: but apparmor just says "yes" to stat [13:42] right that's what I meant sorry we are in agreement [13:42] ijohnson: right [13:45] zyga, out of curiosity is that something that apparmor plans to fix (returning the truth in stat) or is that not possible? [13:46] I don't know [13:46] perhaps jjohansen or jdstrand can respond [13:46] it's possible, it's just code [13:46] SMOP :) [13:46] smop? [13:46] small matter of programming [13:46] haha [13:46] and upstreaming [13:47] Small matter of sending it to the LKML and getting it merged ;) [13:47] zyga, I meant more, not doable as filtering stat() might heavily affect performance or something [13:47] IIRC selinux does this [13:47] I guess it'd have to do a bunch of extra checks [13:47] oh, I see [13:49] ackk: we used to mediate it but found that basically everything needed it and required large-scale policy changes [13:50] there is a bug on it. let me see if we can find it [13:50] https://bugs.launchpad.net/apparmor/+bug/1655435 [13:50] Bug #1655435: stat() unconditionally allowed via apparmor_inode_getattr() [13:51] jdstrand, thanks [13:51] it's possible to fix with a number of changes [13:52] ackk: are you using stat or access? [13:56] zyga, I saw the issue in a bash script that was doing pretty much the same thing as my paste [13:56] it seems test uses stat() [13:57] Bug #1873276 opened: Deliberate use of 'partial confinement' in order to mean 'unconfined' [13:57] I'm off for lunch [14:09] Bug #1873276 changed: Deliberate use of 'partial confinement' in order to mean 'unconfined' [14:51] pedronis: do you have a moment now? [14:52] pstolowski: yes, sorry the after standup was long and needed a break [14:54] pstolowski: I'm in the standup HO [14:54] 1 sec [14:58] mvo: lxd latest/candidate snap is unbroken so I think we can merge #8505, the only unfailed test there is from an unstable system [14:59] PR #8505: spread.yaml: switch back to latest/candidate for lxd snap <⛔ Blocked> [15:00] ijohnson: cool, looking [15:01] PR snapd#8505 closed: spread.yaml: switch back to latest/candidate for lxd snap [15:01] thanks mvo [15:35] PR snapd#8356 closed: cmd/snap: Implement a "snap routine file-access" command [15:50] PR snapcraft#3043 closed: package-repositories: initial schema and meta read/write support [15:55] zyga, ackk: we would love to fix the whole stat issue, doing so however requires us to get a patch upstream that some people are fundamentally opposed to [15:56] we haven't tried recently, it is something we should circle around to and try again [16:00] I solved the dbus signature issue [16:00] making more progress now [16:00] ijohnson: not for me, but perhaps ackk has some priority there [16:01] zyga: sorry missed the context, what's up? [16:01] er, jjohansen ^ [16:01] sorry I'm bad at tab completion apparently:) [16:01] or perhaps my body tells me to make coffee [16:01] or both [16:06] zyga: ? [16:07] I was responding to "(06:45:48 AM) ackk: zyga, out of curiosity is that something that apparmor plans to fix (returning the truth in stat) or is that not possible? [16:07] (06:46:03 AM) zyga: I don't know [16:07] (06:46:15 AM) zyga: perhaps jjohansen or jdstrand can respond" [16:07] * cachio lunch [16:07] yes it is just code, yes we would love to fix it, no it isn't happen soon because there are people upstream who are opposed to it [16:08] it is one of the abilities we lost when upstreaming [16:08] so 12 years ago apparmor actually did mediate stat and access [16:31] pedronis: i've created a clean core18 with cloudinit data and diff'ed system-data before and after first boot; and the problematic image is missing those https://pastebin.ubuntu.com/p/CgdTHzTXkz/ [16:31] pedronis: now need to find: why :/ [16:33] * pstolowski afk [16:43] thanks jjohansen :) [17:20] mvo: ^ what Pawel mentioned seems writable path related [17:24] pedronis: totally, let me have a HO with him in the morning [17:25] pedronis: setup a meeting with him for this [17:30] mvo: we created something in /etc/systemd/system in the image and /etc/systemd is one of the things handled by writable-paths [17:30] we do the same with /etc/cloud but that has a strange comment in in the writable-path config [17:32] pedronis: yes, that is exactly my suspicion [17:32] pedronis: if mode is not "synced" dirs that exist will be ignored [17:37] mvo: but if I understand the issue is kind of the reverse, the problem is that /etc/systemd/system is not empty in core18 [17:37] (not that we can fix that easily) [17:43] pedronis: so we create a /dev/null link in /etc/systemd/system/rsyslog.service in the image already, right? that's what pawel is doing in this test? [17:43] mvo: yes [17:44] is not the test code to be clear, it's actual configcore code run early [17:44] pedronis: then it all makes sense, sorry, I should have had this conversation with him earlier :( https://paste.ubuntu.com/p/CwkSnnGgqB/ [17:44] [17:44] pedronis: this would fix it but the price is high [17:45] pedronis: I think we need to ponder what to do [17:45] mvo: I think, yes, that's what we need [17:45] anyway the commetn about /etc/cloud is also obsolete [17:45] I think your code [17:45] also need /etc/cloud synced [17:45] that one is already mark as synced though [17:47] pedronis: let's talk tomorrow, I need to get dinner but I really want to explore what we can do, setting syned has it's own issues [17:47] mvo: yes, just making clear that we have the same kind of issues both for /etc/systemd and /etc/cloud [17:48] it's not just pawel new code [17:49] mvo: I mean this code https://github.com/snapcore/snapd/blob/master/overlord/devicestate/handlers_install.go#L105 and the same kind of code in bootstrap [17:50] mvo: both the base and potentially writable have files to put there [18:05] PR snapcraft#3041 closed: V2 python plugin [18:27] * zyga -> dinner [18:48] PR snapcraft#3046 opened: plugins: introduce v2.GoPlugin [19:07] zyga: stgraber lately I daily experience "Error: websocket: close 1006 (abnormal closure): unexpected EOF" which kicks me out of my "lxc exec"... is this new behavior expected? [19:08] sergiusens: this isn't a new behavior, it happens when LXD reloads, usually because of a refresh [19:09] if this didn't happen because of an auto-refresh, then there may be an associated LXD crash we'd want to look at [19:09] stgraber: container itself is not killed, right? If I were ssh'ed in I wouldn't see it [19:09] sergiusens: correct [19:09] we never restart containers on refresh even during upgrades, but anything connected to the daemon over the REST API does get disconnected which includes exec sessions [19:10] we've considered some options around that but they all kinda suck [19:10] stgraber: refresh happened 10 minutes ago, coincides with this event, so no worries and carry on [19:10] we could have a grace period and have the daemon tell you you're about to disconnect due to refresh [19:10] but we have no idea how to tell you that without injecting stuff in your terminal [19:10] which is a very bad idea on its own :) [19:10] that would be nice, if only to save my bash history [19:11] as people redirect "lxc exec" to various things, including netcat, files, disk, ... so having it ever write something other than what you expect or an error would be a big issue [19:11] yeah, this would need some snapd/desktop intergration that you could hook into (for the local scenario) [19:13] yeah, if the user who's logged in on a desktop happens to be in the lxd group, then we could in theory hold on the restart, notify them that they have 10min to disconnect all pending exec sessions, then continue [19:13] we do have the API in place to list all ongoing exec sessions (lxc operation list) so it's pretty much just packaging at that stage [19:13] stgraber: well also if there was refresh app awareness, then you wouldn't get refreshed automatically if there's an `lxc exec` process running [19:14] ijohnson: oh no, we definitely do want to kill those eventually [19:14] ijohnson: a security fix in a service running as root and listening to the network, definitely trumps the inconvenience of having to re-connect to an exec session :) [19:14] sure, but you could at least defer a refresh for some amount of time while there are things running [19:15] with refresh app awareness, snapd would not trigger the refresh at all, so not sure you have a say in that if someone enables it [19:15] sergiusens: there will also be an api for a snap to be notified or query if there is a pending refresh [19:15] lxc is capable of escaping all tracking [19:15] * zyga is afk [19:16] well true, lxc is it's own special snowflake when it comes to snapd features I guess [19:16] the `lxc` command doesn't do any bypass that I'm aware of (other than apparmor) so yeah, that'd work, unless your LXD is clustered in which case as soon as any of the cluster nodes detects a new revision, they all self-refresh whether you like it or not [19:17] but yeah, some kind of grace period on LXD shutdown when we have ongoing operations is probably fair [19:17] * stgraber adds to ideas list [19:17] yes, there will be ways to be aware, though I think we need to redefine our thinking there, because there is some assumptions about a user being present [19:18] the design of that feature which is still wip, was driven more by desktop apps [19:19] PR snapd#8509 opened: boot/bootstate20: small changes to markSuccessful [19:19] pedronis: I opened ^ because it's a simple thing, but could be considered a behavior change so I wanted to make it easy to review [19:24] ijohnson: it doesn't read as simple at all, also how can it be a behavior change if no tests changed [19:25] pedronis: it's not a behavior [19:25] change [19:25] sorry maybe I should not move the comment in this PR [19:26] ijohnson: also remember that Marksucceful is called on all kind of boths [19:26] even non successful ones [19:26] it has kind of a bad name [19:27] s/boths/boots/ [19:27] pedronis: but is there any situation where MarkSuccessful shouldn't result in having DefaultStatus at the end of it? [19:28] pedronis: because that's the current behavior, I'm just making that decision to always set DefaultStatus more obvious by not making that decision in commit() and instead making that decision in markSuccessful() proper [19:28] ijohnson: I'm just saying that you are adding a large commit that sounds like mark successful [19:28] is there only for successful boots [19:28] s/commit/comment [19:29] that is not true [19:29] mmm, I guess in my mind, a "successful" boot is one where we get to userspace with some boot snap combo [19:29] and thus we get to call MarkSuccessful [19:30] even if the overall operation of upgrading a boot snap failed, we still eventually successfully booted something [19:31] yes, but as I said the terminogy is confusing here [19:31] it's very old [19:31] we need to be careful not to give the wrong impression [19:31] okay, so instead of renaming all markSuccessful ish things here how about I just adjust the comment that says "always set the commit status on the bks on the bootStateUpdate we return to be empty" [19:32] to say something like: [19:32] basically I'm not sure this PR is an improvement [19:32] it adds even more action at a distance [19:32] "set the kernel status to be default again because we booted some kernel snap" [19:32] but I'm probably missign the simplification that comes with it [19:33] pedronis: the simplification is that right now, the decision to always set kernel_status to default after calling MarkSuccessful is done in commit() [19:33] pedronis: I thought that was confusing because if you just read markSuccessful you won't get that impression [19:33] pedronis: so instead I thought let's make that more obvious and explicit by doing it in the markSuccessful function instead of commit() [19:34] as I said there isn't an actual behavior change, in my mind this is just making it more obvious what we are doing [19:35] if we are doing the wrong thing right now, then perhaps that's justification enough that we should never have made that decision to do that in commit() in the first place [19:35] (because it wasn't obvious) [19:35] ijohnson: I think the issue is more that markSuccefulKernel is strange [19:36] I probably didn't notice it yesterday [19:36] pedronis: well right now that function is just markSuccessful [19:36] but remember that my plan was not to attach commitKernelStatus to that level [19:36] so it's a bit different from my original idea [19:37] mm I guess it is [19:37] it's not a problem, but reading it again in the new context, it's clear that some bits are confusing [19:37] after looking at it more I conclude that it's clear that it's unclear [19:38] well anyways I don't really need this PR, it was just going to make things a bit nicer [19:38] I think if this PR is going to cause us to rathole on what it means to mark something successful it's probably not worth the time right now [19:39] basically this if is odd: bks.commitKernelStatus != bks.currentKernelStatus [19:39] given that then we pick a constant inside it [19:39] I don't think setting commitKernelStatus helps though [19:40] pedronis: well in the PR I just opened that if looks much more sane [19:40] yes in some way, no in others [19:40] if bks.commitKernelStatus != bks.currentKernelStatus { ... use bks.commitKernelStatus [19:40] we're not using a constant there anymore [19:41] I know [19:41] okay how about this, should I just get rid of commitKernelStatus on extractedRunKernelImageBootloaderKernelState and instead carry that on bootState20Kernel instead ? [19:41] then markSuccessfulKernel() takes in the status to set as an arg like you originally watned? [19:41] *wanted [19:42] ijohnson: well, it's always going to be DefaultStatus, as far as we understand, right? [19:42] so we don't need to pass it to it I suppose [19:42] but we do need to pass it in to the other method [19:42] pedronis: what I don't want is to have the constant inside markSuccessfulKernel [19:42] because that function is only called from commit() [19:42] it feels weird to me that commit() is essentially making that decision to always use DefaultStatus [19:43] it's a commit of a given operation, is not a general commit [19:43] one can see it both ways [19:44] mmm again it seems we have something that is clearly unclear [19:44] ijohnson: the issue really, is this, the idea of commit comes from the bootstate16 work [19:44] there commit is fairly generic [19:44] yes [19:45] we lost that property in bootstate20 [19:45] so in obvious (constants) and non obvious ways [19:45] there are some assumptions and semantics encoded in the commits [19:45] that are operation related [19:46] so as long at ther is this hybridity I'm just not seeing a big win moving things before or later than the commit [19:47] as long as the behavior is correct and explained [19:47] but that might just be me [19:47] yes this hybridness does make things a bit weird [19:48] I'm not sure, but let me frame the question this way, do you want me to refactor the setNextKernel to take in the status ? [19:48] yes [19:49] okay, so then let me make a symmetry argument and let's just make markSuccessfulKernel take in a status too? [19:49] I'm ok with that, is not strictly necessary but that's ok [19:50] ok [19:53] ijohnson: notice that we don't this for the base either, the state is hard coded in commit [19:54] yes I'd say that's just as wrong as kernel tbh [19:54] as I said, given how we organized is not wrong or not wrong [19:54] commit is not generic [19:54] we have 3 of them [19:55] I mean looking at the doc-comment for commit() it says "bootStateUpdate carries the state for an on-going boot state update. At the end it can be used to commit it" [19:55] it doesn't feel like the commit() method on bootStateUpdate should really be making decisions, it should just take the state that's already in bootStateUpdate and then commit it [19:56] ijohnson: if we followed the spirit of that, we would have one commit implementation [19:56] we don't [19:56] as I said, is not wrong or not wrong [19:56] well I'd say the reason we don't have one commit implementation is for robustness reasons [19:57] we can't commit everything in the same order and always be robust [19:57] I say, it's more for readability [19:57] we could have one commit [19:57] it would be not very readable [19:57] fair [19:58] anyways 8509 now passes in status and I unmarked "Simple" :-) [20:42] ijohnson: I commented, I still don't think that the comment on the interface method trumps the realities of the actual implementations' code, also less state manipulation is almost always a win in my book [20:51] PR snapd#8509 closed: boot/bootstate20: small changes to markSuccessful [20:52] pedronis: I don't think it's productive for either of us to pursue this more right now, I will have another PR which just makes the comment move change I wanted [20:53] ijohnson: I think the changes to the interface where fine and improved things (less places carrying state) [20:53] sure I will just do that change then [21:03] PR snapcraft#3047 opened: repos: fix returned strings for install_stage_packages() [22:12] Bug #1873363 opened: openvswitch interface support for ovs-appctl [22:19] how can i see the base for an installed snap? [22:19] if i say snap info it's talking to the store [22:20] ah meta/snap.yaml [22:37] PR snapd#8510 opened: boot/bootstate20: small changes to bootloaderKernelState20 [22:41] ijohnson: thanks ^ [22:42] pedronis: np, I am close to opening up the next PR which is a big refactor of the tests to enable easy writing of the new tests for the uc16 style bootloader [22:45] ijohnson: great, I should really go to rest here though [22:46] of course, have a good night, talk to you tomorrow === msalvatore_ is now known as msalvatore [23:02] is there a way to see the base of a snap from a non-default channel? [23:02] i.e. something like snap info --channel, but that doesn't exist [23:19] mwhudson: do you mean for a snap that's not installed? [23:21] PR snapd#8511 opened: tests/boot: refactor to make it easier for new bootloaderKernelState20 impl [23:24] PR snapd#8512 opened: boot/bootstate20: add pure bootenv bootloader implementation [23:31] ijohnson: yes [23:31] ijohnson: found a workaround though, download the snap and point info at that [23:32] mwhudson: I don't think you can do that through any snap cmd, but you can get it through the store's json [23:32] I just EOD'd so I don't have an example in front of me unfortunately [23:32] ijohnson: it's ok we thing :) [23:32] *think