)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"c43c9f9905a3b92b555ea5051a7c0088a9437b59","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The L3 agent allocates link local address pairs used in connecting the"},{"line_number":10,"context_line":"routers to the floating ip namespace.  When those allocations are"},{"line_number":11,"context_line":"forgetten by restarting the L3 agent they all get rewired on restart."},{"line_number":12,"context_line":"This change preserves the allocations using a file in the local file"},{"line_number":13,"context_line":"system.  Storing them in the database would be overkill and would"},{"line_number":14,"context_line":"affect system performance."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"baada198_742b937c","line":11,"updated":"2014-08-13 04:32:55.000000000","message":"forgotten","commit_id":"c3c9f580393aea658571b00b3afd0b729dffe89b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c22d3f5da5c776bc1d4be9c599f325c89c4ed7b2","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The L3 agent allocates link local address pairs used in connecting the"},{"line_number":10,"context_line":"routers to the floating ip namespace.  When those allocations are"},{"line_number":11,"context_line":"forgetten by restarting the L3 agent they all get rewired on restart."},{"line_number":12,"context_line":"This change preserves the allocations using a file in the local file"},{"line_number":13,"context_line":"system.  Storing them in the database would be overkill and would"},{"line_number":14,"context_line":"affect system performance."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"baada198_348cbb39","line":11,"in_reply_to":"baada198_742b937c","updated":"2014-08-13 04:46:37.000000000","message":"Hah, nice catch.  I never saw that.  I will be sure to fix it if I have another reason to crack open this patch.","commit_id":"c3c9f580393aea658571b00b3afd0b729dffe89b"}],"neutron/agent/l3_agent.py":[{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"80292cdc78b151cf1d5a46e7377e6282d4ccad57","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return self.pool.pop()"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def release(self, key, subnet):"},{"line_number":157,"context_line":"        self.pool.add(subnet)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"class RouterInfo(object):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_77a89c21","line":157,"updated":"2014-07-31 19:28:17.000000000","message":"Should only the elements obtained from the pool be added back to the pool?  This function will allow any subnets to be put back.","commit_id":"8435d523d25fd8671877ee22163fd79cf4cc5115"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b4af091932e5923082893a691525b3b5e78fb000","unresolved":false,"context_lines":[{"line_number":194,"context_line":"            self.remembered.clear()"},{"line_number":195,"context_line":"            if not self.pool:"},{"line_number":196,"context_line":"                # More than 256 routers on a compute node!"},{"line_number":197,"context_line":"                raise Exception(_(\"Cannot allocate link local address\"))"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        self.allocations[key] \u003d self.pool.pop()"},{"line_number":200,"context_line":"        self._write_allocations()"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_737bdbf3","line":197,"updated":"2014-08-04 18:23:42.000000000","message":"I had changed this to RuntimeError but did not amend.  Grrr!","commit_id":"eadad0f56107dd3a50cc295f9ee879420f437e6f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b4af091932e5923082893a691525b3b5e78fb000","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        self._write_allocations()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _write_allocations(self):"},{"line_number":208,"context_line":"        current \u003d [\"%s,%s\\n\" % (k,v) for k,v in self.allocations.items()]"},{"line_number":209,"context_line":"        remembered \u003d [\"%s,%s\\n\" % (k,v) for k,v in self.remembered.items()]"},{"line_number":210,"context_line":"        self._write(current + remembered)"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_b30ad375","line":208,"updated":"2014-08-04 18:23:42.000000000","message":"And I had fixed these pep8 errors as well just didn\u0027t amend the commit.","commit_id":"eadad0f56107dd3a50cc295f9ee879420f437e6f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"3cef8ea490e29cf49b33a6a04ab16e942e5fa78d","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        self._write_allocations()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _write_allocations(self):"},{"line_number":208,"context_line":"        current \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.allocations.items()]"},{"line_number":209,"context_line":"        remembered \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.remembered.items()]"},{"line_number":210,"context_line":"        self._write(current + remembered)"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_3ef49f54","line":208,"updated":"2014-08-05 18:09:31.000000000","message":"Suggestion: not sure how big these dicts may get but using iteritems() might be better instead of items()","commit_id":"0c048c63012f7193e1e205f8f29cc387f3095078"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"02c780c4f0f51a2c008500e9dd44a5f9cc4a83a7","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        self._write_allocations()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _write_allocations(self):"},{"line_number":208,"context_line":"        current \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.allocations.items()]"},{"line_number":209,"context_line":"        remembered \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.remembered.items()]"},{"line_number":210,"context_line":"        self._write(current + remembered)"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_990a25d0","line":208,"in_reply_to":"baada198_3ef49f54","updated":"2014-08-05 18:57:14.000000000","message":"I considered .iteritems() but I chose items() for python 3 compatibility.  I don\u0027t expect this to create a large array in any case.  (never larger than 256 and probably never anywhere near 256).","commit_id":"0c048c63012f7193e1e205f8f29cc387f3095078"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"fedb5d701f863a5d4c7ac9998a7b2dff9e1399a2","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        self._write_allocations()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _write_allocations(self):"},{"line_number":208,"context_line":"        current \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.allocations.items()]"},{"line_number":209,"context_line":"        remembered \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.remembered.items()]"},{"line_number":210,"context_line":"        self._write(current + remembered)"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_bfb6e987","line":208,"in_reply_to":"baada198_990a25d0","updated":"2014-08-05 19:14:46.000000000","message":"fair point. I imagine we\u0027d need to cross the py30 bridge when we get to it everywhere else in the code :)","commit_id":"0c048c63012f7193e1e205f8f29cc387f3095078"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"3cef8ea490e29cf49b33a6a04ab16e942e5fa78d","unresolved":false,"context_lines":[{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _write_allocations(self):"},{"line_number":208,"context_line":"        current \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.allocations.items()]"},{"line_number":209,"context_line":"        remembered \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.remembered.items()]"},{"line_number":210,"context_line":"        self._write(current + remembered)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def _write(self, lines):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_fe55c71f","line":209,"updated":"2014-08-05 18:09:31.000000000","message":"Suggestion:\n\nperhaps you could do current.extend(remembered) and then:\n\nself._write(current)\n\nThe \u0027extend\u0027 is in-place whereas + creates a new list.","commit_id":"0c048c63012f7193e1e205f8f29cc387f3095078"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"02c780c4f0f51a2c008500e9dd44a5f9cc4a83a7","unresolved":false,"context_lines":[{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _write_allocations(self):"},{"line_number":208,"context_line":"        current \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.allocations.items()]"},{"line_number":209,"context_line":"        remembered \u003d [\"%s,%s\\n\" % (k, v) for k, v in self.remembered.items()]"},{"line_number":210,"context_line":"        self._write(current + remembered)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def _write(self, lines):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_d9f3bde6","line":209,"in_reply_to":"baada198_fe55c71f","updated":"2014-08-05 18:57:14.000000000","message":"Done","commit_id":"0c048c63012f7193e1e205f8f29cc387f3095078"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"7083345e28756a9918d98040c5ed9bb3e4afbc52","unresolved":false,"context_lines":[{"line_number":1539,"context_line":"            device \u003d ip_lib.IPDevice(rtr_2_fip_name, self.root_helper,"},{"line_number":1540,"context_line":"                                     namespace\u003dri.ns_name)"},{"line_number":1541,"context_line":"            ns_ip \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dfip_ns_name)"},{"line_number":1542,"context_line":"            device.route.delete_gateway(str(fip_2_rtr).ip, table\u003dFIP_RT_TBL)"},{"line_number":1543,"context_line":"            self.local_subnets.release(ri.router_id)"},{"line_number":1544,"context_line":"            ri.rtr_fip_subnet \u003d None"},{"line_number":1545,"context_line":"            ns_ip.del_veth(fip_2_rtr_name)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_813ac0e4","line":1542,"updated":"2014-08-12 19:31:37.000000000","message":"Bad merge conflict resolution.  My bad.","commit_id":"69ecc53df86e078056f2f9b0084a0e970938bbbe"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"c2eee93e82059ded05649aa7cfd25f5f5cc2e864","unresolved":false,"context_lines":[{"line_number":121,"context_line":"class TestLinkLocalAddrAllocator(base.BaseTestCase):"},{"line_number":122,"context_line":"    def setUp(self):"},{"line_number":123,"context_line":"        super(TestLinkLocalAddrAllocator, self).setUp()"},{"line_number":124,"context_line":"        self.subnet \u003d netaddr.IPNetwork(\u0027169.254.31.0/24\u0027)"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def test__init__(self):"},{"line_number":127,"context_line":"        a \u003d l3_agent.LinkLocalAllocator(\u0027/file\u0027, self.subnet.cidr)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_a17cebb7","line":124,"updated":"2014-08-06 16:05:59.000000000","message":"nit: the subnet used in l3_agent.py is a /23 - shouldn\u0027t matter here since you\u0027re not exhausting the pool","commit_id":"123934f95b3db2dfc8dd4dd231e1c34defb6437b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"c2eee93e82059ded05649aa7cfd25f5f5cc2e864","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    def test__init__readfile(self):"},{"line_number":132,"context_line":"        with mock.patch.object(l3_agent.LinkLocalAllocator, \u0027_read\u0027) as read:"},{"line_number":133,"context_line":"            read.return_value \u003d [\"da873ca2,169.254.31.28/31\\n\"]"},{"line_number":134,"context_line":"            a \u003d l3_agent.LinkLocalAllocator(\u0027/file\u0027, self.subnet.cidr)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        self.assertTrue(\u0027da873ca2\u0027 in a.remembered)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_3c580031","line":133,"updated":"2014-08-06 16:05:59.000000000","message":"nit: I know it\u0027s obvious at the moment that this is an even value (.28) and the odd (.29) is on L1859 making this point-to-point network.  Maybe a comment here, or defining these above with one so we remember.\n\nOr a comment in the allocator code itself?  I just can\u0027t remember if there\u0027s anywhere that talks about how this works besides going and looking at it once it\u0027s configured.","commit_id":"123934f95b3db2dfc8dd4dd231e1c34defb6437b"}]}
