)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"d3e67b17e046c6837c26247f08e32463012ba76d","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add RPC command and delete if last FIP on Agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Today FloatingIP Agent gateway port is deleted and"},{"line_number":10,"context_line":"recerated for DVR based on the private port binding"},{"line_number":11,"context_line":"of the VMs in the compute Node."},{"line_number":12,"context_line":"This introduces lot more strain on the plugin to"},{"line_number":13,"context_line":"create and delete these ports when VMs come up and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"ba3cc151_37d571b8","line":10,"updated":"2015-07-01 10:35:40.000000000","message":"\u0027based on floating ip association and disassociation with VMs on compute nodes\u0027 would be more clear","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e90b40e904fcc4851844bf84822796dba70b36a6","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add RPC command and delete if last FIP on Agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Today FloatingIP Agent gateway port is deleted and"},{"line_number":10,"context_line":"recerated for DVR based on the private port binding"},{"line_number":11,"context_line":"of the VMs in the compute Node."},{"line_number":12,"context_line":"This introduces lot more strain on the plugin to"},{"line_number":13,"context_line":"create and delete these ports when VMs come up and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"ba3cc151_f27a94f0","line":10,"in_reply_to":"ba3cc151_37d571b8","updated":"2015-07-01 21:51:19.000000000","message":"Done","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"d3e67b17e046c6837c26247f08e32463012ba76d","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        return cctxt.call(context, \u0027update_ha_routers_states\u0027,"},{"line_number":133,"context_line":"                          host\u003dself.host, states\u003dstates)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def delete_agent_gateway_port(self, context, fip_net):"},{"line_number":136,"context_line":"        \"\"\"Delete an agent_gateway_port.\"\"\""},{"line_number":137,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.6\u0027)"},{"line_number":138,"context_line":"        return cctxt.call(context, \u0027delete_agent_gateway_port\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_1245db6e","line":135,"updated":"2015-07-01 10:35:40.000000000","message":"agent_gateway_port might be confusing, I\u0027d suggest to be more accurate in namings: floatingip_agent_gateway_port, right?","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e90b40e904fcc4851844bf84822796dba70b36a6","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        return cctxt.call(context, \u0027update_ha_routers_states\u0027,"},{"line_number":133,"context_line":"                          host\u003dself.host, states\u003dstates)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def delete_agent_gateway_port(self, context, fip_net):"},{"line_number":136,"context_line":"        \"\"\"Delete an agent_gateway_port.\"\"\""},{"line_number":137,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.6\u0027)"},{"line_number":138,"context_line":"        return cctxt.call(context, \u0027delete_agent_gateway_port\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_128058bf","line":135,"in_reply_to":"ba3cc151_1245db6e","updated":"2015-07-01 21:51:19.000000000","message":"Done","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"6f956f6edfde8e8c57fc35adc740fccb93310674","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        1.4 - Added L3 HA update_router_state. This method was reworked in"},{"line_number":79,"context_line":"              to update_ha_routers_states"},{"line_number":80,"context_line":"        1.5 - Added update_ha_routers_states"},{"line_number":81,"context_line":"        1.7 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - delete_agent_gateway_port"},{"line_number":83,"context_line":"    \"\"\""},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"fa1b9901_9dfd8a3c","line":81,"updated":"2015-08-19 14:41:42.000000000","message":"Where did 1.6 go?","commit_id":"e9b086e015e41b6f0dcca9d3c6397bf8af283318"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bd7a3e4b0c985fd457f27619c0fbd66aa743e39c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        1.4 - Added L3 HA update_router_state. This method was reworked in"},{"line_number":79,"context_line":"              to update_ha_routers_states"},{"line_number":80,"context_line":"        1.5 - Added update_ha_routers_states"},{"line_number":81,"context_line":"        1.7 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - delete_agent_gateway_port"},{"line_number":83,"context_line":"    \"\"\""},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"fa1b9901_f3d072f8","line":81,"in_reply_to":"fa1b9901_9dfd8a3c","updated":"2015-08-19 15:52:48.000000000","message":"Ryan on the server side the version is 1.7 for the api so I used the same version on the client side. \nDo you think that it should be different?","commit_id":"e9b086e015e41b6f0dcca9d3c6397bf8af283318"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"182881b7025950458ae6cb3dd74c8cbadc122029","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        1.4 - Added L3 HA update_router_state. This method was reworked in"},{"line_number":79,"context_line":"              to update_ha_routers_states"},{"line_number":80,"context_line":"        1.5 - Added update_ha_routers_states"},{"line_number":81,"context_line":"        1.7 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - delete_agent_gateway_port"},{"line_number":83,"context_line":"    \"\"\""},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"fa1b9901_f1438740","line":81,"in_reply_to":"fa1b9901_9e601dd1","updated":"2015-08-19 17:10:31.000000000","message":"Added a note in patch set 39 based on your recommendation.","commit_id":"e9b086e015e41b6f0dcca9d3c6397bf8af283318"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"bcff009c1ec2b54d0e0a56280ccc0df1ceb45872","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        1.4 - Added L3 HA update_router_state. This method was reworked in"},{"line_number":79,"context_line":"              to update_ha_routers_states"},{"line_number":80,"context_line":"        1.5 - Added update_ha_routers_states"},{"line_number":81,"context_line":"        1.7 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - delete_agent_gateway_port"},{"line_number":83,"context_line":"    \"\"\""},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"fa1b9901_e404264b","line":81,"in_reply_to":"fa1b9901_9e601dd1","updated":"2015-08-19 16:51:58.000000000","message":"Ok, let me add a note in the next patch. FYI, currently 1.6 is used by \"process_prefix_update\" to support IPv6 Prefix Delegation.","commit_id":"e9b086e015e41b6f0dcca9d3c6397bf8af283318"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"22a25e94aca6f30b2c5492c59777c232bf2d8e6a","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        1.4 - Added L3 HA update_router_state. This method was reworked in"},{"line_number":79,"context_line":"              to update_ha_routers_states"},{"line_number":80,"context_line":"        1.5 - Added update_ha_routers_states"},{"line_number":81,"context_line":"        1.7 - DVR support: new L3 plugin methods added."},{"line_number":82,"context_line":"              - delete_agent_gateway_port"},{"line_number":83,"context_line":"    \"\"\""},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"fa1b9901_9e601dd1","line":81,"in_reply_to":"fa1b9901_f3d072f8","updated":"2015-08-19 16:01:34.000000000","message":"I would add a note that 1.6 was used for something else and doesn\u0027t impact this client just to avoid confusing people\n\n(I\u0027m in competition with salv-orl for pedantic comments I guess)","commit_id":"e9b086e015e41b6f0dcca9d3c6397bf8af283318"}],"neutron/agent/l3/dvr_local_router.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dbd29d0d9525638c3279023ba97cedb0320f3462","unresolved":false,"context_lines":[{"line_number":417,"context_line":"        is_first \u003d False"},{"line_number":418,"context_line":"        if floating_ips:"},{"line_number":419,"context_line":"            is_first \u003d self.fip_ns.subscribe(self.router_id)"},{"line_number":420,"context_line":"            if is_first and not fip_agent_port:"},{"line_number":421,"context_line":"                LOG.debug(\"No FloatingIP agent gateway port possibly due to \""},{"line_number":422,"context_line":"                          \"late binding of the private port to the host, \""},{"line_number":423,"context_line":"                          \"requesting agent gateway port for \u0027network-id\u0027 :\""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_86d9aa59","side":"PARENT","line":420,"updated":"2015-06-23 13:49:27.000000000","message":"this shouldn\u0027t be deleted, right?","commit_id":"e831f8fbf5ecb763805a13270f97afd7e87398fa"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"870e85977d0a30562b28a080869261a9396afed6","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                # for the provided external net since we don\u0027t need it anymore."},{"line_number":144,"context_line":"                if self.fip_ns.agent_gateway_port:"},{"line_number":145,"context_line":"                    LOG.debug(\u0027Removed last floatingip, so requesting the\u0027"},{"line_number":146,"context_line":"                              \u0027server to delete Floatingip Agent Gateway port:\u0027"},{"line_number":147,"context_line":"                              \u0027%s\u0027, self.fip_ns.agent_gateway_port)"},{"line_number":148,"context_line":"                    self.agent.plugin_rpc.delete_agent_gateway_port("},{"line_number":149,"context_line":"                        self.agent.context,"}],"source_content_type":"text/x-python","patch_set":36,"id":"fa1b9901_4a450db1","line":146,"updated":"2015-08-18 21:18:36.000000000","message":"nit: need trailing spaces on both these lines to prevent log messages with things like \u0027theserver\u0027","commit_id":"03b313db34f3cd647e25d42e10de4b0d38e1e20e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"680c309a6d5e90be5c468f1bb1a77df9261ab4ec","unresolved":false,"context_lines":[{"line_number":136,"context_line":"                # come in and want to start using this namespace while this is"},{"line_number":137,"context_line":"                # destroying it.  The two could end up conflicting on"},{"line_number":138,"context_line":"                # creating/destroying interfaces and such.  I think I\u0027d like a"},{"line_number":139,"context_line":"                # semaphore to sync creation/deletion of this namespace."},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"                # NOTE (Swami): Since we are deleting the namespace here we"},{"line_number":142,"context_line":"                # should be able to delete the floatingip agent gateway port"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa1b9901_8a53f016","line":139,"updated":"2015-08-25 16:32:53.000000000","message":"Swami - just a question based on Carl\u0027s comment above.  If there is some potential for a race condition with the namespace, would the port deletion make that worse?  As in the port gets deleted out from under as the \u0027add floatingip\u0027 side is working?  I don\u0027t think it is but figured I\u0027d ask.","commit_id":"70cf58f1d839829261926cbbcd82ad44d601ae8f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"95b93a0b8b86bed0063b6d83eb9eeb05a72a96dd","unresolved":false,"context_lines":[{"line_number":136,"context_line":"                # come in and want to start using this namespace while this is"},{"line_number":137,"context_line":"                # destroying it.  The two could end up conflicting on"},{"line_number":138,"context_line":"                # creating/destroying interfaces and such.  I think I\u0027d like a"},{"line_number":139,"context_line":"                # semaphore to sync creation/deletion of this namespace."},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"                # NOTE (Swami): Since we are deleting the namespace here we"},{"line_number":142,"context_line":"                # should be able to delete the floatingip agent gateway port"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa1b9901_38f79b8c","line":139,"in_reply_to":"fa1b9901_8a53f016","updated":"2015-08-25 18:31:11.000000000","message":"I don\u0027t think it would make it worse.\nBecause now we handle the dynamic fip case, so even if it is deleted, then an agent would request a new port from the server.","commit_id":"70cf58f1d839829261926cbbcd82ad44d601ae8f"}],"neutron/api/rpc/handlers/l3_rpc.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"d3e67b17e046c6837c26247f08e32463012ba76d","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":232,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":233,"context_line":"        admin_ctx \u003d neutron_context.get_admin_context()"},{"line_number":234,"context_line":"        self.l3plugin._delete_floatingip_agent_gateway_port("},{"line_number":235,"context_line":"            admin_ctx, host, network_id)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_52904343","line":234,"updated":"2015-07-01 10:35:40.000000000","message":"need to delete _ prefix since it\u0027s now a public method","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e90b40e904fcc4851844bf84822796dba70b36a6","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":232,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":233,"context_line":"        admin_ctx \u003d neutron_context.get_admin_context()"},{"line_number":234,"context_line":"        self.l3plugin._delete_floatingip_agent_gateway_port("},{"line_number":235,"context_line":"            admin_ctx, host, network_id)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_926c6836","line":234,"in_reply_to":"ba3cc151_52904343","updated":"2015-07-01 21:51:19.000000000","message":"Done","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"510e110f0e0a00e4cd62d28dcb853c26bb8e6cda","unresolved":false,"context_lines":[{"line_number":287,"context_line":"        \"\"\"Delete Floatingip agent gateway port.\"\"\""},{"line_number":288,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":289,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":290,"context_line":"        admin_ctx \u003d neutron_context.get_admin_context()"},{"line_number":291,"context_line":"        self.l3plugin.delete_floatingip_agent_gateway_port("},{"line_number":292,"context_line":"            admin_ctx, network_id, host_id\u003dhost)"}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_1e0e52e5","line":290,"updated":"2015-09-10 20:30:10.000000000","message":"Shouldn\u0027t this have been called in admin context in the first place?","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"8e69b9fbce4780c2ddb5c3bbd10be6a97964c5a9","unresolved":false,"context_lines":[{"line_number":287,"context_line":"        \"\"\"Delete Floatingip agent gateway port.\"\"\""},{"line_number":288,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":289,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":290,"context_line":"        admin_ctx \u003d neutron_context.get_admin_context()"},{"line_number":291,"context_line":"        self.l3plugin.delete_floatingip_agent_gateway_port("},{"line_number":292,"context_line":"            admin_ctx, network_id, host_id\u003dhost)"}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_d46df603","line":290,"in_reply_to":"da20952f_1e0e52e5","updated":"2015-09-11 17:11:16.000000000","message":"Yes, this function should be called through an admin context at L291.\nSince this is an rpc message, we bump up the context and call the function in L291.","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"fd20c99544e02433ca6a26679ee28be28726d12f","unresolved":false,"context_lines":[{"line_number":287,"context_line":"        \"\"\"Delete Floatingip agent gateway port.\"\"\""},{"line_number":288,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":289,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":290,"context_line":"        admin_ctx \u003d neutron_context.get_admin_context()"},{"line_number":291,"context_line":"        self.l3plugin.delete_floatingip_agent_gateway_port("},{"line_number":292,"context_line":"            admin_ctx, network_id, host_id\u003dhost)"}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_b86dcc04","line":290,"in_reply_to":"da20952f_987d6820","updated":"2015-09-11 22:33:32.000000000","message":"Hi Carl, \nNo this function \"delete_agent_gateway_port is called from an agent context. I don\u0027t think the agent is in admin context.\n\nOnly when there is a direct call to \"delete_floatingip_agent_gateway_port\" from l3_dvr_db then it comes with admi_context.\nhttps://github.com/openstack/neutron/blob/master/neutron/db/l3_dvr_db.py#L173","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c4065c890eb6b55f276523f1e4025afa86954d86","unresolved":false,"context_lines":[{"line_number":287,"context_line":"        \"\"\"Delete Floatingip agent gateway port.\"\"\""},{"line_number":288,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":289,"context_line":"        host \u003d kwargs.get(\u0027host\u0027)"},{"line_number":290,"context_line":"        admin_ctx \u003d neutron_context.get_admin_context()"},{"line_number":291,"context_line":"        self.l3plugin.delete_floatingip_agent_gateway_port("},{"line_number":292,"context_line":"            admin_ctx, network_id, host_id\u003dhost)"}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_987d6820","line":290,"in_reply_to":"da20952f_d46df603","updated":"2015-09-11 22:08:03.000000000","message":"What I was saying is that I thought that this method -- delete_agent_gateway_port -- should have been called with an admin context and it wouldn\u0027t be necessary to elevate here.  Is that the case?","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"}],"neutron/tests/functional/agent/test_l3_agent.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"d3e67b17e046c6837c26247f08e32463012ba76d","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"        rpc_mock \u003d mock.patch.object("},{"line_number":1330,"context_line":"            self.agent.plugin_rpc, \u0027delete_agent_gateway_port\u0027).start()"},{"line_number":1331,"context_line":"        self.agent._process_updated_router(router1.router)"},{"line_number":1332,"context_line":"        self.assertTrue(rpc_mock.called)"},{"line_number":1333,"context_line":"        self.assertFalse(self._namespace_exists(fip_ns))"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_722f87f6","line":1332,"updated":"2015-07-01 10:35:40.000000000","message":"check parameters as well?","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e90b40e904fcc4851844bf84822796dba70b36a6","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"        rpc_mock \u003d mock.patch.object("},{"line_number":1330,"context_line":"            self.agent.plugin_rpc, \u0027delete_agent_gateway_port\u0027).start()"},{"line_number":1331,"context_line":"        self.agent._process_updated_router(router1.router)"},{"line_number":1332,"context_line":"        self.assertTrue(rpc_mock.called)"},{"line_number":1333,"context_line":"        self.assertFalse(self._namespace_exists(fip_ns))"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_d25c307f","line":1332,"in_reply_to":"ba3cc151_722f87f6","updated":"2015-07-01 21:51:19.000000000","message":"Done","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8885aee3db51796e52bc08847e5617c3d1fed38a","unresolved":false,"context_lines":[{"line_number":1463,"context_line":""},{"line_number":1464,"context_line":"    def test_dvr_router_calls_delete_agent_gateway_if_last_fip(self):"},{"line_number":1465,"context_line":"        \"\"\"Test to validate delete fip if it is last fip managed by agent.\"\"\""},{"line_number":1466,"context_line":"        self.agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"},{"line_number":1467,"context_line":"        router_info \u003d self.generate_dvr_router_info(enable_snat\u003dTrue)"},{"line_number":1468,"context_line":"        router1 \u003d self.manage_router(self.agent, router_info)"},{"line_number":1469,"context_line":"        floating_agent_gw_port \u003d ("}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_527cd61f","line":1466,"updated":"2015-09-10 10:45:47.000000000","message":"AFAIK fip namespaces are handled on \u0027dvr\u0027, not \u0027dvr_snat\u0027 agents. What am I missing?","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"af8715458c0dd9da3bb8291445be416f108109e2","unresolved":false,"context_lines":[{"line_number":1463,"context_line":""},{"line_number":1464,"context_line":"    def test_dvr_router_calls_delete_agent_gateway_if_last_fip(self):"},{"line_number":1465,"context_line":"        \"\"\"Test to validate delete fip if it is last fip managed by agent.\"\"\""},{"line_number":1466,"context_line":"        self.agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"},{"line_number":1467,"context_line":"        router_info \u003d self.generate_dvr_router_info(enable_snat\u003dTrue)"},{"line_number":1468,"context_line":"        router1 \u003d self.manage_router(self.agent, router_info)"},{"line_number":1469,"context_line":"        floating_agent_gw_port \u003d ("}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_df8d41d4","line":1466,"in_reply_to":"da20952f_527cd61f","updated":"2015-09-10 16:17:34.000000000","message":"Hi, Oleg FIP namespaces are handled in Fip namespaces. But fip namespaces can be created also on a \"dvr_snat\" node.\nIf it is all in one node, then in that case the \"Fip\" namespaces will be created on the \u0027dvr_snat\" node.\n\nHope this helps.","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"4f89883bfa84ff9416385d769beecfc9524c97ae","unresolved":false,"context_lines":[{"line_number":1463,"context_line":""},{"line_number":1464,"context_line":"    def test_dvr_router_calls_delete_agent_gateway_if_last_fip(self):"},{"line_number":1465,"context_line":"        \"\"\"Test to validate delete fip if it is last fip managed by agent.\"\"\""},{"line_number":1466,"context_line":"        self.agent.conf.agent_mode \u003d \u0027dvr_snat\u0027"},{"line_number":1467,"context_line":"        router_info \u003d self.generate_dvr_router_info(enable_snat\u003dTrue)"},{"line_number":1468,"context_line":"        router1 \u003d self.manage_router(self.agent, router_info)"},{"line_number":1469,"context_line":"        floating_agent_gw_port \u003d ("}],"source_content_type":"text/x-python","patch_set":58,"id":"da20952f_c061ded4","line":1466,"in_reply_to":"da20952f_df8d41d4","updated":"2015-09-10 17:25:30.000000000","message":"There was a typo in my last comment.\nFIP namespaces are handled by both agent_modes such as \"dvr_snat\" and \"dvr\".\n\nFor your clarification only \"SNAT namespaces\" are restricted to \"dvr_snat\" agents and not on \"dvr\" agents.\n\nBut FIP namespaces have the flexibility to be created by both the agents.\n\nHope this helps.","commit_id":"639f1893dde0d393a97b29ca5309dba716831a7f"}],"neutron/tests/unit/agent/l3/test_dvr_local_router.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"d3e67b17e046c6837c26247f08e32463012ba76d","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                          \u0027interface_driver\u0027: self.mock_driver}"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def _create_router(self, router\u003dNone, **kwargs):"},{"line_number":149,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":150,"context_line":"        self.router_id \u003d _uuid()"},{"line_number":151,"context_line":"        if not router:"},{"line_number":152,"context_line":"            router \u003d mock.MagicMock()"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_b2f8af4a","line":149,"updated":"2015-07-01 10:35:40.000000000","message":"why need to create agent here?","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e90b40e904fcc4851844bf84822796dba70b36a6","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                          \u0027interface_driver\u0027: self.mock_driver}"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def _create_router(self, router\u003dNone, **kwargs):"},{"line_number":149,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":150,"context_line":"        self.router_id \u003d _uuid()"},{"line_number":151,"context_line":"        if not router:"},{"line_number":152,"context_line":"            router \u003d mock.MagicMock()"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_f2eff484","line":149,"in_reply_to":"ba3cc151_b2f8af4a","updated":"2015-07-01 21:51:19.000000000","message":"Yes we need to create the agent here, since it throws an error with sentinel mocked object.","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"d3e67b17e046c6837c26247f08e32463012ba76d","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        ri.rtr_fip_subnet \u003d lla.LinkLocalAddressPair(\u002715.1.2.3/32\u0027)"},{"line_number":243,"context_line":"        _, fip_to_rtr \u003d ri.rtr_fip_subnet.get_pair()"},{"line_number":244,"context_line":"        fip_ns \u003d ri.fip_ns"},{"line_number":245,"context_line":"        with mock.patch.object(agent.plugin_rpc,"},{"line_number":246,"context_line":"                               \u0027delete_agent_gateway_port\u0027) as del_fip_gw:"},{"line_number":247,"context_line":"            ri.floating_ip_removed_dist(fip_cidr)"},{"line_number":248,"context_line":"            self.assertTrue(del_fip_gw.called)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_12d2bbd2","line":245,"updated":"2015-07-01 10:35:40.000000000","message":"can self.plugin_api be used here and not create agent at #210?","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e90b40e904fcc4851844bf84822796dba70b36a6","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        ri.rtr_fip_subnet \u003d lla.LinkLocalAddressPair(\u002715.1.2.3/32\u0027)"},{"line_number":243,"context_line":"        _, fip_to_rtr \u003d ri.rtr_fip_subnet.get_pair()"},{"line_number":244,"context_line":"        fip_ns \u003d ri.fip_ns"},{"line_number":245,"context_line":"        with mock.patch.object(agent.plugin_rpc,"},{"line_number":246,"context_line":"                               \u0027delete_agent_gateway_port\u0027) as del_fip_gw:"},{"line_number":247,"context_line":"            ri.floating_ip_removed_dist(fip_cidr)"},{"line_number":248,"context_line":"            self.assertTrue(del_fip_gw.called)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_5546ca4f","line":245,"in_reply_to":"ba3cc151_12d2bbd2","updated":"2015-07-01 21:51:19.000000000","message":"Done","commit_id":"e77f1a4e0f781f8d6986e62dc4565123315ff444"}]}
