17:00:12 #startmeeting cinder-nova-api-changes 17:00:13 Meeting started Mon Dec 12 17:00:12 2016 UTC and is due to finish in 60 minutes. The chair is ildikov. Information about MeetBot at http://wiki.debian.org/MeetBot. 17:00:14 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 17:00:16 The meeting name has been set to 'cinder_nova_api_changes' 17:00:25 scottda ildikov DuncanT ameade cFouts johnthetubaguy jaypipes takashin alaski e0ne jgriffith tbarron andrearosa hemna erlon mriedem gouthamr ebalduf patrickeast smcginnis diablo_rojo gsilvis xyang1 raj_singh lyarwood 17:00:35 o/ 17:00:36 o/ 17:00:41 o/ 17:00:50 I am back but can't make this today again :( 17:00:57 but I can lurk in two meetings at once 17:01:14 johnthetubaguy: still welcome back :) 17:01:32 I updated our chaotic etherpad with some info: #link https://etherpad.openstack.org/p/cinder-nova-api-changes 17:01:49 hi 17:02:01 the Cinder side spec got merged: #link https://review.openstack.org/#/c/361512/ 17:02:57 it captures the basics, like the API calls and a few more to have a foundation to start with 17:03:26 code is on its way: #link https://review.openstack.org/#/q/status:open+project:openstack/cinder+branch:master+topic:attach_detach_v2 17:03:36 morning 17:03:54 hemna: afternoon :) 17:03:59 :) 17:04:47 anyone has anything to add to the above announcement/items? 17:05:09 how far off are we getting the code out of WIP? 17:05:17 hemna depends 17:06:00 hemna need reviews (thanks ildikov by the way for the reviews over the week-end!) 17:06:25 hemna I'd like to get the attachments patch merged then push a non-wip up for the rest of the cinder changes 17:06:47 ok 17:06:48 jgriffith: no problem (always good to have a workaholic on the team :) 17:06:54 I'll look at the attachments review 17:06:55 :) 17:07:28 jgriffith: when do you think you can get to the cinderclient changes? 17:07:41 hemna I'm trying to figure out again how to just use the volume backref and a join to get provider id 17:07:55 jgriffith: I thought to push the Nova side forward a bit, but that'll need the client to test 17:08:09 well, we have other things we can do on the nova side first, 17:08:12 ildikov ok, I can bump that up today 17:08:15 i.e. nova doesn't currently support cinder v3 17:08:26 that could be worked independent of any of this 17:08:33 mriedem well there is that minor detail :) 17:08:48 and we could enable nova to use cinder v3 in the placement CI job 17:08:54 which is where we do our bleeding edge testing 17:09:29 jgriffith: thanks, I'll let you know when it's worth it to reopen the Nova review 17:09:55 mriedem: is there any activity on this currently? 17:10:29 jgriffith: I like your Monday optimism re "minor detail" :) 17:10:40 ildikov: nope 17:10:49 ildikov: I had put up some WIP patches to allow testing of nova -> cinder v3 17:10:50 https://review.openstack.org/#/c/385682/ 17:10:56 it might just be configuring nova in a job to use cinder v3 17:11:32 all that ^^ needs unit tests and more love, but I *believe* it all basically worked with Cinder microversions on /v3 endpoint. It's been a while.... 17:11:34 scottda: cool, tnx! 17:11:55 mriedem: Yeah, I think nova just needs: 17:11:56 Requires use of Cinder v3 endpoint by adding to nova.conf: [cinder] catalog_info = volumev3:cinderv3:publicURL 17:14:11 scottda: yeah your change is still using v2 17:14:11 volumev2:cinderv2:publicURL 17:14:13 is the default 17:14:49 scottda: what does 'more love' mean in your above comment? I got the unit test part :) 17:15:42 scott's love level was insufficient 17:15:49 ildikov: Ha. I think the code will need some methods to get the cinder microversion for use inside Nova code. 17:16:12 It's just a quick hack to allow testing. 17:16:26 note that nova also still supports cinder v1 17:16:27 scottda: ok, got it, thanks 17:16:32 And I'm sure Nova folks will have a better idea of what they'd like to see. 17:16:32 if version == '1' and not _V1_ERROR_RAISED: 17:16:46 so we might want to just remove that support 17:16:54 i can take that on 17:18:20 mriedem: sounds good, tnx 17:19:00 scottda: I will look up the Nova priority etherpad where this new Cinder API activity is tracked and add your patch there to get more eyes on it 17:19:21 ildikov: Well, it was a WIP and then became abandoned... 17:19:36 ildikov: I'll re-visit the patch and put up a real patch this week. 17:19:45 scottda: bah, ok I didn't check the header :) 17:20:02 scottda: I'll do the administration once that's done 17:23:56 if there's nothing more to the microversions, I think last time we mainly discussed things that were in the Nova spec, like volume state changes in error scenarios, etc. 17:24:30 mriedem: now that johnthetubaguy I guess the next step is push forward that spec based on the comments 17:24:46 mriedem: is my assumption correct? 17:25:21 john will probably need some time to ease back in from the break, and process my deluge of comments on his spec 17:26:07 mriedem: :) 17:27:07 I think we can do the prototyping with the plain simple attach/detach flow, while the comments on the Nova spec get cleaned up 17:27:45 mriedem: is there anything among the comments that we should bring up here? 17:28:13 it was last monday when i reviewed it, so i'm fuzzy, but nova setting error state on the cinder resources (attachment) was my main complaint 17:29:06 mriedem: I think it's currently not covered on the Cinder side, I mean in the spec or the current version of the code 17:31:24 mriedem: I think we didn't have an agreement on modifying the error state part so far 17:31:39 mriedem: you're on the side of not doing it, right? 17:32:00 ildikov: correct 17:32:11 last time beyond the Cinder basics I think this was the main item that came up 17:32:13 i don't think nova, or anything, should meddle with the internal state of a resource in cinder 17:32:23 mriedem, +1 17:32:23 mriedem agreed 17:32:39 mriedem: +1 17:33:25 I can link in the meeting logs to the spec and then we can look into how to handle that part 17:34:03 mriedem: the other thing we talked about earlier is when Nova will create a new attachment and when it should just update it 17:34:41 mriedem: I think we can experiment it in the PoC patch in parallel to working on the edge cases in the spec 17:34:42 i wasn't clear on that from the spec, it kind of goes both ways at times it seems 17:34:56 mriedem: or if there's anything in anyone's mind then we can touch on that here too 17:34:58 i thought to mimic reserve today we'd create the empty attachment in nova-api 17:35:11 and then update it with host/connector details in n-cpu 17:35:20 mriedem correct 17:35:24 yeap, that's the plan 17:35:37 but i thought i saw something in the nova spec about creating the attachment in n-cpu, which would be racey 17:35:43 but i might be confusing volume attach and BFV 17:36:13 today for BFV we don't reserve the volume from n-api 17:36:20 I guess questions come up when it comes to handling error cases like the instance will end up on another host by the end of the day-type of rebuild, etc. 17:36:24 which is odd 17:36:39 mriedem: the patch for that is still on it's way :) 17:37:36 for rebuilds, 17:37:46 mriedem: in the sense of needs review, although I can remove a few more things from the code before told that it's the total wrong direction... :) 17:37:47 we don't retry on BFV errors today 17:38:18 when does Nova retry? 17:38:37 https://review.openstack.org/#/c/246505/ 17:38:47 when does nova retry....well.... 17:38:55 depends on what's handled in the compute manager 17:39:07 which is kind of a mess 17:40:23 hmm, I wonder whether we can come up with anything high level regarding how we would like to handle these if things would be less messy 17:40:38 or just handle this as we get there one by one 17:41:22 mriedem: do you think that review will be picked up? As it's currently abandoned 17:41:28 nova needs to eventually move the volume creation code to conductor, 17:41:31 like we're doing with ports 17:41:33 but that's a ways out 17:41:45 ildikov: it's up to someone to pick up i guess, 17:41:49 i don't think the submitter will 17:42:00 as it's powervc and they just carry patches internally 17:42:15 ok, then we keep that path in mind, but it's not a burden for now 17:42:32 for the new hotness, i think nova just deletes the attachment in n-cpu on failure 17:42:45 like nova should do for port deallocation between retries 17:42:57 mriedem yes, that's what I thought we agreed upon 17:43:04 if you come with a volume/port, nova doesn't touch it between retries, but if nova creates it, nova should clean it up 17:44:09 that sounds reasonable to me 17:44:12 mriedem: +1 17:44:27 nova is the one who is executing the workflow 17:45:32 I will reread the Nova spec with this mindset to see where we are 17:46:05 although I guess mriedem captured all the hiccups in it already :) 17:47:34 anything else in connection to this? 17:48:52 ok, then one more regular reminder from my side 17:49:34 mriedem: johnthetubaguy: pretty please, sugar, whipped cream, cherry, whatever on top give this puppy a quick review: https://review.openstack.org/#/c/335358/ :) 17:50:15 mriedem: johnthetubaguy: or tell me who else is competent with the area enough to be interested in looking at it 17:50:36 thats probably me 17:51:35 johnthetubaguy: cool, tnx, I will add you to my 'annoy people' list then :) 17:52:19 anything else for today to discuss? 17:53:11 Are we meeting next week? 17:54:02 scottda: I wanted to ask when to stop/resume the series, tnx for reminding :) 17:54:30 I'm available next week, but we can skip if we don't have enough people around 17:54:51 I'll be around next week. I could go either way... 17:55:29 I'm around next week 17:55:46 jgriffith: mriedem: johnthetubaguy: how likely will you be around next week? 17:55:54 i'm around 17:55:58 me too 17:56:21 ok, cool, then let's aim for a quick one next week 17:57:00 and I think we can resume the meeting series on the 9th next year 17:57:23 but we can decide on this next week 17:57:27 ildikov: Sounds good