16:00:09 #startmeeting cinder-nova-api-changes 16:00:10 Meeting started Thu Jul 13 16:00:09 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:11 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 16:00:13 The meeting name has been set to 'cinder_nova_api_changes' 16:00:19 johnthetubaguy jaypipes e0ne jgriffith hemna mriedem patrickeast smcginnis diablo_rojo xyang1 raj_singh lyarwood jungleboyj stvnoyes 16:00:38 o/ 16:01:23 o/ 16:01:32 Lurking. In two meetings at the moment. :-) 16:01:52 let's wait a half minute and then we can start :) 16:02:10 Maybe I'm here, maybe I'm not. The world may never know. 16:02:33 ok, let's dive in 16:02:59 al the open reviews are here: https://review.openstack.org/#/q/topic:bp/cinder-new-attach-apis 16:03:02 *all 16:03:07 Cinder changes are merged 16:03:20 we're discussing some live_migration related items on the review at the moment 16:03:38 i am going thru matt's comments 16:03:43 mriedem: stvnoyes: is there anything to discuss here to sort it out quicker? 16:03:57 i think I understand his points 16:04:10 so no need here unless Matt wants to clarify anything\ 16:05:10 mriedem: is there anything for live_migrate to discuss here? 16:05:25 i've only gone through the compute manager parts and pointed out 2 issues, 16:05:30 and as stvnoyes said i think he gets it 16:05:54 ok, sounds good 16:06:31 moving on then 16:06:45 swap_volume is annoyingly close at this point 16:07:02 yes i'm working on an etherpad of focus areas to send to the ML 16:07:21 mriedem: sounds great, thank you 16:07:37 and we have the remove check_detach and attach patches besides the two we mentioned above already 16:07:55 stvnoyes has Grenade running and started to work on the test already 16:08:15 stvnoyes: anything we should discuss about that one? 16:09:23 i am looking at the test I am going to do. attach a volume pre, and then detach post. The most obvious place to do that is in cinder resource.sh as that already has code to ssh into the guest to check the volume. anyone see any issues with that? 16:09:54 vs doing it in nova's resource.sh 16:09:56 i don't think we need to worry about sshing into the guest 16:10:33 so no verification? that will make it simpler. then just attach/detach and see that it works? 16:10:57 yes 16:11:01 ok 16:11:09 i think you have to do it in cinder's resource.sh because the cinder upgrade scripts run after the nova ones 16:11:21 so the nova server instance will be created by the time the cinder resource.sh runs 16:11:30 yep 16:11:59 ah i see it already boots a server from volume https://github.com/openstack-dev/grenade/blob/master/projects/70_cinder/resources.sh#L122 16:12:05 yes 16:12:39 and then on the post upgrade it deletes that server 16:12:53 i i was going to add a volume to that bfv server in cinder 16:13:11 it already does 16:13:17 openstack server create --volume $id 16:13:20 that's why an image isn't specified 16:13:50 the image is used from the volume in the root disk 16:13:50 openstack volume create --image $DEFAULT_IMAGE_NAME --size 1 $CINDER_VOL 16:13:56 ok then i'll need to stop the server to detach the boot disk 16:14:14 well, maybe this already covers what we needed to test 16:14:28 you can't detach the boot disk i don't think, nova won't let you 16:14:28 but it doesn't do a detach? 16:14:58 the test that is or does that happen when the server is deleted? 16:15:25 by default delete_on_termination is goign to be False, 16:15:26 Yeah, only way to detach a boot disk is to blow away the instance and create a new one. 16:15:34 i was going to add a new volume pre, and then detach it post (on that bfv instance) 16:15:40 so grenade first deletes the instance and then deletes the volume 16:16:40 this is where we start dealing with that in the compute on instance delete https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2223 16:16:56 so we destroy the guest https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2263 16:17:13 we would detach the volume here https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2295 16:17:26 which is just updating the cinder db state for the volume 16:17:45 stvnoyes: If you're looking at doing this with a separate volume (not the boot volume) then that should be fine. 16:18:10 once that's done we get here https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2336 16:18:24 bdm.delete_on_termination is False so we don't attempt to delete the volume 16:18:27 so grenade deletes it 16:18:57 so we have one flow covered already https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2285-L2296 16:19:00 I think Matt is saying a detach is implicit in the shutdown code which will get called by delete so we don't need to create a second volume 16:19:18 the flow we do'nt have covered is the non-bfv case 16:19:21 where you do 16:19:23 1. create server 16:19:25 2. create volume 16:19:29 3. attach volume on old side 16:19:32 4. detach volume on new side 16:19:36 5. delete server and volume 16:19:51 stvnoyes: Yep. Just if you were saying you wanted to explicitly test it in a test, then that could work with a non-boot vol. But implicitly, it should all get deleted in the end anyway. 16:20:19 the nova resource script will create a server here https://github.com/openstack-dev/grenade/blob/master/projects/60_nova/resources.sh#L85 16:20:39 so we could create a 2nd volume in the cinder resource script to attach to that server 16:21:05 it wouldn't be a bootable volume 16:21:12 no ssh 16:21:14 nothing like that 16:21:39 ok, I got it. I will add something to cover the non-bfv case. I think I can just use the bfv server already in the cinder resource and add a volume to that. Or do you think it's important to add the disk to the nova non-bfv server? 16:22:02 i think either is fine 16:22:15 probably easier to contain in the single cinder resource script 16:22:29 agree 16:22:34 so right before this https://github.com/openstack-dev/grenade/blob/master/projects/70_cinder/resources.sh#L198 16:22:38 you'd detach the 2nd volume 16:22:44 then server delete, then bootable volume delete 16:22:58 easy peasy 16:23:57 :) 16:26:30 are we all in an agreement on this plan? 16:26:45 Ship it. 16:26:46 or any further questions/aspects to discuss? 16:26:59 :-) 16:27:05 i'm good 16:27:19 ok, sounds good then :) 16:28:07 mriedem: any hints on who to start to or stop to annoy for reviews or what would be the best strategy to get this whole thing done in Pike? 16:28:25 i'm working on it 16:28:37 mriedem: or anything else you see uncovered? 16:28:49 not right now 16:29:34 ok, then I think we're good for today unless someone has something to bring up we haven't touched already 16:29:55 mriedem: let me know if I can do anything to make some progress 16:30:11 thanks all :-) 16:30:17 mriedem: if I have to test quotas then I might end up testing quotas, just let me know :) 16:30:49 Thanks ildikov 16:31:45 ok, that's all folks for today then 16:31:49 thanks everyone! 16:31:51 o/ 16:31:56 I am hoping I will get chance to look at those reviews! 16:32:13 we are so very close, so thanks for all the efforts so far and let's make this happen! :) 16:32:18 johnthetubaguy: hey :) 16:32:48 * johnthetubaguy waves 16:33:12 johnthetubaguy: I hope everything's good with you, we all missed you! 16:33:39 not too bad, still trying to tie down my next OpenStack job, but hoping I am getting there 16:34:25 johnthetubaguy: I hope for the best! Fingers crossed! 16:35:07 johnthetubaguy: I guess there's not too much I can help with, but let me know if there would be! 16:35:48 johnthetubaguy: it would also be great if you could take a look at the remaining reviews 16:36:06 yeah, hoping to take a look at those again 16:36:25 need to get by eye back in, I suspect 16:36:56 if you have any questions feel free to ping me anytime 16:37:17 otherwise the few of us taking care of these babies are very responsive in the reviews 16:37:58 is there any questions/topics you would want to bring up now? 16:40:30 I guess that's a no :) 16:40:52 johnthetubaguy: I hope you checking in means I can say Welcome back! :) 16:41:15 johnthetubaguy: and I also have my thoughts with you that job hunting goes well! 16:42:05 alright, that's all for the meeting for today 16:42:21 see you All next week here the latest! 16:42:36 bye 16:42:41 #endmeeting