16:00:41 #startmeeting cinder-nova-api-changes 16:00:41 Meeting started Thu May 18 16:00:41 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:42 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 16:00:45 The meeting name has been set to 'cinder_nova_api_changes' 16:00:49 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 breitz jungleboyj 16:00:50 o/ 16:01:26 jungleboyj: hi :) 16:01:26 o/ 16:01:31 ./ 16:01:44 ildikov: Hello. 16:01:51 ildikov: Back home yet? 16:02:07 smcginnis: yep, landed yesterday afternoon 16:02:23 ildikov: Glad you made it safe. Hope it was a good trip. 16:02:27 ildikov: Did you remember how to get back to your apartment? :D 16:02:36 smcginnis: my brain is still useless though, after Summit syndrome... 16:02:38 mep 16:02:53 smcginnis: luckily taxi drivers help you out if you know the address :) 16:03:00 ildikov: ++ 16:03:01 jungleboyj: yep, it was alright 16:03:35 so let's get started 16:04:20 the main news from last week is that I've never had this many people approaching me about multi-attach ever before 16:05:02 a guy even told me they fixed up my two Nova patches and running it in production on Kilo 16:05:23 ildikov: Wow. 16:05:29 ildikov, w00t 16:05:44 the conclusion is that we better get ourselves together and finally finish this thing! :) 16:05:56 * johnthetubaguy wonders in a touch later than planned 16:06:02 at least that's my conclusion :) 16:06:31 johnthetubaguy: no worries, I'm just sharing my experiences from last week 16:06:40 yup, lets make it safe before they all do it very unsafe! 16:06:52 honestly its the feature most people ask me about at openstack events too, at least right now 16:07:27 johnthetubaguy: big +1 16:07:51 so that said we started to look into swap with jgriffith 16:08:00 has anyone asked those folks what they plan on doing with it? :) 16:08:11 and what filesystem they plan on using? 16:08:21 our customers want Oracle RAC 16:09:09 hemna: I don't remember what the guy said who's running this in production, but he didn't complain it didn't work 16:10:03 I don't think this is gonna be the first feature doing harm if you don't use it correctly 16:10:24 yah, I'm just curious 16:10:43 I think most folks are smart and know they can't run ext4fs on it, but some will try. 16:10:48 I tried to recruit everyone, so I asked them more about how much they can get involved 16:11:04 I will feel sorry for those ones for sure 16:11:11 hemna: I have this crazy clustered thingy is the usual answer I get 16:11:33 clusterfs! 16:11:38 *magic* 16:11:47 its really easy to use this feature badly, I am curious if we want a "read-only" multi-attach mode too 16:11:48 hemna: also there are cases where they would want to have one instance that writes on the volume and the rest just read 16:12:21 ildikov: not sure thats always the case, but that sounds like the most common case 16:12:32 * hemna wonders if that even works 16:12:42 johnthetubaguy: no, certainly not always 16:12:46 some stuff was a simple active/passive HA pair, that both needs storage 16:12:52 I might try hacking the brick cinderclient extension and see if I can do a multiattach with cinder directly 16:12:59 to see if I can test that out at all 16:13:11 hemna: sounds good 16:13:16 hemna: there is a libvirt property you want to set on the connection, to stop the caches doing funky things 16:13:27 hemna: I think thats in the attach WIP patch anyways 16:13:35 ok cool. 16:13:40 and for baremetal ? 16:13:42 hemna: I can rebase my old Nova patches and enable multi-attach in them again so you could even play with Nova 16:13:52 just has to be mounted with -o ro ? 16:14:02 hemna: I think so. 16:14:18 one of our guys has ma working, sorta basic. no migrate, swap, etc. keeping the connection from getting terminated was the biggest challenge, tho it wasn't much code 16:14:34 I'm a little wary that even mounting ext4fs in ro mode will try induce a write somehow. 16:14:42 are we getting distracted? 16:14:42 anyway, ignore me. 16:14:46 this was not using the new v3 api. just a proto for now. a learning experience. 16:15:18 we have a bunch of patches pending with my +2 on them, the others all looked WIP right now, did I just miss them? 16:16:43 oh wait there was a think about ildikov looking at swap? 16:16:49 how did that go? 16:16:51 johnthetubaguy: no, you didn't 16:16:52 i'd like someone to take a look at this rv -https://review.openstack.org/#/c/463987/ - just to let me know if i'm on the right direction. 16:17:03 johnthetubaguy: stvnoyes works on the live migrate snippets 16:17:27 johnthetubaguy: with jgriffith we got to the conclusion of re-writing swap 16:17:30 stvnoyes: I can take a peak, there was a live-migrate one I voted on recently 16:17:45 great thx 16:18:08 ildikov: thats probably for the best, happy to have a new Nova API if that makes it easier, or at least, I am open to the idea 16:18:33 I think the idea is to let Nova do the attach and detach 16:19:01 and have things there in a clean way as opposed to the current call-back 16:19:15 Nova does do the attach and detach today 16:19:33 oh... API wise 16:19:54 there are some attach/detach calls on the Cinder side today too for some corner cases I think 16:19:57 I think I see what you mean now 16:20:03 that code is a bit confusing... 16:20:10 nova does detach, then does the call back? 16:20:23 Sorry, was pulled off on other things. The Read Only use case was asked for by several people at the Summit. 16:20:25 I think Nova does terminate 16:20:26 the call back does the crazy volume uuid rename nonsense 16:20:35 yeah 16:20:41 jungleboyj: I kept hearing that too 16:20:42 that's the main part 16:20:52 ildikov: I like the sound of your plan 16:21:08 johnthetubaguy: Ok, so not just me. :-) 16:21:12 stvnoyes: can I ask about attachment_ids in your live-migrate patch 16:21:40 jungleboyj: if I were an operator again, I would only enable the read-only version, basically attach a snapshot or somesuch 16:22:01 johnthetubaguy: sure 16:22:10 johnthetubaguy: we can move on from swap, I will sync up with jgriffith as soon as I can regarding where he is with the code changes he started 16:22:11 stvnoyes: we have a new attachment_id after the attach call in the setup I guess, in pre_live_migration 16:22:23 on the destination host, basically 16:22:33 johnthetubaguy: ++ 16:22:47 but when in the tidy up we do the _detach call... we need the old attachment_id 16:22:56 it doesn't seem like your patch is doing that 16:23:05 but I might be missing some magic 16:23:10 ah good catch, i'll take a look at that 16:24:22 we don't delete the first attachment until the migrate is successful, so the orig bdm is still around. but i'll verify 16:24:22 do we want a destination_attachment_id in the BDM? 16:24:26 that would make it clear 16:24:46 not sure what mriedman would think about that mind 16:24:48 I wanted to ask whether we need to store two attachment_id's 16:25:19 I think we have to 16:25:31 I mean we can go look it up, but that seems stupid 16:25:53 you mean storing or not storing it? 16:26:11 i would like to ask if we could get attach with v3 cinder in the code, but disabled. then as we develop these bits we can emable it in a dev env to test it through. 16:26:34 stvnoyes: Like a temporary flag to switch? 16:26:40 stvnoyes: I think we should do that, get ildikov to rebase her patch? 16:26:50 maybe or a config option. or even disabled in source. 16:27:06 why not just cherry-pick the attach patch on top for testing? 16:27:08 johnthetubaguy: I did the rebase, just couldn't get there yet to spin it up in Devstack and test it 16:27:23 ildikov: what did the gate say about the rebase? 16:27:43 johnthetubaguy: making the unit tests work requires more work with the microversions and I certainly didn't want to get deep in that just to be able to test some stuff 16:28:44 johnthetubaguy: I know we will have to, I just would like to go a bit step by step here and try to get something working for real and then play with the microversion discovery and unit tests 16:28:53 ildikov: I was thinking the functional stuff shoudl run OK 16:29:01 ah, gotcha 16:29:09 I know, I'm evil, but just for practicality... 16:29:39 johnthetubaguy: I will get myself back on track with that patch and will ping people who're involved, when it seems working 16:30:02 all good 16:30:04 a ton of things have changed, since jgriffith and me made that one work for the last time... :( 16:31:34 stvnoyes: so I added comments on your live-migrate patch 16:31:49 stvnoyes: do ping me for questions, I know that flow fairly well at the moment 16:31:52 thx 16:32:10 I think we should be creating a new attachment in the pre-live-migration stuff 16:32:16 before we do that first attach call 16:32:31 johnthetubaguy: did you add a note about whether or not store the old attachment_id in the BDM as well? 16:32:42 yeah, I said please store it in the BDM 16:33:12 I think you might be able to hide it without needing a db migration, but I would be tempted to make it a top level item and be done with it 16:33:30 anyways, you are totally in the correct bit of code there 16:35:29 cool, tnx, just would want to have mriedem's eyes on that part as well before ending up in rabbit holes 16:36:00 anyways, stvnoyes, I would think about being explcit about which of the two attachments you use in each case, and for each place we touch a volume in the flow, I think that will shake out more of the details 16:36:16 I suspect a lot of... bugs to be found in that code, FWIW 16:36:42 Undocumented features. 16:37:04 smcginnis: He he he. 16:37:15 johnthetubaguy: I also wonder whether we can get rid of the second use of initialize_connection there 16:37:37 we do that twice? yeah, probably 16:37:51 * johnthetubaguy nods at smcginnis 16:38:02 I mean we should, just cannot see that far as of yet on when we get there and how that will look like exactly... :) 16:38:15 johnthetubaguy: yeah, it's used in that flow a couple of times 16:38:47 for live-migration always thinking about plumbing really 16:39:16 you know a hosepipe with one of those shut off values, so when you pull ou the VM you don't get water everywhere, or something 16:39:21 my head is a strange place at times 16:40:06 sounds like everyone has their next steps for the comming week 16:40:11 or did we miss something? 16:40:41 johnthetubaguy: kk will do 16:40:45 I think we should be fine 16:41:17 I haven't done my homework so will not finger point at others either 16:41:26 thats all good 16:41:28 thanks stvnoyes for taking care of live migrate! 16:42:13 its a very scary part of the code, its good to see that starting 16:42:14 johnthetubaguy: I will try to ping lyarwood to take a look at those patches with +2's and get them merged sooner rather than later 16:42:36 cool, more eyes on those would be good 16:42:45 agreed 16:42:50 is this rv still needed. i noticed after i posted mine. i think it 16:43:02 sfinucan might be able to +2 them, its worth asking him 16:43:03 s redunandant now - https://review.openstack.org/#/c/456988/ 16:43:24 ah, thats the one I head in my head from early in the week 16:43:27 yeah 16:43:32 (not typing well, hand in sling) 16:44:05 stvnoyes: if you cover everything in your WIP, I'll just abandon mine 16:44:12 kk 16:44:43 yeah, I think stvnoyes has got it covered 16:46:19 stvnoyes: abandoned now, sorry for the confusion 16:47:12 cool, are we all done for now? 16:47:18 ildikov: np, i should have noticed it before 16:47:44 stvnoyes: it's ok, it was easy to take care of :) 16:48:01 I don't have more for today 16:48:31 the main focus is live migrate with detach, re-write swap and make attach PoC work again with Cinder v3 to be able to test 16:48:54 and as the last bit of the summary get the patches with +2 merged 16:49:00 did I miss anything? 16:49:21 sounds good 16:49:47 johnthetubaguy: cool, tnx 16:50:11 does anyone have questions to any of the above items or else? 16:51:45 ok, I think we're good for today :) 16:52:04 thank you all! 16:52:29 #endmeeting