16:11:04 #startmeeting networking_ml2 16:11:04 Meeting started Wed Dec 13 16:11:04 2017 UTC and is due to finish in 60 minutes. The chair is Sukhdev. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:11:05 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 16:11:07 The meeting name has been set to 'networking_ml2' 16:11:12 rkukura : thanks 16:11:20 no problem 16:11:43 #agenda 16:11:50 #link: https://wiki.openstack.org/wiki/Meetings/ML2#Meeting_December_13.2C_2017 16:12:13 #topic: Announcements 16:12:56 This meeting has been changed from once a week to once a month on 2nd Wednesday of every month 16:13:22 We can hold this meeting earlier, if there is an issue to be discussed 16:13:44 In such a case, simply add the agenda to the ML2 16:14:09 If things get busy, we could even switch back weekly meetings, or could hold extra meetings later in the month 16:14:38 rkukura : +1 16:14:58 do you have irc-meetings change? 16:15:18 yamamoto : I intend to make that change 16:15:32 yamamoto : will push the patch 16:16:13 Another announcement - OpenStack PTG is happening in the last week of Feb 2018 16:16:31 what do you mean by "add the agenda to the ML2"? wiki? 16:17:37 yamamoto : add to the agenda here - https://wiki.openstack.org/wiki/Meetings/ML2 16:17:57 yamamoto : like I added for today's meeting 16:18:59 Any other announcement? 16:19:01 so, we are supposed to watch the wiki? 16:19:40 yamamoto : Ideally, add to the wiki and shoot an email on the dev list 16:19:49 ok 16:19:59 so that interested folks can join/participate 16:20:04 I’d suggest sending to openstack-dev, and the ML2 co-chairs 16:20:38 yamamoto : Or you can wait until the next official slot of the meeting 16:21:08 For the scheduled monthly meetings, anyone can add to the agenda, with no email necessary. If someone wants an extra meeting, then email is important. 16:22:03 #topic: Agenda 16:22:11 If we give up the slot except for once a month, then actually scheduling an IRC channel might be difficult 16:22:58 I had no specific agenda for today - the purpose was to make this announcements 16:23:18 yamamoto caboucha rkukura : do you have any agenda item to discuss today? 16:23:24 nothing from me 16:23:33 me neither 16:23:43 i have 16:23:53 yamamoto : please do 16:24:20 i guess this bug is interesting people here https://bugs.launchpad.net/neutron/+bug/1736650 16:24:21 Launchpad bug 1736650 in neutron "linuxbrige manages non linuxbridge ports" [Undecided,Confirmed] 16:24:56 #link: https://bugs.launchpad.net/neutron/+bug/1736650 16:26:44 i'm wondering what's the best way to fix it 16:28:22 the bug is about linuxbridge vs midonet but it seems the problem is not specific to those MDs. 16:28:22 yamamoto : hmmm... interesting issue indeed 16:29:14 yamamoto : I have run many times with ovsdriver and other drivers and never seen this, but, have never tried with linuxbridge 16:29:24 yamamoto: It sounds like the agents that see the device get created have no way to know whether they are bound to it until after the do the RPC to get the device details, right? 16:30:10 rkukura: that's my understanding yes 16:31:52 does midonet use this RPC in the same way as linuxbridge? 16:32:47 midonet doesn't use agent rpc at all 16:33:08 I see 16:34:38 yamamoto : your explanation on the bug makes sense - 16:34:43 so it seems that the RPC handler in neutron-server would somehow need to verify that the RPC came from an agent of a bound MD, and return some sort of error if its not from an agent that should be involved in the binding 16:35:54 it would be ideal if neutron-server could be updated to do this based on info already in the RPC message, so we don’t need to version the RPC 16:37:12 i guess it's possible to reject such a request as get_device_details takes agent_id. 16:37:13 I think the agent_id and the host_id would be available already, right? 16:37:25 yes 16:38:06 We’d need ML2’s RPC handler to check with the bound MDs to see if any of them use that agent 16:40:08 I don't believe that information is available - which driver is using which agent 16:40:32 right - it would probably require adding a new method to the ML2 driver API 16:40:35 Sorry my computer rebooted....switching to phone 16:41:21 there's no clean way. but there are some code already which do "getattr(mech_driver.obj, 'agent_type', None)" 16:41:25 way back when we designed ML2, we had originally thought that RPCs like this would get handled by mechanism drivers, but that necver happened 16:42:01 yamamoto: something like that might do the trick 16:44:59 yamamoto: that getattr probably does not work because the other side is not plumbed 16:45:12 I’m not seeing where that check_segment_for_agent method is currently called 16:46:52 rkukura: it's called by neutron/services/segments/db.py 16:46:57 another getattr! 16:48:07 So that probably doesn’t have anything to do with the get_device_details RPC handler, but a similar approach could be used for it 16:48:12 Sukhdev_: what do you mean by the other side? 16:49:17 rkukura: yes, and hopefully with a reasonable api this time. 16:49:29 Binding of the driver to agent 16:50:37 Sukhdev_: I think the agent_id is already sent from the agent to the server in the RPC request message 16:50:38 yamamoto: I mean mapping of driver to agent 16:51:25 the port binding identifies the MDs 16:51:56 and this getattr could be used to ask those MDs if they recognize the agent that made the RPC request 16:53:57 it might not work if there are multiple MDs which are compatible with an agent type. is it possible? 16:55:43 yamamoto: possible, but, not probable.... 16:55:52 I’d think we’d need to loop over the MDs that the port is bound to, not the ones registered as in check_segment_for_agent 16:57:12 If multiple MDs are compatible with the same agent type, and at least one of those MDs are part of the port binding, then we are probably OK to respond normally to the get_device_details RPC 16:57:15 Time check.... 3 minutes left 16:58:11 rkukura: i guess it's the best we can do without changing rpc or db 16:58:11 Its the case where none of the bound MDs use the agent that we may not want to set the port status, etc. 16:59:35 I probably would have defined the agent_type as a list, so that a single MD could work with multiple agent types, but that is probably not critical, and if the agent_type attiibute is already available on the OVS and LB agents, I’d say just use it 17:00:25 looks like we are out of time 17:00:40 Time is up folks, let's take it to neutron channel 17:00:49 i'll put a link to this discussion in the bug 17:01:00 hopefully it was helpful! 17:01:09 Thanks for attending today's meeting 17:01:18 see you in January! 17:01:25 thank you 17:01:32 #endmeeting 17:01:35 bye 17:01:42 thanks Sukhdev_! 17:02:13 rkukura: can you issue endmeeting 17:02:24 #endmeeting 17:02:30 I’m not a chair 17:02:47 #endmeeting 17:02:55 Sukhdev_: you may need to do that when you get back in as Sukhdev 17:03:21 Darn it. My laptop rebooted:-) 17:04:23 or wait and retry. i think anyone can endmeeting after 1 hour. 17:04:57 I am power cycling the laptop.. Hopefully will work 17:05:38 #endmeeting 17:06:47 #endmeeting