15:00:47 #startmeeting neutron_northbound 15:00:47 Meeting started Mon Dec 18 15:00:47 2017 UTC. The chair is yamahata. Information about MeetBot at http://ci.openstack.org/meetbot.html. 15:00:47 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:00:47 The meeting name has been set to 'neutron_northbound' 15:00:54 #chair mpeterson mkolesni poothia 15:00:54 Current chairs: mkolesni mpeterson poothia yamahata 15:01:04 #topic agenda bashing and roll call 15:01:05 #info mpeterson 15:01:07 #info mkolesni 15:01:09 #info yamahata 15:01:10 #info rajivk 15:01:17 #chair rajivk 15:01:17 Current chairs: mkolesni mpeterson poothia rajivk yamahata 15:01:32 Today, do we have any additional topics? 15:01:59 did you guys get approval for ptg? 15:02:03 as patch review, we have several topics on patches. 15:02:16 the email I've sent about the tests 15:02:33 So far, no progress on travel grant for ptg. 15:02:50 mpeterson: let's discuss it as first topic on patch review. 15:02:56 sure 15:03:12 no, i won't be able to attend ptg 15:03:15 no further topics here 15:03:22 yamahata, do you have estimate when will you know? 15:03:32 #info discuss the email about the "useless" tests 15:03:51 Maybe in Jan. I'll push it to my manager after new year. 15:04:03 ok cool 15:04:36 okay, move on 15:04:37 poothia, are you going to ptg? 15:04:38 #topic Announcements 15:04:55 Not decided yet 15:05:13 schedule: Dec 25 and Jan 1 will be skipped. 15:05:23 The next our irc meeting will be held on Jan 8. 15:06:10 Linux Foundation Networking (LFN) project is announced. OpenDaylight will join LFN. 15:06:32 the next ODL design forum is a part of Open Networking Summit in Los Angels. 15:06:39 i won't be attending that one 15:06:45 it's a part of LFN sessions. 15:06:49 #info manjeets 15:06:51 jhershbe might attend 15:07:03 #info Due to holidays the next IRC meeting will be on Jan 8 15:07:09 #chair manjeets 15:07:09 Current chairs: manjeets mkolesni mpeterson poothia rajivk yamahata 15:07:13 #chair manjeets_ 15:07:13 Current chairs: manjeets manjeets_ mkolesni mpeterson poothia rajivk yamahata 15:08:40 ODL M3 is passed. Isaku will report it to ODL release. 15:08:46 any other announcement? 15:09:13 #info next ODL design forum is a part of Open Networking Summit in Los Angeles 15:09:22 #info ODL M3 is passed. Isaku will report it to ODL release. 15:10:25 seems nothing else. move on. 15:10:30 #topic action items from last meeting 15:10:40 we have three items. 15:10:53 all to review https://review.openstack.org/#/c/508826/ 15:10:58 mpeterson to update on the tempest jobs progress on next meeting 15:11:05 all to review https://review.openstack.org/#/q/status:open+project:openstack/networking-odl+branch:master+topic:feature/force_maintenance_task 15:11:20 > all to review https://review.openstack.org/#/c/508826/ 15:11:21 we'll discuss patch review later. 15:11:22 this was done 15:12:03 yeah, cool. 15:12:13 #info as an update re: tempest jobs, mpeterson is still working on the tempest CI job it's not yet ready but looking good 15:12:47 hey, i had an announcement 15:12:57 rajivk: oh, please go ahead. 15:12:59 i missed that window 15:13:19 https://review.openstack.org/#/c/528716 Tempest job migration to Zuul v3 15:13:47 I won't be working on networking-odl officially 15:14:06 in my part time, i will be doing it. I have joined a new organization 15:14:30 sad to hear that. 15:14:32 #info announcement by rajiv: he won't be working on networking-odl officially anymore, only part time 15:14:40 Do you mean new group in the same company? 15:14:56 no different company 15:15:19 rajivk, sad to see you leave us :( 15:15:32 :( 15:15:50 rajivk: too bad, you'll be missed 15:16:36 i hope you have a good time at your new company 15:17:30 let's move on. 15:17:35 #topic Queens/Oxygen planning 15:17:44 I think no new planning items. 15:17:49 #topic patches/bugs 15:18:00 today we have several items. 15:18:55 One is CI breakage as zuul v3 error, unit test breakage mpeterson pointed out and CI breakage of several tests. 15:18:59 mpeterson: you're on stage 15:19:16 I submitted a patch to fix unit tests 15:19:34 https://review.openstack.org/#/c/528020/ 15:19:58 yamahata: yup, I think manjeets_ is more relevant for this :) 15:20:05 manjeets_: that's great. 15:20:11 yamahata: or are we talking about different things? 15:20:19 I have the feeling we are talking about two different thigns 15:20:24 one is the email I've sent 15:20:25 manjeets_, the patch has review from mpeterson already 15:20:31 I'm talking about the eamil you sent. 15:20:40 and the other one is the breakage of the CI that happened last thursday 15:20:53 mkolesni, just saw that today I'll addressed it today 15:20:59 manjeets_, cool 15:21:11 okey, so what manjeets_ did is for the second item 15:21:15 unrelated to that :) 15:21:17 and https://review.openstack.org/#/c/523934/ Fix unit tests for ML2 Mechanism driver 15:21:43 yamahata: re: my email... those tests with the fix or without the fix aren't really testing anything 15:22:00 yamahata: therefore they should be removed in favor of tempest 15:22:12 why should they be removed? 15:22:23 unit test and end-to-end test are different class of test cases. 15:22:57 yamahata, did you read the email mpeterson sent to openstack-dev ? 15:23:02 Yes. 15:23:18 so he explained there 15:23:22 the unit tests aren't well written. but it doesn't justify to remove them. 15:23:31 They should be fixed. but not removed. 15:23:38 basically its uses the mech driver but theres no assertion for that 15:23:57 the base neutron test cant be fixed, its out of scope for us 15:24:15 how would you suggest to assert that what needed to happen di indeed happen? 15:24:29 we can add such assertion. 15:24:43 neutron test can be fixed. we're part of neutron. 15:24:56 yamahata, ok then if you have an idea can you propose a patch to fix this? 15:25:15 just we can fix failing test cases we found. 15:25:21 what prevent us from fixing it? 15:25:21 yamahata: but I don't think those testcases are meant to assert that 15:25:32 huh? 15:25:55 the fix mpeterson did will just have the neutron tests run with the actual mech driver 15:26:19 which from what we see, in the test itself, is equal to running without the mech driver 15:26:47 what the tests test is that when you make an api call, it gets registered in the ml2 db tables 15:26:55 this is asserted by those tests 15:27:09 it doesnt care what the mech driver does with that 15:27:24 so we're getting "free tests" that dont actually test anything in our code 15:28:02 and if they do test something, its more incidental than deliberate since there's no assertions to make sure our code was actually executed 15:28:15 how do you propose to remedy this situation? 15:28:50 the test cases calls plugin and exercises mech driver. 15:29:34 and what, in those test cases, or anywhere else, asserts that the mech driver did what it needed to do? 15:31:37 so we are asserting operation entry in journal table, most of other drivers are register during ml2 init, if the resource is asserted in journal table for those that covers part of mech driver working ? 15:32:16 manjeets_, where is this assertion of the entry? 15:33:05 lets say theres a test we get from there that tests create network.. this test creates the network via rest call to neutron, and then asserts it is in the db. there's no assert to check that the network is in the journal table 15:33:18 mkolesni, I haven't looked at the code for all inherited tests that was my question 15:34:29 manjeets_, there is no assertion there for anything other than neutron db itself 15:36:16 those testcases calls mech driver. So it makes sense. 15:36:36 It's unfortunate that test cases are poorly designed. But it's another story. 15:36:48 yamahata: calling the mech driver without asserting is like self.assertTrue(True) 15:36:50 You can raise the issue in the neutron and to go fix it. 15:37:19 yamahata: the thing is those test cases aren't meant to do that at all, they do what they are supposed already 15:37:24 mpeterson: I see. so? it calls mech driver. 15:37:35 yamahata: okey, let's put it this way 15:37:50 yamahata: let's say it calls create_network in the mech driver 15:38:06 yamahata: in our project it would add a journal entry and that's it 15:38:22 yamahata: it will succeed because it's not doing anything and the test will succeed 15:38:28 yamahata: what did it test? 15:38:34 we raise the issue here.. since it affects us.. these tests give a false sense of coverage 15:38:48 it verified that execution pass can be executed correctly. 15:39:07 how did it verify that it's correct? 15:39:08 As python is dynamic language, it's non-trivial for the execution path to run. 15:39:15 maybe a journal entry wasnt created? 15:39:23 maybe the precommit didnt even run? 15:39:34 how did it verify anything? 15:39:41 i fail to understand 15:40:20 With mpeterson patch, we found 6 test cases failure (or more?). What prevent us from fixing it? 15:40:27 it's like: 15:40:28 def test() { 15:40:28 foo(123) 15:40:28 } 15:40:33 foo can be a real function 15:40:38 and also it can be a mock 15:40:51 in both cases test will be marked as "PASS" 15:41:04 and in both cases nothing was tested in reality, cause there was no assert 15:41:46 the matter is not those 6 failures, the matter is generally the value of those tests is questionable 15:42:57 It looks like it needs more time. 15:43:12 what do you mean? 15:43:14 anyway so far I hesitated to merge other patches. 15:43:18 how will time help here? 15:43:36 Does it make sense to unblock other patches? 15:43:42 yes 15:43:54 Okay. 15:43:55 how will time help however? 15:44:20 we dont meet for another 3 weeks 15:44:26 time is not our friend 15:44:35 we need a decision 15:45:04 these tests give a false sense of security, like a lock on a door but any key can open it 15:46:14 I'm warried that you're claiming to remove test cases after finding 6 testcases. 15:46:23 without understanding why they fail. 15:46:24 no thats not related 15:46:32 we perfectly understand why they fail 15:46:39 yamahata: I understand perfectly why it fails and I'll write test cases for those 15:46:41 you misunderstand the situation 15:46:48 so why won't you fix them? 15:46:49 yamahata: but that's unrelated to the discussion :) 15:47:04 its not related 15:47:19 it's not that I won't fix them, it's just it's unrelated 15:47:40 they fail for a very specific corner case of dependency calculation which causes an exception, they dont 'fail' they 'crash' 15:48:09 theres a difference between a test failing cause an asserion wasn't met, and a test crashing because of an unexpected bug 15:48:23 this is the latter and it's not related to the point mpeterson is making 15:48:33 so those test cases are useful to find bugs. 15:48:46 seriously? 15:48:50 you really think that? 15:49:12 youre not even talking on the subject 15:49:40 so will mpeterson fix newly found bugs? 15:49:58 what does it have to do with the point he was making??? 15:50:04 thats not the point! 15:50:26 if he fixes or not fixes this corner case doesnt relate to his original point 15:50:49 this corenr case could've been discovered by any other means, this does not make these tests valuable 15:51:33 Are you planning to add such test cases? 15:51:58 are you planning to talk to the original point? 15:52:32 yamahata: I understand perfectly why it fails and I'll write test cases for those 15:52:35 it's not that I won't fix them, it's just it's unrelated 15:52:38 ??? 15:53:35 yamahata: can you please forget a second about those failures and can we discuss the issue at hand which is 100x more relevant? 15:53:50 by removing test cases, some coverage may be lost. Are you planning to add new test cases to recover them? 15:54:12 I'm afraid of losing coverage. 15:54:56 can we test the coverage ?, how much of coverage is gone if those are removed 15:54:59 mpeterson, what if we keep those test cases for the time being. It does not impact us anyway 15:55:18 yamahata: 1) coverage for the sake of coverage is an anti-pattern; 2) the coverage won't be lost because there are test cases that cover those paths already; 3) those 6 issues will be fixed, but it's unrelated 15:55:18 so yamahata concern solve for some time and we can discuss your concern 15:56:09 we're running out of time. we have other issue. 15:56:15 https://review.openstack.org/#/c/528716/ 15:56:19 rajivk: it actually does, they are ~2/3 of all the tests and they are not testing anything, they are masking the real issue that we need to address which is we need to properly test the code 15:56:30 mpeterson: is trying to fix it, right? 15:56:59 oops wrong link 15:57:06 oh okey 15:57:27 https://review.openstack.org/#/c/518752/ 15:57:39 Now you're experimenting it. 15:58:29 yamahata: not sure I follow 15:59:00 yamahata: that patch is meant for future work that I'm going to continue doing on the Zuul v3migration 15:59:28 I see. 15:59:51 Now we have zuul -1. and manjeet uploaded a patch to fix unit tests failure. 16:00:01 do we have to address anything else? 16:00:32 please review mpeterson patch set it's already got many approvals and it's sad to wait 16:00:47 yamahata: manjeets_ has comments on that fix that we need to address as a whole, but he did correctly discovered the reasons of failrue 16:00:52 https://review.openstack.org/#/q/status:open+project:openstack/networking-odl+branch:master+topic:feature/force_maintenance_task 16:01:07 mkolesni: you mean force maintenance? 16:01:12 Oh, you're faster than me. 16:01:14 yes the link ^ 16:01:19 #link https://review.openstack.org/#/q/status:open+project:openstack/networking-odl+branch:master+topic:feature/force_maintenance_task 16:01:22 anything else to discuss today? 16:01:34 #undo 16:01:34 Removing item from minutes: 16:01:42 nope 16:01:54 #topic open mike 16:01:55 no 16:02:07 No 16:02:15 we can continue discussion on mailing list. 16:02:24 happy holidays. 16:02:28 ok thanks Isaku! 16:02:28 thanks everyone. 16:02:30 happy holidays 16:02:31 happy holidays, enjoy! 16:02:32 i'll address those comments right soon mpeterson 16:02:37 happy holidays 16:02:42 #topic cookies 16:02:46 #endmeeting