)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c15f00b420a9d0b2ed3e4083566c6fa9bd1dbe0","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     changzhi \u003cchangzhi@unitedstack.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-09-29 10:31:20 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Notify specific agent when update floatingip"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The L3 agent was determined when update floatingip."},{"line_number":10,"context_line":"So notify the specific agent rather than notify all agents."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":50,"id":"9a1a9d01_d858578d","line":7,"updated":"2015-10-01 20:02:08.000000000","message":"You might want to note that this is only for DVR routers. Legacy and HA routers notify only the relevant agents.","commit_id":"43c5044c6d99955b2fc8c0107001a7bb8bd68241"}],"neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"018d94ff977a9e774ff22cd055ca26c9f2bb2f12","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, data\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents.\"\"\""},{"line_number":52,"context_line":"        adminContext \u003d context if context.is_admin else context.elevated()"},{"line_number":53,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_7eb4f433","line":50,"updated":"2015-08-20 14:05:24.000000000","message":"Why a dict called \u0027data\u0027 and not an argument called \u0027host\u0027?","commit_id":"a6f14e41ae6627c2789a4778885c8db761fcc4ab"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"a620c693247253602008fd8a01904aa30a4aad01","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, data\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents.\"\"\""},{"line_number":52,"context_line":"        adminContext \u003d context if context.is_admin else context.elevated()"},{"line_number":53,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_efdfec37","line":50,"in_reply_to":"fa1b9901_34e45bdf","updated":"2015-08-20 14:55:55.000000000","message":"hmmm. I prefer \"agent\" not \"host\". Because the param is agent info not host","commit_id":"a6f14e41ae6627c2789a4778885c8db761fcc4ab"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"0c1c195fd28682b0bfaed7f11dda83c6076e263b","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, data\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents.\"\"\""},{"line_number":52,"context_line":"        adminContext \u003d context if context.is_admin else context.elevated()"},{"line_number":53,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_9143f941","line":50,"in_reply_to":"fa1b9901_7eb4f433","updated":"2015-08-20 14:18:07.000000000","message":"host? there is no param named host in this function","commit_id":"a6f14e41ae6627c2789a4778885c8db761fcc4ab"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"4a443f8d3166577bd2a64cc6a1c458cce9387fe3","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, data\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents.\"\"\""},{"line_number":52,"context_line":"        adminContext \u003d context if context.is_admin else context.elevated()"},{"line_number":53,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_34e45bdf","line":50,"in_reply_to":"fa1b9901_9143f941","updated":"2015-08-20 14:40:37.000000000","message":"Yes I meant renaming \u0027data\u0027 into \u0027host\u0027, and using it as a string variable and not a dict.","commit_id":"a6f14e41ae6627c2789a4778885c8db761fcc4ab"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"79d30f98a386e6f21088ee5619c69bd64d7d6a22","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        cctxt \u003d self.client.prepare(server\u003dhost)"},{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, agent\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents.\"\"\""},{"line_number":52,"context_line":"        adminContext \u003d context if context.is_admin else context.elevated()"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_eaad9a9b","line":49,"updated":"2015-08-20 15:04:25.000000000","message":"why not just adding new method here (floating_ip_update?) which will use _notification_host() ?","commit_id":"379bfa9bf151f30bc7a4cdc3fb9cd7988e63a3a4"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"ecc5ca8963936150d7661c993f47ad1daf303b3c","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        cctxt \u003d self.client.prepare(server\u003dhost)"},{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, agent\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents.\"\"\""},{"line_number":52,"context_line":"        adminContext \u003d context if context.is_admin else context.elevated()"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_c596873d","line":49,"in_reply_to":"fa1b9901_eaad9a9b","updated":"2015-08-20 15:18:14.000000000","message":"i think it is unnecessary to add a new method(like floatingip_update). because many resources will go here when they are updated. my thought is that make difference between param : data.","commit_id":"379bfa9bf151f30bc7a4cdc3fb9cd7988e63a3a4"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"2a549acd210d3610aaba40a20de8a3e26207e480","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        cctxt.cast(context, method, payload\u003dpayload)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _agent_notification(self, context, method, router_ids, operation,"},{"line_number":50,"context_line":"                            shuffle_agents, data\u003dNone):"},{"line_number":51,"context_line":"        \"\"\"Notify changed routers to hosting l3 agents."},{"line_number":52,"context_line":"        Notify the specific agent If data has \u0027agent\u0027 info."},{"line_number":53,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_4049055f","line":50,"updated":"2015-08-20 15:28:15.000000000","message":"not very happy about new param with so unclear name. Generally if need to notify only one agent _notification_host() should be used. Currently the change brings confusion to the code","commit_id":"9cfb46705f2fbe9578bee22a978a4fc151ed50fd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6c800af39ed52948217921e3d5af640749889648","unresolved":false,"context_lines":[{"line_number":100,"context_line":"            cctxt.cast(context, method, payload\u003ddvr_arptable)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _notification(self, context, method, router_ids, operation,"},{"line_number":103,"context_line":"                      shuffle_agents, agent\u003dNone):"},{"line_number":104,"context_line":"        \"\"\"Notify all the agents that are hosting the routers.\"\"\""},{"line_number":105,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":106,"context_line":"            service_constants.L3_ROUTER_NAT)"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_f5fd7ab1","line":103,"updated":"2015-08-20 16:00:30.000000000","message":"why naming \u0027agent\u0027 if need only host?","commit_id":"73e7f6cf4f14feaf0c5bcc09f24adaa17884d60c"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d25a67185f7590252cc3590e5cf8e47d91dae0e1","unresolved":false,"context_lines":[{"line_number":100,"context_line":"            cctxt.cast(context, method, payload\u003ddvr_arptable)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _notification(self, context, method, router_ids, operation,"},{"line_number":103,"context_line":"                      shuffle_agents, agent\u003dNone):"},{"line_number":104,"context_line":"        \"\"\"Notify all the agents that are hosting the routers.\"\"\""},{"line_number":105,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":106,"context_line":"            service_constants.L3_ROUTER_NAT)"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_580edde5","line":103,"in_reply_to":"fa1b9901_f5fd7ab1","updated":"2015-08-20 16:15:31.000000000","message":"what\u0027s your advice? the param \"agent\" should be naming what?","commit_id":"73e7f6cf4f14feaf0c5bcc09f24adaa17884d60c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6c800af39ed52948217921e3d5af640749889648","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _notification(self, context, method, router_ids, operation,"},{"line_number":103,"context_line":"                      shuffle_agents, agent\u003dNone):"},{"line_number":104,"context_line":"        \"\"\"Notify all the agents that are hosting the routers.\"\"\""},{"line_number":105,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":106,"context_line":"            service_constants.L3_ROUTER_NAT)"},{"line_number":107,"context_line":"        if not plugin:"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_b5c06251","line":104,"updated":"2015-08-20 16:00:30.000000000","message":"the cod is now violating the description","commit_id":"73e7f6cf4f14feaf0c5bcc09f24adaa17884d60c"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d25a67185f7590252cc3590e5cf8e47d91dae0e1","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _notification(self, context, method, router_ids, operation,"},{"line_number":103,"context_line":"                      shuffle_agents, agent\u003dNone):"},{"line_number":104,"context_line":"        \"\"\"Notify all the agents that are hosting the routers.\"\"\""},{"line_number":105,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":106,"context_line":"            service_constants.L3_ROUTER_NAT)"},{"line_number":107,"context_line":"        if not plugin:"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_b83299a5","line":104,"in_reply_to":"fa1b9901_b5c06251","updated":"2015-08-20 16:15:31.000000000","message":"yeh, i will rewrite the string in next patch","commit_id":"73e7f6cf4f14feaf0c5bcc09f24adaa17884d60c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cb1c900767c3f7ebf10e74f9c7df7e2962f9ed0e","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            adminContext \u003d (context.is_admin and"},{"line_number":116,"context_line":"                            context or context.elevated())"},{"line_number":117,"context_line":"            plugin.schedule_routers(adminContext, router_ids)"},{"line_number":118,"context_line":"            if agent and agent.get(\u0027agent\u0027):"},{"line_number":119,"context_line":"                self._notification_host("},{"line_number":120,"context_line":"                    context, method, router_ids, agent[\u0027agent\u0027].host)"},{"line_number":121,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_d4705874","line":118,"updated":"2015-08-21 07:07:51.000000000","message":"I would extract the dictionary entry on the caller, it\u0027s very confusing to pass \"data\" as agent, and then extract agent inside.","commit_id":"113232a483fe49956ade04e1035745e2b6eefa29"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"542af9b89af8d0b1e59d44e75e25f6c751c32b81","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            adminContext \u003d (context.is_admin and"},{"line_number":116,"context_line":"                            context or context.elevated())"},{"line_number":117,"context_line":"            plugin.schedule_routers(adminContext, router_ids)"},{"line_number":118,"context_line":"            if agent and agent.get(\u0027agent\u0027):"},{"line_number":119,"context_line":"                self._notification_host("},{"line_number":120,"context_line":"                    context, method, router_ids, agent[\u0027agent\u0027].host)"},{"line_number":121,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_520423c5","line":118,"in_reply_to":"fa1b9901_d4705874","updated":"2015-08-22 08:25:47.000000000","message":"+1","commit_id":"113232a483fe49956ade04e1035745e2b6eefa29"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cb1c900767c3f7ebf10e74f9c7df7e2962f9ed0e","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                        shuffle_agents\u003dFalse):"},{"line_number":148,"context_line":"        if router_ids:"},{"line_number":149,"context_line":"            self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":150,"context_line":"                               operation, shuffle_agents, data)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def add_arp_entry(self, context, router_id, arp_table, operation\u003dNone):"},{"line_number":153,"context_line":"        self._agent_notification_arp(context, \u0027add_arp_entry\u0027, router_id,"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_946660b9","line":150,"updated":"2015-08-21 07:07:51.000000000","message":"data.get(\u0027agent\u0027)","commit_id":"113232a483fe49956ade04e1035745e2b6eefa29"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"a4ede979b424d7387cc621bff0e690849e1cf066","unresolved":false,"context_lines":[{"line_number":100,"context_line":"            cctxt.cast(context, method, payload\u003ddvr_arptable)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _notification(self, context, method, router_ids, operation,"},{"line_number":103,"context_line":"                      shuffle_agents, schedule_routers\u003dTrue, agent\u003dNone):"},{"line_number":104,"context_line":"        \"\"\"Notify the agents that are hosting the routers. Notify the"},{"line_number":105,"context_line":"        specific agent if param \u0027agent\u0027 is given."},{"line_number":106,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_a67daf6e","line":103,"updated":"2015-08-26 07:58:28.000000000","message":"please don\u0027t pass the whole agent if you need only host, pass host directly","commit_id":"ca53301d0501f545a109e84992a5f962ca260c12"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"a4ede979b424d7387cc621bff0e690849e1cf066","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                        shuffle_agents\u003dFalse, schedule_routers\u003dTrue):"},{"line_number":149,"context_line":"        if router_ids:"},{"line_number":150,"context_line":"            if not data:"},{"line_number":151,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":152,"context_line":"                                   operation, shuffle_agents)"},{"line_number":153,"context_line":"            else:"},{"line_number":154,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_66ad57e8","line":151,"updated":"2015-08-26 07:58:28.000000000","message":"why not use _notification_host() here?","commit_id":"ca53301d0501f545a109e84992a5f962ca260c12"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6bb2b0570383ded1d4daf8d02f38c51af48cffbe","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                            context or context.elevated())"},{"line_number":115,"context_line":"            if schedule_routers:"},{"line_number":116,"context_line":"                plugin.schedule_routers(adminContext, router_ids)"},{"line_number":117,"context_line":"            else:"},{"line_number":118,"context_line":"                self._agent_notification("},{"line_number":119,"context_line":"                    context, method, router_ids, operation, shuffle_agents)"},{"line_number":120,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_7102450d","line":117,"updated":"2015-08-28 03:38:35.000000000","message":"Do you mean that this doesn\u0027t notify to agents when schedule_routers \u003d False?","commit_id":"79ea606e3f88cc87e1b8c45496f5da8dd135612b"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"fbdf8996205dfd582394fcc39196efa902c85637","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                            context or context.elevated())"},{"line_number":115,"context_line":"            if schedule_routers:"},{"line_number":116,"context_line":"                plugin.schedule_routers(adminContext, router_ids)"},{"line_number":117,"context_line":"            else:"},{"line_number":118,"context_line":"                self._agent_notification("},{"line_number":119,"context_line":"                    context, method, router_ids, operation, shuffle_agents)"},{"line_number":120,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_ac1c0014","line":117,"in_reply_to":"da20952f_7102450d","updated":"2015-08-28 03:47:51.000000000","message":"Done","commit_id":"79ea606e3f88cc87e1b8c45496f5da8dd135612b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6bb2b0570383ded1d4daf8d02f38c51af48cffbe","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        else:"},{"line_number":148,"context_line":"            if router_ids:"},{"line_number":149,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":150,"context_line":"                                   operation, shuffle_agents)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def add_arp_entry(self, context, router_id, arp_table, operation\u003dNone):"},{"line_number":153,"context_line":"        self._agent_notification_arp(context, \u0027add_arp_entry\u0027, router_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_ac3de0bc","line":150,"updated":"2015-08-28 03:38:35.000000000","message":"Why do you remove schedule_routers? If you mean so and nobody don\u0027t use it, you should remove it from \"def _notification()\".","commit_id":"79ea606e3f88cc87e1b8c45496f5da8dd135612b"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"fbdf8996205dfd582394fcc39196efa902c85637","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        else:"},{"line_number":148,"context_line":"            if router_ids:"},{"line_number":149,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":150,"context_line":"                                   operation, shuffle_agents)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def add_arp_entry(self, context, router_id, arp_table, operation\u003dNone):"},{"line_number":153,"context_line":"        self._agent_notification_arp(context, \u0027add_arp_entry\u0027, router_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_0cd40c1e","line":150,"in_reply_to":"da20952f_ac3de0bc","updated":"2015-08-28 03:47:51.000000000","message":"Done","commit_id":"79ea606e3f88cc87e1b8c45496f5da8dd135612b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b68bd4b1bc9a2e25c50e3abfab2c9ea8c1d9a025","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        if data and data.get(\u0027host\u0027):"},{"line_number":144,"context_line":"            for host in data.get(\u0027host\u0027):"},{"line_number":145,"context_line":"                self._notification_host(context, \u0027routers_updated\u0027,"},{"line_number":146,"context_line":"                    router_ids, host)"},{"line_number":147,"context_line":"        else:"},{"line_number":148,"context_line":"            if router_ids:"},{"line_number":149,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"}],"source_content_type":"text/x-python","patch_set":16,"id":"da20952f_aee4afdf","line":146,"updated":"2015-08-30 05:31:41.000000000","message":"indentation here is dodgy","commit_id":"1bf72e9fac007c6ed34e478dc082d8424e865396"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b87a45f4769fbda67583fdc92bce6f70913bc102","unresolved":false,"context_lines":[{"line_number":111,"context_line":"        if utils.is_extension_supported("},{"line_number":112,"context_line":"                plugin, constants.L3_AGENT_SCHEDULER_EXT_ALIAS):"},{"line_number":113,"context_line":"            adminContext \u003d (context.is_admin and"},{"line_number":114,"context_line":"                            context or context.elevated())"},{"line_number":115,"context_line":"            if schedule_routers:"},{"line_number":116,"context_line":"                plugin.schedule_routers(adminContext, router_ids)"},{"line_number":117,"context_line":"            self._agent_notification("}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_70497fb6","line":114,"updated":"2015-08-31 11:24:34.000000000","message":"add the check in here, if we can get the data, it means the routers are distributed","commit_id":"eefedaba3e9f1c28f39375a8e67a58fce5eb9293"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b87a45f4769fbda67583fdc92bce6f70913bc102","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                    router_ids, host)"},{"line_number":147,"context_line":"            return"},{"line_number":148,"context_line":"        if router_ids:"},{"line_number":149,"context_line":"            self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":150,"context_line":"                               operation, shuffle_agents, schedule_routers)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def add_arp_entry(self, context, router_id, arp_table, operation\u003dNone):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_50d9db20","line":149,"updated":"2015-08-31 11:24:34.000000000","message":"pass the data to _notification","commit_id":"eefedaba3e9f1c28f39375a8e67a58fce5eb9293"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"da196287912ce796077005439b1e7677ce53a3af","unresolved":false,"context_lines":[{"line_number":100,"context_line":"            cctxt.cast(context, method, payload\u003ddvr_arptable)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _notification(self, context, method, router_ids, operation,"},{"line_number":103,"context_line":"                      shuffle_agents, schedule_routers\u003dTrue):"},{"line_number":104,"context_line":"        \"\"\"Notify all the agents that are hosting the routers.\"\"\""},{"line_number":105,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":106,"context_line":"            service_constants.L3_ROUTER_NAT)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_a5fb2578","side":"PARENT","line":103,"updated":"2015-09-01 07:46:41.000000000","message":"this should not be deleted","commit_id":"9ed4be7559b1b611b35b505a786c3511dccac58f"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"da196287912ce796077005439b1e7677ce53a3af","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            if data:"},{"line_number":150,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":151,"context_line":"                                   operation, shuffle_agents, data.get(\u0027agent\u0027))"},{"line_number":152,"context_line":"            else:"},{"line_number":153,"context_line":"                self._notification(context, \u0027routers_updated\u0027, router_ids,"},{"line_number":154,"context_line":"                                   operation, shuffle_agents)"},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_c5009936","line":152,"updated":"2015-09-01 07:46:41.000000000","message":"no need for L152-154","commit_id":"e28e328ca6a56cc1a212238d326d29148d693080"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"549ada939398dbcee82c695aad1080862a7d9cfb","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        self._notification_host(context, \u0027router_added_to_agent\u0027,"},{"line_number":161,"context_line":"                                router_ids, host)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def update_floatingip(self, context, router_agent_infos):"},{"line_number":164,"context_line":"        for router_agent in router_agent_infos:"},{"line_number":165,"context_line":"            router_id \u003d router_agent.keys()[0]"},{"line_number":166,"context_line":"            hosts \u003d router_agent.values()"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_674f5a92","line":163,"updated":"2015-09-07 13:29:11.000000000","message":"router_agent_infos is complicated and makes function hard to read. Consider just \n def update_floatingip(self, context, router_id, hosts):\n     for host in hosts:\n         self._notification_host(context, \u0027routers_updated\u0027,\n             router_id, host)","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"f00d3273df89e53695758bcf93abee7d91b1ee1b","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        self._notification_host(context, \u0027router_added_to_agent\u0027,"},{"line_number":161,"context_line":"                                router_ids, host)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def update_floatingip(self, context, router_ids, hosts):"},{"line_number":164,"context_line":"        for index, router_id in enumerate(router_ids):"},{"line_number":165,"context_line":"            for host in hosts[index]:"},{"line_number":166,"context_line":"                self._notification_host(context, \u0027routers_updated\u0027,"}],"source_content_type":"text/x-python","patch_set":23,"id":"da20952f_d8594437","line":163,"updated":"2015-09-08 12:56:14.000000000","message":"why not just as simple as update_floatingip(self, context, router_id, hosts) to notify agents on \u0027hosts\u0027 about updated router \u0027router_id\u0027?","commit_id":"d0e23d47db87210c9fef4224b1e143b44db686db"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"255e34c869ce15e033dbb1039c7e13b46b3b2c06","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            cctxt \u003d self.client.prepare(fanout\u003dTrue)"},{"line_number":121,"context_line":"            cctxt.cast(context, method, routers\u003drouter_ids)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    def _notification_agents(self, context, method, router_id, l3_agents):"},{"line_number":124,"context_line":"        for l3_agent in l3_agents:"},{"line_number":125,"context_line":"            LOG.debug(\u0027Notify agent at %(topic)s.%(host)s the message \u0027"},{"line_number":126,"context_line":"                      \u0027%(method)s\u0027,"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_0d5af850","line":123,"updated":"2015-09-09 06:44:33.000000000","message":"my patch #https://review.openstack.org/221209 also add this method, so these two patches will conflict","commit_id":"c92887b0fd3550e9933025b86dcabf1b2fc3aa77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"db6a6ac1d46208cac9a34eb02745a54585595c23","unresolved":false,"context_lines":[{"line_number":175,"context_line":"    def update_floatingip(self, context, router_ids, hosts):"},{"line_number":176,"context_line":"        for host in hosts:"},{"line_number":177,"context_line":"            self._notification_agents(context, \u0027routers_updated\u0027,"},{"line_number":178,"context_line":"                router_ids, hosts)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_9da0faf4","line":178,"updated":"2015-09-11 21:13:38.000000000","message":"This doesn\u0027t look right, you need to either use \u0027host\u0027 here or not have this for loop at all since the callee is actually going to loop through what you pass it.","commit_id":"3e2ab898ce600c9b3cebeafc36159e6ce28459d2"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"3b153c0af894b0ea4e55a004c94b7260d3e94ea3","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            cctxt \u003d self.client.prepare(fanout\u003dTrue)"},{"line_number":121,"context_line":"            cctxt.cast(context, method, routers\u003drouter_ids)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    def _notification_agents(self, context, method, router_id, l3_agents):"},{"line_number":124,"context_line":"        for l3_agent in l3_agents:"},{"line_number":125,"context_line":"            LOG.debug(\u0027Notify agent at %(topic)s.%(host)s the message \u0027"},{"line_number":126,"context_line":"                      \u0027%(method)s\u0027,"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba15a1d1_9fce5459","line":123,"updated":"2015-09-13 01:23:54.000000000","message":"First, why is this a separate method if only one other method is calling it?\nSecond, _notify_agents reads a little better for the method name","commit_id":"5499cb2a97aed7a1f550305a891a81265e461b0b"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":170,"context_line":"            cctxt \u003d self.client.prepare(topic\u003dl3_agent.topic,"},{"line_number":171,"context_line":"                                        server\u003dl3_agent.host,"},{"line_number":172,"context_line":"                                        version\u003d\u00271.1\u0027)"},{"line_number":173,"context_line":"            cctxt.cast(context, method, routers\u003drouter_ids)"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_baf9a982","line":173,"updated":"2015-09-15 08:39:14.000000000","message":"are you ever planning to call a method which is not routers_updated here?","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2134cc8e30aba97e3afc46f7a1eaf9c5f6f2fc57","unresolved":false,"context_lines":[{"line_number":170,"context_line":"            cctxt \u003d self.client.prepare(topic\u003dl3_agent.topic,"},{"line_number":171,"context_line":"                                        server\u003dl3_agent.host,"},{"line_number":172,"context_line":"                                        version\u003d\u00271.1\u0027)"},{"line_number":173,"context_line":"            cctxt.cast(context, method, routers\u003drouter_ids)"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_c83589da","line":173,"in_reply_to":"ba15a1d1_baf9a982","updated":"2015-09-16 04:02:41.000000000","message":"i changed the code in next patch","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c15f00b420a9d0b2ed3e4083566c6fa9bd1dbe0","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        self._notification_host(context, \u0027router_added_to_agent\u0027,"},{"line_number":161,"context_line":"                                router_ids, host)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def update_floatingip(self, context, router_ids, method, hosts):"},{"line_number":164,"context_line":"        for l3_agent in hosts:"},{"line_number":165,"context_line":"            LOG.debug(\u0027Notify agent at %(topic)s.%(host)s the message \u0027"},{"line_number":166,"context_line":"                      \u0027%(method)s\u0027,"}],"source_content_type":"text/x-python","patch_set":50,"id":"9a1a9d01_185d6fec","line":163,"updated":"2015-10-01 20:02:08.000000000","message":"I think that Salvatore made the same comment and it wasn\u0027t ever really addressed - Why does this method accept a \u0027method\u0027 parameter? Same for the methods that call this one. Shouldn\u0027t it just be hardcoded to \u0027routers_updated\u0027?","commit_id":"43c5044c6d99955b2fc8c0107001a7bb8bd68241"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def __init__(self, topic\u003dtopics.L3_AGENT):"},{"line_number":38,"context_line":"        target \u003d oslo_messaging.Target(topic\u003dtopic, version\u003d\u00271.0\u0027)"},{"line_number":39,"context_line":"        self.client \u003d n_rpc.get_client(target)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def _notification_host(self, context, method, payload, host):"},{"line_number":42,"context_line":"        \"\"\"Notify the agent that is hosting the router.\"\"\""},{"line_number":43,"context_line":"        LOG.debug(\u0027Notify agent at %(host)s the message \u0027"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_c73a6598","line":40,"updated":"2015-10-05 10:22:41.000000000","message":"Consider refactoring:\n def _notification_host(self, context, method, host, **kwargs):\n     ...\n     cctxt.cast(context, method, **kwargs)\n\nSee below comments","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"02e32e14c5c634161f5d4054d4bdf824017b5188","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def __init__(self, topic\u003dtopics.L3_AGENT):"},{"line_number":38,"context_line":"        target \u003d oslo_messaging.Target(topic\u003dtopic, version\u003d\u00271.0\u0027)"},{"line_number":39,"context_line":"        self.client \u003d n_rpc.get_client(target)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def _notification_host(self, context, method, payload, host):"},{"line_number":42,"context_line":"        \"\"\"Notify the agent that is hosting the router.\"\"\""},{"line_number":43,"context_line":"        LOG.debug(\u0027Notify agent at %(host)s the message \u0027"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a2fa921_fc3521f7","line":40,"in_reply_to":"9a1a9d01_c73a6598","updated":"2015-10-05 14:51:50.000000000","message":"please see https://review.openstack.org/#/c/231031","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        cctxt.cast(context, method, router_id\u003drouter_id)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    def agent_updated(self, context, admin_state_up, host):"},{"line_number":134,"context_line":"        self._notification_host(context, \u0027agent_updated\u0027,"},{"line_number":135,"context_line":"                                {\u0027admin_state_up\u0027: admin_state_up},"},{"line_number":136,"context_line":"                                host)"},{"line_number":137,"context_line":""}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_476e5597","line":134,"updated":"2015-10-05 10:22:41.000000000","message":"with above refactoring this should be changed: \n self._notification_host(context, \u0027agent_updated\u0027, host, payload\u003d{\u0027admin_state_up\u0027: admin_state_up})","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":153,"context_line":"                                     operation, arp_table)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def router_removed_from_agent(self, context, router_id, host):"},{"line_number":156,"context_line":"        self._notification_host(context, \u0027router_removed_from_agent\u0027,"},{"line_number":157,"context_line":"                                {\u0027router_id\u0027: router_id}, host)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def router_added_to_agent(self, context, router_ids, host):"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_e76c499e","line":156,"updated":"2015-10-05 10:22:41.000000000","message":"ditto","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":157,"context_line":"                                {\u0027router_id\u0027: router_id}, host)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def router_added_to_agent(self, context, router_ids, host):"},{"line_number":160,"context_line":"        self._notification_host(context, \u0027router_added_to_agent\u0027,"},{"line_number":161,"context_line":"                                router_ids, host)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def update_floatingip(self, context, router_ids, hosts):"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_a705f1c2","line":160,"updated":"2015-10-05 10:22:41.000000000","message":"ditto","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def update_floatingip(self, context, router_ids, hosts):"},{"line_number":164,"context_line":"        for l3_agent in hosts:"},{"line_number":165,"context_line":"            LOG.debug(\u0027Notify agent at %(topic)s.%(host)s the message \u0027"},{"line_number":166,"context_line":"                      \u0027%(method)s\u0027,"},{"line_number":167,"context_line":"                      {\u0027topic\u0027: l3_agent.topic,"},{"line_number":168,"context_line":"                       \u0027host\u0027: l3_agent.host})"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_879c6d5e","line":165,"updated":"2015-10-05 10:22:41.000000000","message":"replace 165-172 with \n self._notification_host(context, \u0027routers_updated\u0027, host, routers\u003drouter_ids)","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":164,"context_line":"        for l3_agent in hosts:"},{"line_number":165,"context_line":"            LOG.debug(\u0027Notify agent at %(topic)s.%(host)s the message \u0027"},{"line_number":166,"context_line":"                      \u0027%(method)s\u0027,"},{"line_number":167,"context_line":"                      {\u0027topic\u0027: l3_agent.topic,"},{"line_number":168,"context_line":"                       \u0027host\u0027: l3_agent.host})"},{"line_number":169,"context_line":"            cctxt \u003d self.client.prepare(topic\u003dl3_agent.topic,"},{"line_number":170,"context_line":"                                        server\u003dl3_agent.host,"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_e79f695d","line":167,"updated":"2015-10-05 10:22:41.000000000","message":"why need topic here? Anyway this can be covered by proposed refactoring","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"}],"neutron/db/l3_db.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8db78b00db706b18a8f529f0dce9f5133b55b8ff","unresolved":false,"context_lines":[{"line_number":1363,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1364,"context_line":"        agent \u003d None"},{"line_number":1365,"context_line":"        if port_id:"},{"line_number":1366,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":1367,"context_line":"            port_host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1368,"context_line":"            if port_host:"},{"line_number":1369,"context_line":"                agent \u003d self._get_agent_by_type_and_host(context,"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_32621d0b","line":1366,"updated":"2015-08-20 19:22:25.000000000","message":"nit: can you just call this \u0027port\u0027 as it by default will be a dict","commit_id":"73e7f6cf4f14feaf0c5bcc09f24adaa17884d60c"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8db78b00db706b18a8f529f0dce9f5133b55b8ff","unresolved":false,"context_lines":[{"line_number":1368,"context_line":"            if port_host:"},{"line_number":1369,"context_line":"                agent \u003d self._get_agent_by_type_and_host(context,"},{"line_number":1370,"context_line":"                    l3_constants.AGENT_TYPE_L3,"},{"line_number":1371,"context_line":"                    port_host)"},{"line_number":1372,"context_line":""},{"line_number":1373,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":1374,"context_line":"            [old_floatingip, floatingip])"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_8da42a08","line":1371,"updated":"2015-08-20 19:22:25.000000000","message":"This could throw an exception, at a minimum you need to catch AgentNotFoundByTypeHost, see list_active_networks_on_active_dhcp_agent() for an example.","commit_id":"73e7f6cf4f14feaf0c5bcc09f24adaa17884d60c"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"863d12bad57dbab894084cdffd8da48e594b7aef","unresolved":false,"context_lines":[{"line_number":1364,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1365,"context_line":"        agent \u003d None"},{"line_number":1366,"context_line":"        if port_id:"},{"line_number":1367,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":1368,"context_line":"            host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1369,"context_line":"            if host:"},{"line_number":1370,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_803aa197","line":1367,"updated":"2015-08-21 03:43:07.000000000","message":"nit: can you just call this \u0027port\u0027 as it by default will be a dict","commit_id":"bebab592fc347370c12396e0206a7910cc97d8f1"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"cab04844afc01f31496366194466b305d852b358","unresolved":false,"context_lines":[{"line_number":1364,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1365,"context_line":"        agent \u003d None"},{"line_number":1366,"context_line":"        if port_id:"},{"line_number":1367,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":1368,"context_line":"            host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1369,"context_line":"            if host:"},{"line_number":1370,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_fbd1d223","line":1367,"in_reply_to":"fa1b9901_803aa197","updated":"2015-08-21 03:48:08.000000000","message":"like this: \n\n    port \u003d self._core_plugin.get_port(context, port_id)\n    \ninstead of:\n\n    port_dict \u003d self._core_plugin.get_port(context, port_id)\n\n\n??","commit_id":"bebab592fc347370c12396e0206a7910cc97d8f1"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"863d12bad57dbab894084cdffd8da48e594b7aef","unresolved":false,"context_lines":[{"line_number":1370,"context_line":"                try:"},{"line_number":1371,"context_line":"                    agent \u003d self._get_agent_by_type_and_host(context,"},{"line_number":1372,"context_line":"                        l3_constants.AGENT_TYPE_L3,"},{"line_number":1373,"context_line":"                        host)"},{"line_number":1374,"context_line":"                except ext_agent.AgentNotFoundByTypeHost:"},{"line_number":1375,"context_line":"                    LOG.debug(\"L3 Agent not found on host %s\", host)"},{"line_number":1376,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_806141ab","line":1373,"updated":"2015-08-21 03:43:07.000000000","message":"nit: this can fit on the previous line","commit_id":"bebab592fc347370c12396e0206a7910cc97d8f1"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"863d12bad57dbab894084cdffd8da48e594b7aef","unresolved":false,"context_lines":[{"line_number":1372,"context_line":"                        l3_constants.AGENT_TYPE_L3,"},{"line_number":1373,"context_line":"                        host)"},{"line_number":1374,"context_line":"                except ext_agent.AgentNotFoundByTypeHost:"},{"line_number":1375,"context_line":"                    LOG.debug(\"L3 Agent not found on host %s\", host)"},{"line_number":1376,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":1377,"context_line":"            [old_floatingip, floatingip])"},{"line_number":1378,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_updated("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_e0f6fd5b","line":1375,"updated":"2015-08-21 03:43:07.000000000","message":"I think this can be a little more verbose, like \"L3 Agent not found on host %s, notifying all agents of Floating IP update\"","commit_id":"bebab592fc347370c12396e0206a7910cc97d8f1"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cb1c900767c3f7ebf10e74f9c7df7e2962f9ed0e","unresolved":false,"context_lines":[{"line_number":1358,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1359,"context_line":"        return floatingip_dict"},{"line_number":1360,"context_line":""},{"line_number":1361,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1362,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1363,"context_line":"            context, id, floatingip)"},{"line_number":1364,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_74486ccc","line":1361,"updated":"2015-08-21 07:07:51.000000000","message":"I would add a unit test to check the call to update_floating_ip will call notify_routers_updated with the right data dictionary.\n\nTo do that you have to make sure the port_dict will have the binding:host_id and that _get_agent_by_type_and_host will succeed (because it\u0027s able to fetch the right data, or because it\u0027s mocked to do it).\n\nTo do this, you need to create a new test module in test/unit/db/test_l3_db.py","commit_id":"113232a483fe49956ade04e1035745e2b6eefa29"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"07018a72fbf8704d3a54806c2f148192f1271413","unresolved":false,"context_lines":[{"line_number":1370,"context_line":"                try:"},{"line_number":1371,"context_line":"                    agent \u003d self._get_agent_by_type_and_host(context,"},{"line_number":1372,"context_line":"                        l3_constants.AGENT_TYPE_L3,"},{"line_number":1373,"context_line":"                        host)"},{"line_number":1374,"context_line":"                except ext_agent.AgentNotFoundByTypeHost:"},{"line_number":1375,"context_line":"                    LOG.debug(\"L3 Agent not found on host %s\", host)"},{"line_number":1376,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_11b6e2f8","line":1373,"updated":"2015-08-21 06:33:11.000000000","message":"don\u0027t need separate this line.","commit_id":"113232a483fe49956ade04e1035745e2b6eefa29"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"a4ede979b424d7387cc621bff0e690849e1cf066","unresolved":false,"context_lines":[{"line_number":1364,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1365,"context_line":"        agent \u003d None"},{"line_number":1366,"context_line":"        if port_id:"},{"line_number":1367,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":1368,"context_line":"            host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1369,"context_line":"            if host:"},{"line_number":1370,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_8653cb15","line":1367,"updated":"2015-08-26 07:58:28.000000000","message":"this is a compute port which is bound to a compute host where no l3 agents are running (except DVR mode)","commit_id":"ca53301d0501f545a109e84992a5f962ca260c12"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"a4ede979b424d7387cc621bff0e690849e1cf066","unresolved":false,"context_lines":[{"line_number":1368,"context_line":"            host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1369,"context_line":"            if host:"},{"line_number":1370,"context_line":"                try:"},{"line_number":1371,"context_line":"                    agent \u003d self._get_agent_by_type_and_host(context,"},{"line_number":1372,"context_line":"                        l3_constants.AGENT_TYPE_L3, host)"},{"line_number":1373,"context_line":"                except ext_agent.AgentNotFoundByTypeHost:"},{"line_number":1374,"context_line":"                    LOG.debug(\"L3 Agent not found on host %s\", host)"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_466933bd","line":1371,"updated":"2015-08-26 07:58:28.000000000","message":"this is useless, you will need only host when doing notification","commit_id":"ca53301d0501f545a109e84992a5f962ca260c12"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"5b68794146859b1247cc906f911faca0beb93f02","unresolved":false,"context_lines":[{"line_number":1363,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1364,"context_line":"        host \u003d None"},{"line_number":1365,"context_line":"        if port_id:"},{"line_number":1366,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":1367,"context_line":"            host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1368,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":1369,"context_line":"            [old_floatingip, floatingip])"}],"source_content_type":"text/x-python","patch_set":11,"id":"da20952f_a8dbba1a","line":1366,"updated":"2015-08-27 10:55:21.000000000","message":"please see comment to the previous patch set: routers are not hosted on compute nodes (non-dvr case)","commit_id":"81ba64ea580ad97e2381d43b14555f09242b0a0c"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b859fda6b68e7517d25da986ac3581119a02e31b","unresolved":false,"context_lines":[{"line_number":1363,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1364,"context_line":"        host \u003d None"},{"line_number":1365,"context_line":"        if port_id:"},{"line_number":1366,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":1367,"context_line":"            host \u003d port_dict.get(\u0027binding:host_id\u0027)"},{"line_number":1368,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":1369,"context_line":"            [old_floatingip, floatingip])"}],"source_content_type":"text/x-python","patch_set":11,"id":"da20952f_e34f9490","line":1366,"in_reply_to":"da20952f_a8dbba1a","updated":"2015-08-27 11:37:12.000000000","message":"+1, you should consider non-dvr case","commit_id":"81ba64ea580ad97e2381d43b14555f09242b0a0c"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"dbc7152c2fe04b3457b2959a818ed6210c8041d8","unresolved":false,"context_lines":[{"line_number":1380,"context_line":"        except l3.RouterNotFound:"},{"line_number":1381,"context_line":"            cur_agents \u003d None"},{"line_number":1382,"context_line":"        # in DVR mode"},{"line_number":1383,"context_line":"        if not cur_agents:"},{"line_number":1384,"context_line":"            # associate floatingip"},{"line_number":1385,"context_line":"            if port_id:"},{"line_number":1386,"context_line":"                port_dict \u003d self._core_plugin.get_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"da20952f_51db464f","line":1383,"updated":"2015-08-29 06:39:09.000000000","message":"why router is in DVR mode if cur_agents is None?","commit_id":"4a7be79ffe456176294b48a89b51277046b01cff"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b68bd4b1bc9a2e25c50e3abfab2c9ea8c1d9a025","unresolved":false,"context_lines":[{"line_number":1368,"context_line":"        if (not utils.is_extension_supported("},{"line_number":1369,"context_line":"                l3_plugin,"},{"line_number":1370,"context_line":"                l3_constants.L3_AGENT_SCHEDULER_EXT_ALIAS) or"},{"line_number":1371,"context_line":"            l3_plugin.router_scheduler is None):"},{"line_number":1372,"context_line":"            # that might mean that we are dealing with non-agent-based"},{"line_number":1373,"context_line":"            # implementation of l3 services"},{"line_number":1374,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":16,"id":"da20952f_4ed633f2","line":1371,"updated":"2015-08-30 05:31:41.000000000","message":"why not check l3_plugin.router_scheduler is None first - that may save a function call","commit_id":"1bf72e9fac007c6ed34e478dc082d8424e865396"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b68bd4b1bc9a2e25c50e3abfab2c9ea8c1d9a025","unresolved":false,"context_lines":[{"line_number":1371,"context_line":"            l3_plugin.router_scheduler is None):"},{"line_number":1372,"context_line":"            # that might mean that we are dealing with non-agent-based"},{"line_number":1373,"context_line":"            # implementation of l3 services"},{"line_number":1374,"context_line":"            return"},{"line_number":1375,"context_line":""},{"line_number":1376,"context_line":"        try:"},{"line_number":1377,"context_line":"            hosts \u003d l3_plugin.list_l3_agents_hosting_router("}],"source_content_type":"text/x-python","patch_set":16,"id":"da20952f_aefb4f7a","line":1374,"updated":"2015-08-30 05:31:41.000000000","message":"the method should return floatingip","commit_id":"1bf72e9fac007c6ed34e478dc082d8424e865396"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b87a45f4769fbda67583fdc92bce6f70913bc102","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1362,"context_line":"            context, id, floatingip)"},{"line_number":1363,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":1364,"context_line":"            [old_floatingip, floatingip])"},{"line_number":1365,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_updated("},{"line_number":1366,"context_line":"            context, router_ids, \u0027update_floatingip\u0027, {})"},{"line_number":1367,"context_line":"        return floatingip"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_10912347","side":"PARENT","line":1364,"updated":"2015-08-31 11:24:34.000000000","message":"I advice you can do as flow:\n1. in there we check if these router_ids related routers are distributed, if they are distributed, pass the related internal ports to notify_routers_updated as \u0027data\u0027\n2. then you check this in notify_routers_updated, see comment in l3_rpc_agent_api.py","commit_id":"9ed4be7559b1b611b35b505a786c3511dccac58f"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b87a45f4769fbda67583fdc92bce6f70913bc102","unresolved":false,"context_lines":[{"line_number":1348,"context_line":"        self.notify_router_interface_action("},{"line_number":1349,"context_line":"            context, router_interface_info, \u0027remove\u0027)"},{"line_number":1350,"context_line":"        return router_interface_info"},{"line_number":1351,"context_line":""},{"line_number":1352,"context_line":"    def create_floatingip(self, context, floatingip,"},{"line_number":1353,"context_line":"            initial_status\u003dl3_constants.FLOATINGIP_STATUS_ACTIVE):"},{"line_number":1354,"context_line":"        floatingip_dict \u003d super(L3_NAT_db_mixin, self).create_floatingip("}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_50e31ba4","line":1351,"updated":"2015-08-31 11:24:34.000000000","message":"create floating ip also need to modify","commit_id":"eefedaba3e9f1c28f39375a8e67a58fce5eb9293"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"e090210740f898d8ff6e3224108361d2213cc995","unresolved":false,"context_lines":[{"line_number":1355,"context_line":"        floatingip_dict \u003d super(L3_NAT_db_mixin, self).create_floatingip("},{"line_number":1356,"context_line":"            context, floatingip, initial_status)"},{"line_number":1357,"context_line":"        router_id \u003d floatingip_dict[\u0027router_id\u0027]"},{"line_number":1358,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1359,"context_line":"        return floatingip_dict"},{"line_number":1360,"context_line":""},{"line_number":1361,"context_line":"    def update_floatingip(self, context, id, floatingip):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_1d17ee45","line":1358,"updated":"2015-09-06 06:38:11.000000000","message":"there also need to modify","commit_id":"e28e328ca6a56cc1a212238d326d29148d693080"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"e090210740f898d8ff6e3224108361d2213cc995","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1362,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1363,"context_line":"            context, id, floatingip)"},{"line_number":1364,"context_line":"        port_id \u003d floatingip[\u0027port_id\u0027]"},{"line_number":1365,"context_line":"        agent \u003d None"},{"line_number":1366,"context_line":"        if port_id:"},{"line_number":1367,"context_line":"            port_dict \u003d self._core_plugin.get_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_fd1b1a71","line":1364,"updated":"2015-09-06 06:38:11.000000000","message":"if we change floatingip fixed port which is on different host, we must to notify the two l3 agents","commit_id":"e28e328ca6a56cc1a212238d326d29148d693080"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"da196287912ce796077005439b1e7677ce53a3af","unresolved":false,"context_lines":[{"line_number":1375,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":1376,"context_line":"            [old_floatingip, floatingip])"},{"line_number":1377,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_updated("},{"line_number":1378,"context_line":"            context, router_ids, \u0027update_floatingip\u0027, {\u0027agent\u0027: agent})"},{"line_number":1379,"context_line":"        return floatingip"},{"line_number":1380,"context_line":""},{"line_number":1381,"context_line":"    def delete_floatingip(self, context, id):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_459b2918","line":1378,"updated":"2015-09-01 07:46:41.000000000","message":"agent will be undefined in case agent not found.","commit_id":"e28e328ca6a56cc1a212238d326d29148d693080"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"549ada939398dbcee82c695aad1080862a7d9cfb","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1362,"context_line":"        return floatingip_dict"},{"line_number":1363,"context_line":""},{"line_number":1364,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1365,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1366,"context_line":"            context, id, floatingip)"},{"line_number":1367,"context_line":"        l3_plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_8704ee17","line":1364,"updated":"2015-09-07 13:29:11.000000000","message":"better to override this in l3_dvr_db","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d73cae4b55717e44565911f04a731589bfda5b9f","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1362,"context_line":"        return floatingip_dict"},{"line_number":1363,"context_line":""},{"line_number":1364,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1365,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1366,"context_line":"            context, id, floatingip)"},{"line_number":1367,"context_line":"        l3_plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_95a08a91","line":1364,"in_reply_to":"da20952f_7947fea2","updated":"2015-09-08 01:59:17.000000000","message":"Done","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"97443a12490b05179c4d253b4fb19b688590f303","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1362,"context_line":"        return floatingip_dict"},{"line_number":1363,"context_line":""},{"line_number":1364,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1365,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1366,"context_line":"            context, id, floatingip)"},{"line_number":1367,"context_line":"        l3_plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_b99356a2","line":1364,"in_reply_to":"da20952f_8704ee17","updated":"2015-09-07 14:23:50.000000000","message":"hi, i\u0027m not quite understand \"override this in l3_dvr_db\". there is no \"def update_floatingip\" in l3_dvr_db.py","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"856aa853236ca4c9c1ed82f5b538e722e3053239","unresolved":false,"context_lines":[{"line_number":1361,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1362,"context_line":"        return floatingip_dict"},{"line_number":1363,"context_line":""},{"line_number":1364,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1365,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1366,"context_line":"            context, id, floatingip)"},{"line_number":1367,"context_line":"        l3_plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_7947fea2","line":1364,"in_reply_to":"da20952f_b99356a2","updated":"2015-09-07 14:38:43.000000000","message":"in l3_dvr_db.py some functions are overriden in order to handle dvr routers. See delete_floatingip() for example","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"549ada939398dbcee82c695aad1080862a7d9cfb","unresolved":false,"context_lines":[{"line_number":1373,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":1374,"context_line":"            d \u003d {}"},{"line_number":1375,"context_line":"            try:"},{"line_number":1376,"context_line":"                requested_router_type \u003d router.extra_attributes.distributed"},{"line_number":1377,"context_line":"            except AttributeError:"},{"line_number":1378,"context_line":"                requested_router_type \u003d router.get(\u0027distributed\u0027)"},{"line_number":1379,"context_line":"            if requested_router_type:"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_e2103850","line":1376,"updated":"2015-09-07 13:29:11.000000000","message":"and use is_distributed_router() from l3_dvr_db","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d73cae4b55717e44565911f04a731589bfda5b9f","unresolved":false,"context_lines":[{"line_number":1373,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":1374,"context_line":"            d \u003d {}"},{"line_number":1375,"context_line":"            try:"},{"line_number":1376,"context_line":"                requested_router_type \u003d router.extra_attributes.distributed"},{"line_number":1377,"context_line":"            except AttributeError:"},{"line_number":1378,"context_line":"                requested_router_type \u003d router.get(\u0027distributed\u0027)"},{"line_number":1379,"context_line":"            if requested_router_type:"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_35abbe76","line":1376,"in_reply_to":"da20952f_79de1edb","updated":"2015-09-08 01:59:17.000000000","message":"Done","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"856aa853236ca4c9c1ed82f5b538e722e3053239","unresolved":false,"context_lines":[{"line_number":1373,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":1374,"context_line":"            d \u003d {}"},{"line_number":1375,"context_line":"            try:"},{"line_number":1376,"context_line":"                requested_router_type \u003d router.extra_attributes.distributed"},{"line_number":1377,"context_line":"            except AttributeError:"},{"line_number":1378,"context_line":"                requested_router_type \u003d router.get(\u0027distributed\u0027)"},{"line_number":1379,"context_line":"            if requested_router_type:"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_79de1edb","line":1376,"in_reply_to":"da20952f_79e05e26","updated":"2015-09-07 14:38:43.000000000","message":"no, you\u0027ll use is_distributed_router() if override update_floatingip() in l3_dvr_db","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"97443a12490b05179c4d253b4fb19b688590f303","unresolved":false,"context_lines":[{"line_number":1373,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":1374,"context_line":"            d \u003d {}"},{"line_number":1375,"context_line":"            try:"},{"line_number":1376,"context_line":"                requested_router_type \u003d router.extra_attributes.distributed"},{"line_number":1377,"context_line":"            except AttributeError:"},{"line_number":1378,"context_line":"                requested_router_type \u003d router.get(\u0027distributed\u0027)"},{"line_number":1379,"context_line":"            if requested_router_type:"}],"source_content_type":"text/x-python","patch_set":22,"id":"da20952f_79e05e26","line":1376,"in_reply_to":"da20952f_e2103850","updated":"2015-09-07 14:23:50.000000000","message":"should i copy the \"def is_distributed_router(\" function from l3_dvr_db to this file?","commit_id":"175f0180e00b1cd7db7c0833526caff661552cf4"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b19477f6f77bfe03378db600af0b58ab2e0bdc84","unresolved":false,"context_lines":[{"line_number":1358,"context_line":"        floatingip_dict \u003d super(L3_NAT_db_mixin, self).create_floatingip("},{"line_number":1359,"context_line":"            context, floatingip, initial_status)"},{"line_number":1360,"context_line":"        router_id \u003d floatingip_dict[\u0027router_id\u0027]"},{"line_number":1361,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1362,"context_line":"        return floatingip_dict"},{"line_number":1363,"context_line":""},{"line_number":1364,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, hosts):"}],"source_content_type":"text/x-python","patch_set":33,"id":"ba15a1d1_4af31574","line":1361,"updated":"2015-09-14 04:03:51.000000000","message":"I think you also need to consider that we create a floating IP with fixed port","commit_id":"3e5c6b9474a1fbe00b4e77b78052ec61882d109a"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":1357,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1358,"context_line":"        return floatingip_dict"},{"line_number":1359,"context_line":""},{"line_number":1360,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1361,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1362,"context_line":"            context, id, floatingip)"},{"line_number":1363,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_9a9b8572","side":"PARENT","line":1360,"updated":"2015-09-15 08:39:14.000000000","message":"If I have a plugin that does not implement the DVR mixin but uses RPC, does this mean that I have to reimplement the method in my plugin as you\u0027ve removed it from the mixin?\n\nPlease consider whether this is really necessary","commit_id":"9ed4be7559b1b611b35b505a786c3511dccac58f"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"227bd1eca91ec14ccd82aadd4b87b5dd5a6e9d73","unresolved":false,"context_lines":[{"line_number":1360,"context_line":"        floatingip_dict \u003d super(L3_NAT_db_mixin, self).create_floatingip("},{"line_number":1361,"context_line":"            context, floatingip, initial_status)"},{"line_number":1362,"context_line":"        router_id \u003d floatingip_dict[\u0027router_id\u0027]"},{"line_number":1363,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1364,"context_line":"        return floatingip_dict"},{"line_number":1365,"context_line":""},{"line_number":1366,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, method,"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_58c40b5e","line":1363,"updated":"2015-09-15 12:41:50.000000000","message":"I think create_floatingip should be considered, @Salvatore Orlando, what do you think?","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":1363,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1364,"context_line":"        return floatingip_dict"},{"line_number":1365,"context_line":""},{"line_number":1366,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, method,"},{"line_number":1367,"context_line":"            hosts):"},{"line_number":1368,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_floatingips_updated("},{"line_number":1369,"context_line":"            context, router_ids, method, hosts)"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_3ab7d9d9","line":1366,"updated":"2015-09-15 08:39:14.000000000","message":"this new method appears to be designed for internal use. Please prepend it with \u0027_\u0027 if that\u0027s the case","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2134cc8e30aba97e3afc46f7a1eaf9c5f6f2fc57","unresolved":false,"context_lines":[{"line_number":1363,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1364,"context_line":"        return floatingip_dict"},{"line_number":1365,"context_line":""},{"line_number":1366,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, method,"},{"line_number":1367,"context_line":"            hosts):"},{"line_number":1368,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_floatingips_updated("},{"line_number":1369,"context_line":"            context, router_ids, method, hosts)"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_68723daf","line":1366,"in_reply_to":"ba15a1d1_3ab7d9d9","updated":"2015-09-16 04:02:41.000000000","message":"the function \"update_floatingips\" invoked from the l3_dvr_db.py","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"39367b92a1a44ddda36d1f6964315ab73fdebed5","unresolved":false,"context_lines":[{"line_number":1357,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1358,"context_line":"        return floatingip_dict"},{"line_number":1359,"context_line":""},{"line_number":1360,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1361,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1362,"context_line":"            context, id, floatingip)"},{"line_number":1363,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":39,"id":"ba15a1d1_25d2ee5c","side":"PARENT","line":1360,"updated":"2015-09-17 10:34:06.000000000","message":"doesn\u0027t this break non-dvr plugins?","commit_id":"9ed4be7559b1b611b35b505a786c3511dccac58f"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4df3ef8d066b8cd85618a81754e444b15db7396b","unresolved":false,"context_lines":[{"line_number":1357,"context_line":"        self.notify_router_updated(context, router_id, \u0027create_floatingip\u0027)"},{"line_number":1358,"context_line":"        return floatingip_dict"},{"line_number":1359,"context_line":""},{"line_number":1360,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":1361,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":1362,"context_line":"            context, id, floatingip)"},{"line_number":1363,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":39,"id":"ba15a1d1_cc0e1d8c","side":"PARENT","line":1360,"in_reply_to":"ba15a1d1_25d2ee5c","updated":"2015-09-22 09:46:20.000000000","message":"Sorry, I\u0027m not understand your comments. Could you give me some clear advice in the latest patchset?","commit_id":"9ed4be7559b1b611b35b505a786c3511dccac58f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":1370,"context_line":""},{"line_number":1371,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, method,"},{"line_number":1372,"context_line":"            hosts):"},{"line_number":1373,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_floatingips_updated("},{"line_number":1374,"context_line":"            context, router_ids, method, hosts)"},{"line_number":1375,"context_line":"        return floatingip"},{"line_number":1376,"context_line":""}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_757adb25","line":1373,"updated":"2015-09-23 23:09:21.000000000","message":"Why super?  Just call...\n\n  self.notify_routers_floatingips_updated(context, router_ids, method, hosts)\n\nIt calls the same thing in this case.  Calling super directly is mostly just for when you call a method of the same name in the super class.  Calling a method of different name with super is strange, especially in cases when the current class defines the method.","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4440d5d519e6a683c1389ace32b82fbb95fd46d7","unresolved":false,"context_lines":[{"line_number":1370,"context_line":""},{"line_number":1371,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, method,"},{"line_number":1372,"context_line":"            hosts):"},{"line_number":1373,"context_line":"        super(L3_NAT_db_mixin, self).notify_routers_floatingips_updated("},{"line_number":1374,"context_line":"            context, router_ids, method, hosts)"},{"line_number":1375,"context_line":"        return floatingip"},{"line_number":1376,"context_line":""}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_25d18e57","line":1373,"in_reply_to":"ba15a1d1_757adb25","updated":"2015-09-24 02:51:09.000000000","message":"got it!","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":1375,"context_line":"            context, router_ids, \u0027update_floatingip\u0027, {})"},{"line_number":1376,"context_line":"        return floatingip"},{"line_number":1377,"context_line":""},{"line_number":1378,"context_line":"    def update_floatingips(self, context, floatingip, router_ids, hosts):"},{"line_number":1379,"context_line":"        self.notify_routers_floatingips_updated("},{"line_number":1380,"context_line":"            context, router_ids, hosts)"},{"line_number":1381,"context_line":"        return floatingip"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_07c05d29","line":1378,"updated":"2015-10-05 10:22:41.000000000","message":"why need this method here?","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"}],"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"255e34c869ce15e033dbb1039c7e13b46b3b2c06","unresolved":false,"context_lines":[{"line_number":268,"context_line":"        for router_id in router_ids:"},{"line_number":269,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":270,"context_line":"            if is_distributed_router(router):"},{"line_number":271,"context_line":"                port_id \u003d floatingip[\u0027port_id\u0027] or old_floatingip[\u0027port_id\u0027]"},{"line_number":272,"context_line":"                port \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":273,"context_line":"                port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":274,"context_line":"                hosts.append(port_host_id)"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_0dac3834","line":271,"updated":"2015-09-09 06:44:33.000000000","message":"if a floatip update from one port to another, and these two port on different host, we should notify these two hosts","commit_id":"c92887b0fd3550e9933025b86dcabf1b2fc3aa77"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"f2a0e311796b09c005a378759e28119a2abc463e","unresolved":false,"context_lines":[{"line_number":274,"context_line":"                hosts.append(port_host_id)"},{"line_number":275,"context_line":"            else:"},{"line_number":276,"context_line":"                cur_agents \u003d l3_plugin.get_l3_agents_hosting_routers("},{"line_number":277,"context_line":"                    context, router_id)"},{"line_number":278,"context_line":"                hosts.append(cur_agents)"},{"line_number":279,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":280,"context_line":"              self).update_floatingips(context, floatingip, router_ids, hosts)"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_a3b75cf4","line":277,"updated":"2015-09-09 08:09:36.000000000","message":"I have a problem. There is an error in \"\n\n    l3_plugin.get_l3_agents_hosting_routers\n\n\" when I run unit test \"neutron.tests.unit.extensions.test_l3.L3NatDBSepTestCase.test_floatingip_update\".\n\nThe error is \"AttributeError: \u0027TestL3NatServicePlugin\u0027 object has no attribute \u0027get_l3_agents_hosting_routers\u0027\". The param \"l3_plugin\" is a service plugin by using\n\n        l3_plugin \u003d manager.NeutronManager.get_service_plugins().get(\t\n            constants.L3_ROUTER_NAT)\n\n. Why the code is ok  in function _check_dvr_router_remove_required_and_notify_agent?\n\nWhy the code is not okay in my code? Could someone give me some advice?","commit_id":"c92887b0fd3550e9933025b86dcabf1b2fc3aa77"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"297919a7751369e1ca3b90ade1f4ee4b2eed1f9a","unresolved":false,"context_lines":[{"line_number":277,"context_line":"        for router_id in router_ids:"},{"line_number":278,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":279,"context_line":"            if is_distributed_router(router):"},{"line_number":280,"context_line":"                port_id \u003d floatingip[\u0027port_id\u0027] or old_floatingip[\u0027port_id\u0027]"},{"line_number":281,"context_line":"                port \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":282,"context_line":"                port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":283,"context_line":"                agent_filters \u003d {\u0027host\u0027: [port_host_id]}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_e1b2d148","line":280,"updated":"2015-09-11 06:23:28.000000000","message":"please see my comments on patch set 18, you need consider update floatingIP from one fixex port to another which are not on the same compute nodes","commit_id":"6bd85f57f9d4b0fe6b55ac0a8dbbaaa02c85e496"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"b19477f6f77bfe03378db600af0b58ab2e0bdc84","unresolved":false,"context_lines":[{"line_number":257,"context_line":"        super(L3_NAT_with_dvr_db_mixin,"},{"line_number":258,"context_line":"              self).delete_floatingip(context, id)"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":261,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip("},{"line_number":262,"context_line":"            context, id, floatingip)"},{"line_number":263,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":33,"id":"ba15a1d1_8af92d50","line":260,"updated":"2015-09-14 04:03:51.000000000","message":"this code looks ok now :)","commit_id":"3e5c6b9474a1fbe00b4e77b78052ec61882d109a"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"9b63c27f27d44f81578160795660b00e87159bca","unresolved":false,"context_lines":[{"line_number":301,"context_line":"            else:"},{"line_number":302,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":303,"context_line":"                if l3_agents:"},{"line_number":304,"context_line":"                    hosts.append(l3_agents[0])"},{"line_number":305,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":306,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"},{"line_number":307,"context_line":"                                       \u0027routers_updated\u0027, hosts)"}],"source_content_type":"text/x-python","patch_set":37,"id":"ba15a1d1_664ce270","line":304,"updated":"2015-09-15 06:38:32.000000000","message":"why are you only notifying the first agent that comes back from get_l3_agents? The floating IP could be on any l3 agent.","commit_id":"60f5b692ca2b08da7d290adeed86e19cce519045"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"644dbb16bf4ed9b0bd71ee4e20f977b9b8ddfcce","unresolved":false,"context_lines":[{"line_number":301,"context_line":"            else:"},{"line_number":302,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":303,"context_line":"                if l3_agents:"},{"line_number":304,"context_line":"                    hosts.append(l3_agents[0])"},{"line_number":305,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":306,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"},{"line_number":307,"context_line":"                                       \u0027routers_updated\u0027, hosts)"}],"source_content_type":"text/x-python","patch_set":37,"id":"ba15a1d1_c6fe0e38","line":304,"in_reply_to":"ba15a1d1_664ce270","updated":"2015-09-15 06:53:36.000000000","message":"Done","commit_id":"60f5b692ca2b08da7d290adeed86e19cce519045"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":264,"context_line":"            [old_floatingip, floatingip])"},{"line_number":265,"context_line":"        l3_plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":266,"context_line":"            constants.L3_ROUTER_NAT)"},{"line_number":267,"context_line":"        if (not n_utils.is_extension_supported("},{"line_number":268,"context_line":"                l3_plugin,"},{"line_number":269,"context_line":"                l3_const.L3_AGENT_SCHEDULER_EXT_ALIAS) or"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_3a1359ba","line":266,"updated":"2015-09-15 08:39:14.000000000","message":"Is there any case where l3_plugin can be different by self?","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":269,"context_line":"                l3_const.L3_AGENT_SCHEDULER_EXT_ALIAS) or"},{"line_number":270,"context_line":"            l3_plugin.router_scheduler is None):"},{"line_number":271,"context_line":"            # that might mean that we are dealing with non-agent-based"},{"line_number":272,"context_line":"            # implementation of l3 services"},{"line_number":273,"context_line":"            return floatingip"},{"line_number":274,"context_line":"        hosts \u003d []"},{"line_number":275,"context_line":"        for router_id in router_ids:"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_da69fd26","line":272,"updated":"2015-09-15 08:39:14.000000000","message":"thanks for the effort on the matter.\nI\u0027d still completely separate management and control plane, but that was a song nobody wanted to listen.","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":281,"context_line":"                    port_ids.append(floatingip[\u0027port_id\u0027])"},{"line_number":282,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":283,"context_line":"                else:"},{"line_number":284,"context_line":"                    port_id \u003d floatingip[\u0027port_id\u0027] or\\"},{"line_number":285,"context_line":"                        old_floatingip[\u0027port_id\u0027]"},{"line_number":286,"context_line":"                    port_ids.append(port_id)"},{"line_number":287,"context_line":"                for port_id in port_ids:"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_9a4aa5ab","line":284,"updated":"2015-09-15 08:39:14.000000000","message":"I\u0027m ok with backslashes, but the general style here is to wrap multi-line statement with parentheses","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2134cc8e30aba97e3afc46f7a1eaf9c5f6f2fc57","unresolved":false,"context_lines":[{"line_number":281,"context_line":"                    port_ids.append(floatingip[\u0027port_id\u0027])"},{"line_number":282,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":283,"context_line":"                else:"},{"line_number":284,"context_line":"                    port_id \u003d floatingip[\u0027port_id\u0027] or\\"},{"line_number":285,"context_line":"                        old_floatingip[\u0027port_id\u0027]"},{"line_number":286,"context_line":"                    port_ids.append(port_id)"},{"line_number":287,"context_line":"                for port_id in port_ids:"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_e85e4d11","line":284,"in_reply_to":"ba15a1d1_381b571d","updated":"2015-09-16 04:02:41.000000000","message":"Done","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"227bd1eca91ec14ccd82aadd4b87b5dd5a6e9d73","unresolved":false,"context_lines":[{"line_number":281,"context_line":"                    port_ids.append(floatingip[\u0027port_id\u0027])"},{"line_number":282,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":283,"context_line":"                else:"},{"line_number":284,"context_line":"                    port_id \u003d floatingip[\u0027port_id\u0027] or\\"},{"line_number":285,"context_line":"                        old_floatingip[\u0027port_id\u0027]"},{"line_number":286,"context_line":"                    port_ids.append(port_id)"},{"line_number":287,"context_line":"                for port_id in port_ids:"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_381b571d","line":284,"in_reply_to":"ba15a1d1_9a4aa5ab","updated":"2015-09-15 12:41:50.000000000","message":"+1","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2134cc8e30aba97e3afc46f7a1eaf9c5f6f2fc57","unresolved":false,"context_lines":[{"line_number":281,"context_line":"                    port_ids.append(floatingip[\u0027port_id\u0027])"},{"line_number":282,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":283,"context_line":"                else:"},{"line_number":284,"context_line":"                    port_id \u003d floatingip[\u0027port_id\u0027] or\\"},{"line_number":285,"context_line":"                        old_floatingip[\u0027port_id\u0027]"},{"line_number":286,"context_line":"                    port_ids.append(port_id)"},{"line_number":287,"context_line":"                for port_id in port_ids:"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_c86349db","line":284,"in_reply_to":"ba15a1d1_9a4aa5ab","updated":"2015-09-16 04:02:41.000000000","message":"Done","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":283,"context_line":"                else:"},{"line_number":284,"context_line":"                    port_id \u003d floatingip[\u0027port_id\u0027] or\\"},{"line_number":285,"context_line":"                        old_floatingip[\u0027port_id\u0027]"},{"line_number":286,"context_line":"                    port_ids.append(port_id)"},{"line_number":287,"context_line":"                for port_id in port_ids:"},{"line_number":288,"context_line":"                    try:"},{"line_number":289,"context_line":"                        port \u003d self._core_plugin.get_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_daac9d37","line":286,"updated":"2015-09-15 08:39:14.000000000","message":"if floatingip[\u0027port_id\u0027] or old_floatingip[\u0027port_id\u0027]:\n   port_ids.append(floatingip[\u0027port_id\u0027])\nif floatingip[\u0027port_id\u0027] and old_floatingip[\u0027port_id\u0027]:\n   port_ids.append(old_floatingip[\u0027port_id\u0027])\n\nSeems a bit easier tor read, but it\u0027s your call","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":290,"context_line":"                        port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":291,"context_line":"                        agent_filters \u003d {\u0027host\u0027: [port_host_id]}"},{"line_number":292,"context_line":"                        l3_agents \u003d l3_plugin.get_l3_agents(context,"},{"line_number":293,"context_line":"                                                       filters\u003dagent_filters)"},{"line_number":294,"context_line":"                        if l3_agents:"},{"line_number":295,"context_line":"                            hosts +\u003d l3_agents"},{"line_number":296,"context_line":"                    except exceptions.PortNotFound:"}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_da5a5d50","line":293,"updated":"2015-09-15 08:39:14.000000000","message":"I think you can easily rearrange this method so that get_l3_agents is called only once","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb583755766b02c2deb21185de8f9d66dbde347","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                        l3_agents \u003d l3_plugin.get_l3_agents(context,"},{"line_number":293,"context_line":"                                                       filters\u003dagent_filters)"},{"line_number":294,"context_line":"                        if l3_agents:"},{"line_number":295,"context_line":"                            hosts +\u003d l3_agents"},{"line_number":296,"context_line":"                    except exceptions.PortNotFound:"},{"line_number":297,"context_line":"                        LOG.debug(\"Port %(port)s not found while updating \""},{"line_number":298,"context_line":"                                  \"floatingip binding for router %(router)s.\","}],"source_content_type":"text/x-python","patch_set":38,"id":"ba15a1d1_fa440175","line":295,"updated":"2015-09-15 08:39:14.000000000","message":"it seems you can\u0027t end up adding the same agent twice, so it should be ok to use a list - otherwise switch to a set","commit_id":"da73d3a2243afb8bee025a2dfc5daf048e120711"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":236,"context_line":"                            vm_hostid))"},{"line_number":237,"context_line":"                    LOG.debug(\"FIP Agent gateway port: %s\", fip_agent_port)"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":240,"context_line":"        old_floatingip, floatingip \u003d super(L3_NAT_with_dvr_db_mixin,"},{"line_number":241,"context_line":"            self)._update_floatingip(context, id, floatingip)"},{"line_number":242,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_76ee62ee","line":239,"updated":"2015-09-23 23:09:21.000000000","message":"By removing this method from L3_NAT_db_mixin and implementing both the DVR and non-DVR in this file, it kind of ignores the separation that the original authors were going for when they used multiple classes to implement them in the first place.  If we\u0027re not going to maintain separation, why not just flatten all of the classes?","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":237,"context_line":"                    LOG.debug(\"FIP Agent gateway port: %s\", fip_agent_port)"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":240,"context_line":"        old_floatingip, floatingip \u003d super(L3_NAT_with_dvr_db_mixin,"},{"line_number":241,"context_line":"            self)._update_floatingip(context, id, floatingip)"},{"line_number":242,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("},{"line_number":243,"context_line":"            [old_floatingip, floatingip])"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_56d6be4f","line":240,"updated":"2015-09-23 23:09:21.000000000","message":"Should this call to super be just self._update_floatingip for the same reason as in my other comment?","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":250,"context_line":"            # that might mean that we are dealing with non-agent-based"},{"line_number":251,"context_line":"            # implementation of l3 services"},{"line_number":252,"context_line":"            return floatingip"},{"line_number":253,"context_line":"        hosts \u003d []"},{"line_number":254,"context_line":"        l3_agents \u003d []"},{"line_number":255,"context_line":"        for router_id in router_ids:"},{"line_number":256,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_76aae272","line":253,"updated":"2015-09-23 23:09:21.000000000","message":"Should this be a set?","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":251,"context_line":"            # implementation of l3 services"},{"line_number":252,"context_line":"            return floatingip"},{"line_number":253,"context_line":"        hosts \u003d []"},{"line_number":254,"context_line":"        l3_agents \u003d []"},{"line_number":255,"context_line":"        for router_id in router_ids:"},{"line_number":256,"context_line":"            try:"},{"line_number":257,"context_line":"                router \u003d self._get_router(context, router_id)"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_b6a4faa5","line":254,"updated":"2015-09-23 23:09:21.000000000","message":"Do you mean to initialize this here outside of the loop?  It looks like it is meant to be assigned fresh each time through the loop.  You could initialize it on L256.","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4440d5d519e6a683c1389ace32b82fbb95fd46d7","unresolved":false,"context_lines":[{"line_number":251,"context_line":"            # implementation of l3 services"},{"line_number":252,"context_line":"            return floatingip"},{"line_number":253,"context_line":"        hosts \u003d []"},{"line_number":254,"context_line":"        l3_agents \u003d []"},{"line_number":255,"context_line":"        for router_id in router_ids:"},{"line_number":256,"context_line":"            try:"},{"line_number":257,"context_line":"                router \u003d self._get_router(context, router_id)"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_25066ece","line":254,"in_reply_to":"ba15a1d1_b6a4faa5","updated":"2015-09-24 02:51:09.000000000","message":"ok","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":269,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":270,"context_line":"                for port_id in port_ids:"},{"line_number":271,"context_line":"                    try:"},{"line_number":272,"context_line":"                        port \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":273,"context_line":"                        port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":274,"context_line":"                        agent_filters \u003d {\u0027host\u0027: [port_host_id]}"},{"line_number":275,"context_line":"                        l3_agents \u003d l3_plugin.get_l3_agents(context,"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_b6f95a82","line":272,"updated":"2015-09-23 23:09:21.000000000","message":"Is there a call to get all of the ports in one shot?  It would perform better.","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4440d5d519e6a683c1389ace32b82fbb95fd46d7","unresolved":false,"context_lines":[{"line_number":269,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":270,"context_line":"                for port_id in port_ids:"},{"line_number":271,"context_line":"                    try:"},{"line_number":272,"context_line":"                        port \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":273,"context_line":"                        port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":274,"context_line":"                        agent_filters \u003d {\u0027host\u0027: [port_host_id]}"},{"line_number":275,"context_line":"                        l3_agents \u003d l3_plugin.get_l3_agents(context,"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_e522b653","line":272,"in_reply_to":"ba15a1d1_b6f95a82","updated":"2015-09-24 02:51:09.000000000","message":"hmmm.. What get all of the ports in one shot? I think it should be get port by port_id from db.","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":272,"context_line":"                        port \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":273,"context_line":"                        port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":274,"context_line":"                        agent_filters \u003d {\u0027host\u0027: [port_host_id]}"},{"line_number":275,"context_line":"                        l3_agents \u003d l3_plugin.get_l3_agents(context,"},{"line_number":276,"context_line":"                                                       filters\u003dagent_filters)"},{"line_number":277,"context_line":"                    except n_exc.PortNotFound:"},{"line_number":278,"context_line":"                        LOG.debug(\"Port %(port)s not found while updating \""}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_f6acb289","line":275,"updated":"2015-09-23 23:09:21.000000000","message":"l3_agents gets overwritten each time through the loop.  Is this what you mean to do?  After the loop, it will contain only the values from the last time through the loop throwing away the other values.","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":273,"context_line":"                        port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":274,"context_line":"                        agent_filters \u003d {\u0027host\u0027: [port_host_id]}"},{"line_number":275,"context_line":"                        l3_agents \u003d l3_plugin.get_l3_agents(context,"},{"line_number":276,"context_line":"                                                       filters\u003dagent_filters)"},{"line_number":277,"context_line":"                    except n_exc.PortNotFound:"},{"line_number":278,"context_line":"                        LOG.debug(\"Port %(port)s not found while updating \""},{"line_number":279,"context_line":"                                  \"floatingip binding for router %(router)s.\","}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_56cd5e2f","line":276,"updated":"2015-09-23 23:09:21.000000000","message":"Could we do a single call to get_l3_agents by collecting the port_host_ids and sending them all (both) in one shot?","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":281,"context_line":"            # Non DVR mode"},{"line_number":282,"context_line":"            else:"},{"line_number":283,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":284,"context_line":"            if l3_agents:"},{"line_number":285,"context_line":"                hosts +\u003d l3_agents"},{"line_number":286,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":287,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_d66bae1c","line":284,"updated":"2015-09-23 23:09:21.000000000","message":"nit:  You may not need to bother checking \"if l3_agents\"","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4440d5d519e6a683c1389ace32b82fbb95fd46d7","unresolved":false,"context_lines":[{"line_number":281,"context_line":"            # Non DVR mode"},{"line_number":282,"context_line":"            else:"},{"line_number":283,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":284,"context_line":"            if l3_agents:"},{"line_number":285,"context_line":"                hosts +\u003d l3_agents"},{"line_number":286,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":287,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_25a2eeae","line":284,"in_reply_to":"ba15a1d1_d66bae1c","updated":"2015-09-24 02:51:09.000000000","message":"ok. I will remove it in next patch.","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"93b377408de21cf1b1ee836b9f59ddec6f8db2c9","unresolved":false,"context_lines":[{"line_number":282,"context_line":"            else:"},{"line_number":283,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":284,"context_line":"            if l3_agents:"},{"line_number":285,"context_line":"                hosts +\u003d l3_agents"},{"line_number":286,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":287,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"},{"line_number":288,"context_line":"                                       \u0027routers_updated\u0027, hosts)"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_3696aaf0","line":285,"updated":"2015-09-23 23:09:21.000000000","message":"How about you get rid of the l3_agents local variable altogether (e.g. just call \"hosts +\u003d l3_plugin.get_l3_agents(context)\") and rename the \"hosts\" local variable to \"l3_agents\".","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4440d5d519e6a683c1389ace32b82fbb95fd46d7","unresolved":false,"context_lines":[{"line_number":282,"context_line":"            else:"},{"line_number":283,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":284,"context_line":"            if l3_agents:"},{"line_number":285,"context_line":"                hosts +\u003d l3_agents"},{"line_number":286,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":287,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"},{"line_number":288,"context_line":"                                       \u0027routers_updated\u0027, hosts)"}],"source_content_type":"text/x-python","patch_set":47,"id":"ba15a1d1_305f8ae6","line":285,"in_reply_to":"ba15a1d1_3696aaf0","updated":"2015-09-24 02:51:09.000000000","message":"In DVR mode, we get l3_agents by this:\n\n    l3_plugin.get_l3_agents(context,filters\u003dagent_filters)\n\nIn non DVR mode, we get l3_agents by this:\n\n    l3_plugin.get_l3_agents(context)\n\n\nIs it right?","commit_id":"a672ed822ff4009bb1e63764819d3999dda10097"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"97dfbf75ddd5dfd7d101cccdb4d36df7274d19de","unresolved":false,"context_lines":[{"line_number":251,"context_line":"            # implementation of l3 services"},{"line_number":252,"context_line":"            return floatingip"},{"line_number":253,"context_line":"        hosts \u003d []"},{"line_number":254,"context_line":"        for router_id in router_ids:"},{"line_number":255,"context_line":"            try:"},{"line_number":256,"context_line":"                router \u003d self._get_router(context, router_id)"},{"line_number":257,"context_line":"            except l3.RouterNotFound:"}],"source_content_type":"text/x-python","patch_set":48,"id":"9a1a9d01_ef3f9cd4","line":254,"updated":"2015-09-24 18:08:37.000000000","message":"You should initialize l3_agents here.  Sorry if that wasn\u0027t clear in my other review.","commit_id":"5b11fe1f096ca74a736ba1ba0422c5a49dc7e9b3"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"2cb0637435974e7c5cb61c5e5c69100fe8de15ac","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            # Non DVR mode"},{"line_number":281,"context_line":"            else:"},{"line_number":282,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":283,"context_line":"            hosts +\u003d l3_agents"},{"line_number":284,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":285,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"},{"line_number":286,"context_line":"                                       \u0027routers_updated\u0027, hosts)"}],"source_content_type":"text/x-python","patch_set":48,"id":"9a1a9d01_a079bb31","line":283,"updated":"2015-09-24 15:58:15.000000000","message":"You are assigning l3_agent in L283, which is outside the else loop.\nSo if  distributed routers, this would generate an error assigning a variable without initialization.","commit_id":"5b11fe1f096ca74a736ba1ba0422c5a49dc7e9b3"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"e7e3f39eee83e0b5aa231c75406dcf6b02acd977","unresolved":false,"context_lines":[{"line_number":280,"context_line":"                                  {\"port\": port_id, \"router\": router_id})"},{"line_number":281,"context_line":"            # Non DVR mode"},{"line_number":282,"context_line":"            else:"},{"line_number":283,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":284,"context_line":"            hosts +\u003d l3_agents"},{"line_number":285,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":286,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a1a9d01_53ffee66","line":283,"updated":"2015-09-28 15:50:20.000000000","message":"Wouldn\u0027t this return ALL L3_agents? Aren\u0027t you only interested in the L3 agent(s) hosting the router?","commit_id":"d95c58b5989582e719b7e68b91dd5992eab838d6"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"cec86064625eb7f2325f439f99d3fa63af63c5e8","unresolved":false,"context_lines":[{"line_number":280,"context_line":"                                  {\"port\": port_id, \"router\": router_id})"},{"line_number":281,"context_line":"            # Non DVR mode"},{"line_number":282,"context_line":"            else:"},{"line_number":283,"context_line":"                l3_agents \u003d l3_plugin.get_l3_agents(context)"},{"line_number":284,"context_line":"            hosts +\u003d l3_agents"},{"line_number":285,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":286,"context_line":"              self).update_floatingips(context, floatingip, router_ids,"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a1a9d01_3c12350a","line":283,"in_reply_to":"9a1a9d01_53ffee66","updated":"2015-09-29 01:06:00.000000000","message":"Thx for Muller, I think there should be like this:\n\n    l3_agents\u003dplugin.get_l3_agents_hosting_routers(context,[router_id])\n\nright?","commit_id":"d95c58b5989582e719b7e68b91dd5992eab838d6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c15f00b420a9d0b2ed3e4083566c6fa9bd1dbe0","unresolved":false,"context_lines":[{"line_number":236,"context_line":"                            vm_hostid))"},{"line_number":237,"context_line":"                    LOG.debug(\"FIP Agent gateway port: %s\", fip_agent_port)"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def update_floatingip(self, context, id, floatingip):"},{"line_number":240,"context_line":"        old_floatingip, floatingip \u003d self._update_floatingip(context,"},{"line_number":241,"context_line":"            id, floatingip)"},{"line_number":242,"context_line":"        router_ids \u003d self._floatingips_to_router_ids("}],"source_content_type":"text/x-python","patch_set":50,"id":"9a1a9d01_de56ffcd","line":239,"updated":"2015-10-01 20:02:08.000000000","message":"I think that this patch changes code in places it has no business changing. You can keep l3_db as it is, but keep the new RPC notifier method you implemented. Then here you get the router and check if it\u0027s distributed. If it isn\u0027t, then you just return super(..., self).update_floatingip. If it is distributed, then you get the agents that need to be notified, and call your new RPC notifier method. I think that this approach is more correct from a testing point of view, because it only changes the code flow for DVR routers, you only have to test for that because we know that legacy and HA routers won\u0027t be affected by this patch.\n\nTesting wise, apart from my comment in line 265, you can add a functional test under neutron/tests/functional/services/l3_router/test_l3_dvr_router_plugin. Check out how test_agent_gw_port_delete_when_last_gateway_for_ext_net_removed sets up its resource. For this test, you\u0027ll need to create an internal net/subnet, external net/subnet, create a distributed router, attach it to internal/external. Create a port, make sure you have more than a single L3 agent registered (helpers.register_l3_agent(agent_mode\u003d...)), then attach a floating IP to that port. Mock out only the RPC notifier method in l3_rpc_agent_api and assert that it was called with the correct hosts.","commit_id":"43c5044c6d99955b2fc8c0107001a7bb8bd68241"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c15f00b420a9d0b2ed3e4083566c6fa9bd1dbe0","unresolved":false,"context_lines":[{"line_number":262,"context_line":"                break"},{"line_number":263,"context_line":"            # DVR mode"},{"line_number":264,"context_line":"            if is_distributed_router(router):"},{"line_number":265,"context_line":"                port_ids \u003d []"},{"line_number":266,"context_line":"                if floatingip[\u0027port_id\u0027] or old_floatingip[\u0027port_id\u0027]:"},{"line_number":267,"context_line":"                    port_ids.append(floatingip[\u0027port_id\u0027])"},{"line_number":268,"context_line":"                if floatingip[\u0027port_id\u0027] and old_floatingip[\u0027port_id\u0027]:"}],"source_content_type":"text/x-python","patch_set":50,"id":"9a1a9d01_de07df16","line":265,"updated":"2015-10-01 20:02:08.000000000","message":"Lines 265 to 280 should be encapsulated in a method that accepts a floating IP and returns the agents hosting that floating IP. It should be implemented in this file and targeted by a dedicated functional test in neutron/tests/functional/services/l3_router/l3_dvr_router_plugin. It will have a similar setup to the functional test I recommended in the comment above.","commit_id":"43c5044c6d99955b2fc8c0107001a7bb8bd68241"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c15f00b420a9d0b2ed3e4083566c6fa9bd1dbe0","unresolved":false,"context_lines":[{"line_number":268,"context_line":"                if floatingip[\u0027port_id\u0027] and old_floatingip[\u0027port_id\u0027]:"},{"line_number":269,"context_line":"                    port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":270,"context_line":"                for port_id in port_ids:"},{"line_number":271,"context_line":"                    try:"},{"line_number":272,"context_line":"                        port \u003d self._core_plugin.get_port(context, port_id)"},{"line_number":273,"context_line":"                        port_host_id \u003d port.get(\u0027binding:host_id\u0027, None)"},{"line_number":274,"context_line":"                        agent_filters \u003d {\u0027host\u0027: [port_host_id]}"}],"source_content_type":"text/x-python","patch_set":50,"id":"9a1a9d01_0348a486","line":271,"updated":"2015-10-01 20:02:08.000000000","message":"Only the get_port call should be in this try block.","commit_id":"43c5044c6d99955b2fc8c0107001a7bb8bd68241"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":236,"context_line":"                            vm_hostid))"},{"line_number":237,"context_line":"                    LOG.debug(\"FIP Agent gateway port: %s\", fip_agent_port)"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def agent_listing_in_dvr(self, context, l3_plugin,"},{"line_number":240,"context_line":"        old_floatingip, new_floatingip):"},{"line_number":241,"context_line":"        port_ids \u003d []"},{"line_number":242,"context_line":"        l3_agents \u003d []"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_274001a5","line":239,"updated":"2015-10-05 10:22:41.000000000","message":"why need l3_plugin as a parameter?","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        old_floatingip, new_floatingip):"},{"line_number":241,"context_line":"        port_ids \u003d []"},{"line_number":242,"context_line":"        l3_agents \u003d []"},{"line_number":243,"context_line":"        if new_floatingip[\u0027port_id\u0027] is None and\\"},{"line_number":244,"context_line":"            old_floatingip[\u0027port_id\u0027]:"},{"line_number":245,"context_line":"            port_ids.append(old_floatingip[\u0027port_id\u0027])"},{"line_number":246,"context_line":"        if new_floatingip[\u0027port_id\u0027] and\\"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_27d24101","line":243,"updated":"2015-10-05 10:22:41.000000000","message":"nit: please use () instead of \\","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":283,"context_line":"                              \"Just ingore this router. \"),"},{"line_number":284,"context_line":"                          {\"router_id\": router_id})"},{"line_number":285,"context_line":"                break"},{"line_number":286,"context_line":"            # Non DVR mode"},{"line_number":287,"context_line":"            if not is_distributed_router(router):"},{"line_number":288,"context_line":"                return super(L3_NAT_with_dvr_db_mixin,"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_a7c73111","line":285,"updated":"2015-10-05 10:22:41.000000000","message":"break -\u003e continue?","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":286,"context_line":"            # Non DVR mode"},{"line_number":287,"context_line":"            if not is_distributed_router(router):"},{"line_number":288,"context_line":"                return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":289,"context_line":"                    self).update_floatingip(context, id, floatingip)"},{"line_number":290,"context_line":"            # DVR mode"},{"line_number":291,"context_line":"            else:"},{"line_number":292,"context_line":"                l3_agents \u003d self.agent_listing_in_dvr(context, l3_plugin,"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_a7ee5189","line":289,"updated":"2015-10-05 10:22:41.000000000","message":"this will call self._update_floatingip one more time (already called at # 265)","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"16365f916eecdccbbc857f8f0fc8071f26545ec9","unresolved":false,"context_lines":[{"line_number":289,"context_line":"                    self).update_floatingip(context, id, floatingip)"},{"line_number":290,"context_line":"            # DVR mode"},{"line_number":291,"context_line":"            else:"},{"line_number":292,"context_line":"                l3_agents \u003d self.agent_listing_in_dvr(context, l3_plugin,"},{"line_number":293,"context_line":"                    old_floatingip, new_floatingip)"},{"line_number":294,"context_line":"        return super(L3_NAT_with_dvr_db_mixin,"},{"line_number":295,"context_line":"              self).update_floatingips(context,"}],"source_content_type":"text/x-python","patch_set":53,"id":"9a1a9d01_a7bc116d","line":292,"updated":"2015-10-05 10:22:41.000000000","message":"this will override l3_agents from previous iteration","commit_id":"642a11392b71d400e7054dfa24c05bb13ab2700e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"398857c67eb0293ce41b4c495e60401bfadb549a","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_d3712baa","line":699,"updated":"2015-10-12 08:46:48.000000000","message":"What case is handled here? Is it some race condition? I think we shouldn\u0027t log at error level here.","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2690d5019b6d617b12ad66fcce016f3519be7011","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"5a2ca52d_a93080e9","line":699,"in_reply_to":"5a2ca52d_a69bcf71","updated":"2015-10-14 15:03:00.000000000","message":"Thanks for your reply. There is no \"bug number\" for the above grenade failure","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"ae9a11f420b700bf5354882542e96e24e3c24b0d","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_d44d5fc5","line":699,"in_reply_to":"7a2fa921_745b442f","updated":"2015-10-13 09:34:14.000000000","message":"hm.. How do I modify the code?","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"81c8e51771f83d4154f39ab90797504967d709ed","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_decfe727","line":699,"in_reply_to":"7a2fa921_9395e889","updated":"2015-10-12 13:58:04.000000000","message":"ah, I didn\u0027t dig into grenade job failures as I thought it failed due to known bug.. So I guess we\u0027re handling a race condition here and Debug level should be ok IMO","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"611ae4a9d7890647b033e55d70eb97f596e2aa57","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_c7cdde5e","line":699,"in_reply_to":"7a2fa921_b6557dfb","updated":"2015-10-12 11:52:15.000000000","message":"It didn\u0027t fail in PS 59 with no exception handler. Anyway I\u0027m wondering what use case (issue) is handled here?","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"dfef5618d9f44e3b117d88376ae8e121c75f4070","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_9395e889","line":699,"in_reply_to":"7a2fa921_c7cdde5e","updated":"2015-10-12 13:23:15.000000000","message":"http://logs.openstack.org/36/215136/59/check/gate-grenade-dsvm-neutron/e73f470/logs/new/screen-n-api.txt.gz?level\u003dERROR\n\nyou can see this.","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"f96ea3bed20144c55936c055e6e5274223c7fbec","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_b6557dfb","line":699,"in_reply_to":"7a2fa921_d3712baa","updated":"2015-10-12 09:18:30.000000000","message":"There will be \"Router xxx not found\" If there is no exception handle in the Jenkins check.\n\nDoes we should log at warn level?","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0672748ba548d53d2ad59fab842a2ffd07b3b6c7","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"5a2ca52d_a69bcf71","line":699,"in_reply_to":"7a2fa921_d44d5fc5","updated":"2015-10-14 14:50:39.000000000","message":"I would propose the following way (modulo indentation):\n\nexcept l3.RouterNotFound:\n\n# TODO(\u003cyour handle\u003e): this is present to avoid grenade failing on a race condition (\u003cbug number\u003e).  Can be removed when underlying race condition is cleaned up\n\nLOG.debug(\"Router %(router_id)s not found. \"...)\n\nwhere \u003cbug number\u003e is the bug number for the above grenade failure and ... is the rest of the line.","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"6d2244ccc8909238c6f9fe1358883f482cc0458f","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        try:"},{"line_number":697,"context_line":"            router \u003d self._get_router(context, router_id)"},{"line_number":698,"context_line":"        except l3.RouterNotFound:"},{"line_number":699,"context_line":"            LOG.error(_LE(\"Router %(router_id)s not found. \""},{"line_number":700,"context_line":"                          \"Just ingore this router. \"),"},{"line_number":701,"context_line":"                      {\"router_id\": router_id})"},{"line_number":702,"context_line":"            return floating_ip"}],"source_content_type":"text/x-python","patch_set":62,"id":"7a2fa921_745b442f","line":699,"in_reply_to":"7a2fa921_decfe727","updated":"2015-10-12 19:52:31.000000000","message":"It would make me more comfortable to include a TODO comment about cleaning up the race condition this is masking","commit_id":"8d2bf84c3aaaf6bebd2a4dcc9d6acaedf1c8ef16"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0a72bc004ede747dabfa6f41ca099105929e9ec5","unresolved":false,"context_lines":[{"line_number":702,"context_line":"            LOG.debug(\"Router %(router_id)s not found. \""},{"line_number":703,"context_line":"                      \"Just ingore this router. \","},{"line_number":704,"context_line":"                      {\"router_id\": router_id})"},{"line_number":705,"context_line":"            return floating_ip"},{"line_number":706,"context_line":"        # we need to notify agents only in case Floating IP is associated"},{"line_number":707,"context_line":"        fixed_port_id \u003d floating_ip[\u0027port_id\u0027]"},{"line_number":708,"context_line":"        if fixed_port_id:"}],"source_content_type":"text/x-python","patch_set":64,"id":"5a2ca52d_b23e5289","line":705,"updated":"2015-10-16 09:09:17.000000000","message":"no need to return floating_ip","commit_id":"bdf22d5de038b2bced5516ecdf22627b97c2671a"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5580479ab9fd202411e23a1c3eb7fc82ebcac77f","unresolved":false,"context_lines":[{"line_number":701,"context_line":"            # race condition is cleaned up."},{"line_number":702,"context_line":"            LOG.debug(\"Router %(router_id)s not found. \""},{"line_number":703,"context_line":"                      \"Just ingore this router. \","},{"line_number":704,"context_line":"                      {\"router_id\": router_id})"},{"line_number":705,"context_line":"            return"},{"line_number":706,"context_line":"        # we need to notify agents only in case Floating IP is associated"},{"line_number":707,"context_line":"        fixed_port_id \u003d floating_ip[\u0027port_id\u0027]"}],"source_content_type":"text/x-python","patch_set":65,"id":"3a29b11f_6a5ff80e","line":704,"updated":"2015-10-18 11:43:18.000000000","message":"when you have one parameter you do not need a dictionary","commit_id":"52e91f48f2327b47f126893f9cb12f153380a9a6"}],"neutron/tests/unit/db/test_l3_dvr_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"a4ede979b424d7387cc621bff0e690849e1cf066","unresolved":false,"context_lines":[{"line_number":332,"context_line":"        floatingip_new \u003d floatingip_old.update({\u0027fixed_port_id\u0027: _uuid()})"},{"line_number":333,"context_line":"        result \u003d self._update_floatingip(floatingip_old,"},{"line_number":334,"context_line":"            floatingip_new)"},{"line_number":335,"context_line":"        self.assertTrue(result.called)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    def _disassociate_floatingip_setup(self, port_id\u003dNone, floatingip\u003dNone):"},{"line_number":338,"context_line":"        with mock.patch.object(self.mixin, \u0027_get_floatingip_on_port\u0027) as gf,\\"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa1b9901_839bbd16","line":335,"updated":"2015-08-26 07:58:28.000000000","message":"can you please clarify what is tested here and how is it related to the fix?","commit_id":"ca53301d0501f545a109e84992a5f962ca260c12"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"617a851987c68c598a6a12341389319a28440c46","unresolved":false,"context_lines":[{"line_number":332,"context_line":"        floatingip_new \u003d floatingip_old.update({\u0027fixed_port_id\u0027: _uuid()})"},{"line_number":333,"context_line":"        result \u003d self._update_floatingip(floatingip_old,"},{"line_number":334,"context_line":"            floatingip_new)"},{"line_number":335,"context_line":"        self.assertTrue(result.called)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    def _disassociate_floatingip_setup(self, port_id\u003dNone, floatingip\u003dNone):"},{"line_number":338,"context_line":"        with mock.patch.object(self.mixin, \u0027_get_floatingip_on_port\u0027) as gf,\\"}],"source_content_type":"text/x-python","patch_set":10,"id":"da20952f_4d5f9072","line":335,"in_reply_to":"fa1b9901_839bbd16","updated":"2015-08-27 10:45:02.000000000","message":"hmm.. sorry. i have no idea how to write this ut. could you give some advice?","commit_id":"ca53301d0501f545a109e84992a5f962ca260c12"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c15f00b420a9d0b2ed3e4083566c6fa9bd1dbe0","unresolved":false,"context_lines":[{"line_number":409,"context_line":"        self.assertIn(\u0027fip_interface\u0027,"},{"line_number":410,"context_line":"            router[l3_const.FLOATINGIP_AGENT_INTF_KEY])"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"    def test_update_floatingip_agent_with_dvr_router(self):"},{"line_number":413,"context_line":"        floatingip \u003d {"},{"line_number":414,"context_line":"            \u0027id\u0027: _uuid(),"},{"line_number":415,"context_line":"            \u0027router_id\u0027: \u0027foo_router_id\u0027,"}],"source_content_type":"text/x-python","patch_set":50,"id":"9a1a9d01_fed423be","line":412,"updated":"2015-10-01 20:02:08.000000000","message":"This test is useless, it can be removed.","commit_id":"43c5044c6d99955b2fc8c0107001a7bb8bd68241"}]}
