/srv/irclogs.ubuntu.com/2021/06/15/#snappy.txt

mborzeckimorning05:58
mardy'morning!06:03
mborzeckimardy: heya06:08
mborzeckihmm a bunch of google:ubuntu-20.04-64:tests/main/lxd:* failed06:10
mborzeckifound a couple of PRs with the same problem, maybe something changed in lxd?06:21
mardythe "retry" command that we are using in the spread tests, is it a standard UNIX command, or where is it coming from?06:34
mardyah, found it: ./tests/lib/tools/retry06:37
mborzeckimardy: no it's a custom thing zyga-mbp wrote a while back06:52
mborzeckimardy: guess it's more like `until <...>; do ... ; sleep ; done` 06:53
pstolowskimorning07:02
mborzeckipstolowski: hey07:07
mborzeckierrands, need to take some paperwork to my accountant and then i'll meet up with koza and work from a cafe for a bit07:13
zyga-mbpgood morning07:18
zyga-mbpmborzecki say hi to koza :)07:18
mborzeckiwill do07:22
pedronismvo: hi, https://github.com/snapcore/snapd/pull/10379 is asking your review08:11
mvopedronis: sure, looking. 08:11
mvoI just pushed 10400 which I think we should also include in 2.51.1. I think we are ready then and I will do 2.51.1 then08:13
pedronismvo: +108:18
mvota08:18
mborzeckizyga-mbp: koza says hi08:28
zyga-mbpmborzecki coffee or beer time? :-)08:28
mborzeckicoffee ofc08:28
zyga-mbp*hic*08:28
pstolowskire09:21
pstolowskipedronis: hi, have you seen my reply https://github.com/snapcore/snapd/pull/10384#discussion_r650955557 ?09:34
pedronispstolowski: yes, I'm still thinking about it09:35
pstolowskipedronis: ack, thanks09:36
mborzeckipedronis: i've updated https://github.com/snapcore/snapd/pull/1038609:53
mborzeckimvo: pstolowski: can you take a look at https://github.com/snapcore/snapd/pull/10361 ?09:55
pedronismborzecki: thx, I'll look after lunch/meeting09:56
mborzeckipedronis: thank you!09:57
pstolowskilooking09:59
mborzeckithanks!10:00
pstolowskimborzecki: https://github.com/snapcore/snapd/pull/10362 needs 2nd review if you have some time10:28
mborzeckipstolowski: will do10:34
pstolowskity10:37
mborzeckipstolowski: +110:58
pstolowskimborzecki: thanks!10:58
pedronispstolowski: I discussed a bit more there, let me know wheter what I wrote makes sense (I might be confused) or if you want to chat a bit on this11:27
pstolowskipedronis: ok, ty11:27
mborzeckipstolowski: mardy: need help with reviews?12:00
pedronismborzecki: https://github.com/snapcore/snapd/pull/10386 question/comments there, I didn't look close enough when I reviewed the first time12:00
pstolowskimborzecki: i'm fine, thanks12:02
mborzeckipedronis: hm i think i've done something about this in my wip branch, let me double check12:05
pedronismborzecki: sorry, when I said to use the interface I thought we could just use the one from secboot, but now I notice that we need uniqueID but really when we have a bootchain anway12:20
mborzeckipedronis: i think i should rename it now to something in the lines of `modelForSealing()`12:20
mborzeckiand still have modeenv generate one for bootchain and then bootchain do the same for secboot's model params12:20
mborzeckipedronis: i can drop the internal interface and just use the concrete type12:21
pedronismborzecki: you mean having methods on both modeenv and bootchain to generate one?12:21
mborzeckiyes, we need to have something that matches secboot.SnapModel when we generate secboot.ModelParams12:23
mborzeckiwe use modeenv to generate boot chains, then use the boot chains to generate model params12:23
mborzeckiguess i could pass modeenv to a place which genrates model params, but we already have that information in boot chains because we store it on disk12:24
pedronismborzecki: no, it's easier to have the modeenv and the bootchain be able to do the same thing12:30
pedronisI wouldn't try not to repeat five or six lines12:31
pedronismborzecki: what's I'm saying is that both Modeenv.modelForSealing and bootChain.modelForSealing can exist12:32
mborzeckipedronis: ack, do you think the internal interface as it is now still makes sense?12:33
pedronismborzecki: no, given that you don't to stick model on bootChain at all anymore I think12:33
pedronisyou just need to rename the struct not to say modeeenv12:34
mborzeckiok12:34
mborzeckiyup, something like `modelForSealing` should work i guess12:34
pedronismborzecki: the fact that we had to stick asserts.Model on bootChain was always a bit unfortunate/a hack12:35
pedronisso it's good if we can simply stop needing such a field12:35
mborzeckiyeah, it'd good that we're addressing some of that debt12:35
mborzeckipedronis: i've updated https://github.com/snapcore/snapd/pull/1038613:38
pedronismborzecki: thx, taking a break and then I'll look at it again13:38
mborzeckisure13:38
mborzeckithanks for reviews!13:38
cachio_mborzecki, hey13:39
cachio_about your comment https://github.com/snapcore/snapd/pull/10396#discussion_r65148333513:39
cachio_so, I don't see any tags remaining after removing the snap13:40
cachio_mborzecki, what other thing I can check?13:41
pedronishttps://github.com/snapcore/snapd/pull/10401  needs reviews (gci fun)13:43
mborzeckicachio_: so if i understand correctly, we don't remove a snap via snap remove, as a result the udev rulesa re not updated and udev isn't retriggered, then snap-mgmt --purge runs and removes just the snap and the files13:43
mborzeckicachio_: but if we run snap remove and trigger the rules, things work?13:43
mborzeckicachio_: hmm seems to be udev trigger && udev settle shouldn't be necessary?13:44
mardymborzecki: thanks, this is hopefully near the landing stage: https://github.com/snapcore/snapd/pull/1036313:48
mardyand I wouldn't mind some early feedback on https://github.com/snapcore/snapd/pull/1037513:48
mborzeckicachio_: can you try this diff instead of the restore section? https://paste.ubuntu.com/p/c3cnfjkMFD/13:48
mborzeckii think this should do the trick and will work for all tests13:50
cachio_mborzecki, in reset.sh we do snap remove --purge "$snap"13:52
cachio_mborzecki, is it ok to force that clean up?13:53
cachio_because perhaps at some point we can hide a real issue13:53
mborzeckicachio_: snap remove --purge is executed on a core ssytem afaict13:53
cachio_mborzecki, but the errors were in ubuntu-core-1813:54
mborzeckicachio_: ah w8, but you've seen it fail on a core system13:54
mborzeckihmm13:54
mborzeckicachio_: ok, can you add udevadm trigger && udevadm settle in reset_all_snap() after we remove the base?13:55
cachio_mborzecki, yes13:55
cachio_mborzecki, also I can do it for non core systems13:56
cachio_mborzecki, change done13:59
ijohnson[m]pedronis: mvo: can you merge https://github.com/snapcore/snapd/pull/10391? only failures are lxd and are unrelated14:08
mborzeckicachio_: cool, let's see if that works14:08
mborzeckimaybe we're missing something universal for all snaps in the cleanup14:08
mvoijohnson[m]: sure14:09
cachio_mborzecki, yes, it could be14:09
ijohnson[m]thanks14:09
cachio_in parallel I am testing the test in a loop14:09
pedronismborzecki: I re-reviewed, some refinement suggestions, is a bit odd except in special cases to have exported methods return internal types14:11
ijohnson[m]pedronis: oh regarding #10346 I don't know what to do with the fact that it's 4K per sub-group14:13
pedronisijohnson[m]: as you can't know how many there are before hand?14:14
ijohnson[m]I still think we should have at least a 4K minimum, but as Maciej pointed out that minimum doesn't really make sense because the nested one can not really doing anything with that sort of memory limit either and we have no way of knowing how many sub-groups will be put eventually into a given group when we create that group14:15
ijohnson[m]yeah14:16
ijohnson[m]you create the parent first without any sub-groups in it, then you add the sub-groups later, specifying the parent when the sub-group is created14:16
ijohnson[m]I suppose we could do something to the effect of specifying the number of expected sub-groups for a parent group when we create that parent group, but that would be a bit weird IMHO14:17
pedronisijohnson[m]: I suppose either we keep the minimum 4k or we make it something like 1m14:17
ijohnson[m]I can say that making the minimum 1MB would be unfortunate as our spread test which checks that a service is killed by oom-killer I think might sometimes not pass if we can only lower the memory limit to 1M14:19
pedronisijohnson[m]: then let's keep it 4k and see if somebody has feedback,  otherwise it becomes a bit a small number of k number14:22
pedronisexercise14:22
pedronis*a pick a small number...14:23
ijohnson[m]pedronis: sure sounds good14:23
ijohnson[m]then that PR is unblocked, not sure if you still want to review it or if it can go in14:23
pstolowskimvo: sould https://bugs.launchpad.net/snapd/+bug/1919077 be still 'in progress'?14:23
ijohnson[m]oh except for conflicts fun14:23
mvopstolowski: this is hopefully fixed14:24
pstolowskiah, nice14:24
mvopstolowski: in a meeting, I set it to fix released but maybe worth to quickly verify14:24
pedronismborzecki: hope my comments there are not too annoying, sorry for the back and forth14:24
pstolowskimvo: it was https://github.com/snapcore/snapd/pull/10042 right?14:25
ijohnson[m]eh I guess I would feel better if someone else +1d the 4K quota group PR before merging it14:28
mborzeckipedronis: that's fine, they make sense, pushing in a bit14:30
mvopstolowski: yeah14:35
pedronisijohnson[m]: I made a comment there about the error14:35
pedronissorry14:35
* cachio_ afk and lunch14:38
mvocachio_: I pushed 2.51.1 snapd to beta14:44
ijohnson[m]mvo: should we add updating https://launchpad.net/snapd/+milestones to the release checklist ? seems we have not done anything here since June last year /o\ but again not that it matters much I think15:09
mvoijohnson[m]: looking15:10
ijohnson[m]I took the liberty of creating a 2.51 and 2.52 milestone for snapd on LP so we can tag bugs to it15:10
mvoijohnson[m]: ok15:11
ijohnson[m]degville: perhaps you were already made aware of this, but if you find yourself with copious amounts of free time, maybe a quick look / review at https://github.com/snapcore/core-initrd/pull/28 would be nice16:42
degvilleijohnson[m]: thanks for letting me know - I hadn't seen that. I'll definitely take a look!16:44
ijohnson[m]ack16:46
ijohnson[m]thanks16:46
pstolowskipedronis_: i think refresh control (what landed already) has a slight problem in that it allows the hook to call --proceed (which resets holdState of the snap), followed by --hold, effectively letting it bypass own duration limit. I think to prevent it, --proceed should just be cached on the context's action and performed in the hook handler. --hold should be executed immediately as it is right now. 17:00
pstolowskianyway, i'll get to it tomorrow, should be a small PR17:04
pstolowskicu17:04
=== pedronis_ is now known as pedronis

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