)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c476cbef01b2f66d822b88728651f9e73a4a58f6","unresolved":false,"context_lines":[{"line_number":13,"context_line":"scenario."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This is introduced by commit ee4bae211309e0f1fcee5565ddd2379997e1de13,"},{"line_number":16,"context_line":"so using the same bug to track the fix."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Iceeffb8d0bc6067db8ef23774d9b4a3b991245ee"},{"line_number":19,"context_line":"Closes-Bug: 1367039"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da86d52c_868a2dbd","line":16,"updated":"2015-02-11 11:53:00.000000000","message":"I think it\u0027s a wrong way to handle it. The bug is different, and 1367039 is already marked as Fixed released, so not enough attention will be given to your fix.","commit_id":"d312d6f7109c3d7b8080cbdd671be843d687b2b3"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c476cbef01b2f66d822b88728651f9e73a4a58f6","unresolved":false,"context_lines":[{"line_number":16,"context_line":"so using the same bug to track the fix."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Iceeffb8d0bc6067db8ef23774d9b4a3b991245ee"},{"line_number":19,"context_line":"Closes-Bug: 1367039"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da86d52c_c690a5ef","line":19,"updated":"2015-02-11 11:53:00.000000000","message":"This is just Related-Bug, a new bug is needed to track the fix.","commit_id":"d312d6f7109c3d7b8080cbdd671be843d687b2b3"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"b7dc3fdbfd5a2b236884d1bdfd36f2bdb8f636db","unresolved":false,"context_lines":[{"line_number":16,"context_line":"so using the same bug to track the fix."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Iceeffb8d0bc6067db8ef23774d9b4a3b991245ee"},{"line_number":19,"context_line":"Closes-Bug: 1367039"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da86d52c_811d9211","line":19,"in_reply_to":"da86d52c_c690a5ef","updated":"2015-02-12 01:54:31.000000000","message":"I will open a new bug to track this fix.","commit_id":"d312d6f7109c3d7b8080cbdd671be843d687b2b3"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"f4574b5f56f9379f59f0a5b6541de1cde34a8c8a","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When router is migrating from legacy to distributed,"},{"line_number":10,"context_line":"ri object in l3 agent is a LegacyRouter object instead"},{"line_number":11,"context_line":"of DvrRouter object. Therefore it doesn\u0027t has dist_fip_count"},{"line_number":12,"context_line":"attribute. This patch fixed the AttributeError in this"},{"line_number":13,"context_line":"scenario."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"ba7be1f8_1131ae0b","line":11,"range":{"start_line":11,"start_character":40,"end_line":11,"end_character":41},"updated":"2015-02-19 23:56:43.000000000","message":"Nit: \"doesn\u0027t have\" (the English verb rules are complicated and arbitrary)","commit_id":"b9af5f814f6c1a34f58e97ef9a4f24a067acde0c"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"72f276b32cac973883119086fadb5a1c2021f773","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When router is migrating from legacy to distributed,"},{"line_number":10,"context_line":"ri object in l3 agent is a LegacyRouter object instead"},{"line_number":11,"context_line":"of DvrRouter object. Therefore it doesn\u0027t has dist_fip_count"},{"line_number":12,"context_line":"attribute. This patch fixed the AttributeError in this"},{"line_number":13,"context_line":"scenario."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"ba7be1f8_2ddc27e4","line":11,"in_reply_to":"ba7be1f8_1131ae0b","updated":"2015-02-24 07:19:46.000000000","message":"Done","commit_id":"b9af5f814f6c1a34f58e97ef9a4f24a067acde0c"}],"neutron/agent/l3/dvr_fip_ns.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"42460fb8bfd01f3a425a75ed10e39640b2af8ff3","unresolved":false,"context_lines":[{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    def scan_fip_ports(self, ri):"},{"line_number":222,"context_line":"        # don\u0027t scan if not dvr or count is not None"},{"line_number":223,"context_line":"        if getattr(ri, \u0027dist_fip_count\u0027) is not None:"},{"line_number":224,"context_line":"            return"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        # scan system for any existing fip ports"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_654fcf6b","line":223,"updated":"2015-02-05 04:54:39.000000000","message":"I don\u0027t think this fixes this. Won\u0027t think still raise an Attribute error? \n\n\nIn [5]: class A():\n    pass\n   ...: \n\nIn [6]: getattr(a, \"foo\")\n---------------------------------------------------------------------------\nAttributeError                            Traceback (most recent call last)\n\u003cipython-input-6-e8456a2293cd\u003e in \u003cmodule\u003e()\n----\u003e 1 getattr(a, \"foo\")\n\nAttributeError: A instance has no attribute \u0027foo\u0027","commit_id":"c1460a3ff61eeb38400816128ff7b1b9f1c715a1"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"a68d69d6788cd6d9e4588f985fd7948aee19eb0a","unresolved":false,"context_lines":[{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    def scan_fip_ports(self, ri):"},{"line_number":222,"context_line":"        # don\u0027t scan if not dvr or count is not None"},{"line_number":223,"context_line":"        if getattr(ri, \u0027dist_fip_count\u0027) is not None:"},{"line_number":224,"context_line":"            return"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        # scan system for any existing fip ports"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_57f17893","line":223,"in_reply_to":"da86d52c_654fcf6b","updated":"2015-02-06 02:02:33.000000000","message":"You are right. I forgot to add None as default value. Will fix this and add unit test in next patch.","commit_id":"c1460a3ff61eeb38400816128ff7b1b9f1c715a1"}],"neutron/tests/unit/agent/test_dvr_fip_ns.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"9fbe8478339b087763488aca30d3c64a3c7041f9","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    def test_scan_fip_ports_legacy_ri(self):"},{"line_number":191,"context_line":"        ri \u003d mock.Mock()"},{"line_number":192,"context_line":"        self._test_scan_fip_ports(ri, None)"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba7be1f8_736c8e9d","line":192,"updated":"2015-02-20 17:57:25.000000000","message":"I think you should add some assert here otherwise this UT has little value. You want to test that scan_fip_ports returns since ri.dist_fip_count is not None. How about asserting that ip_lib.device_exists was not called?\nSomething like this should work:\n\n@mock.patch.object(ip_lib, \u0027device_exists\u0027)                                  \ndef test_scan_fip_ports_legacy_ri(self, device_exists):                      \n    ri \u003d mock.Mock()                                                         \n    self._test_scan_fip_ports(ri, None)                                      \n    self.assertFalse(device_exists.called)","commit_id":"b9af5f814f6c1a34f58e97ef9a4f24a067acde0c"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"72f276b32cac973883119086fadb5a1c2021f773","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    def test_scan_fip_ports_legacy_ri(self):"},{"line_number":191,"context_line":"        ri \u003d mock.Mock()"},{"line_number":192,"context_line":"        self._test_scan_fip_ports(ri, None)"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba7be1f8_98470f4b","line":192,"in_reply_to":"ba7be1f8_736c8e9d","updated":"2015-02-24 07:19:46.000000000","message":"Done","commit_id":"b9af5f814f6c1a34f58e97ef9a4f24a067acde0c"}]}
