)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"b8ad086972759a5b8374da42d052b99210c4aef2","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Then when the port is attached to a VM, the port gets its"},{"line_number":15,"context_line":"host binding, and then the FloatingIP setup should be migrated"},{"line_number":16,"context_line":"to the Compute host and the original FloatingIP in the Network"},{"line_number":17,"context_line":"Node SNAT Namespace should be cleared."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"But the original FloatingIP setup in SNAT Namespace was not"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f79a3b5_eff1bedf","line":16,"range":{"start_line":16,"start_character":0,"end_line":16,"end_character":19},"updated":"2018-10-12 10:36:23.000000000","message":"One more thing, what if the floating IP is binded to a VM whose located host agent mode is dvr_no_external. Please confirm this.\nAnd, snat mixed compute node is also a problem, aka, floating IP is binded to this snat node (as well as compute node) VM.","commit_id":"b0c022e1144d075223a489414d1394e0d91b4363"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"f4189d0047c5f371da6ec3459ee8a7203d7d0462","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Then when the port is attached to a VM, the port gets its"},{"line_number":15,"context_line":"host binding, and then the FloatingIP setup should be migrated"},{"line_number":16,"context_line":"to the Compute host and the original FloatingIP in the Network"},{"line_number":17,"context_line":"Node SNAT Namespace should be cleared."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"But the original FloatingIP setup in SNAT Namespace was not"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f79a3b5_c0c36805","line":16,"range":{"start_line":16,"start_character":0,"end_line":16,"end_character":19},"in_reply_to":"3f79a3b5_eff1bedf","updated":"2018-10-12 17:39:15.000000000","message":"Yes if the agent is running in dvr_no_external, the port will already be bound and so there will not be an unbound-migrate tag initiated. So it will stay with the Networking node. ( But if you ask me what will happen if the Agent mode is changed after the VM has been deployed and if the agent is restarted, that would be a different use case case. In that case there will not be any port update for the VM and also in the port update the host binding might not change and so those will remain in the Networking Node. For any new VMs that are created with FIP, those will be created on the compute. If you user wants to move everything to the Compute, then they can disassociate the fip and then latter reassociate it again. So that it would migrate.\n\nHope this helps.\nI don\u0027t think all in one node will be problem here, because the agent mode is always going to be \u0027dvr_snat\u0027. So only FIP that will be created in SNAT namespace will be those that are associated with unbound ports. \nOnce the port gets a binding, then still the scheduler will tag it as unbound-migrate and so the  router-update notificiation will be sent to all dvr_snat nodes and the agent will handle it based on the \u0027get_centralized_fip_cidr_st\u0027.\nPlease let me know if you still have questions.","commit_id":"b0c022e1144d075223a489414d1394e0d91b4363"}],"neutron/agent/l3/dvr_edge_ha_router.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fde0ea4b5fc1a95a8c352369a2dc5e2f0091bb41","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                fip_cidr)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":80,"context_line":"        if self.get_ex_gw_port():"},{"line_number":81,"context_line":"            interface_name \u003d self.get_snat_external_device_interface_name("},{"line_number":82,"context_line":"                self.get_ex_gw_port())"},{"line_number":83,"context_line":"            return set(self._get_cidrs_from_keepalived(interface_name))"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_04c57090","line":80,"updated":"2018-11-13 01:37:12.000000000","message":"I would change this to:\n\nex_gw_port \u003d self.get_ex_gw_port()\nif not ex_gw_port:\n    return set()\n\n...\n\nThen you can use ex_gw_port on L82 call, making it just like the dvr_edge_router.py code.","commit_id":"fc50b4906682827c3b9f206c745cdcb1db0c45dd"}],"neutron/agent/l3/dvr_local_router.py":[{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"17e4dbfac919a52476880f3f7263e40ecec50edf","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def floating_ip_removed_dist(self, fip_cidr):"},{"line_number":171,"context_line":"        \"\"\"Remove floating IP from FIP namespace.\"\"\""},{"line_number":172,"context_line":"        centralized_fip_cidr \u003d (self.get_centralized_fip_cidr_set() if"},{"line_number":173,"context_line":"            self.get_centralized_fip_cidr_set() else set())"},{"line_number":174,"context_line":"        if fip_cidr in centralized_fip_cidr:"},{"line_number":175,"context_line":"            self.remove_centralized_floatingip(fip_cidr)"},{"line_number":176,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_61c36459","line":173,"range":{"start_line":172,"start_character":32,"end_line":173,"end_character":58},"updated":"2018-10-15 02:11:35.000000000","message":"Such one line style is not so much useful here, because if the function return data you will call that get_centralized_fip_cidr_set twice, right?","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"5345e13c5b2f8898efee83089c8ba36f0020b147","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def floating_ip_removed_dist(self, fip_cidr):"},{"line_number":171,"context_line":"        \"\"\"Remove floating IP from FIP namespace.\"\"\""},{"line_number":172,"context_line":"        centralized_fip_cidr \u003d (self.get_centralized_fip_cidr_set() if"},{"line_number":173,"context_line":"            self.get_centralized_fip_cidr_set() else set())"},{"line_number":174,"context_line":"        if fip_cidr in centralized_fip_cidr:"},{"line_number":175,"context_line":"            self.remove_centralized_floatingip(fip_cidr)"},{"line_number":176,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_336cd069","line":173,"range":{"start_line":172,"start_character":32,"end_line":173,"end_character":58},"in_reply_to":"3f79a3b5_61c36459","updated":"2018-10-15 17:21:11.000000000","message":"Sure in that case we can get the data first and then check with the variable.","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0de834f3a4d3c52720f995ce90950f01a3a9581e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self._pending_arp_set \u003d set()"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":52,"context_line":"        pass"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def migrate_centralized_floating_ip(self, fip, interface_name, device):"},{"line_number":55,"context_line":"        # Remove the centralized fip first and then add fip to the host"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_a0728817","line":52,"updated":"2018-10-17 21:33:44.000000000","message":"This could be \u0027return set()\u0027 then L173 wouldn\u0027t be needed right?","commit_id":"e46aae9dae348e330d819a89a4f228c21fb3ea47"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9e3094faaa1f665fa14e6992679a7808aedddac3","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self._pending_arp_set \u003d set()"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":52,"context_line":"        pass"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def migrate_centralized_floating_ip(self, fip, interface_name, device):"},{"line_number":55,"context_line":"        # Remove the centralized fip first and then add fip to the host"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_4d3accc5","line":52,"in_reply_to":"3f79a3b5_a0728817","updated":"2018-10-17 23:07:42.000000000","message":"I will recheck it.","commit_id":"e46aae9dae348e330d819a89a4f228c21fb3ea47"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9476920421f01c58cfc7bef19bf003b7f53cd78c","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self._pending_arp_set \u003d set()"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":52,"context_line":"        return set()"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def migrate_centralized_floating_ip(self, fip, interface_name, device):"},{"line_number":55,"context_line":"        # Remove the centralized fip first and then add fip to the host"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_5155a8bf","line":52,"updated":"2018-10-29 21:28:36.000000000","message":"Isn\u0027t the parent class of DvrRouterBase RouterInfo?  And this is now the same as that, so I\u0027m guessing this override can just go away.","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6fd306b03fb1b5bdeceaf579cb1458049df9df4c","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        self._pending_arp_set \u003d set()"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":52,"context_line":"        return set()"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def migrate_centralized_floating_ip(self, fip, interface_name, device):"},{"line_number":55,"context_line":"        # Remove the centralized fip first and then add fip to the host"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_b2c16c33","line":52,"in_reply_to":"3f79a3b5_5155a8bf","updated":"2018-10-31 19:25:28.000000000","message":"Yes the parent class is the RouterInfo. I will check it out.","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"}],"neutron/agent/l3/router_info.py":[{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"17e4dbfac919a52476880f3f7263e40ecec50edf","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        existing_cidrs \u003d self.get_router_cidrs(device)"},{"line_number":347,"context_line":"        new_cidrs \u003d set()"},{"line_number":348,"context_line":"        gw_cidrs \u003d self._get_gw_ips_cidr()"},{"line_number":349,"context_line":"        centralized_fip_cidrs \u003d (self.get_centralized_fip_cidr_set() if"},{"line_number":350,"context_line":"            self.get_centralized_fip_cidr_set else set())"},{"line_number":351,"context_line":"        floating_ips \u003d self.get_floating_ips()"},{"line_number":352,"context_line":"        # Loop once to ensure that floating ips are configured."},{"line_number":353,"context_line":"        for fip in floating_ips:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_219fac65","line":350,"range":{"start_line":349,"start_character":0,"end_line":350,"end_character":57},"updated":"2018-10-15 02:11:35.000000000","message":"ditto","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"5345e13c5b2f8898efee83089c8ba36f0020b147","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        existing_cidrs \u003d self.get_router_cidrs(device)"},{"line_number":347,"context_line":"        new_cidrs \u003d set()"},{"line_number":348,"context_line":"        gw_cidrs \u003d self._get_gw_ips_cidr()"},{"line_number":349,"context_line":"        centralized_fip_cidrs \u003d (self.get_centralized_fip_cidr_set() if"},{"line_number":350,"context_line":"            self.get_centralized_fip_cidr_set else set())"},{"line_number":351,"context_line":"        floating_ips \u003d self.get_floating_ips()"},{"line_number":352,"context_line":"        # Loop once to ensure that floating ips are configured."},{"line_number":353,"context_line":"        for fip in floating_ips:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_f38f381f","line":350,"range":{"start_line":349,"start_character":0,"end_line":350,"end_character":57},"in_reply_to":"3f79a3b5_219fac65","updated":"2018-10-15 17:21:11.000000000","message":"Sure will fix it.","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0de834f3a4d3c52720f995ce90950f01a3a9581e","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        return set([addr[\u0027cidr\u0027] for addr in device.addr.list()])"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":330,"context_line":"        pass"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"    def process_floating_ip_addresses(self, interface_name):"},{"line_number":333,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_805aec7f","line":330,"updated":"2018-10-17 21:33:44.000000000","message":"Same here, this doesn\u0027t need to change right?","commit_id":"e46aae9dae348e330d819a89a4f228c21fb3ea47"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9e3094faaa1f665fa14e6992679a7808aedddac3","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        return set([addr[\u0027cidr\u0027] for addr in device.addr.list()])"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"    def get_centralized_fip_cidr_set(self):"},{"line_number":330,"context_line":"        pass"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"    def process_floating_ip_addresses(self, interface_name):"},{"line_number":333,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_cd6fbcc5","line":330,"in_reply_to":"3f79a3b5_805aec7f","updated":"2018-10-17 23:07:42.000000000","message":"The reason was to call the get_centralized_fip_cidr_set from the dvr_snat_edge_router.\nSimilar to the other functions where it is overridden in the calling class.","commit_id":"e46aae9dae348e330d819a89a4f228c21fb3ea47"}],"neutron/db/l3_dvrscheduler_db.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0de834f3a4d3c52720f995ce90950f01a3a9581e","unresolved":false,"context_lines":[{"line_number":499,"context_line":"        # If the original_port is None, then it is a migration"},{"line_number":500,"context_line":"        # from unbound to bound."},{"line_number":501,"context_line":"        if (is_new_port_binding_changed or dest_host):"},{"line_number":502,"context_line":"            if (not original_port[portbindings.HOST_ID] and"},{"line_number":503,"context_line":"                    not original_port[\u0027device_owner\u0027]):"},{"line_number":504,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":505,"context_line":"                                                     unbound_migrate\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_20d438bc","line":502,"updated":"2018-10-17 21:33:44.000000000","message":"Are we sure None wasn\u0027t specific here?  For example, I thought it could be \u0027\u0027 ?  But maybe I\u0027m wrong.","commit_id":"e46aae9dae348e330d819a89a4f228c21fb3ea47"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9e3094faaa1f665fa14e6992679a7808aedddac3","unresolved":false,"context_lines":[{"line_number":499,"context_line":"        # If the original_port is None, then it is a migration"},{"line_number":500,"context_line":"        # from unbound to bound."},{"line_number":501,"context_line":"        if (is_new_port_binding_changed or dest_host):"},{"line_number":502,"context_line":"            if (not original_port[portbindings.HOST_ID] and"},{"line_number":503,"context_line":"                    not original_port[\u0027device_owner\u0027]):"},{"line_number":504,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":505,"context_line":"                                                     unbound_migrate\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_ad6e00c6","line":502,"in_reply_to":"3f79a3b5_20d438bc","updated":"2018-10-17 23:07:42.000000000","message":"Yes we had \u0027None\u0027 here, but checking for None was not the same as \u0027\u0027. So I have to change this.","commit_id":"e46aae9dae348e330d819a89a4f228c21fb3ea47"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"51918bd60a5565380cabc8c6d6a934718689c471","unresolved":false,"context_lines":[{"line_number":500,"context_line":"        # from unbound to bound."},{"line_number":501,"context_line":"        if (is_new_port_binding_changed or dest_host):"},{"line_number":502,"context_line":"            if (not original_port[portbindings.HOST_ID] and"},{"line_number":503,"context_line":"                    not original_port[\u0027device_owner\u0027]):"},{"line_number":504,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":505,"context_line":"                                                     unbound_migrate\u003dTrue)"},{"line_number":506,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_f37a1525","line":503,"updated":"2018-11-06 21:13:51.000000000","message":"Why do we care about checking device_owner here?","commit_id":"fc50b4906682827c3b9f206c745cdcb1db0c45dd"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"860de768cc6ce83ca51b85658a233b160d9e4223","unresolved":false,"context_lines":[{"line_number":500,"context_line":"        # from unbound to bound."},{"line_number":501,"context_line":"        if (is_new_port_binding_changed or dest_host):"},{"line_number":502,"context_line":"            if (not original_port[portbindings.HOST_ID] and"},{"line_number":503,"context_line":"                    not original_port[\u0027device_owner\u0027]):"},{"line_number":504,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":505,"context_line":"                                                     unbound_migrate\u003dTrue)"},{"line_number":506,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_fd408d35","line":503,"in_reply_to":"3f79a3b5_71fefd07","updated":"2018-11-07 18:29:32.000000000","message":"The reason is we only want to pass on the unbound_migrate\u003dTrue for service ports that have migrated from the centralized router to the distributed router, upon having a valid bound host.\nAs soon as the port is bound we would have a valid device_owner associated with the port.","commit_id":"fc50b4906682827c3b9f206c745cdcb1db0c45dd"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"1b00691fcbd3443d0c862bb504734add407cb820","unresolved":false,"context_lines":[{"line_number":500,"context_line":"        # from unbound to bound."},{"line_number":501,"context_line":"        if (is_new_port_binding_changed or dest_host):"},{"line_number":502,"context_line":"            if (not original_port[portbindings.HOST_ID] and"},{"line_number":503,"context_line":"                    not original_port[\u0027device_owner\u0027]):"},{"line_number":504,"context_line":"                l3plugin.dvr_handle_new_service_port(context, new_port,"},{"line_number":505,"context_line":"                                                     unbound_migrate\u003dTrue)"},{"line_number":506,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_71fefd07","line":503,"in_reply_to":"3f79a3b5_f37a1525","updated":"2018-11-06 23:32:39.000000000","message":"We just need to worry about the ports that have valid device_owner and migrates.","commit_id":"fc50b4906682827c3b9f206c745cdcb1db0c45dd"}],"neutron/tests/functional/agent/l3/test_dvr_router.py":[{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"17e4dbfac919a52476880f3f7263e40ecec50edf","unresolved":false,"context_lines":[{"line_number":1122,"context_line":"                self._assert_iptables_rules_exist("},{"line_number":1123,"context_line":"                    router1.snat_iptables_manager, \u0027nat\u0027, expected_rules)"},{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"    def test_floating_ip_migration_from_unbound_to_bound(self):"},{"line_number":1126,"context_line":"        \"\"\"Test to check floating ips migrate from unboun to bound host.\"\"\""},{"line_number":1127,"context_line":"        self.agent.conf.agent_mode \u003d lib_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":1128,"context_line":"        router_info \u003d self.generate_dvr_router_info("}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_41bd08d5","line":1125,"range":{"start_line":1125,"start_character":8,"end_line":1125,"end_character":56},"updated":"2018-10-15 02:11:35.000000000","message":"This test is now burning people\u0027s brain,  : - )","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"5345e13c5b2f8898efee83089c8ba36f0020b147","unresolved":false,"context_lines":[{"line_number":1122,"context_line":"                self._assert_iptables_rules_exist("},{"line_number":1123,"context_line":"                    router1.snat_iptables_manager, \u0027nat\u0027, expected_rules)"},{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"    def test_floating_ip_migration_from_unbound_to_bound(self):"},{"line_number":1126,"context_line":"        \"\"\"Test to check floating ips migrate from unboun to bound host.\"\"\""},{"line_number":1127,"context_line":"        self.agent.conf.agent_mode \u003d lib_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":1128,"context_line":"        router_info \u003d self.generate_dvr_router_info("}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_b3954033","line":1125,"range":{"start_line":1125,"start_character":8,"end_line":1125,"end_character":56},"in_reply_to":"3f79a3b5_41bd08d5","updated":"2018-10-15 17:21:11.000000000","message":"Not sure what do you mean by this. Do you want me to change the name of this test, is it not self explanatory.","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"cd9db63da0ca551e4c062504ce61d9ffa38795e7","unresolved":false,"context_lines":[{"line_number":1122,"context_line":"                self._assert_iptables_rules_exist("},{"line_number":1123,"context_line":"                    router1.snat_iptables_manager, \u0027nat\u0027, expected_rules)"},{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"    def test_floating_ip_migration_from_unbound_to_bound(self):"},{"line_number":1126,"context_line":"        \"\"\"Test to check floating ips migrate from unboun to bound host.\"\"\""},{"line_number":1127,"context_line":"        self.agent.conf.agent_mode \u003d lib_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":1128,"context_line":"        router_info \u003d self.generate_dvr_router_info("}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_b788a2c3","line":1125,"range":{"start_line":1125,"start_character":8,"end_line":1125,"end_character":56},"in_reply_to":"3f79a3b5_b3954033","updated":"2018-10-17 06:24:36.000000000","message":"I don\u0027t point to the function name here, I mean this test case is testing a lot of things and it is becoming more and more complicated.","commit_id":"15d6b7a806f217400f6043215969f38daf5063aa"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"cd9db63da0ca551e4c062504ce61d9ffa38795e7","unresolved":false,"context_lines":[{"line_number":1122,"context_line":"                self._assert_iptables_rules_exist("},{"line_number":1123,"context_line":"                    router1.snat_iptables_manager, \u0027nat\u0027, expected_rules)"},{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"    def test_floating_ip_migrate_when_unbound_port_is_bound_to_a_host(self):"},{"line_number":1126,"context_line":"        \"\"\"Test to check floating ips migrate from unbound to bound host.\"\"\""},{"line_number":1127,"context_line":"        self.agent.conf.agent_mode \u003d lib_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":1128,"context_line":"        router_info \u003d self.generate_dvr_router_info("}],"source_content_type":"text/x-python","patch_set":6,"id":"3f79a3b5_9779e6c7","line":1125,"range":{"start_line":1125,"start_character":8,"end_line":1125,"end_character":69},"updated":"2018-10-17 06:24:36.000000000","message":"Sorry maybe my late reply causing this change, does the original test purpose is to test migrate floating IP from centralized to distributed? The floating IP is binded to a port which has host, and that host is dvr_no_external mode. Then it is binded to a port whose host is dvr mode.\n\nIMO, you want to test the floating IP is binding to a port which has no host, and then that port is hosted to a dvr or dvr_no_external host. Maybe add a new case for this scenario. Correct me if I\u0027m missing something. Thanks.","commit_id":"08ab8be1406642e5582d4856f58b704e7fc94351"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"e420e61caae8ae5289e87c2222dde84bb0f4370f","unresolved":false,"context_lines":[{"line_number":1122,"context_line":"                self._assert_iptables_rules_exist("},{"line_number":1123,"context_line":"                    router1.snat_iptables_manager, \u0027nat\u0027, expected_rules)"},{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"    def test_floating_ip_migrate_when_unbound_port_is_bound_to_a_host(self):"},{"line_number":1126,"context_line":"        \"\"\"Test to check floating ips migrate from unbound to bound host.\"\"\""},{"line_number":1127,"context_line":"        self.agent.conf.agent_mode \u003d lib_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":1128,"context_line":"        router_info \u003d self.generate_dvr_router_info("}],"source_content_type":"text/x-python","patch_set":6,"id":"3f79a3b5_0544b519","line":1125,"range":{"start_line":1125,"start_character":8,"end_line":1125,"end_character":69},"in_reply_to":"3f79a3b5_9779e6c7","updated":"2018-10-17 15:28:24.000000000","message":"If you look at the scenairo below, it is all running in a single node scenario where the agent is running in dvr_snat mode.\nBut first we create a floatingIP with SNAT_BOUND set, simulating that it has not host associated with it.\nThen we assign a host and remove the SNAT_BOUND flag to see if it migrates to the FIP Namespace in the same node.\nSo it solves the purpose of this testing, with the existing framework.","commit_id":"08ab8be1406642e5582d4856f58b704e7fc94351"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9476920421f01c58cfc7bef19bf003b7f53cd78c","unresolved":false,"context_lines":[{"line_number":514,"context_line":"        # that the L3 agent is robust enough to handle that case and delete"},{"line_number":515,"context_line":"        # the router correctly."},{"line_number":516,"context_line":"        router.get_centralized_fip_cidr_set \u003d mock.Mock("},{"line_number":517,"context_line":"            return_value\u003dset())"},{"line_number":518,"context_line":"        self._delete_router(self.agent, router.router_id)"},{"line_number":519,"context_line":"        self._assert_fip_namespace_deleted(ext_gateway_port)"},{"line_number":520,"context_line":"        self._assert_router_does_not_exist(router)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_3107ccca","line":517,"updated":"2018-10-29 21:28:36.000000000","message":"Is this necessary if base class defaults to returning set() ?","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6fd306b03fb1b5bdeceaf579cb1458049df9df4c","unresolved":false,"context_lines":[{"line_number":514,"context_line":"        # that the L3 agent is robust enough to handle that case and delete"},{"line_number":515,"context_line":"        # the router correctly."},{"line_number":516,"context_line":"        router.get_centralized_fip_cidr_set \u003d mock.Mock("},{"line_number":517,"context_line":"            return_value\u003dset())"},{"line_number":518,"context_line":"        self._delete_router(self.agent, router.router_id)"},{"line_number":519,"context_line":"        self._assert_fip_namespace_deleted(ext_gateway_port)"},{"line_number":520,"context_line":"        self._assert_router_does_not_exist(router)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_f2afe479","line":517,"in_reply_to":"3f79a3b5_3107ccca","updated":"2018-10-31 19:25:28.000000000","message":"This is the error i am seeing when the above #L516 and #L517 is removed.\nFile \"neutron/agent/l3/dvr_edge_router.py\", line 267, in get_snat_external_device_interface_name\n        long_name \u003d router.EXTERNAL_DEV_PREFIX + ex_gw_port[\u0027id\u0027]\n    TypeError: \u0027NoneType\u0027 object has no attribute \u0027__getitem__\u0027","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"1763d36d570451f1471919d085d3706139d55f33","unresolved":false,"context_lines":[{"line_number":514,"context_line":"        # that the L3 agent is robust enough to handle that case and delete"},{"line_number":515,"context_line":"        # the router correctly."},{"line_number":516,"context_line":"        router.get_centralized_fip_cidr_set \u003d mock.Mock("},{"line_number":517,"context_line":"            return_value\u003dset())"},{"line_number":518,"context_line":"        self._delete_router(self.agent, router.router_id)"},{"line_number":519,"context_line":"        self._assert_fip_namespace_deleted(ext_gateway_port)"},{"line_number":520,"context_line":"        self._assert_router_does_not_exist(router)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_5fd58047","line":517,"in_reply_to":"3f79a3b5_f2afe479","updated":"2018-10-31 20:52:52.000000000","message":"Never mind, I think a check is also needed for the ex_gw_port in dvr_edge_ha_router.py before calling get_snat_external_device_interface_name","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9476920421f01c58cfc7bef19bf003b7f53cd78c","unresolved":false,"context_lines":[{"line_number":1561,"context_line":"            router_updated.router[\u0027gw_port_host\u0027] \u003d \"\""},{"line_number":1562,"context_line":"            router_updated.router[\u0027external_gateway_info\u0027] \u003d \"\""},{"line_number":1563,"context_line":"            router_updated.get_centralized_fip_cidr_set \u003d mock.Mock("},{"line_number":1564,"context_line":"                return_value\u003dset())"},{"line_number":1565,"context_line":"            self.agent._process_updated_router(router_updated.router)"},{"line_number":1566,"context_line":"            new_router_info \u003d self.agent.router_info[router_updated.router_id]"},{"line_number":1567,"context_line":"            self.assertTrue(self._namespace_exists(fip_ns_name))"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_11f090d9","line":1564,"updated":"2018-10-29 21:28:36.000000000","message":"Here too.","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"}],"neutron/tests/unit/agent/l3/test_agent.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9476920421f01c58cfc7bef19bf003b7f53cd78c","unresolved":false,"context_lines":[{"line_number":1146,"context_line":"        ex_gw_port \u003d {\u0027id\u0027: _uuid(), \u0027network_id\u0027: mock.sentinel.ext_net_id}"},{"line_number":1147,"context_line":""},{"line_number":1148,"context_line":"        ri.get_centralized_fip_cidr_set \u003d mock.Mock("},{"line_number":1149,"context_line":"            return_value\u003dset())"},{"line_number":1150,"context_line":"        ri.add_floating_ip \u003d mock.Mock("},{"line_number":1151,"context_line":"            return_value\u003dlib_constants.FLOATINGIP_STATUS_ACTIVE)"},{"line_number":1152,"context_line":"        with mock.patch.object(lla.LinkLocalAllocator, \u0027_write\u0027):"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_712a242f","line":1149,"updated":"2018-10-29 21:28:36.000000000","message":"Maybe my comment in the functional test is moot based on seeing this.","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6fd306b03fb1b5bdeceaf579cb1458049df9df4c","unresolved":false,"context_lines":[{"line_number":1146,"context_line":"        ex_gw_port \u003d {\u0027id\u0027: _uuid(), \u0027network_id\u0027: mock.sentinel.ext_net_id}"},{"line_number":1147,"context_line":""},{"line_number":1148,"context_line":"        ri.get_centralized_fip_cidr_set \u003d mock.Mock("},{"line_number":1149,"context_line":"            return_value\u003dset())"},{"line_number":1150,"context_line":"        ri.add_floating_ip \u003d mock.Mock("},{"line_number":1151,"context_line":"            return_value\u003dlib_constants.FLOATINGIP_STATUS_ACTIVE)"},{"line_number":1152,"context_line":"        with mock.patch.object(lla.LinkLocalAllocator, \u0027_write\u0027):"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_32db1c21","line":1149,"in_reply_to":"3f79a3b5_712a242f","updated":"2018-10-31 19:25:28.000000000","message":"I did not get it?","commit_id":"d635753851e3cf9326e0f5c1a5f32e33dc7b112b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fde0ea4b5fc1a95a8c352369a2dc5e2f0091bb41","unresolved":false,"context_lines":[{"line_number":1331,"context_line":"                                  \u0027add_centralized_floatingip\u0027) as add_fip, \\"},{"line_number":1332,"context_line":"                mock.patch.object("},{"line_number":1333,"context_line":"                    ri,"},{"line_number":1334,"context_line":"                    \u0027get_centralized_fip_cidr_set\u0027"},{"line_number":1335,"context_line":"                                 ) as get_fip_cidrs, \\"},{"line_number":1336,"context_line":"                mock.patch.object(ri, \u0027get_floating_agent_gw_interface\u0027"},{"line_number":1337,"context_line":"                                  ) as fip_gw_port, \\"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_e4c5d45e","line":1334,"updated":"2018-11-13 01:37:12.000000000","message":"nit on indentation being different from surrounding lines","commit_id":"fc50b4906682827c3b9f206c745cdcb1db0c45dd"}]}
