/srv/irclogs.ubuntu.com/2021/04/30/#snappy.txt

mupPR snapd#10215 opened: store/store_download.go: make snapd resilient on slow network <Created by fujimotos> <https://github.com/snapcore/snapd/pull/10215>01:09
mupPR snapd#10216 opened: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>03:24
mupPR snapd#10217 opened: o/servicestate: restart slices + services on modifications <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10217>03:29
mupPR snapd#10218 opened: o/servicestate/quota_control.go: add RemoveSnapFromQuota  <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10218>03:29
mborzeckimorning05:55
zygagood morning06:03
zygaalmost long weekend :)06:03
mborzeckiyeah, happy that this week is almost over06:03
zygamborzecki, I'm just looking at a build I did last evening06:06
zygarpi4 stock image06:06
zygatrying to figure out how to wic it to an SD card06:06
zygabmaptool!06:07
zyganever heard of this tool before06:07
mborzeckizyga: wic only builds the image, i.e. creates partitions and so on06:08
zygaI have raw partitions06:08
zygajust looking up docs, I see another tool I never used before: kas06:08
zygakas feels like repo with extras06:09
mborzeckizyga: never used kas, but i submitted a bunch of upstream patches for wic06:10
mborzeckizyga: fwiw, there should be a wks (iirc the extension was) file in meta-raspberry06:10
zygalooking06:11
zygayep06:11
zygagot it06:11
zygaI know what to do with wic06:11
zygabut now I'm intrigued with bmaptool06:11
zygasomething to learn later06:12
zygalet's do simple wic now06:12
mborzeckii always assumed that wic mocks the name of the mic tool tha was used to create meego images (notice w is like upside down m)06:12
zygacopy the image and see06:12
zygato me the names are a bit all over the place :)06:12
zyganot consistent or logical06:12
zygabut I get that projects have history06:12
* zyga looks at CI to recall how to use wic06:13
zyga... something is happening06:14
mborzeckihaha06:15
zyga./sdimage-raspberrypi-202104300815-mmcblk0.direct06:16
zygawoot06:16
zyganow to dd06:17
zygaI06:17
zygaI'll optimize later06:17
zygaI need to get a small screen for debugging stuff one day06:17
zygacopying now06:20
zygaI need to do some power supply tricks to have automatic power as well06:21
zygacopy was quick :)06:22
* zyga goes to another system06:50
pstolowskimorning07:05
mborzeckipstolowski: hey07:11
mborzeckipstolowski: any PRs to look at?07:15
zyga-mbphey mvo07:18
mvogood orning zyga-mbp and mborzecki and pstolowski07:19
pstolowskihey07:20
mborzeckipstolowski: any PRs to look at?07:20
mborzeckimvo: hey07:20
pstolowskimborzecki: any 'quota'-tagged PRs, except for spread test07:20
mborzeckipstolowski: ok, will do07:21
mborzeckipstolowski: about https://github.com/snapcore/snapd/pull/10210#discussion_r622967611 the problem i saw there was that if there's any inconsistentcy, that access will panic if i'm reading this right07:22
mupPR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>07:22
pstolowskimborzecki: yes07:22
pstolowskimborzecki: we can be paranoid, otoh this data comes from snapd and if it is inconsistent we are in big trouble07:22
mborzeckiyeah, that's true07:23
pstolowskimborzecki: we make sure it is consistent when we manipulate in snapd07:23
pstolowskimborzecki: i can add some chceks in a followup07:24
pstolowskimvo: ijohnson changed state locking per Samuele's comment, we need to be careful when landing my rest api (i'll update my api for it, but then we need to land them in order)07:33
mupPR snapd#10219 opened: interfaces: add a polkit interface <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/10219>07:35
mborzeckimvo: https://github.com/snapcore/snapd/pull/10214 is missing some dependencies apparently07:35
mupPR #10214: features,servicestate: add experimental.quota-control flag <quota> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10214>07:35
mvomborzecki: oh, ok, let me check07:44
mvomborzecki: aha, yes, let me fix this07:45
pstolowskipedronis: #10210 has +2, can it land or do you want to take a look as well?08:12
mupBug #10210: Second head doesn't work with Mobility Radeon 9600 M10 <xorg (Ubuntu):Invalid by daniels> <https://launchpad.net/bugs/10210>08:12
mupPR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>08:12
pstolowskipedronis: hi btw :)08:13
pedronispstolowski: it seems fine for now, unless you think there is something interesting I should look at?08:28
pstolowskipedronis: not really, thanks08:28
pstolowskimvo: i may need to ask you for manual merge again (##10210)08:29
mupBug #10210: Second head doesn't work with Mobility Radeon 9600 M10 <xorg (Ubuntu):Invalid by daniels> <https://launchpad.net/bugs/10210>08:29
mupPR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>08:29
pedronispstolowski: what's the status of https://github.com/snapcore/snapd/pull/10208 ? does it need https://github.com/snapcore/snapd/pull/10216 first?08:29
mupPR #10208: daemon: implement REST API for quota groups (create / list / get) <Skip spread> <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10208>08:29
mupPR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>08:29
mvopedronis: I commented in 10208, I think it needs the locking fix08:30
pstolowskipedronis: yes, because of locking change. my PR will hang atm08:31
pstolowskimvo: i fixed that already08:31
mvopstolowski: yes, sorry, I was not precise in my wording. for unit tests to work we need https://github.com/snapcore/snapd/pull/10208#discussion_r623705832 the locking changes or the full PR from ian08:32
mupPR #10208: daemon: implement REST API for quota groups (create / list / get) <Skip spread> <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10208>08:32
mvopstolowski: thanks for updating it of course!08:32
mvopedronis: please tell us what you prefer, the review of ians full PR or if we should cherry pick just the locking change or split the locking change as it's own PR. whatever is easiest for you :)08:33
pedronismvo: I suppose we should cherry pick Ian's first two commits (also the rename/unexporting) into Pawel's PR?08:34
pstolowskiyeah cherry-picking of Ian's commit into my PR sounds good08:34
pstolowskii don't think i need renaming changes in my PR08:35
mvopstolowski: cool, please cherry pick :)08:36
mvothanks pedronis08:36
pedronispstolowski: yes, but I think it's saner to cherry-pick a prorer prefix of Ian PR08:36
pedronispstolowski: so please cherry pick the rename too08:36
pstolowskiok08:36
pedronispstolowski: when you are don I can review your PR08:36
pstolowskithanks08:36
pedronis*done08:36
pstolowskipedronis: pushed08:48
pedronispstolowski: thx, will start looking at it now08:49
pstolowskimvo: i'm not sure if you saw my earlier message, but #10210 is good to land but may need manual merge08:52
mupBug #10210: Second head doesn't work with Mobility Radeon 9600 M10 <xorg (Ubuntu):Invalid by daniels> <https://launchpad.net/bugs/10210>08:52
mupPR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>08:52
mvopstolowski: sure, happy to merge it, does 10210 need a pedronis review or is it ok without?09:01
pstolowskimvo: he is ok to land it09:01
pedronispstolowski: I commented on 1020809:10
mvopstolowski: on it09:12
mupPR snapd#10210 closed: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10210>09:15
pstolowskipedronis: thanks, replied to one of your points09:19
pstolowskipedronis: re your rootOnly comment, rootOnly: true + userOK: true combination would be ok?09:25
pedronispstolowski: I don't remember, you need to try09:26
pstolowskiok09:27
pedronispstolowski: not sure why we think GetQuota is awkward? what is awkward is it's error behavior09:27
pedronis*its09:28
pstolowskipedronis: yes mainly that, but also it just gets allquotas anyway09:28
pstolowskibut i'm fine either way09:28
pstolowskipedronis: rootOnly + userOK is not allowed, we explicitly reject such combo in canAccess()09:29
pstolowskiso i guess it needs to be rootOnly for now for both post+get until James' changes land09:31
pedronispstolowski: snapstate.Get also get all the snaps, except as *json.RawMessage, we could tweak that way if we want09:44
pedronisbut most things have a get me one thing only helper09:44
pedronispstolowski: what might be true is that it has far less use cases thatn snapstate.Get09:47
pstolowskipedronis: ok i'll use GetQuota and we can optimize for *json.RawMessage as a followup09:47
pedronispstolowski: can you stick a TODO or change GetQuota to return an error and not nil?09:51
pstolowskiok09:51
pstolowskipedronis: state.ErrNoState will be fine?09:52
pedronispstolowski: no,  really some kind ErrQuotaNotFound09:53
pedronisErrNoState is kind of horrible09:53
pstolowskipedronis: updated10:18
mborzeckipedronis: hi, snapd isn't considered a required or an essential snap in core20 model?10:36
mborzeckineither RequireWithEssentialSnaps() or EssentialSnaps() returns it10:36
ijohnsonhappy Friday folks11:26
=== pedronis_ is now known as pedronis
pedronismborzecki: you need to add it yourself if it's not there, there's code like in seed, we maybe need a helper for this11:55
pedronismborzecki: let me find the code I have in mind11:55
mborzeckipedronis: ah, i was confused to not see it, and the 10181 i'm already explicitly listing it in models (like we do in our reference snapcore/models)11:56
pedronismborzecki: https://github.com/snapcore/snapd/blob/master/seed/seed20.go#L48711:57
mborzeckithx11:57
mborzeckipedronis: can you take a look at https://github.com/snapcore/snapd/pull/10181/files#r623782805 ? is this correct or am i talking nonsense here?11:58
mupPR #10181: overlord/devicestate: add helper for creating recovery systems at runtime <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10181>11:58
mborzeckiabout using RequiredWihEssentialSnaps() basically11:58
pedronismborzecki: why?  you do SnapsWithoutEssential below11:59
pedronisyou really just need to add snapd itself if it's not there11:59
pedronisthe code looks right to me11:59
mborzeckiok11:59
pedronismborzecki: you do this below: https://github.com/snapcore/snapd/pull/10181/files#diff-20edc53689a51b3a9151170b37a75c880cf04d818936018f1dcc20d9540507ccR23211:59
mupPR #10181: overlord/devicestate: add helper for creating recovery systems at runtime <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10181>11:59
pedronismborzecki: you can even do it in between the two for loops I suppose,  if modelSnaps["snapd"] == nil { ... }12:01
mborzeckipedronis: hmm let me double check with the tests i'm adding, i had something missing when i had not added base and snapd snaps to the model i mocked12:01
mborzeckipedronis: double checked and the base is included in essential snap, my bad :)12:05
pedronispstolowski: I +1ed the PR, maybe you could look at addressing your own comments in https://github.com/snapcore/snapd/pull/10214 ?12:06
mupPR #10214: features,servicestate: add experimental.quota-groups flag <quota> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10214>12:06
pstolowskipedronis: thanks. yes i can but trying to finish spread test first, so in a bit12:08
pedronispstolowski: ok, just not sure how busy mvo is12:09
pedronisit would be good to actually have the flag12:09
pedronisif we land the api12:09
pedronisthx12:10
pstolowskii wonder if we shouldn't have feature flag checks in other places to handle cases where quotas are created and feature gets disabled... the backend will continue to reconsider quotas from state. but maybe an edge case, and possibly we have this problem with other features12:23
mupPR snapd#10220 opened: seed/seedwriter: fail early when system seed directory exists <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10220>12:26
mupPR snapd#10221 opened: snap/snaptest: helper that mocks both the squashfs file and a snap directory <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10221>12:31
pedronispstolowski: once you turn it on,  it's a bit unclear whether disabling feature on top of creating is useful or annoying12:39
pedronispstolowski: in the end you have new systemd things on your system12:40
pedronisunless you remove/dismantle them carefully before turning it off12:40
pedronispstolowski: unless we implemente a sideeffects of turning it off which goes and deletes all slices and rewrites all services before clearing quotas in state12:41
pstolowskipedronis: turning it OFF could remove all servicestate and then ensureServices, but that's probably a bit annoying\12:41
pstolowskii hit an internal error in my spread test: "cannot get quota "group-two": missing group "group-two" referenced as the sub-group of group "group-top1" when removing a leaf group12:52
pstolowskiafterwards 'sanp quotas' returns error as well12:53
pstolowskierror: cannot get quota groups: cannot get quotas: missing group "group-two" referenced as the sub-group of group "group-top1"12:53
pstolowskibut maybe ijohnson's followup fixes that12:53
pstolowski(and yes i'm fixing these weird looking errors as well)12:54
mupPR snapd#10208 closed: daemon: implement REST API for quota groups (create / list / get) <Skip spread> <quota> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10208>13:01
pstolowskimvo, pedronis i've updated #10213, should be passing now14:01
mupPR #10213: tests: basic spread test for snap quota commands <Skip spread> <quota> <⛔ Blocked> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10213>14:01
mupBug #10213: evolution is crashing if you click cancel when authenticating. <evolution (Ubuntu):Fix Released by seb128> <https://launchpad.net/bugs/10213>14:01
pstolowskiand it fixes error messages14:02
pedronispstolowski: thx14:04
mvopstolowski: nice, thanks14:09
pstolowskimvo: also pushing tweaks to your PR14:10
mvopstolowski: amazing, thank you14:11
ijohnsonpstolowski: pedronis mvo actually sorry I was wrong, the bugfix for removing a sub-group is in https://github.com/snapcore/snapd/pull/10216, it's https://github.com/snapcore/snapd/pull/10216/commits/97dadc54978642ee511ac6168b8e6ce79dfc717114:22
mupPR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>14:22
ijohnsonso if we land 10216 then we should be good to get the spread test working, though we still would have the problem around needing to restart services, and still would have the problem around removing snaps that were in a quota group at time of removal14:23
mvoijohnson: thanks! it looks like 10216 needs a master merge are you on it or shall I do that real quick14:23
mvoijohnson: (looks trivial, happy to do/push)14:24
ijohnsonmvo: sure go for it, but I'm a bit confused what landed that created conflicts 🤔14:25
mvoijohnson: looks like the comment that got moved down14:25
pedronisijohnson: we landed the first two commits from it via Pawel api's PR14:25
ijohnsonoh I see14:26
ijohnsontbh I think it has been very confusing to land partial commits from other PR's inside other PR's, but this week has been exceptional I suppose14:26
pedronispstolowski: I reviewed https://github.com/snapcore/snapd/pull/10214 , overall it looks right but the TODO that mvo put there seem a bit confusing, don't think we will unexport UpdateQuota14:26
mupPR #10214: features,servicestate: add experimental.quota-groups flag <quota> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10214>14:26
pstolowskipedronis: you reviewd it with the changes I pushed a few minutes ago right?14:27
mvopedronis: oh, sorry for wrong comments14:28
pedronispstolowski: yes14:28
pedronisafaict14:28
mvomborzecki: you still need reviews for 10181, yes?14:28
ijohnsonpstolowski: were any of your comments on 10216 blockers that you want me to address before landing that PR ?14:30
mupPR snapd#10222 opened: overlord: support snapctl --halt|--poweroff in gadget install-device <Created by pedronis> <https://github.com/snapcore/snapd/pull/10222>14:31
pedronismvo: ijohnson: mborzecki: last significant bit of "factory mode" code ^14:32
pedronisijohnson: it also need a 2nd review 10216, I can try in a little bit14:32
ijohnsonpedronis: ack should I review that now? was your plan to land that today ?14:32
pedronisijohnson: I would like to land that today or monday morning14:33
ijohnsonpedronis: ok I can review it today, just wondering what I should be working on now, it's unclear to me if 10216 needs work or not, it has one +114:33
pedronisijohnson: yea, I'm going to review #1021614:34
mupPR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>14:34
mupBug #10216: postfix-to-mailman.py", line 83, in ?     import paths ImportError: No module named paths <mailman (Ubuntu):Fix Released> <mailman (Debian):Fix Released> <https://launchpad.net/bugs/10216>14:34
ijohnsonok, thanks, in that case I will review your snapctl pr right now then14:34
pedronisI still need to open two minor "factory mode" PRs as well and land one14:34
pstolowskiijohnson: i'm slightly unsure about https://github.com/snapcore/snapd/pull/10216/files#r623691016 and if it can have undesired consequences14:34
pedronisthat has +2 but a request for a small change, which I probably will do in a follow up14:34
pstolowskiijohnson: but maybe my comment doesn't make sense14:35
ijohnsonpstolowski: I responded, ptal14:38
pstolowski"ptal", didn't know that one ;)14:39
ijohnson:-D14:39
pstolowskialways learning14:40
pstolowski+114:40
ijohnsonthanks14:44
mupPR snapd#10223 opened: cmd/snap: small tweaks based on previous reviews <Simple 😃> <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10223>14:46
pedronisijohnson: I finished reviewing #10216, not really blockers but it would be good to address the test one there or in a follow-up14:54
mupBug #10216: postfix-to-mailman.py", line 83, in ?     import paths ImportError: No module named paths <mailman (Ubuntu):Fix Released> <mailman (Debian):Fix Released> <https://launchpad.net/bugs/10216>14:54
mupPR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>14:54
ijohnsonlet me take a look, I'm pretty close to finishing a review of your 1022214:54
ijohnsonpedronis: yeah good point I can add a test for that14:54
mupPR snapd#10203 closed: image,c/snap: implement prepare-image --customize <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/10203>14:56
ijohnsonpedronis: pushed14:58
ijohnsonpedronis: approved 10222 too15:19
zyga-mbpenjoy your long weekend, see you back in a week :)15:19
* ijohnson doesn't get a long weekend :-/15:20
pstolowskiijohnson: i'm not sure about the state of mvo's snap-quota-full spread test, but it is a separate test so i think my PR can land (and it is focued on cli checks15:36
mvopstolowski: yeah15:36
mvopstolowski: that test I need to look at again15:37
pstolowskii'm going to drop in a moment, is there anything you need from me?15:38
mupPR snapd#10184 closed: tests: moving the snaps which are not locally built to the store directory <Created by sergiocazzolato> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/10184>15:41
pstolowskimhm i think i broke a test in feature flag PR, fixing15:44
pstolowskiah no, actually api tests now need to enable the feature15:45
pstolowskiupdated15:50
pstolowskiijohnson: is #10217 needed today as well?15:55
mupBug #10217: ubuntu ignores my second disk on install <debian-installer (Ubuntu):Invalid by cjwatson> <https://launchpad.net/bugs/10217>15:55
mupPR #10217: o/servicestate: restart slices + services on modifications <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10217>15:55
ijohnsonpstolowski: I'm not sure, I wanted to ask mvo and pedronis about whether we need that for the MVP or not, without that PR, adding a snap to a quota group doesn't take effect unless you manually restart the service15:56
ijohnsonthe followup to that one, 10218 I think is probably more important tbh but there will be lots of conflicts in the two PR's if I separate them15:57
pstolowskiit needs master merge btw15:57
ijohnsonyeah was hoping to land 10216 first before updating those other pr's15:57
mvoijohnson: sorry, had tons of meeting, what can I help with ? anytihng I can review?16:00
pstolowskioh vitality test needs to enable the feature as well, fun16:07
pedronisijohnson: I commented 10218 where/when I think that call should go/be16:09
ijohnsonpedronis: thanks16:10
pedronisijohnson: sorry I have new comment in 1021616:16
pedronisabout the bunch of the new code16:16
ijohnsonah-ha well that was the risk about adding more code there16:17
pedronisijohnson: I also tried to answer your questions in my PR16:24
ijohnson👍️16:32
ijohnsonpedronis: oh wait actually we couldn't ever hit the error condition I would be logging about in RemoveQuota as-is, since the first thing we do is get all groups via AllQuotas which does the verification, so the if the parent doesn't reference the child then the whole function dies at step 016:35
* ijohnson is not sure if that is a good thing or not16:36
pedronisit's probably not bad but not great either16:37
ijohnsonyeah since if there does end up being any inconsistency then we can't do anything with any quota :-/16:38
pedronisI mean we essentialy run the same code before setting quotas and after, but it might not be the same snapd version doing that16:38
ijohnsonso I guess we have a few options16:39
ijohnson1) we could relax the checks in RemoveQuota specifically - this will probably need to be done in a followup, it's a bit of work since we might have to change ResolveCrossReferences to be "loose" sometimes16:40
ijohnson2) we could just leave ResolveCrossReferences as is and remove the extra checking code I have in RemoveQuota since those conditions should be impossible to hit now16:41
pedronisah Set quota doesn't call  ResolveCrossReferences16:41
pedronissorry, I mean RemoveQuota doesn't call ResolveCrossReferences before calling Set("quotas"16:41
ijohnsonpedronis: in master you are correct, but in my PR RemoveQuota does call that16:42
pedronisijohnson: I'm in favor of 2) atm, ah ok16:42
ijohnsonok then the code becomes a bit simpler16:43
ijohnsonpedronis: ok, hopefully now 10216 is ready for real, the error handling code was removed since it was impossible to hit those error conditions16:55
mupPR snapd#10213 closed: tests: basic spread test for snap quota commands <quota> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10213>16:56
mupPR snapd#10224 opened: snap-seccomp: update syscalls.go list <Created by mvo5> <https://github.com/snapcore/snapd/pull/10224>17:01
mvopedronis: does your comment in 10222 say that this PR should not land as is or that there will be a followup? sorry, isn't entirely clear to me17:03
pedronismvo: I would prefer to push a fix there17:05
pedronisbut nothing will explode given nothing is using the feature17:05
pedronisnot even sure something would explode if using the feature17:05
pedronisit's mostly about snap waiting on things17:05
pedronisI mean snap the command17:06
mvopedronis: sure, I marked it blocked just to be sure, just unblock when you feel it's ready17:08
mvopedronis: ok, either way is fine, I will review anyway17:08
mupPR snapd#10216 closed: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10216>18:22
mupPR snapd#10225 opened: boot,image: support image.Customizations.BootFlags <Created by pedronis> <https://github.com/snapcore/snapd/pull/10225>19:22
pedronisijohnson: ^ setting boot flags from prepare-image19:22
ijohnsonpedronis: lgtm19:30
ijohnsonpedronis: it occurred to me that while working on removing a snap from a quota group in discard-snap, that we should also save what group it was in if the snap was being disabled, so that info can be restored when the snap is enabled again19:30
ijohnsonI feel like it's probably less of a bug that after disabling a snap the service leaves the quota group upon re-enabling than the current bug which is that a quota group becomes immutable when a snap in that group is disabled/removed so maybe we just figure that out later19:31
ijohnsonalso I rebased #1021719:32
mupPR #10217: o/servicestate: restart slices + services on modifications <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10217>19:32
mupBug #10217: ubuntu ignores my second disk on install <debian-installer (Ubuntu):Invalid by cjwatson> <https://launchpad.net/bugs/10217>19:32
pedronisijohnson: we don't call discard-snap like that when we simply disable a snap, but maybe I'm misunderstanding what you are referring to19:38
pedronis(or I am misremembering something)19:40
ijohnsonhmm19:41
ijohnsonpedronis: so what do we do about disabled snaps that are in quota groups, since they will show up the same as a removed snap in that the quota group will show up as invalid as we use CurrentInfo() for detecting if a snap is installed19:43
pedronisijohnson: CurrentInfo works for disabled snaps I think19:43
ijohnsonoh perfect then that's not a problem at all then19:44
pedronisdisabled snaps have Active = false but otherwise they have a current revision19:44
pedronisis just not "active"19:44
ijohnsonyeah I don't think the servicestate quota code actualyl cares about being Active19:44
pedronisijohnson: you might want to write a test somewhere about this though19:45
ijohnsonprobably a good idea indeed19:45
pedronisI mean a test about the fact that disabled snap in a quota group doesn't interfere with other quota ops19:45
ijohnsonyes that was what I understood19:45
pedronisgood19:46
ijohnsonalso I'm going to EOD a bit early today after updating 10218 a bit more, but probably won't have time to finish everything we want for that branch19:46
pedronisyea, np, also tbh both 217 and 218 are a bit beyond my attention span right this moment19:48
ijohnsonyeah I think we have enough here to declare the feature MVP worthy19:48
pedronisand I'm staring at how we use Maintenance errors in our clients, because of the halt/poweroff19:48
ijohnsonyeah I never really finished the Maintenance work unfortunately, there were additional features to that I wanted to add, but they had the potential to change a lot of behaviors for i.e. the snap command20:00
ijohnsonanyways I updated 218 with your suggested place to remove the snap from the quota and a super naive unit test, will need more unit tests maybe I can write some in between meetings next week20:00
ijohnsonhave a good weekend folks20:00
=== phunyguy is now known as phunygguy
=== phunygguy is now known as phunyguy

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