)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"01ec678b4ea037fadd4eaaaa864ac1c0a8811739","unresolved":false,"context_lines":[{"line_number":16,"context_line":"When removing a centralized fip,it is still needed to check invoke method of"},{"line_number":17,"context_line":"supperclass to clean contrack on master node."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Nat rules processing for centralized fips may better be moved from fip"},{"line_number":20,"context_line":"configuration processing."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Change-Id: I202db59acb7fb0b7924748cf7def2879a748e56a"},{"line_number":23,"context_line":"Closes-Bug: #1736068"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"7f96bb07_a89fd4b2","line":20,"range":{"start_line":19,"start_character":0,"end_line":20,"end_character":25},"updated":"2018-01-10 21:40:12.000000000","message":"I would suggest that you move this change to a different patch.\nThe bug report does not reflect it.","commit_id":"4f0df56e9da00001b7b788ab9fb687e66a82ab3d"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"a136612943bf4e6afa8defa4fb9f3e137777e6b7","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add/rm centralized fips for DVR+HA from standby node"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"For DVR+HA:"},{"line_number":10,"context_line":"When adding/removing a centralized fip,just add/remove it to/from"},{"line_number":11,"context_line":"keepalived instance and do not check if it is a master router."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"When adding a centralized fip, just add it to keepalived instance"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f93b717_f3531816","line":10,"range":{"start_line":10,"start_character":38,"end_line":10,"end_character":39},"updated":"2018-01-30 02:36:38.000000000","message":"Need a space after \u0027,\u0027","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"a136612943bf4e6afa8defa4fb9f3e137777e6b7","unresolved":false,"context_lines":[{"line_number":13,"context_line":"When adding a centralized fip, just add it to keepalived instance"},{"line_number":14,"context_line":"and do not need to invoke method of supperclass to configure the device."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"When remoing a centralized fip,it is still needed to check invoke method of"},{"line_number":17,"context_line":"supperclass to clean contrack on master node."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I202db59acb7fb0b7924748cf7def2879a748e56a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f93b717_53420c40","line":16,"range":{"start_line":16,"start_character":30,"end_line":16,"end_character":31},"updated":"2018-01-30 02:36:38.000000000","message":"ditto","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"a136612943bf4e6afa8defa4fb9f3e137777e6b7","unresolved":false,"context_lines":[{"line_number":13,"context_line":"When adding a centralized fip, just add it to keepalived instance"},{"line_number":14,"context_line":"and do not need to invoke method of supperclass to configure the device."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"When remoing a centralized fip,it is still needed to check invoke method of"},{"line_number":17,"context_line":"supperclass to clean contrack on master node."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I202db59acb7fb0b7924748cf7def2879a748e56a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f93b717_93541400","line":16,"range":{"start_line":16,"start_character":5,"end_line":16,"end_character":12},"updated":"2018-01-30 02:36:38.000000000","message":"typo removing","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"9786d1fd0540dbf7560981dab4d1b391ecb9b85f","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"For DVR+HA:"},{"line_number":10,"context_line":"When adding/removing a centralized fip, just add/remove it to/from"},{"line_number":11,"context_line":"keepalived instance and do not check if it is a master router."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"When adding a centralized fip, it is still needed to invoke method"},{"line_number":14,"context_line":"of supperclass to configure nat rules on master node."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"5f93b717_d467c6b6","line":11,"range":{"start_line":11,"start_character":20,"end_line":11,"end_character":37},"updated":"2018-01-31 02:02:00.000000000","message":"Maybe \u0027without checking\u0027 would be better. As there are such checks afterwards, not related to adding/removing the fip to/from the keepalived instance.","commit_id":"42b5486613a4441b304fc1816e039272e81e64ce"}],"neutron/agent/l3/dvr_edge_ha_router.py":[{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"a136612943bf4e6afa8defa4fb9f3e137777e6b7","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        interface_name \u003d self.get_snat_external_device_interface_name("},{"line_number":62,"context_line":"                self.get_ex_gw_port())"},{"line_number":63,"context_line":"        self._add_vip(fip_cidr, interface_name)"},{"line_number":64,"context_line":"        return constants.FLOATINGIP_STATUS_ACTIVE"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def remove_centralized_floatingip(self, fip_cidr):"},{"line_number":67,"context_line":"        self._remove_vip(fip_cidr)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f93b717_33450044","line":64,"updated":"2018-01-30 02:36:38.000000000","message":"In patchset 1-4, I saw add_centralized_floatingip() of the superclass was called on master router, you\u0027ve removed that since patchset 5. What will handle the device setup if add_centralized_floatingip of the superclass is not called here?","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":23430,"name":"sunzuohua","email":"zuohuasun@gmail.com","username":"ZuohuaSun"},"change_message_id":"8b2a5d9a1f40586e8d95ae7e8e8471e6b01c85c5","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        interface_name \u003d self.get_snat_external_device_interface_name("},{"line_number":62,"context_line":"                self.get_ex_gw_port())"},{"line_number":63,"context_line":"        self._add_vip(fip_cidr, interface_name)"},{"line_number":64,"context_line":"        return constants.FLOATINGIP_STATUS_ACTIVE"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def remove_centralized_floatingip(self, fip_cidr):"},{"line_number":67,"context_line":"        self._remove_vip(fip_cidr)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f93b717_f1fa1473","line":64,"in_reply_to":"5f93b717_1b07adcc","updated":"2018-01-31 01:25:16.000000000","message":"For ha router, fip should be added to keepalived instance and configured by keepalived finally, not configured by l3 agent directly. Am I right?","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":23430,"name":"sunzuohua","email":"zuohuasun@gmail.com","username":"ZuohuaSun"},"change_message_id":"6482b043cc76e62388c49b867a38c2f6bd695322","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        interface_name \u003d self.get_snat_external_device_interface_name("},{"line_number":62,"context_line":"                self.get_ex_gw_port())"},{"line_number":63,"context_line":"        self._add_vip(fip_cidr, interface_name)"},{"line_number":64,"context_line":"        return constants.FLOATINGIP_STATUS_ACTIVE"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def remove_centralized_floatingip(self, fip_cidr):"},{"line_number":67,"context_line":"        self._remove_vip(fip_cidr)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f93b717_11546052","line":64,"in_reply_to":"5f93b717_1b07adcc","updated":"2018-01-31 01:34:32.000000000","message":"Sorry, you are right. I need to call the add_centralized_floatingip here to add nat rules. I will remove nat rules processing from fip configuration processing in another patch and remove this calling then.","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6cd72ccb91dc93e92947fc38a9a1007607415272","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        interface_name \u003d self.get_snat_external_device_interface_name("},{"line_number":62,"context_line":"                self.get_ex_gw_port())"},{"line_number":63,"context_line":"        self._add_vip(fip_cidr, interface_name)"},{"line_number":64,"context_line":"        return constants.FLOATINGIP_STATUS_ACTIVE"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def remove_centralized_floatingip(self, fip_cidr):"},{"line_number":67,"context_line":"        self._remove_vip(fip_cidr)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f93b717_1b07adcc","line":64,"in_reply_to":"5f93b717_33450044","updated":"2018-01-30 14:23:12.000000000","message":"Ditto: You need to call the add_centralized_floatingip here.","commit_id":"e9006e5ccc6fa0df11a81ac6837eafa0cbe7da8f"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"9786d1fd0540dbf7560981dab4d1b391ecb9b85f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        self._add_vip(fip_cidr, interface_name)"},{"line_number":64,"context_line":"        if self.is_router_master():"},{"line_number":65,"context_line":"            return super(DvrEdgeHaRouter, self).add_centralized_floatingip("},{"line_number":66,"context_line":"                fip, fip_cidr)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def remove_centralized_floatingip(self, fip_cidr):"},{"line_number":69,"context_line":"        self._remove_vip(fip_cidr)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f93b717_14c44e90","line":66,"updated":"2018-01-31 02:02:00.000000000","message":"The return value on non-master routers is now None, is that intended? Should we keep returning constants.FLOATINGIP_STATUS_ACTIVE on such routers?","commit_id":"42b5486613a4441b304fc1816e039272e81e64ce"},{"author":{"_account_id":23430,"name":"sunzuohua","email":"zuohuasun@gmail.com","username":"ZuohuaSun"},"change_message_id":"99feb82fa7fddd1dfdd581fecf6412e9d31f4e57","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        self._add_vip(fip_cidr, interface_name)"},{"line_number":64,"context_line":"        if self.is_router_master():"},{"line_number":65,"context_line":"            return super(DvrEdgeHaRouter, self).add_centralized_floatingip("},{"line_number":66,"context_line":"                fip, fip_cidr)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def remove_centralized_floatingip(self, fip_cidr):"},{"line_number":69,"context_line":"        self._remove_vip(fip_cidr)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f93b717_97538017","line":66,"in_reply_to":"5f93b717_14c44e90","updated":"2018-01-31 02:38:59.000000000","message":"I intend to modify to return ACTIVE directly and not invoke add_centralized_floatingip of superclass in another patch:\nadd_centralized_floatingip has two functions:configuring fip and process nat rules for fip\n1)For ha router, fips should be configured by keepalived.\n2)Now add_centralized_floatingip of superclass is invoked only on master nodes that result in missing of nat rules for fips on backup nodes.\n2)process_floating_ip_nat_rules should be overrided in DvrEdgeRouter to handle nat rules for fips instead of process_floating_ip_nat_rules_for_centralized_floatingip.","commit_id":"42b5486613a4441b304fc1816e039272e81e64ce"}],"neutron/agent/l3/dvr_edge_router.py":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"01ec678b4ea037fadd4eaaaa864ac1c0a8811739","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        super(DvrEdgeRouter, self).__init__(host, *args, **kwargs)"},{"line_number":32,"context_line":"        self.snat_namespace \u003d dvr_snat_ns.SnatNamespace("},{"line_number":33,"context_line":"            self.router_id, self.agent_conf, self.driver, self.use_ipv6)"},{"line_number":34,"context_line":"        self.snat_iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":35,"context_line":"            namespace\u003dself.snat_namespace.name,"},{"line_number":36,"context_line":"            use_ipv6\u003dself.use_ipv6)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def get_gw_ns_name(self):"},{"line_number":39,"context_line":"        return self.snat_namespace.name"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f96bb07_68a9ccdd","line":36,"range":{"start_line":34,"start_character":1,"end_line":36,"end_character":35},"updated":"2018-01-10 21:40:12.000000000","message":"These changes are not related to the bug report.","commit_id":"4f0df56e9da00001b7b788ab9fb687e66a82ab3d"}],"neutron/tests/unit/agent/l3/test_dvr_local_router.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"7f285a60e19157a5c49e129872fccb4cf0ea12f0","unresolved":false,"context_lines":[{"line_number":801,"context_line":"            ri.get_snat_external_device_interface_name(ex_gw_port).called)"},{"line_number":802,"context_line":"        self.assertTrue(ri._add_vip(fip_cidr, interface_name).called)"},{"line_number":803,"context_line":""},{"line_number":804,"context_line":"        @mock.patch.object(dvr_edge_rtr.DvrEdgeRouter,"},{"line_number":805,"context_line":"                           \u0027remove_centralized_floatingip\u0027)"},{"line_number":806,"context_line":"        def test_remove_centralized_floatingip(self,"},{"line_number":807,"context_line":"                                super_remove_centralized_floatingip):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_a1e10c9d","line":804,"updated":"2018-01-03 02:22:16.000000000","message":"This whole block looks over-indented","commit_id":"1e63371cc784080a28add37e4815debed6e18150"},{"author":{"_account_id":19853,"name":"Nguyen Hung Phuong","email":"phuongnh@vn.fujitsu.com","username":"phuongnh"},"change_message_id":"77ac70f5985461e9fa003c91f8a5adef41a2dbee","unresolved":false,"context_lines":[{"line_number":832,"context_line":"        self.assertTrue(ri._add_vip(fip_cidr, interface_name).called)"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"    @mock.patch.object(dvr_edge_rtr.DvrEdgeRouter,"},{"line_number":835,"context_line":"                           \u0027remove_centralized_floatingip\u0027)"},{"line_number":836,"context_line":"    def test_remove_centralized_floatingip(self,"},{"line_number":837,"context_line":"                                super_remove_centralized_floatingip):"},{"line_number":838,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f93b717_fb7306b0","line":835,"updated":"2018-01-29 07:46:05.000000000","message":"please correct indent of this line.","commit_id":"3a9a723735d4e8da97d74423a6a9b03a78c87123"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"360274b30e570c3f20d00d6a1a69a957febbc307","unresolved":false,"context_lines":[{"line_number":823,"context_line":"        fip_cidr \u003d \u002711.22.33.44/24\u0027"},{"line_number":824,"context_line":""},{"line_number":825,"context_line":"        ri \u003d dvr_edge_ha_rtr.DvrEdgeHaRouter(HOSTNAME, [], **self.ri_kwargs)"},{"line_number":826,"context_line":"        ri.is_router_master \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":827,"context_line":"        ri._add_vip \u003d mock.Mock()"},{"line_number":828,"context_line":"        interface_name, ex_gw_port \u003d l3_test_common.prepare_ext_gw_test(self,"},{"line_number":829,"context_line":"                                                                        ri)"}],"source_content_type":"text/x-python","patch_set":14,"id":"5f93b717_2ee313db","line":826,"range":{"start_line":826,"start_character":40,"end_line":826,"end_character":57},"updated":"2018-02-01 02:11:52.000000000","message":"Need to add a case to verify that when ri.is_router_master() returns False, ri._add_vip() will still be called, and DvrEdgeRouter.add_centralized_floatingip() is not. Since that\u0027s the main goal of this change that _add_vip() is always called and DvrEdgeRouter.add_centralized_floatingip() is only called on master routers.","commit_id":"8155ba1efe3600331b742da69a36418c6f0b43e5"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"360274b30e570c3f20d00d6a1a69a957febbc307","unresolved":false,"context_lines":[{"line_number":845,"context_line":"        fip_cidr \u003d \u002711.22.33.44/24\u0027"},{"line_number":846,"context_line":""},{"line_number":847,"context_line":"        ri \u003d dvr_edge_ha_rtr.DvrEdgeHaRouter(HOSTNAME, [], **self.ri_kwargs)"},{"line_number":848,"context_line":"        ri.is_router_master \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":849,"context_line":"        ri._remove_vip \u003d mock.Mock()"},{"line_number":850,"context_line":"        ri.remove_centralized_floatingip(fip_cidr)"},{"line_number":851,"context_line":"        self.assertTrue(ri._remove_vip(fip_cidr).called)"}],"source_content_type":"text/x-python","patch_set":14,"id":"5f93b717_eee8cbb3","line":848,"range":{"start_line":848,"start_character":40,"end_line":848,"end_character":57},"updated":"2018-02-01 02:11:52.000000000","message":"ditto","commit_id":"8155ba1efe3600331b742da69a36418c6f0b43e5"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"68e59e9ee11c77abd51de020d4d2d8d18a79fdb3","unresolved":false,"context_lines":[{"line_number":831,"context_line":"        interface_name, ex_gw_port \u003d l3_test_common.prepare_ext_gw_test(self,"},{"line_number":832,"context_line":"                                                                        ri)"},{"line_number":833,"context_line":"        ri.add_centralized_floatingip(fip, fip_cidr)"},{"line_number":834,"context_line":"        self.assertTrue(super_add_vip(fip_cidr, interface_name).called)"},{"line_number":835,"context_line":"        self.assertTrue(super_add_centralized_floatingip.called)"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"        ri1 \u003d dvr_edge_ha_rtr.DvrEdgeHaRouter(HOSTNAME, [], **self.ri_kwargs)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f93b717_abe28cd3","line":834,"updated":"2018-02-02 10:35:54.000000000","message":"super_add_vip won\u0027t be called, it seems not needed as ri._add_vip is mock.Mock()\n\nYou might want ri._add_vip.assert_called_once_with(fip_cidr, interface_name) here.","commit_id":"88b97145dff98cb7109d32f7d54e808f4dc70958"},{"author":{"_account_id":21781,"name":"Hunt Xu","email":"mhuntxu@gmail.com","username":"huntxu"},"change_message_id":"68e59e9ee11c77abd51de020d4d2d8d18a79fdb3","unresolved":false,"context_lines":[{"line_number":840,"context_line":"                                                                        ri1)"},{"line_number":841,"context_line":"        ri1.add_centralized_floatingip(fip, fip_cidr)"},{"line_number":842,"context_line":"        self.assertTrue(super_add_vip(fip_cidr, interface_name).called)"},{"line_number":843,"context_line":"        self.assertFalse(super_add_centralized_floatingip.called)"},{"line_number":844,"context_line":""},{"line_number":845,"context_line":"    @mock.patch.object(dvr_edge_rtr.DvrEdgeRouter,"},{"line_number":846,"context_line":"                       \u0027remove_centralized_floatingip\u0027)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f93b717_6b5d6477","line":843,"range":{"start_line":843,"start_character":8,"end_line":843,"end_character":65},"updated":"2018-02-02 10:35:54.000000000","message":"I guess this won\u0027t pass because super_add_centralized_floatingip is called, as L835. We might test non-master router(ri1) before master router(ri), then super_add_centralized_floatingip is first not called and then called. And you can use assert_not_called and assert_called_once_with with super_add_centrailized_floatingip.","commit_id":"88b97145dff98cb7109d32f7d54e808f4dc70958"}]}
