14:00:11 #startmeeting neutron_upgrades 14:00:19 Meeting started Thu May 10 14:00:11 2018 UTC and is due to finish in 60 minutes. The chair is lujinluo. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:00:20 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:00:22 The meeting name has been set to 'neutron_upgrades' 14:00:33 hello everyone! 14:00:42 o/ 14:00:47 Hi Luo 14:00:53 Hi mlavalle 14:00:55 o/ 14:00:58 o/ 14:01:02 Hi Ihar 14:01:44 We do not have any action items from last meeting 14:01:57 * mlavalle is multitasking in two meetings today. Could be slow to respond ;-) 14:02:15 but last week we have these two patches merged: https://review.openstack.org/#/c/553617/ and https://review.openstack.org/#/c/563736/ 14:02:43 Now ovo can automatically detect which engine facade to use! thanks ihar ! \o/ 14:02:51 no one reverted any of them right? 14:02:56 I may have missed :) 14:03:10 as far as i spied, no :) 14:04:08 yeah, it's great that finally Ihar's 2 patches got merged :D 14:04:20 #topic OVO 14:04:31 https://review.openstack.org/#/q/topic:bp/adopt-oslo-versioned-objects-for-db+(status:open) 14:04:52 https://review.openstack.org/#/c/549168/ the first one is still pretty red 14:05:18 hungpv_: do you have any updates you want to share with us about https://review.openstack.org/#/c/549168/ ? 14:06:43 Hi, not really at this moment. I'm trying a new solution for this. 14:06:53 Will update on Gerrit 14:07:03 ok. then next one 14:07:19 https://review.openstack.org/#/c/565773/ tag ovo 14:07:37 i went through this one this afternoon 14:07:49 it only moves db queries to ovo file 14:08:00 which is not what we eventually want 14:08:28 yeah as always, we want the OVO boundary to not talk in sqlalchemy-speak 14:09:20 yes, i will leave a comment to suggest him/her not to simply move db queries 14:09:21 that should probably be some kind of code inside base.py that would handle extra filter (tags) accordingly 14:09:28 for all objects that have tags 14:10:03 agree 14:14:10 is it just me, or no one is talking? :) 14:14:27 Not just you :-) 14:14:46 not just you 14:14:49 LOL 14:15:15 can we move on to the next patch? 14:15:18 not just you, sorry i was typing the comment in gerrit 14:15:39 oh, ok then :) 14:15:41 ok next two patches are in an effort to solve the constant db queries in network ovo patches 14:15:58 yeah 14:16:11 https://review.openstack.org/#/c/565358/ this one is not to fetch none listed ovo objects 14:16:31 thanks for the great help from Ihar, the problem with duplicated queries for "networksecuritybindings" and "externalnetworks" has been solved :) 14:16:34 and it then breaks portbindinglevel test, which is addressed by https://review.openstack.org/#/c/566750/ 14:16:46 yeah. this one has an issue with segment returned as None to agents 14:17:07 ihar: for the latter, i hard-coded segment creation in test_base.py 14:17:10 it doesn't really break anything. the issue with the test you mentioned is that it's not really executed 14:17:40 oh yeah 14:17:41 the other patch attempts to enable the test, then I can add a unit test on top that would validate (and help to fix) the None-segment issue 14:18:02 the only place the segment issue is popping up currently is tempest and that's not the best environment to debug 14:18:33 so there is more work to do in regards to the none-fields patch 14:19:16 and of course I don't have a lot of time to invest in the project and will get to it on Monday only. so if some can shake the patches to merge before I reach there that would be great. 14:20:28 much well explained than i could, haha. 14:21:39 anyway, i wrote some ugly codes in the portbindinglevel one and will try to refactor it. Then I will help with the none-fields patch and i think it would be better if TuanVu could work on it with me too 14:22:12 since we need network ovo patch to validate the none-fields patch 14:22:17 I'll try my best :) 14:22:43 thank you in advance, Luo 14:23:16 lujinluo: but the test patch seems to pass zuul with your latest upload 14:23:24 meaning it could use some reviews? 14:23:59 ihar: yeah, but the codes are really ugly, haha 14:24:34 ok gotcha I will need to check 14:24:42 thanks 14:25:03 oh I see what you did there. yeah we need to improve it. but that's a good start 14:25:14 then TuanVu and i will see how we can revise the non-field patch. if we make any process, we will send you updates 14:25:28 maybe base test class need hooking mechanism to allow subclasses to do this kind of object injection into the failing test case 14:25:39 lujinluo: thanks! 14:25:49 :-) thank you! 14:26:16 https://review.openstack.org/#/c/507772/ next is the network ovo patch, that we have discussed a little bit 14:26:27 it is blocked by the two patches mentioned earlier 14:26:56 TuanVu: besides the constant queried issue, do you have anything else that is not clear? 14:27:05 yeah, but at least the problem with duplicated queries for "networksecuritybindings" and "externalnetworks" has been solved 14:27:25 At this moment, there's only 1 remaining failed unit test due to duplicated query for RBAC: 14:27:26 "neutron.tests.unit.objects.test_network.NetworkDbObjectTestCase.test_get_objects_queries_constant" 14:27:57 other than this failing test case, I have no other concern yet 14:28:11 yeah but what's the plan with rbac 14:28:57 honestly, I haven't had any plan yet 14:29:15 because I haven't figured out how to handle "shared" 14:30:09 there is a rbac metaclass that wraps around objects like network that should help with that 14:30:16 as you see, Ihar, duplicated query issue for RBAC is raised when _load_shared is triggered 14:31:01 thanks for your suggestion, Ihar. Could you please explain more? 14:31:01 right. somewhere down the _load_shared path rbac entries are fetched not from the model you already have but fetched again 14:31:36 I would imagine that whatever is returned from neutron/objects/db/api.py should be a model with rbac_entries pre-fetched 14:32:25 I don't have details about how the rbac metaclass works on me (that was a long time ago) but that's a bird eye view 14:33:02 the fact that you don't pass fetched model into _load_shared may be relevant 14:34:01 thanks, could you please explain more about "passing fetched model"? 14:34:48 btw, I'll check more about rbac metaclass as your suggestion 14:36:17 base get_object[s] always calls to neutron/objects/db/api.py that fetches the sqlalchemy model and returns it to the base class that then converts it to object fields, and also stores it as self.db_obj. the rbac entries required to determine if the network is shared or not should be already present on the said model. 14:36:45 the fact that you see redundant sql statements probably means that while we already have the rbac entries on the model, they are not used when calculating shared state 14:37:07 which suggests to me that the model is not used (or not used properly) somewhere deep in _load_shared implementation 14:37:41 I think it would help to first determine which exact code triggers the redundant statements 14:37:53 and then figure out how to rewrite it to reuse the self.db_obj model 14:38:43 yeah, I see 14:39:03 here's the code which triggers the redundant statements 14:39:08 https://review.openstack.org/#/c/507772/46/neutron/objects/network.py@289 14:40:04 based on your suggestion, I think I'll need to rewrite my _load_shared function 14:40:05 yeah but that's just top of the stack. 14:40:21 it may be that the get_shared_with_tenant needs some tweaks 14:41:10 hmm ... yeah, I'll dig deeper 14:43:38 ok 14:44:18 let's move to the next one then 14:44:28 https://review.openstack.org/#/c/544206/ port binding ovo which is by me 14:44:34 thank you very much, Ihar. Your suggestions do help a lot! 14:45:09 i promised Miguel to rebase it upon his patch, but i did not have enough time to fix all the failed UTs in my local environment 14:45:31 I will respin it hopefully before next meeting 14:45:35 lujinluo: you can always push a wip version :) 14:45:46 if nothing else for backup 14:46:07 ihar: nice suggestion. we love red anyway, \o/ 14:46:16 * ihar never leaves a patch on local environment. what if tomorrow a volcano errupts under my chair? 14:46:36 well, i have to say, this could possibly happen in Japan 14:46:40 good point, Ihar, haha 14:46:42 hahaha 14:46:59 +1, Luo, haha 14:47:10 here too. maybe not volcano but I am sitting right now right above the Hayward fault. 14:47:58 ahh, a lot of earthquakes? 14:48:23 nah it's nothing compared to Japan 14:48:32 though I admit it's quite a lot for where I came from! 14:48:46 we had like 3 in the last year 14:48:58 I didn't have a single one back in Europe in my whole life 14:49:19 haha 14:49:34 anyhoo... :) 14:49:43 Growing up in Mexico City, you get used to 2 or 3 erathquakes every year 14:49:45 back to ovo.. 14:49:52 I feel so lucky because of living in a country without volcano or earth quake now 14:49:57 and the ocassional big one 14:50:12 ok back to earthquakes again.. 14:50:22 we have 2 - 3 like per month, i guess? 14:50:23 haha 14:50:56 :))) lujinluo wow. you probably don't even mind an occasional 5-6 one right? :) 14:51:31 the latest national wide alert was about a volcano eruption 3 weeks ago 14:52:00 the price of the beatiful Japanese hills and mountains I guess 14:52:18 i think the first thing i will do tmr morning would be pushing the wip patch to gerrit 14:52:35 ok great. any more ovo stuff in the queue? 14:52:51 no, the rest are not touched since last week 14:53:02 #topic open discussion 14:53:07 there's OVO for Segments and Service Type 14:53:21 but I'll continue working on them after OVO for Network patch 14:53:44 Just wanted to mention that IMO, https://review.openstack.org/#/c/414251 is good now for next round of reviews 14:54:10 cool, let's tackle them down one by one! 14:54:28 and I have a series of smaller (bite size) patches that depend on it https://review.openstack.org/#/q/topic:bp/live-migration-portbinding+(status:open+OR+status:merged) 14:54:29 mlavalle: ack 14:54:46 that series completes the implementation of multiple port binding 14:54:54 mlavalle: do you have tempest patches for the feature? 14:55:06 ihar: that's the next step 14:55:35 mlavalle: ack. 14:56:27 mlavalle: ok it would be nice to have these before we merge. what d'you think? 14:56:56 ihar: mhhh I would like to merge to make it easier for the NOva guys to test their code 14:57:15 otherwise we are rebasing all the time 14:57:30 mlavalle: ack 14:57:45 ihar: I won't forget the Tempest testing. I promise 14:57:55 it is really the very next step 14:58:29 ok I will review it first thing when I get time for openstack 14:58:58 :-) 14:59:21 ok! we have 2 more mins left for anyone who has anything else to share 14:59:34 if not, then we can close it for today! 14:59:42 o/ 14:59:50 #endmeeting