File size: 29,130 Bytes
4aa5fce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
[01:09] <mup> PR snapd#10215 opened: store/store_download.go: make snapd resilient on slow network <Created by fujimotos> <https://github.com/snapcore/snapd/pull/10215>
[03:24] <mup> PR snapd#10216 opened: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>
[03:29] <mup> PR snapd#10217 opened: o/servicestate: restart slices + services on modifications <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10217>
[03:29] <mup> PR snapd#10218 opened: o/servicestate/quota_control.go: add RemoveSnapFromQuota  <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10218>
[05:55] <mborzecki> morning
[06:03] <zyga> good morning
[06:03] <zyga> almost long weekend :)
[06:03] <mborzecki> yeah, happy that this week is almost over
[06:06] <zyga> mborzecki, I'm just looking at a build I did last evening
[06:06] <zyga> rpi4 stock image
[06:06] <zyga> trying to figure out how to wic it to an SD card
[06:07] <zyga> bmaptool!
[06:07] <zyga> never heard of this tool before
[06:08] <mborzecki> zyga: wic only builds the image, i.e. creates partitions and so on
[06:08] <zyga> I have raw partitions
[06:08] <zyga> just looking up docs, I see another tool I never used before: kas
[06:09] <zyga> kas feels like repo with extras
[06:10] <mborzecki> zyga: never used kas, but i submitted a bunch of upstream patches for wic
[06:10] <mborzecki> zyga: fwiw, there should be a wks (iirc the extension was) file in meta-raspberry
[06:11] <zyga> looking
[06:11] <zyga> yep
[06:11] <zyga> got it
[06:11] <zyga> I know what to do with wic
[06:11] <zyga> but now I'm intrigued with bmaptool
[06:12] <zyga> something to learn later
[06:12] <zyga> let's do simple wic now
[06:12] <mborzecki> i 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] <zyga> copy the image and see
[06:12] <zyga> to me the names are a bit all over the place :)
[06:12] <zyga> not consistent or logical
[06:12] <zyga> but I get that projects have history
[06:13]  * zyga looks at CI to recall how to use wic
[06:14] <zyga> ... something is happening
[06:15] <mborzecki> haha
[06:16] <zyga> ./sdimage-raspberrypi-202104300815-mmcblk0.direct
[06:16] <zyga> woot
[06:17] <zyga> now to dd
[06:17] <zyga> I
[06:17] <zyga> I'll optimize later
[06:17] <zyga> I need to get a small screen for debugging stuff one day
[06:20] <zyga> copying now
[06:21] <zyga> I need to do some power supply tricks to have automatic power as well
[06:22] <zyga> copy was quick :)
[06:50]  * zyga goes to another system
[07:05] <pstolowski> morning
[07:11] <mborzecki> pstolowski: hey
[07:15] <mborzecki> pstolowski: any PRs to look at?
[07:18] <zyga-mbp> hey mvo
[07:19] <mvo> good orning zyga-mbp and mborzecki and pstolowski
[07:20] <pstolowski> hey
[07:20] <mborzecki> pstolowski: any PRs to look at?
[07:20] <mborzecki> mvo: hey
[07:20] <pstolowski> mborzecki: any 'quota'-tagged PRs, except for spread test
[07:21] <mborzecki> pstolowski: ok, will do
[07:22] <mborzecki> pstolowski: 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 right
[07:22] <mup> PR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>
[07:22] <pstolowski> mborzecki: yes
[07:22] <pstolowski> mborzecki: we can be paranoid, otoh this data comes from snapd and if it is inconsistent we are in big trouble
[07:23] <mborzecki> yeah, that's true
[07:23] <pstolowski> mborzecki: we make sure it is consistent when we manipulate in snapd
[07:24] <pstolowski> mborzecki: i can add some chceks in a followup
[07:33] <pstolowski> mvo: 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:35] <mup> PR snapd#10219 opened: interfaces: add a polkit interface <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/10219>
[07:35] <mborzecki> mvo: https://github.com/snapcore/snapd/pull/10214 is missing some dependencies apparently
[07:35] <mup> PR #10214: features,servicestate: add experimental.quota-control flag <quota> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10214>
[07:44] <mvo> mborzecki: oh, ok, let me check
[07:45] <mvo> mborzecki: aha, yes, let me fix this
[08:12] <pstolowski> pedronis: #10210 has +2, can it land or do you want to take a look as well?
[08:12] <mup> Bug #10210: Second head doesn't work with Mobility Radeon 9600 M10 <xorg (Ubuntu):Invalid by daniels> <https://launchpad.net/bugs/10210>
[08:12] <mup> PR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>
[08:13] <pstolowski> pedronis: hi btw :)
[08:28] <pedronis> pstolowski: it seems fine for now, unless you think there is something interesting I should look at?
[08:28] <pstolowski> pedronis: not really, thanks
[08:29] <pstolowski> mvo: i may need to ask you for manual merge again (##10210)
[08:29] <mup> Bug #10210: Second head doesn't work with Mobility Radeon 9600 M10 <xorg (Ubuntu):Invalid by daniels> <https://launchpad.net/bugs/10210>
[08:29] <mup> PR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>
[08:29] <pedronis> pstolowski: 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] <mup> PR #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] <mup> PR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>
[08:30] <mvo> pedronis: I commented in 10208, I think it needs the locking fix
[08:31] <pstolowski> pedronis: yes, because of locking change. my PR will hang atm
[08:31] <pstolowski> mvo: i fixed that already
[08:32] <mvo> pstolowski: 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 ian
[08:32] <mup> PR #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] <mvo> pstolowski: thanks for updating it of course!
[08:33] <mvo> pedronis: 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:34] <pedronis> mvo: I suppose we should cherry pick Ian's first two commits (also the rename/unexporting) into Pawel's PR?
[08:34] <pstolowski> yeah cherry-picking of Ian's commit into my PR sounds good
[08:35] <pstolowski> i don't think i need renaming changes in my PR
[08:36] <mvo> pstolowski: cool, please cherry pick :)
[08:36] <mvo> thanks pedronis
[08:36] <pedronis> pstolowski: yes, but I think it's saner to cherry-pick a prorer prefix of Ian PR
[08:36] <pedronis> pstolowski: so please cherry pick the rename too
[08:36] <pstolowski> ok
[08:36] <pedronis> pstolowski: when you are don I can review your PR
[08:36] <pstolowski> thanks
[08:36] <pedronis> *done
[08:48] <pstolowski> pedronis: pushed
[08:49] <pedronis> pstolowski: thx, will start looking at it now
[08:52] <pstolowski> mvo: i'm not sure if you saw my earlier message, but #10210 is good to land but may need manual merge
[08:52] <mup> Bug #10210: Second head doesn't work with Mobility Radeon 9600 M10 <xorg (Ubuntu):Invalid by daniels> <https://launchpad.net/bugs/10210>
[08:52] <mup> PR #10210: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10210>
[09:01] <mvo> pstolowski: sure, happy to merge it, does 10210 need a pedronis review or is it ok without?
[09:01] <pstolowski> mvo: he is ok to land it
[09:10] <pedronis> pstolowski: I commented on 10208
[09:12] <mvo> pstolowski: on it
[09:15] <mup> PR snapd#10210 closed: cmd/snap, client: snap quotas command <quota> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10210>
[09:19] <pstolowski> pedronis: thanks, replied to one of your points
[09:25] <pstolowski> pedronis: re your rootOnly comment, rootOnly: true + userOK: true combination would be ok?
[09:26] <pedronis> pstolowski: I don't remember, you need to try
[09:27] <pstolowski> ok
[09:27] <pedronis> pstolowski: not sure why we think GetQuota is awkward? what is awkward is it's error behavior
[09:28] <pedronis> *its
[09:28] <pstolowski> pedronis: yes mainly that, but also it just gets allquotas anyway
[09:28] <pstolowski> but i'm fine either way
[09:29] <pstolowski> pedronis: rootOnly + userOK is not allowed, we explicitly reject such combo in canAccess()
[09:31] <pstolowski> so i guess it needs to be rootOnly for now for both post+get until James' changes land
[09:44] <pedronis> pstolowski: snapstate.Get also get all the snaps, except as *json.RawMessage, we could tweak that way if we want
[09:44] <pedronis> but most things have a get me one thing only helper
[09:47] <pedronis> pstolowski: what might be true is that it has far less use cases thatn snapstate.Get
[09:47] <pstolowski> pedronis: ok i'll use GetQuota and we can optimize for *json.RawMessage as a followup
[09:51] <pedronis> pstolowski: can you stick a TODO or change GetQuota to return an error and not nil?
[09:51] <pstolowski> ok
[09:52] <pstolowski> pedronis: state.ErrNoState will be fine?
[09:53] <pedronis> pstolowski: no,  really some kind ErrQuotaNotFound
[09:53] <pedronis> ErrNoState is kind of horrible
[10:18] <pstolowski> pedronis: updated
[10:36] <mborzecki> pedronis: hi, snapd isn't considered a required or an essential snap in core20 model?
[10:36] <mborzecki> neither RequireWithEssentialSnaps() or EssentialSnaps() returns it
[11:26] <ijohnson> happy Friday folks
=== pedronis_ is now known as pedronis
[11:55] <pedronis> mborzecki: you need to add it yourself if it's not there, there's code like in seed, we maybe need a helper for this
[11:55] <pedronis> mborzecki: let me find the code I have in mind
[11:56] <mborzecki> pedronis: 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:57] <pedronis> mborzecki: https://github.com/snapcore/snapd/blob/master/seed/seed20.go#L487
[11:57] <mborzecki> thx
[11:58] <mborzecki> pedronis: 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] <mup> PR #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] <mborzecki> about using RequiredWihEssentialSnaps() basically
[11:59] <pedronis> mborzecki: why?  you do SnapsWithoutEssential below
[11:59] <pedronis> you really just need to add snapd itself if it's not there
[11:59] <pedronis> the code looks right to me
[11:59] <mborzecki> ok
[11:59] <pedronis> mborzecki: you do this below: https://github.com/snapcore/snapd/pull/10181/files#diff-20edc53689a51b3a9151170b37a75c880cf04d818936018f1dcc20d9540507ccR232
[11:59] <mup> PR #10181: overlord/devicestate: add helper for creating recovery systems at runtime <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10181>
[12:01] <pedronis> mborzecki: you can even do it in between the two for loops I suppose,  if modelSnaps["snapd"] == nil { ... }
[12:01] <mborzecki> pedronis: 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 mocked
[12:05] <mborzecki> pedronis: double checked and the base is included in essential snap, my bad :)
[12:06] <pedronis> pstolowski: I +1ed the PR, maybe you could look at addressing your own comments in https://github.com/snapcore/snapd/pull/10214 ?
[12:06] <mup> PR #10214: features,servicestate: add experimental.quota-groups flag <quota> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10214>
[12:08] <pstolowski> pedronis: thanks. yes i can but trying to finish spread test first, so in a bit
[12:09] <pedronis> pstolowski: ok, just not sure how busy mvo is
[12:09] <pedronis> it would be good to actually have the flag
[12:09] <pedronis> if we land the api
[12:10] <pedronis> thx
[12:23] <pstolowski> i 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 features
[12:26] <mup> PR snapd#10220 opened: seed/seedwriter: fail early when system seed directory exists <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10220>
[12:31] <mup> PR 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:39] <pedronis> pstolowski: once you turn it on,  it's a bit unclear whether disabling feature on top of creating is useful or annoying
[12:40] <pedronis> pstolowski: in the end you have new systemd things on your system
[12:40] <pedronis> unless you remove/dismantle them carefully before turning it off
[12:41] <pedronis> pstolowski: unless we implemente a sideeffects of turning it off which goes and deletes all slices and rewrites all services before clearing quotas in state
[12:41] <pstolowski> pedronis: turning it OFF could remove all servicestate and then ensureServices, but that's probably a bit annoying\
[12:52] <pstolowski> i 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 group
[12:53] <pstolowski> afterwards 'sanp quotas' returns error as well
[12:53] <pstolowski> error: cannot get quota groups: cannot get quotas: missing group "group-two" referenced as the sub-group of group "group-top1"
[12:53] <pstolowski> but maybe ijohnson's followup fixes that
[12:54] <pstolowski> (and yes i'm fixing these weird looking errors as well)
[13:01] <mup> PR 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>
[14:01] <pstolowski> mvo, pedronis i've updated #10213, should be passing now
[14:01] <mup> PR #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] <mup> Bug #10213: evolution is crashing if you click cancel when authenticating. <evolution (Ubuntu):Fix Released by seb128> <https://launchpad.net/bugs/10213>
[14:02] <pstolowski> and it fixes error messages
[14:04] <pedronis> pstolowski: thx
[14:09] <mvo> pstolowski: nice, thanks
[14:10] <pstolowski> mvo: also pushing tweaks to your PR
[14:11] <mvo> pstolowski: amazing, thank you
[14:22] <ijohnson> pstolowski: 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/97dadc54978642ee511ac6168b8e6ce79dfc7171
[14:22] <mup> PR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>
[14:23] <ijohnson> so 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 removal
[14:23] <mvo> ijohnson: thanks! it looks like 10216 needs a master merge are you on it or shall I do that real quick
[14:24] <mvo> ijohnson: (looks trivial, happy to do/push)
[14:25] <ijohnson> mvo: sure go for it, but I'm a bit confused what landed that created conflicts πŸ€”
[14:25] <mvo> ijohnson: looks like the comment that got moved down
[14:25] <pedronis> ijohnson: we landed the first two commits from it via Pawel api's PR
[14:26] <ijohnson> oh I see
[14:26] <ijohnson> tbh 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 suppose
[14:26] <pedronis> pstolowski: 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 UpdateQuota
[14:26] <mup> PR #10214: features,servicestate: add experimental.quota-groups flag <quota> <Created by mvo5> <https://github.com/snapcore/snapd/pull/10214>
[14:27] <pstolowski> pedronis: you reviewd it with the changes I pushed a few minutes ago right?
[14:28] <mvo> pedronis: oh, sorry for wrong comments
[14:28] <pedronis> pstolowski: yes
[14:28] <pedronis> afaict
[14:28] <mvo> mborzecki: you still need reviews for 10181, yes?
[14:30] <ijohnson> pstolowski: were any of your comments on 10216 blockers that you want me to address before landing that PR ?
[14:31] <mup> PR snapd#10222 opened: overlord: support snapctl --halt|--poweroff in gadget install-device <Created by pedronis> <https://github.com/snapcore/snapd/pull/10222>
[14:32] <pedronis> mvo: ijohnson: mborzecki: last significant bit of "factory mode" code ^
[14:32] <pedronis> ijohnson: it also need a 2nd review 10216, I can try in a little bit
[14:32] <ijohnson> pedronis: ack should I review that now? was your plan to land that today ?
[14:33] <pedronis> ijohnson: I would like to land that today or monday morning
[14:33] <ijohnson> pedronis: 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 +1
[14:34] <pedronis> ijohnson: yea, I'm going to review #10216
[14:34] <mup> PR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>
[14:34] <mup> Bug #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] <ijohnson> ok, thanks, in that case I will review your snapctl pr right now then
[14:34] <pedronis> I still need to open two minor "factory mode" PRs as well and land one
[14:34] <pstolowski> ijohnson: i'm slightly unsure about https://github.com/snapcore/snapd/pull/10216/files#r623691016 and if it can have undesired consequences
[14:34] <pedronis> that has +2 but a request for a small change, which I probably will do in a follow up
[14:35] <pstolowski> ijohnson: but maybe my comment doesn't make sense
[14:38] <ijohnson> pstolowski: I responded, ptal
[14:39] <pstolowski> "ptal", didn't know that one ;)
[14:39] <ijohnson> :-D
[14:40] <pstolowski> always learning
[14:40] <pstolowski> +1
[14:44] <ijohnson> thanks
[14:46] <mup> PR snapd#10223 opened: cmd/snap: small tweaks based on previous reviews <Simple πŸ˜ƒ> <quota> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10223>
[14:54] <pedronis> ijohnson: I finished reviewing #10216, not really blockers but it would be good to address the test one there or in a follow-up
[14:54] <mup> Bug #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] <mup> PR #10216: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10216>
[14:54] <ijohnson> let me take a look, I'm pretty close to finishing a review of your 10222
[14:54] <ijohnson> pedronis: yeah good point I can add a test for that
[14:56] <mup> PR snapd#10203 closed: image,c/snap: implement prepare-image --customize <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/10203>
[14:58] <ijohnson> pedronis: pushed
[15:19] <ijohnson> pedronis: approved 10222 too
[15:19] <zyga-mbp> enjoy your long weekend, see you back in a week :)
[15:20]  * ijohnson doesn't get a long weekend :-/
[15:36] <pstolowski> ijohnson: 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 checks
[15:36] <mvo> pstolowski: yeah
[15:37] <mvo> pstolowski: that test I need to look at again
[15:38] <pstolowski> i'm going to drop in a moment, is there anything you need from me?
[15:41] <mup> PR 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:44] <pstolowski> mhm i think i broke a test in feature flag PR, fixing
[15:45] <pstolowski> ah no, actually api tests now need to enable the feature
[15:50] <pstolowski> updated
[15:55] <pstolowski> ijohnson: is #10217 needed today as well?
[15:55] <mup> Bug #10217: ubuntu ignores my second disk on install <debian-installer (Ubuntu):Invalid by cjwatson> <https://launchpad.net/bugs/10217>
[15:55] <mup> PR #10217: o/servicestate: restart slices + services on modifications <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10217>
[15:56] <ijohnson> pstolowski: 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 service
[15:57] <ijohnson> the 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 them
[15:57] <pstolowski> it needs master merge btw
[15:57] <ijohnson> yeah was hoping to land 10216 first before updating those other pr's
[16:00] <mvo> ijohnson: sorry, had tons of meeting, what can I help with ? anytihng I can review?
[16:07] <pstolowski> oh vitality test needs to enable the feature as well, fun
[16:09] <pedronis> ijohnson: I commented 10218 where/when I think that call should go/be
[16:10] <ijohnson> pedronis: thanks
[16:16] <pedronis> ijohnson: sorry I have new comment in 10216
[16:16] <pedronis> about the bunch of the new code
[16:17] <ijohnson> ah-ha well that was the risk about adding more code there
[16:24] <pedronis> ijohnson: I also tried to answer your questions in my PR
[16:32] <ijohnson> πŸ‘οΈ
[16:35] <ijohnson> pedronis: 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 0
[16:36]  * ijohnson is not sure if that is a good thing or not
[16:37] <pedronis> it's probably not bad but not great either
[16:38] <ijohnson> yeah since if there does end up being any inconsistency then we can't do anything with any quota :-/
[16:38] <pedronis> I mean we essentialy run the same code before setting quotas and after, but it might not be the same snapd version doing that
[16:39] <ijohnson> so I guess we have a few options
[16:40] <ijohnson> 1) 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" sometimes
[16:41] <ijohnson> 2) 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 now
[16:41] <pedronis> ah Set quota doesn't call  ResolveCrossReferences
[16:41] <pedronis> sorry, I mean RemoveQuota doesn't call ResolveCrossReferences before calling Set("quotas"
[16:42] <ijohnson> pedronis: in master you are correct, but in my PR RemoveQuota does call that
[16:42] <pedronis> ijohnson: I'm in favor of 2) atm, ah ok
[16:43] <ijohnson> ok then the code becomes a bit simpler
[16:55] <ijohnson> pedronis: ok, hopefully now 10216 is ready for real, the error handling code was removed since it was impossible to hit those error conditions
[16:56] <mup> PR 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>
[17:01] <mup> PR snapd#10224 opened: snap-seccomp: update syscalls.go list <Created by mvo5> <https://github.com/snapcore/snapd/pull/10224>
[17:03] <mvo> pedronis: 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 me
[17:05] <pedronis> mvo: I would prefer to push a fix there
[17:05] <pedronis> but nothing will explode given nothing is using the feature
[17:05] <pedronis> not even sure something would explode if using the feature
[17:05] <pedronis> it's mostly about snap waiting on things
[17:06] <pedronis> I mean snap the command
[17:08] <mvo> pedronis: sure, I marked it blocked just to be sure, just unblock when you feel it's ready
[17:08] <mvo> pedronis: ok, either way is fine, I will review anyway
[18:22] <mup> PR snapd#10216 closed: o/servicestate: address comments from previous PR <quota> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10216>
[19:22] <mup> PR snapd#10225 opened: boot,image: support image.Customizations.BootFlags <Created by pedronis> <https://github.com/snapcore/snapd/pull/10225>
[19:22] <pedronis> ijohnson: ^ setting boot flags from prepare-image
[19:30] <ijohnson> pedronis: lgtm
[19:30] <ijohnson> pedronis: 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 again
[19:31] <ijohnson> I 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 later
[19:32] <ijohnson> also I rebased #10217
[19:32] <mup> PR #10217: o/servicestate: restart slices + services on modifications <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10217>
[19:32] <mup> Bug #10217: ubuntu ignores my second disk on install <debian-installer (Ubuntu):Invalid by cjwatson> <https://launchpad.net/bugs/10217>
[19:38] <pedronis> ijohnson: we don't call discard-snap like that when we simply disable a snap, but maybe I'm misunderstanding what you are referring to
[19:40] <pedronis> (or I am misremembering something)
[19:41] <ijohnson> hmm
[19:43] <ijohnson> pedronis: 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 installed
[19:43] <pedronis> ijohnson: CurrentInfo works for disabled snaps I think
[19:44] <ijohnson> oh perfect then that's not a problem at all then
[19:44] <pedronis> disabled snaps have Active = false but otherwise they have a current revision
[19:44] <pedronis> is just not "active"
[19:44] <ijohnson> yeah I don't think the servicestate quota code actualyl cares about being Active
[19:45] <pedronis> ijohnson: you might want to write a test somewhere about this though
[19:45] <ijohnson> probably a good idea indeed
[19:45] <pedronis> I mean a test about the fact that disabled snap in a quota group doesn't interfere with other quota ops
[19:45] <ijohnson> yes that was what I understood
[19:46] <pedronis> good
[19:46] <ijohnson> also 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 branch
[19:48] <pedronis> yea, np, also tbh both 217 and 218 are a bit beyond my attention span right this moment
[19:48] <ijohnson> yeah I think we have enough here to declare the feature MVP worthy
[19:48] <pedronis> and I'm staring at how we use Maintenance errors in our clients, because of the halt/poweroff
[20:00] <ijohnson> yeah 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 command
[20:00] <ijohnson> anyways 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 week
[20:00] <ijohnson> have a good weekend folks
=== phunyguy is now known as phunygguy
=== phunygguy is now known as phunyguy