)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"e873c829b7212df6782cc4b67de846d0efb459d6","unresolved":false,"context_lines":[{"line_number":10,"context_line":"routes extension to their respective router classes."},{"line_number":11,"context_line":"Move the unit tests as well."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Partially-Implements: bp/restructure-l3-agent"},{"line_number":14,"context_line":"Change-Id: Iec642dde3e1f2ffdfae4cdfb9cbdc777cad52a39"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"fa81d914_5542cf3e","line":13,"updated":"2015-01-29 14:29:27.000000000","message":"\u0027Partially-Implements: blueprint restructure-l3-agent\u0027 then it will be possible to use the link.","commit_id":"90729bef6979e63cae845c359d3deecfedd0d319"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1b109338f654ea0d8b1782c9b4afc2071e0211dd","unresolved":false,"context_lines":[{"line_number":10,"context_line":"routes extension to their respective router classes."},{"line_number":11,"context_line":"Move the unit tests as well."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Partially-Implements: bp/restructure-l3-agent"},{"line_number":14,"context_line":"Change-Id: Iec642dde3e1f2ffdfae4cdfb9cbdc777cad52a39"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da86d52c_24c25959","line":13,"in_reply_to":"fa81d914_5542cf3e","updated":"2015-02-04 14:07:06.000000000","message":"Done","commit_id":"90729bef6979e63cae845c359d3deecfedd0d319"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"2e95ff7255e92820730cb0d3b4bf0095a7344dab","unresolved":false,"context_lines":[{"line_number":584,"context_line":"        self._process_internal_ports(ri)"},{"line_number":585,"context_line":"        self._process_external(ri)"},{"line_number":586,"context_line":"        # Process static routes for router"},{"line_number":587,"context_line":"        ri.routes_updated()"},{"line_number":588,"context_line":""},{"line_number":589,"context_line":"        # Enable or disable keepalived for ha routers"},{"line_number":590,"context_line":"        self._process_ha_router(ri)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa81d914_34269dbb","line":587,"updated":"2015-01-27 22:04:55.000000000","message":"(No action required) objects - yay!","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"}],"neutron/agent/l3/ha_router.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a19dc354165f258d897318c96f319c7c056fc680","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        conf_dir \u003d self.keepalived_manager.get_conf_dir()"},{"line_number":70,"context_line":"        shutil.rmtree(conf_dir)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def routes_updated(self):"},{"line_number":73,"context_line":"        new_routes \u003d self.router[\u0027routes\u0027]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        instance \u003d self.keepalived_manager.config.get_instance(self.ha_vr_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a930d6b_f31e286f","line":72,"updated":"2015-01-26 21:58:55.000000000","message":"This concerns me a bit.  I noticed this doesn\u0027t call super.  I see why you did it that way.  The original returns after doing the ha stuff.  And so it looks like it should be correct.\n\nHowever, I\u0027m concerned about the HaDvr [1] case.  I think this might be more of a problem with the current HaDvr design.  See, it inherits from both HaRouter and DvrRouter.  So, in the HA/snat context it would expect this code to be called, right?  However, in the compute dvr context, it would expect for the super class routes_updated to be called.  So, we\u0027ve got a problem.  Do you see it?\n\nI think the answer might be that the DvrRouter class must split in to two classes:  one for the compute node context and the other for the snat context.  Only the latter needs to be combined with HaRouter to create a DvrHaRouter.\n\n [1] https://review.openstack.org/#/c/139686/","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"31c8ae325eb70a2e8643d782a2b60b7b82a02c80","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        conf_dir \u003d self.keepalived_manager.get_conf_dir()"},{"line_number":70,"context_line":"        shutil.rmtree(conf_dir)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def routes_updated(self):"},{"line_number":73,"context_line":"        new_routes \u003d self.router[\u0027routes\u0027]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        instance \u003d self.keepalived_manager.config.get_instance(self.ha_vr_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a930d6b_30c339ee","line":72,"in_reply_to":"1a930d6b_87ad9eeb","updated":"2015-01-27 05:32:17.000000000","message":"This is the way I\u0027m leaning now.  I still need to investigate but it seems to be the answer.","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"4a9e6179172b2e562907f7dce48d40ac267ee289","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        conf_dir \u003d self.keepalived_manager.get_conf_dir()"},{"line_number":70,"context_line":"        shutil.rmtree(conf_dir)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def routes_updated(self):"},{"line_number":73,"context_line":"        new_routes \u003d self.router[\u0027routes\u0027]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        instance \u003d self.keepalived_manager.config.get_instance(self.ha_vr_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a930d6b_87ad9eeb","line":72,"in_reply_to":"1a930d6b_f31e286f","updated":"2015-01-26 23:26:30.000000000","message":"Per our IRC conversation, and given my limited understanding of DVR, I think it makes sense to split DvrRouter to SNATDvrRouter and ComputeDvrRouter. Then you rename HaDvrRouter to SNATDvrHaRouter. With the inheritance tree set up as you\u0027d expect you wouldn\u0027t have \u0027super\u0027 issues with routes_updated and similar methods.","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a57b0f47d0a1049ddc1db3eae0463c1416912055","unresolved":false,"context_lines":[{"line_number":175,"context_line":"    def routes_updated(self):"},{"line_number":176,"context_line":"        new_routes \u003d self.router[\u0027routes\u0027]"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        instance \u003d self.keepalived_manager.config.get_instance(self.ha_vr_id)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        # Filter out all of the old routes while keeping only the default route"},{"line_number":181,"context_line":"        instance.virtual_routes \u003d [route for route in instance.virtual_routes"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_643368ab","line":178,"updated":"2015-02-04 17:34:00.000000000","message":"instance \u003d self._get_keepalived_instance()","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"96e5e88c7dcd0ed60f5cba4e5cea49f95ec352cd","unresolved":false,"context_lines":[{"line_number":175,"context_line":"    def routes_updated(self):"},{"line_number":176,"context_line":"        new_routes \u003d self.router[\u0027routes\u0027]"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        instance \u003d self.keepalived_manager.config.get_instance(self.ha_vr_id)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        # Filter out all of the old routes while keeping only the default route"},{"line_number":181,"context_line":"        instance.virtual_routes \u003d [route for route in instance.virtual_routes"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_c3c30536","line":178,"in_reply_to":"da86d52c_643368ab","updated":"2015-02-05 15:22:33.000000000","message":"Done","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a57b0f47d0a1049ddc1db3eae0463c1416912055","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                route[\u0027destination\u0027],"},{"line_number":186,"context_line":"                route[\u0027nexthop\u0027]))"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        self.routes \u003d new_routes"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    def _add_default_gw_virtual_route(self, ex_gw_port, interface_name):"},{"line_number":191,"context_line":"        gw_ip \u003d ex_gw_port[\u0027subnet\u0027][\u0027gateway_ip\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_448ae41b","line":188,"updated":"2015-02-04 17:34:00.000000000","message":"The original didn\u0027t do this in the ha case.  I don\u0027t think this is needed.","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"96e5e88c7dcd0ed60f5cba4e5cea49f95ec352cd","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                route[\u0027destination\u0027],"},{"line_number":186,"context_line":"                route[\u0027nexthop\u0027]))"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        self.routes \u003d new_routes"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    def _add_default_gw_virtual_route(self, ex_gw_port, interface_name):"},{"line_number":191,"context_line":"        gw_ip \u003d ex_gw_port[\u0027subnet\u0027][\u0027gateway_ip\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_23bdc1b7","line":188,"in_reply_to":"da86d52c_448ae41b","updated":"2015-02-05 15:22:33.000000000","message":"It\u0027s an unrelated change to this refactoring, and it isn\u0027t needed, but without this assignment, self.routes will remain None for HA routers but will be populated correctly for legacy routers. I think that for maintainability reasons / Least surprise principles it\u0027s better to properly populate this variable for both kinds of routers.","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"}],"neutron/tests/unit/agent/l3/test_router_info.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"2e95ff7255e92820730cb0d3b4bf0095a7344dab","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"_uuid \u003d uuidutils.generate_uuid"},{"line_number":23,"context_line":"HOSTNAME \u003d \u0027myhost\u0027"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class TestRouterInfo(test_l3_agent.TestBasicRouterOperationsFramework):"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa81d914_f105f714","line":23,"updated":"2015-01-27 22:04:55.000000000","message":"This constant appears to be unused.","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f1b0fc22f9a4753eeea0009bbeb86e4e89a68f3c","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"_uuid \u003d uuidutils.generate_uuid"},{"line_number":23,"context_line":"HOSTNAME \u003d \u0027myhost\u0027"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class TestRouterInfo(test_l3_agent.TestBasicRouterOperationsFramework):"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa81d914_7055611c","line":23,"in_reply_to":"fa81d914_f105f714","updated":"2015-01-28 14:21:58.000000000","message":"Done","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a57b0f47d0a1049ddc1db3eae0463c1416912055","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"da86d52c_4465841c","updated":"2015-02-04 17:34:00.000000000","message":"Is this consistent with the test tree reorg [1]?  If so, I can move other similar unit tests file in to this module.\n\n [1] https://blueprints.launchpad.net/neutron/+spec/reorganize-unit-test-tree","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"96e5e88c7dcd0ed60f5cba4e5cea49f95ec352cd","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"da86d52c_bead48eb","in_reply_to":"da86d52c_4465841c","updated":"2015-02-05 15:22:33.000000000","message":"Yes, and yes :)","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a57b0f47d0a1049ddc1db3eae0463c1416912055","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OpenStack Foundation."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_a4eba076","line":1,"updated":"2015-02-04 17:34:00.000000000","message":"I\u0027m learning, just recently [1], that this is apparently the wrong thing to do.  I won\u0027t -1 for it but apparently no copyright statement is preferred.\n\n [1] https://review.openstack.org/#/c/134339/15/neutron/ipam/base.py","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"96e5e88c7dcd0ed60f5cba4e5cea49f95ec352cd","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OpenStack Foundation."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_7e7f5066","line":1,"in_reply_to":"da86d52c_a4eba076","updated":"2015-02-05 15:22:33.000000000","message":"I\u0027ll remove it.","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"2e95ff7255e92820730cb0d3b4bf0095a7344dab","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            \u0027priority\u0027: 1}"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"class TestBasicRouterOperationsFramework(base.BaseTestCase):"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def setUp(self):"},{"line_number":178,"context_line":"        super(TestBasicRouterOperationsFramework, self).setUp()"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa81d914_117e0baf","line":175,"updated":"2015-01-27 22:04:55.000000000","message":"When the intent is to create a framework/base class, please avoid naming the class with a \u0027Test\u0027 prefix.  It should be possible to know from the name of a test class whether it is safe to extend it without fear of duplicating test execution, and the class name having or not having a \u0027Test\u0027 prefix is a good way to indicate this.\n\nYes, this needs to be documented, and yes, it needs to be enforced everywhere.  For now, though, I\u0027ll settle for piecemeal enforcement.","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f1b0fc22f9a4753eeea0009bbeb86e4e89a68f3c","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            \u0027priority\u0027: 1}"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"class TestBasicRouterOperationsFramework(base.BaseTestCase):"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def setUp(self):"},{"line_number":178,"context_line":"        super(TestBasicRouterOperationsFramework, self).setUp()"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa81d914_431df565","line":175,"in_reply_to":"fa81d914_117e0baf","updated":"2015-01-28 14:21:58.000000000","message":"Done","commit_id":"c355760a8f78dccbdb65aaa109df86320aa45757"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a57b0f47d0a1049ddc1db3eae0463c1416912055","unresolved":false,"context_lines":[{"line_number":173,"context_line":"            \u0027priority\u0027: 1}"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"class BasicRouterOperationsFramework(base.BaseTestCase):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"    def setUp(self):"},{"line_number":179,"context_line":"        super(BasicRouterOperationsFramework, self).setUp()"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_247c10b5","line":176,"updated":"2015-02-04 17:34:00.000000000","message":"Do we want to duplicate all of this stuff in to the test_router_info.py?  Much of it I think should be left behind.  I recently added a file to a patch to test router_info [1] and I chose to leave all of this behind.  I\u0027ve found that by breaking the router out from the agent, a lot of this framework cruft is unnecessary in a unit test context.  What do you think?\n\n [1] https://review.openstack.org/#/c/142863/42/neutron/tests/unit/test_l3_router.py","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"96e5e88c7dcd0ed60f5cba4e5cea49f95ec352cd","unresolved":false,"context_lines":[{"line_number":173,"context_line":"            \u0027priority\u0027: 1}"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"class BasicRouterOperationsFramework(base.BaseTestCase):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"    def setUp(self):"},{"line_number":179,"context_line":"        super(BasicRouterOperationsFramework, self).setUp()"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_8fd4ccec","line":176,"in_reply_to":"da86d52c_247c10b5","updated":"2015-02-05 15:22:33.000000000","message":"I went there to see how it looks.\n\nMaking test_router_info have its own setUp and not inherit from this class would imply not to instantiate an agent. Otherwise it\u0027d be pretty much a direct copy/paste (I removed anything not strictly needed and it\u0027s just a few lines, so you end up with a setUp that\u0027s almost identical).\n\nIt kind of makes sense for router tests not to require an agent. However, the creation of a router is still performed in the agent, which is where the ns_name is generated according to self.conf.use_namespaces. Looking back at the tests, they override conf.use_namespaces, but then nothing actually observes that value :) RouterInfo was created manually with ns_name\u003dNone, for both test cases (namespace\u003dTrue/False). Basically the tests were a bit broken!\n\nWhat I did was remove the namespace\u003dFalse tests since we intend to deprecate that anyway. This simplifies the test setUp and the tests themselves.","commit_id":"a54b136a9cecdb8283ba7d9cc313c0dacfa81e86"}]}
