15:59:51 #startmeeting cinder-nova-api-changes 15:59:51 Meeting started Thu Oct 5 15:59:51 2017 UTC and is due to finish in 60 minutes. The chair is ildikov. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:59:52 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:59:54 The meeting name has been set to 'cinder_nova_api_changes' 15:59:57 o/ 16:00:00 johnthetubaguy jaypipes e0ne jgriffith hemna mriedem patrickeast smcginnis diablo_rojo xyang1 raj_singh lyarwood jungleboyj stvnoyes 16:00:36 * johnthetubaguy has a nasty clash this week, but tries to keep his eye on the channel 16:00:37 Here but at a training event so not really here. 16:00:52 johnthetubaguy: I knew you're still hiding :) 16:01:19 @! 16:01:19 <_pewp_> jungleboyj |。・ω・|ノ 16:01:21 o/ 16:01:33 ok, let's start 16:01:41 I guess we can have a quick one today 16:01:59 so the gate is getting more friendly, so I have my hopes up again 16:02:20 mriedem: johnthetubaguy: shared_targets spec: https://review.openstack.org/#/c/507670/ 16:02:45 mriedem: johnthetubaguy: and corresponding code changes: https://review.openstack.org/#/c/509005/ 16:02:46 * jungleboyj crosses my fingers. 16:03:38 mriedem: johnthetubaguy: the spec has no multi-attach aspects; would we need one on the Cinder side that does? 16:04:04 i don't understand the question 16:04:24 ildikov IMO we'll need multi-attach spec for multi-attach 16:04:29 Not for shared_targets reporting 16:04:35 the policy stuff 16:04:46 mriedem: basically where to cover all the aspects of the shared_targets and if it's ok to just figure it out on the Nova side referencing the spec I linked in above? 16:05:17 it's something to mention in the nova multiattach spec 16:05:28 jgriffith: johnthetubaguy: policy on multi-attach on both sides? 16:05:42 as if my understanding is correct we said we will leave R/O for a later time 16:05:52 I'm ignoring anything multi-attach right now so "carry on" :) 16:06:20 Unless that's the specific topi right now, which is unrelated to the spec or shared_targets patch that's up IMO 16:06:21 jgriffith: we should do everything now that needs a version bump 16:06:26 jgriffith: ideally at least 16:06:34 ildikov why? 16:06:49 we haven't even merged the new attach API's? 16:06:56 shouldn't we do that *first*? 16:06:59 jgriffith: that's what we agreed on and that's mainly what keeps the new attach patch from merging right now 16:07:04 ok 16:07:27 ildikov: ++ 16:07:38 jgriffith: we didn't want to do multiple version bumps and checks if that can be avoided 16:07:47 the policy stuff isn't a microversoin 16:07:54 we said you can add policy rules to cinder today 16:08:01 mriedem: that's not, but the shared_targets thing is 16:08:04 basic policy rule is, can you even create multi-attach volumes 16:08:19 the shared_targets cinder spec is approved and code is up though... 16:08:28 so what else do we need to hold up the nova side for 16:08:28 ? 16:08:30 * jgriffith really doesn't understand 16:08:55 ok, if everyone is good, I'm good :) 16:09:11 pretty sure this was all discussed in detail ad nauseum last week 16:09:18 i hope someone was taking notes :) 16:09:29 mriedem :). as a matter o'fact 16:09:41 will update the spec on the Nova side with that bit and hopefully the code will get merged so I can update the new attach code too shortly 16:10:35 jungleboyj: in case we get the shared_targets patch merged along with the version bump in the client, is there anything that would keep us back from cutting yet another client? 16:11:17 ildikov: Not that I am aware of. Think I could make that happen. 16:11:21 ildikov jungleboyj technically you don't need a new client anyway 16:11:26 just sayin 16:11:33 jgriffith: ? 16:11:50 jgriffith: the new attach patch will not pass on the gate without a new client 16:12:04 jgriffith: once I bump the version for the attach calls in it 16:12:57 alrighty 16:13:10 :) 16:13:21 jgriffith: I try not to argue with ildikov :-) 16:13:52 jungleboyj: jgriffith: that's what happened before we cut the latest client the last time 16:14:48 jungleboyj: jgriffith: the client is not built from source on the gate, which is not necessarily a bad thing and there's a test in Nova that checks on the max version, which is going to fail till we don't have a new release out for a version bump 16:15:04 so one thing I didn't fully get after re-reading the logs from last week 16:15:24 ildikov: Ok, that is good to know and actually makes more sense to me. 16:15:39 so I understand we don't want boot from a multiattach R/W volume 16:15:44 that's ok 16:16:00 what I didn't get is how and where we want to ensure that doesn't happen 16:16:38 is it on the Cinder side not to be able to even create a volume that's bootable with 'multiattach'=True at the same time? 16:16:53 There are a couple of options, I'd probably enforce some things on the Cinder side using the bootable property of the volume 16:17:02 or will we block the volume getting used for boot for the second time on one on the sides? 16:17:49 jgriffith: when the volume is created or when it's used? 16:17:59 ildikov: I think we want to go with that option as it is consistent with the default policy we were talking about. 16:18:07 I would go for when the volume is created 16:18:17 ? 16:19:18 johnthetubaguy: that would be my thought as well if that's feasible 16:19:54 I think we confirmed when bootable = false Nova rejects you being able to boot from a volume, so that should cover it 16:20:22 So we would not allow multi-attach able volume to be made bootable? 16:20:31 OMG 16:20:44 look... a volume is marked bootable when it's created from image 16:20:57 Sorry ... 16:21:04 the corner case of marking a volume as bootable after the fact is a corner case 16:21:21 if you have an attachment finalized on a volume and it's marked as bootable 16:21:42 Then if another request to connect is received we fail and respond with an appropriate error message 16:21:44 isn't it marked as bootable when it's created? 16:22:05 Can be later. 16:22:31 jgriffith: Ok. That makes sense to me. 16:22:33 Are my messages not showing up in here? 16:22:49 I didn't think that was the same thing that johnthetubaguy was saying. 16:23:37 I was thinking more about the Nova attach side of things 16:23:40 can we block having bootable=True and multiattach=True being set on a volume at the same time? 16:23:59 I think perhaps we're each talking about different problems and trying to solve them all at the same time 16:24:34 if bootable: multiattach=Prohibited 16:24:37 or whatever you like 16:24:42 jgriffith: I agree with you. 16:24:50 yep 16:24:58 jgriffith: Meaning it can be attached once and subsequent attempts fail. 16:25:00 but it doesn't seem like it's difficult to solve that, at least for the primary cases 16:25:01 or well, simply false 16:25:31 ildikov yes, or false depending on how the multi-attach stuff is implemented and what that looks like 16:25:41 but I don't know becuase it doesn't exist yet :) 16:25:51 jungleboyj yes, correct 16:25:53 and if the bootable flag can be set later, then don't allow to set it for a volume that created as multiattach 16:25:59 the only draw back is possible race conditions 16:26:05 Excellent. I am good with the plan. 16:26:47 ohhhh.... donuts! 16:27:51 jgriffith: where is the race? 16:28:10 down the hallway to get donuts 16:28:13 :) 16:28:36 yeah, I certainly want donuts now, that part is ok :) 16:28:57 * jungleboyj is jealous 16:29:04 jgriffith: I thought to still elaborate on the draw back you raised :) 16:29:06 the race is simultaneous bfv calls, but one will fail so it's ok 16:29:24 it's just not completely deterministic but I really don't think it's a big deal 16:29:44 Yeah, small and unlikely window. 16:29:55 smcginnis and somewhat benign anyway 16:29:58 if multi-attach is false now for BFV then it shouldn't be a bigger problem than it is already 16:30:04 or am I missing something? 16:30:26 sure 16:30:40 ok, cool 16:30:59 The answer to "am I missing something" is almost always true. :) 16:31:26 jgriffith: would you mind summarizing once again the overall plan on this? 16:31:33 just to ensure I got it too :) 16:31:45 smcginnis: The answer to 'does it matter' is not always yes. 16:31:53 smcginnis: :) 16:32:09 merge new attach code 16:32:14 jungleboyj: Also true. 16:32:15 that's the plan 16:32:29 jgriffith: fair enough :) 16:32:39 so while you guys rehashed the multiattach policy again this week, 16:32:44 i reviewed jgriffith's cinder patch 16:32:56 please oh please dear sweet baby jesus, 16:33:00 don't do that data migration offline 16:33:12 mriedem which one? 16:33:15 * jgriffith goes to gerrit 16:33:18 https://review.openstack.org/#/c/509005/ 16:35:55 mriedem if there's someone with the foo to do that without python I'd love to change it 16:36:18 jgriffith: i can find an example from nova 16:36:49 mriedem let me know, when I looked that's how Nova was doing it too I think 16:37:04 https://github.com/openstack/nova/commit/3674a4268d177230375fa1b581dbdf6f62755cee 16:37:19 nova is not doing data migrations in the migration scripts 16:37:24 we do that stuff in the object 16:37:26 on read 16:37:44 and we have the online_data_migrations CLI for batching those as needed 16:39:54 mriedem don't get offended or anything 16:40:16 i posted some links in the change 16:40:22 thanks 16:40:24 np 16:40:45 i'm not offended, 16:40:46 i just, 16:40:56 my ass is still sore from years and years of operators ripping us on doing this 16:40:59 including our internal people 16:41:14 mriedem cool, and I really appreciate you pointing it out!! 16:41:25 i only just put the donut away 2 months ago 16:41:30 haha 16:41:48 not a good kind of donut either 16:43:13 ok, it looks like we're on track with this too now 16:43:22 well, not good to eat 16:43:39 good for sitting, not good for munching 16:43:51 mriedem: thanks for the pointers, etc. 16:43:57 :( :) 16:44:20 unless you've got a fetish, but we digress 16:44:22 end of meeting?! 16:44:29 I think so 16:44:51 unless someone objects 16:45:00 ha 16:45:28 ok, so jgriffith will fix the shared_targets patch 16:45:43 johnthetubaguy will review the live_migrate patch 16:45:54 * ildikov will update the multi-attach spec 16:46:07 * ildikov will also look into start a Cinder side of that thing 16:46:29 and we will merge the new attach patch as soon as the new client with a new mv is out 16:46:46 thanks everyone! 16:47:11 have a good rest of your day! 16:47:18 #endmeeting