)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"22ed61bc0adf061730e868093074967100233666","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_0d560f5c","line":19,"updated":"2015-08-25 21:10:58.000000000","message":"For my curiosity, could you be more specific?  Could you point out the change that modified this behavior?","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"1a6185dd2388a1e80ee2687c674bd2cbe52ff201","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_b5d16959","line":19,"in_reply_to":"fa1b9901_02a8191f","updated":"2015-08-25 22:17:21.000000000","message":"It is more difficult to reverse [1] than I anticipated.  Maybe this patch is going in the right direction.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"128e06d8ea68db378a72269fd03f2f9f5048bc34","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_62123559","line":19,"in_reply_to":"fa1b9901_0d560f5c","updated":"2015-08-25 21:42:26.000000000","message":"Carl, this was part of major refactor that happened from Juno.\nHere is the piece of the code from Juno.\n\nPreviously the \"get_snat_port_for_internal_port\" was called as \"_map_internal_interfaces\".\nIn this case for \"internal_network_removed\" you see that the \"snat_ports\" passed as argument is the \"ri.snat_ports\".\n\nThis router_info.snat_ports was removed as part of the refactor.\nI don\u0027t have the exact patch that modified this.\n\nif self.conf.agent_mode \u003d\u003d \u0027dvr_snat\u0027 and (\n                ri.ex_gw_port[\u0027binding:host_id\u0027] \u003d\u003d self.host):\n                snat_port \u003d self._map_internal_interfaces(ri, port,\n                                                          ri.snat_ports)","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"77b7f6e624dfc71380889297c75cfef8cf95f0db","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_f5a7e14d","line":19,"in_reply_to":"fa1b9901_55256d06","updated":"2015-08-25 22:39:26.000000000","message":"Based on this conversation, I created this one [1] to essentially reverse the effect of 200293.  Do you think it will fix the problem?  If so, it looks a bit simpler than this one.  Maybe we could combine that fix into this one to utilize the tests in this patch set.\n\n [1] https://review.openstack.org/216890","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"b5ffddb5c25db89bb755154e82e65ea02c26fd9f","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_55256d06","line":19,"in_reply_to":"fa1b9901_55a24d9a","updated":"2015-08-25 22:31:23.000000000","message":"Carl baldwin: you are right, 200293 is the right one that caused the regression.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"66e5508c7fe68e81ce0e765f985af263078288c1","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_02a8191f","line":19,"in_reply_to":"fa1b9901_62123559","updated":"2015-08-25 22:14:10.000000000","message":"I think I found it [1].  I knew it was recent.  If this is it, fortunately, the bug hasn\u0027t been released yet.  Apparently, a bunch of people thought it was a good idea.  I was pretty sure it was safe but I guess it had this side-effect.  It happened just before renaming the method [2].\n\nI wonder if we should instead revert what that change did except to initialize self.snat_ports in the __init__ for the dvr class instead of the base class to see if that fixes the problem.\n\n [1] https://review.openstack.org/#/c/200293/\n [2] https://review.openstack.org/#/c/200294/","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"cd8208c3241193cfc83e3ea5dbaceb88a7b9e8ea","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_55a24d9a","line":19,"in_reply_to":"fa1b9901_b5d16959","updated":"2015-08-25 22:26:14.000000000","message":"Hi Carl,\nHere is the change ID that started this issue.\nI38b18f6d24c788c96b2d13ccca5d2e9a7a4fcdeb\n( Moving internal port processing from agent.py to the respective router classes)","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"b42c4691599c1adc607548faa72c7067ecdf5738","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Right now the csnat interface is not removed by the agent."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This was caused by the l3 agent refactor."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This patch fixes the above mentioned problem."},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa1b9901_13b94d15","line":19,"in_reply_to":"fa1b9901_f5a7e14d","updated":"2015-08-25 23:28:28.000000000","message":"Yes I have moved the fuctional tests as a dependent patch to yours.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"}],"neutron/agent/l3/dvr_edge_router.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"77b7f6e624dfc71380889297c75cfef8cf95f0db","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        # (NOTE): The internal csnat port is retrieved in the parent"},{"line_number":77,"context_line":"        # class, so we don\u0027t need to call \"get_snat_port_for_internal_port"},{"line_number":78,"context_line":"        # again here."},{"line_number":79,"context_line":"        sn_port \u003d super(DvrEdgeRouter, self).internal_network_added(port)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # TODO(gsagie) some of this checks are already implemented"},{"line_number":82,"context_line":"        # in the base class, think how to avoid re-doing them"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_d5641dba","line":79,"updated":"2015-08-25 22:39:26.000000000","message":"This adds more coupling between the two dvr classes.  Is this just for convenience or is it necessary to work correctly?","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"b8fa157a252d5a7c6ecbbc1ee9a441209cd12777","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        # (NOTE): The internal csnat port is retrieved in the parent"},{"line_number":77,"context_line":"        # class, so we don\u0027t need to call \"get_snat_port_for_internal_port"},{"line_number":78,"context_line":"        # again here."},{"line_number":79,"context_line":"        sn_port \u003d super(DvrEdgeRouter, self).internal_network_added(port)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # TODO(gsagie) some of this checks are already implemented"},{"line_number":82,"context_line":"        # in the base class, think how to avoid re-doing them"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_e2ba576e","line":79,"in_reply_to":"fa1b9901_d5641dba","updated":"2015-08-26 18:20:27.000000000","message":"This is necessary to work correctly with the current logic.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"}],"neutron/agent/l3/dvr_router_base.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"2d8453c5d3d775c23bdd6101e069180a976e4822","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def get_snat_port_for_internal_port("},{"line_number":34,"context_line":"        self, int_port, int_network_add\u003dNone, int_network_remove\u003dNone):"},{"line_number":35,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        This function should return the internal CSNAT ports for the"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_a3ac9a8c","line":34,"updated":"2015-08-20 21:54:32.000000000","message":"These should default to False as you\u0027re using them as booleans","commit_id":"2cc777937afdd2f98c3393c1034795e6fb453889"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"1e03d0733bedfb695b680a8d594fce44e04e80cc","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def get_snat_port_for_internal_port("},{"line_number":34,"context_line":"        self, int_port, int_network_add\u003dNone, int_network_remove\u003dNone):"},{"line_number":35,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        This function should return the internal CSNAT ports for the"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_b4ecd2bb","line":34,"in_reply_to":"fa1b9901_a3ac9a8c","updated":"2015-08-20 23:27:39.000000000","message":"Done","commit_id":"2cc777937afdd2f98c3393c1034795e6fb453889"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"2d8453c5d3d775c23bdd6101e069180a976e4822","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        elif int_network_remove:"},{"line_number":50,"context_line":"            snat_ports \u003d self.snat_internal_ports"},{"line_number":51,"context_line":"        else:"},{"line_number":52,"context_line":"            self.snat_internal_ports \u003d snat_ports"},{"line_number":53,"context_line":"        fixed_ip \u003d int_port[\u0027fixed_ips\u0027][0]"},{"line_number":54,"context_line":"        subnet_id \u003d fixed_ip[\u0027subnet_id\u0027]"},{"line_number":55,"context_line":"        match_port \u003d [p for p in snat_ports"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_23b5ea7c","line":52,"updated":"2015-08-20 21:54:32.000000000","message":"First, this seems to be reducible to:\n\nif int_network_remove:\n    snat_ports \u003d self.snat_internal_ports\nelse:\n    self.snat_internal_ports \u003d snat_ports\n\nWhich means int_network_add can go away, and even the initial set for snat_ports can move into the else because it\u0027s just being over-written.\n\nBut I\u0027m more confused since this is a \u0027get\u0027 method and you are now setting things, so perhaps this part needs to be split-out and a \u0027set\u0027 one created, but both call some common function to do the below.\n\nI\u0027d be curious what others think.","commit_id":"2cc777937afdd2f98c3393c1034795e6fb453889"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"1e03d0733bedfb695b680a8d594fce44e04e80cc","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        elif int_network_remove:"},{"line_number":50,"context_line":"            snat_ports \u003d self.snat_internal_ports"},{"line_number":51,"context_line":"        else:"},{"line_number":52,"context_line":"            self.snat_internal_ports \u003d snat_ports"},{"line_number":53,"context_line":"        fixed_ip \u003d int_port[\u0027fixed_ips\u0027][0]"},{"line_number":54,"context_line":"        subnet_id \u003d fixed_ip[\u0027subnet_id\u0027]"},{"line_number":55,"context_line":"        match_port \u003d [p for p in snat_ports"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_340e828c","line":52,"in_reply_to":"fa1b9901_23b5ea7c","updated":"2015-08-20 23:27:39.000000000","message":"Yes got rid of the int_network_add makes sense.\n\nThis is the only function that calls the \"get_snat_interfaces\", so this can be also used for setting things in the router_info.\n\nOtherwise then we need to duplicate the \"get_snat_interfaces\" call somewhere to set the things.","commit_id":"2cc777937afdd2f98c3393c1034795e6fb453889"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0af5562313a3c03913ace26fd8ef1e813ffbf9af","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        This function should return the internal CSNAT ports for the"},{"line_number":38,"context_line":"        given internal router interface port."},{"line_number":39,"context_line":"        The CSNAT ports will be cached and based on internal network"},{"line_number":40,"context_line":"        add or internal network delete the data will be retrieved"},{"line_number":41,"context_line":"        either from the router data provided by the server or from"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_19da4b79","line":38,"updated":"2015-08-22 20:54:46.000000000","message":"can we make the next para clearer?  I *think* I know what is going on here, but the explanation here doesn\u0027t quite jibe with the if/else on Ls47-50","commit_id":"58d893552a0c6159b3f402539ee3369aa39534eb"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"77b7f6e624dfc71380889297c75cfef8cf95f0db","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        self.agent \u003d agent"},{"line_number":27,"context_line":"        self.host \u003d host"},{"line_number":28,"context_line":"        self.snat_internal_ports \u003d []"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def get_snat_interfaces(self):"},{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_7523d158","line":28,"updated":"2015-08-25 22:39:26.000000000","message":"I noticed that the old code initialized this to self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"12d38198acbe921e13b9abe6c62cc234e5bde536","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        self.agent \u003d agent"},{"line_number":27,"context_line":"        self.host \u003d host"},{"line_number":28,"context_line":"        self.snat_internal_ports \u003d []"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def get_snat_interfaces(self):"},{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_38e9d0e6","line":28,"in_reply_to":"fa1b9901_386a30b4","updated":"2015-08-25 22:56:57.000000000","message":"I was mistaken about this.  The old code set this at the end of the process method.  I just updated my patch.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"7a6f420c47629d7eee44161b67f47b24d8123bf7","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        self.agent \u003d agent"},{"line_number":27,"context_line":"        self.host \u003d host"},{"line_number":28,"context_line":"        self.snat_internal_ports \u003d []"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def get_snat_interfaces(self):"},{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_386a30b4","line":28,"in_reply_to":"fa1b9901_7523d158","updated":"2015-08-25 22:46:12.000000000","message":"carl intialing this to \"l3_constants.SNAT_ROUTER_INTF_KEY\" may result in empty values when the interfaces are removed.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"99440833b9bd25bf75267f225f1e4833e86151ad","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def get_snat_port_for_internal_port("},{"line_number":34,"context_line":"        self, int_port, int_network_remove\u003dFalse):"},{"line_number":35,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        This function should return the internal CSNAT ports for the"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_6dea2b76","line":34,"updated":"2015-08-25 21:12:18.000000000","message":"So the default case here has essentially turned-into a \"set\" since it\u0027s updating self.snat_internal_ports. I\u0027ve been playing with a small refactor of this which renames this set_snat_port_for_internal_port() and creates a new \"get\" one, most of the code is simply re-used. I don\u0027t know the best way to share that without creating PS9, unless I send it to Swami.\n\nI don\u0027t know what others think of the syntax change in the call.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"128e06d8ea68db378a72269fd03f2f9f5048bc34","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        return self.router.get(l3_constants.SNAT_ROUTER_INTF_KEY, [])"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def get_snat_port_for_internal_port("},{"line_number":34,"context_line":"        self, int_port, int_network_remove\u003dFalse):"},{"line_number":35,"context_line":"        \"\"\"Return the SNAT port for the given internal interface port."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        This function should return the internal CSNAT ports for the"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_9fb80677","line":34,"in_reply_to":"fa1b9901_6dea2b76","updated":"2015-08-25 21:42:26.000000000","message":"Brian please for it to me and I will include it.","commit_id":"7b86c85863145114a88f77fd9a2633de61c5eca0"}]}
