16:00:19 #startmeeting cinder-nova-api-changes 16:00:24 Meeting started Thu Aug 24 16:00:19 2017 UTC and is due to finish in 60 minutes. The chair is ildikov. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:00:25 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 16:00:27 The meeting name has been set to 'cinder_nova_api_changes' 16:00:32 johnthetubaguy jaypipes e0ne jgriffith hemna mriedem patrickeast smcginnis diablo_rojo xyang1 raj_singh lyarwood jungleboyj stvnoyes 16:00:41 hi 16:00:44 @! 16:00:44 o/ 16:00:44 <_pewp_> jungleboyj ヽ(´・ω・`)、 16:00:53 o/ 16:00:54 Though also in another meeting too. :-) 16:01:22 jungleboyj: thanks for keeping an eye on this one too :) 16:01:32 ildikov: I do what I can. :-) 16:01:39 jungleboyj: :) 16:01:39 o/ 16:02:14 ok, let's start 16:02:30 current open reviews: https://review.openstack.org/#/q/topic:bp/cinder-new-attach-apis 16:02:56 https://review.openstack.org/#/q/topic:bp/cinder-new-attach-apis+status:open 16:02:59 ;) 16:03:19 smcginnis: my bad :) 16:03:37 Just a more concise view. :) 16:03:45 mriedem: the two on the top of the list are small changes to add an attachment_complete call and to tweak yet once more on the attachment_ref, mainly the connection_info part 16:04:01 mriedem: those can be reviewed already 16:04:32 for the attach patch we still need a client release to get a clean test run on the gate 16:04:40 locally things seem to work 16:05:05 except one thing that stvnoyes has just found with 'cinder show volume' 16:05:43 ildikov: Latest on a new client release - looks like that will need to be next week. 16:05:53 with this patch we seem to use volume_id as opposed to attachment_id: https://github.com/openstack/python-cinderclient/commit/63ac82a55489d55246da939b5ae60b8a65fb9ec7 16:06:36 smcginnis: is that still issues with stable? 16:06:56 smcginnis: we might need to fix one more thing in the client, so from that perspective it sounds ok 16:07:04 smcginnis: I just wonder what else we have on the table 16:07:06 ildikov: Yeah, the lib freeze will need to go until everything is complete for pike. 16:07:49 smcginnis: I guess we should be confident with end of next week then? 16:08:26 ildikov: Better be, otherwise something went really wrong. ;) 16:08:48 i'd like more details in the commit message for https://review.openstack.org/#/c/493324/ 16:08:52 smcginnis: my thinking as well, just wanted to be sure :) 16:09:03 ildikov: also, can you re-propose the spec for queens and make any necessary updates? https://review.openstack.org/#/c/373203/ 16:09:12 mriedem: sure, will do 16:09:24 i guess i never got https://review.openstack.org/#/c/459134/ in 16:09:33 mriedem: yeah, I planned to, wanted to double check with you 16:10:10 mriedem: I will add that and I should add attachment_complete to it too 16:10:49 i've lost context on what my amendment is even about anymore 16:11:16 it was basically trying to capture discussion for something we'd need to consider when supporting multi-attach i think 16:12:17 it was about keeping begin_detaching with the new flow too, so we have the call in the API to put the volume into 'detaching' state as I remember 16:12:45 which is pretty much needed for multi-attach as we don't want two detaches going at the same time 16:13:45 ildikov why not? 16:14:23 We've again kinda lost sight of the whole point of discreet and independent attachment objects I think 16:14:42 heck, at this point I'm not even sure I understand it any more :) 16:15:13 jgriffith: well, if we don't change the volume state that can be attach and etach as well that goes in parallel and I'm not sure that's a good idea 16:15:38 jgriffith: and the volume state machine doesn't support it either 16:15:46 probably not a discussion for right now, but that whole thing needs to go away/stop 16:15:50 so for now it's better not to create a mess :) 16:15:56 the attachment needs to be the source of truth 16:16:17 it sounds good for the long run 16:16:30 but we can't start those changes in Nova 16:16:38 understood 16:16:54 but don't try and cheat and force in a half assed multi-attach solution either :) 16:17:10 ildikov: how about we just re-propose the spec and leave out https://review.openstack.org/#/c/459134/ 16:17:16 we can roll that into the queens spec later if we want 16:17:21 anyway, not sure it's really relevant quite yet... sorry 16:17:28 don't want to derail 16:17:30 right let's avoid the noise 16:17:34 and just ignore https://review.openstack.org/#/c/459134/1 16:17:38 jgriffith: we will talk about the multi-attach bits on the PTG, I hope :) 16:17:55 mriedem: works for me 16:18:04 mriedem: thanks for the hint 16:18:17 jgriffith: BTW, did you see my above comment on cinder show volume not returning the correct attachment_id? 16:18:31 No 16:18:44 jgriffith: stvnoyes has just found out as he uses that for one of his tempest tests 16:18:48 mriedem: Do we have a good time for a joint PTG session? 16:18:55 jungleboyj: ^ 16:18:56 for a good time... 16:19:00 like on a bathroom wall? 16:19:16 smcginnis: anytime wed-fri is fine 16:19:32 we just have an etherpad with proposed stuff right now, nothing in order 16:19:40 jgriffith: so this is apparently the volume_id for some reason: https://github.com/openstack/python-cinderclient/commit/63ac82a55489d55246da939b5ae60b8a65fb9ec7#diff-799a44cd44f14a12e4f1d2a8b56ab63aR39 16:19:48 mriedem: Same for us. 16:19:57 :-) mriedem We should coordinate that. 16:20:07 i hope we're not in the same wedding ballrooms as last time 16:20:09 smcginnis: thanks for bringing it up, so I don't forget :) 16:20:28 ildikov: I've been meaning to for a while, so I figured I better while we're all here. :) 16:20:29 mriedem: Do you have a preference. Maybe Thursday some time? 16:20:34 jungleboyj: that works 16:20:37 wedding? who's getting hitched? Free food and drink.. YAY 16:20:37 thursday morning 16:20:40 ++ 16:20:45 jgriffith: ++ 16:20:50 Was just going to suggest morning so there's follow on time. 16:20:50 i just want a room with a ceiling that's <20 feet 16:20:57 mriedem: That sounds good. 16:21:03 sounds good 16:21:26 jgriffith: ildikov You guys will get everyone up to speed on where the API rework and impacts during that time? 16:21:58 mriedem: Is there interest on the Nova side there? I know that the Cinder team needs to be updated. 16:22:16 * smcginnis has to drop off for a bit for solo parent duties 16:22:32 jungleboyj: that's an option, but it would be more high level if we have both teams there 16:22:54 i'd be happy if more nova people were involved 16:23:05 mriedem: +2 +A 16:23:09 if johnthetubaguy is going to be at the ptg he'd need to be updated 16:23:15 otherwise maybe gibi will get the mantle 16:23:24 johnthetubaguy: You going to be there 16:23:35 * jungleboyj whispers "please say yes, please say yes" 16:23:37 I think he has a ton of concerns without update too :) 16:23:50 yeah anyway 16:23:52 He is going to be there. 16:24:00 Ok, that is good news. 16:24:06 what next 16:24:12 * mriedem still has rc2 bugs to fix 16:24:33 mriedem: yeah, I gave gibi an idea on how annoying I can be with review requests in the second line after 'congrats'... :) 16:24:52 mriedem: not much more on the Nova side until we don't have the cinderclient fixed and released 16:25:05 ok 16:25:26 jgriffith: so as for volume show, it seems to be an easy client side fix 16:25:30 maybe i'll throw https://review.openstack.org/#/c/463987/ in next week 16:25:44 stvnoyes: is ^ still happy with the new flow? 16:25:58 or i guess we can't test that in upstream CI until cinderclient fixes are released 16:26:05 working thru that cinder client issue atm 16:26:18 ok, because the stack of api changes at https://review.openstack.org/#/c/330285/ depends on the cinderclient fixes 16:26:24 so i guess i'll hold off 16:27:03 jgriffith: it's weird why we have the volume_id as the value of 'id' under 'attachments' in the volume though, at least for my taste 16:27:15 jgriffith: maybe hemna has the history of that 16:27:36 mriedem: well, things mostly look good locally, but I guess it sounds less convincing anyway 16:28:33 ildikov there's a lot of garbage in there frankly 16:28:59 like storing attach-status in 3 different places etc; I'll look at the volume-show stuff you mentioned and see what's up 16:29:00 the attachment_id in the compute API for attached volumes has always been the volume_id i think 16:29:35 jgriffith- in cinderclient.v2.shell.py._translate_attachments, the attachment_id is replaced with attachment['id'] which happens to be the volume id 16:29:45 mriedem I believe you're correct on that 16:29:49 https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/volumes.py#L226 16:29:53 jgriffith: I think for now we can just use the attachment_id in the translate function in the client 16:29:55 super legacy 16:29:58 the correct attachment id is in 'attachment_id' 16:30:11 not id 16:30:19 stvnoyes got ya 16:30:22 right, my point is it's probably there fore super old legacy reason 16:30:24 like https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/volumes.py#L226 16:30:32 when cinder wasn't a thing, it was nova-volume 16:30:47 mriedem +1 you're correct 16:30:50 n-vol thing 16:30:58 mriedem: ok, then we need to fix that too 16:31:22 so this show issue may have been introduced with that translate_attachments change... 16:31:43 it was working ok earlier. 16:32:32 stvnoyes yeah, I made some changes to cinderclient that might be culprit too though. But yes it worked beautifully for a while :) 16:33:04 anyway... i think this is a Cinder show thing that needs to be fixed and I don't want to pile on things regarding changes to legacy stuff until we finish what's in flight 16:33:28 there are too many things up in the air right now IMO 16:33:57 jgriffith: we still need the correct data in the volume object too 16:34:36 jgriffith: so we can double check the client, we have a bit more time till the lib freeze is finally over 16:35:56 anything else to the topic? 16:36:54 nope 16:37:11 ok, then I think that was it for today 16:37:38 unless someone has further questions/comments to discuss 16:38:26 ok, we can figure out topics for the joint session on the PTG offline and keep fixing up the cinderclient 16:38:31 thanks everyone! 16:38:41 C U here next week 16:38:43 ildikov, that volume_id thing I believe was a placeholder that has been there from the n-vol days, I just left it there to not break anything. 16:39:51 hemna: sounds good, we have the attachment_id explicitly there, so we can fall back to that and do cleanups later 16:40:15 would be my thinking re not breaking anything 16:41:36 alright, have a good rest of the day everyone :) 16:42:09 #endmeeting