14:00:09 #startmeeting cinder 14:00:09 Meeting started Wed Jun 23 14:00:09 2021 UTC and is due to finish in 60 minutes. The chair is rosmaita. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:00:09 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:00:09 The meeting name has been set to 'cinder' 14:00:15 #topic roll call 14:00:17 Hi 14:00:24 Hello 14:00:37 #action rosmaita - find out why rbd-iscsi-client is not mirrored on github 14:00:41 hi 14:00:59 hi 14:01:11 hi 14:01:15 hi 14:01:19 Hello. 14:01:23 o/ 14:01:31 hi 14:02:29 looks like a good turnout, let's get started 14:02:31 #link https://etherpad.openstack.org/p/cinder-xena-meetings 14:02:39 #topic announcements 14:03:04 since next week's meeting is the final meeting of June, it will be held in both video and irc 14:03:31 also, if you missed it on the mailing list, lseki has stepped down as a cinder core 14:03:42 #link http://lists.openstack.org/pipermail/openstack-discuss/2021-June/023206.html 14:04:09 and, spec freeze is on Friday 14:04:33 #link https://releases.openstack.org/xena/schedule.html#x-cinder-spec-freeze 14:04:34 :( 14:04:53 hi 14:04:59 hello ivan 14:05:23 hey 14:05:37 i'm going to change the order of stuff on the agenda 14:05:39 we will discuss 14:05:49 sqlite (should take 2 minutes) 14:06:04 10 minutes on simon's black linter proposal 14:06:12 and then the rest on spec reviews 14:06:24 #topic Drop support for SQLite < 3.7 14:06:34 #link https://review.opendev.org/c/openstack/cinder/+/788871 14:07:30 basically, all the currently supported platforms for openstack (centos-8-stream and ubuntu-focal) support sqlite >= 3.7 14:07:51 we have a check in the code for the case where someone is using an older version 14:08:02 proposal is to remove it 14:08:38 sqlite is used only got tests, so it's ok to use any version which doesn't make our tests more complicated 14:08:41 this only affects unit tests, so, not much risk 14:08:48 eharney: +1 14:08:50 but i was thinking maybe someone working with like queens, say, might be using an older sqlite on their dev box 14:09:04 Train ? 14:09:22 i think queens is still in -em mode 14:09:46 i believe train's supported platforms have sqlite >= 3.7 14:09:51 but i am not 100% sure 14:10:25 I think train was ubuntu 18.0x > ? 14:11:09 ok, let's do this ... if anyone can think of a reason *not* to do this, please leave a comment on the patch before Friday 1200 UTC 14:11:23 otherwise, i am inclined to go with e0ne and eharney on this 14:11:27 thanks! 14:11:29 +1 14:11:50 ok, it is almost 14:12 now 14:11:54 #link https://governance.openstack.org/tc/reference/runtimes/train.html 14:12:04 #topic discuss allowing `black` to be used as an auto-linter 14:12:11 simondodsley: that's you 14:12:29 it's good to have it but we'll lost history 14:12:47 i like to use `black` as an auto-linter - it makes life super easy especially for seeing future changes 14:13:10 e0ne: I agree you loose history - how much of an issue is that? 14:13:32 git blame is usesul, but I prefer to have black :) 14:13:33 It isn't 100% perfect, but it makes linting somuch quicker 14:13:51 i think for the main cinder code, losing history is definitely an issue 14:14:06 I have found a couple of weird things that `tox -e pep8` fails with when using `black` but they are very trivial 14:14:14 if we decide to use it, let's adopt it's settings to keep current code style 14:14:48 i thought black was opinionated and didn't really have settings to adjust 14:14:54 I've used black in other projects, and it doesn't always produce the most readable code IMHO 14:15:01 I'm not saying it should be mandatory - yes it is opionated 14:15:05 eharney it is very opinionated 14:15:09 eharney: it has some settings and/or ignore list 14:15:15 so we can see the differnces: 14:15:28 #link https://review.opendev.org/c/openstack/cinder/+/792462/ 14:15:53 It can produce stuff like this: https://github.com/craigerl/aprsd/blob/master/aprsd/messaging.py#L561-L573 14:16:00 which I think sux0rs 14:16:01 see, about the first thing it changed on line 57 there is annoying 14:16:24 (breaking our standard formatting of help text on a new line after the option name) 14:16:32 I use black in my ham radio python project called aprsd ^^ link above, as a mechanism to ensure that non python people can lint format their code before commit. 14:17:36 also not sure why it wants to change a lot of single-quoted strings to double quotes, weird 14:17:49 For new code is it a godsend, but true it does break some of the current standards, but are they critical? 14:17:51 yes, it definitely has its quirks 14:18:15 I think the function definition 'formatting' really sucks 14:18:16 i don't really see a benefit when pep8+hacking gets us quite consistent on style already 14:18:23 i like some of the stuff it does, but hate other things 14:18:31 hemna: ++ 14:18:38 simondodsley: we really want a consistent style to make it easy to read any of the code files 14:18:43 eharney: ++ 14:18:55 but using `pep8` requires lots of manual intervention and that is a waste of productive time 14:19:40 i just ran "black" on cinder/volume/manager.py and it blew up and told me to report a bug 14:19:42 I can `blacken` code in 5 seconds whereas manally editing for `pep8` compliance takes ages. 14:19:49 (was hoping to see what it did with type annotations) 14:19:51 `black` is a superset of `pep8` 14:20:22 I don't care as much about the changing of standards as of losing history 14:20:27 another example of sux0rs...same problem though: https://github.com/craigerl/aprsd/blob/master/aprsd/main.py#L286-L301 14:20:31 eharney: then you should :) 14:20:33 geguileo: ++ 14:20:56 i'd rather just stick to pep8/hacking style-wise 14:20:57 eharney: and now you've seen what it does };-) 14:21:10 geguileo: indeed 14:21:15 i don't see the advantage of using this on the main cinder code because of the history issue 14:21:29 maybe for drivers? how do people feel about that? 14:21:39 would it be acceptable for new code? 14:21:40 or do we need to be completely consistent? 14:21:41 maybe also for tests? 14:21:44 L#289-299 doesn't look good... 14:21:46 git blame is critical for new devs, specially when trying to understand critical changes between os releases 14:21:52 it doesn't make sense to have different code styles in the same repo 14:21:53 does black formatted code pass pep8/hacking most of the time? 14:22:07 sfernand: i agree 14:22:11 I think if a driver dev wants to run it on their driver and is ok with losing history that's one thing, still sucks for other people that touch those drivers, but running it on cinder core I think would not be good. 14:22:17 the style it creates make seeing code changes much simpler and makes for easier coding of changes going forward 14:22:32 sfernand: and for old devs (like me) as well ;-) 14:22:43 I'm OK with loosing history for my driver code 14:23:05 also, backporting fixes to previous releases where black wasn't run.....sux0rs 14:23:07 i have been seeing some black-esque stylings in some patches recently 14:23:18 hemna: that is a really good point 14:23:22 hemna: right!!! backports!!! 14:23:59 True - backports will break a lot. OK - I'll drop my thoughts on `black` for cinder 14:24:00 I think we agree not to do it for core code and let driver maintainers choose whether to do it or not 14:24:06 hemna: There is a huge issue. Backports. 14:24:06 we know how to deal with backports. we have such rules for python3 only code 14:24:32 geguileo: but only on patches that they don't want to backport? 14:24:38 I would prefer people don't use it. Definitely do not want it on core code. 14:24:59 it's time for out-of-tree drivers discussion 14:25:00 When I did the review I thought it sucked but went down the route of, 'Well, it is their driver' 14:25:04 whoami-rajat: well, if they want to backport them they'll have to fix the merge conflicts 14:25:15 * jungleboyj does a hard eye roll 14:25:28 ok, so it's looking like the consensus is definitely no black reformatting in the main code 14:25:28 do I understand it correctly the whole issue is due to black not being configurable to be tuned to produce the same style we use today? 14:25:36 e0ne lolz 14:26:02 ok, we are out of time on this 14:26:18 ok - let's say No - I'll refactor my patch 14:26:20 does someone want to take an action item to investigate black configuration? 14:26:31 so, for now ... no black 14:26:47 we can revisit if someone comes up with a way to address the points made above 14:26:52 thanks, simon 14:27:12 #topic xena specs review 14:27:23 well, it's spec freeze time again 14:27:37 rosmaita: ++ 14:27:40 #link https://review.opendev.org/q/project:openstack%252Fcinder-specs+status:open 14:27:47 let' see what we got 14:28:23 hrmm user visible extra specs 14:28:24 i think the user-visible extra specs is in good shape, a revision was just pushed 14:28:30 I'm still not terribly sold on that 14:28:42 hemna: you need to act fast and review 14:29:12 ok will do. I don't think I'd want my customers to see my volume type extra specs. 14:29:18 it's very terse and driver specific 14:29:31 details that end users shouldn't see IMHO 14:29:40 well, it's going to be limited to a specific subset of extra-specs keys 14:29:46 defined in code, not configurable 14:29:48 hemna: driver specific specs are absolutely excluded from the feature 14:29:49 hemna: they wont see any backend specific extra specs 14:29:51 I'll read through it 14:29:52 hemna: driver specific extra specs won't be visible 14:30:24 backend-revealing 14:30:26 I'm just saying it's problematic for my customers 14:30:45 well, it will be governed by policy, so you can always turn it off for end-users 14:30:46 and your customers can set policy to not show any if they want 14:31:09 wait, customers can set policy ?! or admins? 14:31:14 admins 14:31:16 nm, I'll read the spec. 14:31:24 i thought your customers were admins 14:31:28 no 14:31:33 I'm the admin :) 14:31:34 if you are the admin then you do it if you want 14:32:00 anyway, give the spec a read, i think most of the issues have been worked out 14:32:16 nmve-of connection agent 14:32:25 #link https://review.opendev.org/c/openstack/cinder-specs/+/796365 14:32:44 i think the spec captures the discussion at the PTG 14:33:08 so i think we're in agreement with the general direction 14:33:28 it will be useful for people to look it over for anything that needs to be spelled out more clearly 14:33:56 Spec for "Consistent and Secure RBAC" in Cinder 14:34:05 #link https://review.opendev.org/c/openstack/cinder-specs/+/797655 14:34:24 we already agreed to do this, but i realized that we didn't have a spec to track it 14:34:31 so there it is 14:34:54 nice 14:35:20 eric: did your remove force from snapshots spec merge already? 14:35:34 I +A'd it this morning 14:35:41 cool 14:35:45 yes 14:35:52 i was worried there was a problem with my gerrit query 14:36:03 ok, the rest have -1s 14:36:34 I +A'd the temorary resource tracking spec as well 14:36:48 good 14:36:54 you have been busy this morning 14:36:58 yup :) 14:37:14 Support revert any snapshot 14:37:22 #link https://review.opendev.org/c/openstack/cinder-specs/+/736111 14:37:34 there seems to be a failure of communication on this one 14:38:02 i asked the author to read the midcycle discussion 14:38:16 which stressed the importance of adding test scenarios to explain how this will work 14:38:33 but that hasn't happened 14:39:02 i think the spec is still missing info about safely handling operations that fail half-way through 14:40:12 ok, i will add a comment explaining more explicitly what needs to be addressed 14:41:00 it would be helpful if the proposer attended the cinder meetings so we could discuss 14:41:22 rosmaita: ++ 14:41:32 Migration support for a volume with replication status enabled 14:41:41 #link https://review.opendev.org/c/openstack/cinder-specs/+/766130 14:41:49 looks like geguileo has some concerns on this one 14:42:47 and it looks like the author is not willing to provide the details requested 14:43:01 rosmaita: I don't know if I'm failing to explain what's missing 14:43:04 and those details are not unreasonable, they are key to understanding how this whole thing should work 14:43:29 the main concern is about migration would interfere with the replication, right? 14:44:15 this is another one that would have benefitted from discussion during the weekly meetings 14:44:16 eharney: that is the primary, yes 14:45:05 eharney: and iirc you also mentioned it before 14:45:23 Update original volume az 14:45:31 #link https://review.opendev.org/c/openstack/cinder-specs/+/778437 14:45:49 this hasn't been updated since my midcycle comment, so not looking good 14:47:37 Allow volumes to be part of multiple volume groups 14:47:49 #link https://review.opendev.org/c/openstack/cinder-specs/+/792722 14:48:55 i would've sworn that we had discussed it, but maybe not 14:49:32 rosmaita: we did discuss it 14:49:46 at least twice... 14:49:57 ok, i thought maybe i was dreaming about cinder again 14:50:09 lol 14:50:17 ok, it hasn't been updated since 24 may, so i guess the proposer has lost interest 14:50:19 i'm concerned that this one is lacking some detail 14:50:40 rosmaita: I've left some comments on your srbac patch 14:50:45 iirc the first time someone explained the use cases where this was useful 14:50:47 whoami-rajat: ty 14:50:52 it's not obvious what all the various things are that can happen when moving volumes in and out of consistency/replication groups 14:51:01 but i suspect it's more than just updating markers to say it's in those groups... 14:51:44 i.e. what happens with a chain of cgsnapshots when each snapshot has different volumes in it 14:54:39 ok, i'll send emails out about 736111, 766130, 778437, 792722 14:55:00 the aim of the email being that they need to work with the team to address the issues 14:55:17 and if it's a TZ problem for the weekly meeting, we'll have to work something out 14:55:31 but i don't realistically see any of those being ready for Xena 14:56:00 ok, i guess that's it for specs 14:56:17 please review the ones mentioned at the beginning of this part of the meeting 14:56:32 they need to merge by 23:59 UTC or thereabouts on friday 14:56:38 any questions, comments? 14:56:51 Question on the NVMe-oF 14:57:02 https://review.opendev.org/c/openstack/cinder-specs/+/796365 14:57:15 So, There are +1s on it. No +2s . 14:57:42 What do we want to do about that? 14:58:09 I've left some queries and suggestions (personal) to make it more readable 14:58:16 there is some good feedback on that review that's not been updated 14:59:21 i agree with Jay's comment that a more thorough os-brick person than me needs to give it a +2 14:59:25 hemna: Ok. That was why I wasn't +2. Just trying to interpret the other +1s 14:59:51 we had a discussion about this agent ages ago no? 15:00:03 I don't remember all of it 15:00:04 yes, at the PTG 15:00:16 #link https://wiki.openstack.org/wiki/CinderXenaPTGSummary#NVMe-oF_and_MDRAID_replication_approach_-_next_steps_for_connector_and_agent 15:00:18 I'll read through it 15:00:29 ok, thanks 15:00:40 like i said, i think it captures what we talked about 15:01:13 also, i am worried that the spdk CI has disappeared 15:01:27 although i guess that doesn't matter for this spec 15:01:58 ok, we are out of time ... thanks everyone, and please complete your spec reviews as soon as you can 15:02:10 #endmeeting