)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"c12e32d90c8dc6e7146d6c74e75fb5fd997888ff","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Closes-bug: #1469615"},{"line_number":12,"context_line":"Closes-bug: #1279683"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I3e5ac388eada66f0988316f303705207311ff9e9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_c6de79d9","line":13,"updated":"2015-07-09 13:03:07.000000000","message":"Since this will now result in DHCP changes being via manipulation of the subnet, I really think that information should be in the commit message\nand a DocImpact tag should be added.","commit_id":"1b2aefb9bd005a804a8a2b4104551941d2da1e87"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"ffced11f68be898162d665de745f30326d8933ff","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Closes-bug: #1469615"},{"line_number":12,"context_line":"Closes-bug: #1279683"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I3e5ac388eada66f0988316f303705207311ff9e9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_a9ad2586","line":13,"in_reply_to":"ba3cc151_c6de79d9","updated":"2015-07-10 00:59:11.000000000","message":"hi Ryan Moats, you are right, it change the API, so it should \nadd DocImpact tag.","commit_id":"1b2aefb9bd005a804a8a2b4104551941d2da1e87"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"c692a35bd71a5e86b09bf614e75adb07d71f7562","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     shihanzhang \u003cshihanzhang@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-10 09:01:06 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Prevent deleting dhcp port from the API"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_c3cf0b56","line":7,"updated":"2015-07-10 14:26:02.000000000","message":"nit: from -\u003e via","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"7f4a41b700b5fc99966d2b79a1a0f7973fbd0301","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     shihanzhang \u003cshihanzhang@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-10 09:01:06 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Prevent deleting dhcp port from the API"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_592c63ab","line":7,"in_reply_to":"ba3cc151_c3cf0b56","updated":"2015-07-11 05:45:40.000000000","message":"Done","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"42494fa1a0770d3add0f01579a51bc58c01fc96a","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_c893aa5b","line":11,"updated":"2015-07-10 14:01:00.000000000","message":"This isn\u0027t actually a change in the API layer. For example, plugins other than ML2 are not affected by this patch. This change warrants a doc note regardless.","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"7f4a41b700b5fc99966d2b79a1a0f7973fbd0301","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_f4fe9e04","line":11,"in_reply_to":"ba3cc151_5e98b01b","updated":"2015-07-11 05:45:40.000000000","message":"I agree that it is better to filed in Doc","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"7c5e6a666dd9af30702acc20446bc64c5472e962","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_e359ef5c","line":11,"in_reply_to":"ba3cc151_c893aa5b","updated":"2015-07-10 14:17:00.000000000","message":"@Assaf: agreed - I wanted the message to say that the dhcp port will now be removed via the subnet API, which is what led to the DocImpact","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"7f4a41b700b5fc99966d2b79a1a0f7973fbd0301","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_b408162a","line":11,"in_reply_to":"ba3cc151_c893aa5b","updated":"2015-07-11 05:45:40.000000000","message":"thx for your suggestion","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"7f4a41b700b5fc99966d2b79a1a0f7973fbd0301","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_14046213","line":11,"in_reply_to":"ba3cc151_e359ef5c","updated":"2015-07-11 05:45:40.000000000","message":"Done","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"c692a35bd71a5e86b09bf614e75adb07d71f7562","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_5e98b01b","line":11,"in_reply_to":"ba3cc151_e359ef5c","updated":"2015-07-10 14:26:02.000000000","message":"I geuss Assaf is right but ML2 and dhcp-agent are reference implementation. IMO, I believe change of the behavior is important for neutron users and it\u0027 better to be filed in Doc.","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"c692a35bd71a5e86b09bf614e75adb07d71f7562","unresolved":false,"context_lines":[{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_3e728cb1","line":12,"updated":"2015-07-10 14:26:02.000000000","message":"I feel strange a little. I considered a poor sentence.\n\n dhcp port shouldn\u0027t be deleted via API because it\u0027s a internal\n port is needed by dhcp service. This fix will add a check to\n prevent deleting the port via API. The fix will change traditional\n behavior about deleting dhcp port so the change will be filed\n into Doc.","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"7f4a41b700b5fc99966d2b79a1a0f7973fbd0301","unresolved":false,"context_lines":[{"line_number":9,"context_line":"dhcp port is a internal port, it should not allowed be deleted"},{"line_number":10,"context_line":"via API, this fix will add a check to prevent deleting dhcp port"},{"line_number":11,"context_line":"via API, but it changes the API delete_port, so the Doc also need"},{"line_number":12,"context_line":"to  change."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_94107250","line":12,"in_reply_to":"ba3cc151_3e728cb1","updated":"2015-07-11 05:45:40.000000000","message":"thx very much for your help!","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d25a905e5c417dde6a3f1a8ae4d0d27e693e66f7","unresolved":false,"context_lines":[{"line_number":1246,"context_line":"            raise exc.ServicePortInUse(port_id\u003dport_id, reason\u003de)"},{"line_number":1247,"context_line":""},{"line_number":1248,"context_line":"    def _prevent_dhcp_port_deletion(self, port_check, port):"},{"line_number":1249,"context_line":"        if not port_check:"},{"line_number":1250,"context_line":"            return"},{"line_number":1251,"context_line":"        if port[\u0027device_owner\u0027] \u003d\u003d const.DEVICE_OWNER_DHCP:"},{"line_number":1252,"context_line":"            raise exc.DhcpPortInUse(port_id\u003dport[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_b3c30757","line":1249,"updated":"2015-07-07 04:32:48.000000000","message":"This if-statement should be moved to 1280 because the number of process decreases that is, calling function and argument copy.","commit_id":"88c91eca36cc28ab64fd208ec0335611485def6d"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"308da5f63e77ad5205ae22c2025e15b48a7e4e81","unresolved":false,"context_lines":[{"line_number":1255,"context_line":"    @oslo_db_api.wrap_db_retry(max_retries\u003ddb_api.MAX_RETRIES,"},{"line_number":1256,"context_line":"                               retry_on_deadlock\u003dTrue)"},{"line_number":1257,"context_line":"    def delete_port(self, context, id, l3_port_check\u003dTrue,"},{"line_number":1258,"context_line":"                    dhcp_port_check\u003dTrue):"},{"line_number":1259,"context_line":"        self._pre_delete_port(context, id, l3_port_check)"},{"line_number":1260,"context_line":"        # TODO(armax): get rid of the l3 dependency in the with block"},{"line_number":1261,"context_line":"        removed_routers \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_e4fd473c","line":1258,"updated":"2015-07-07 06:37:16.000000000","message":"this new flags needs to be added to the db base class as well.","commit_id":"88c91eca36cc28ab64fd208ec0335611485def6d"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"76bbf49045389f177b26905d567fafcba3ce39bc","unresolved":false,"context_lines":[{"line_number":1255,"context_line":"    @oslo_db_api.wrap_db_retry(max_retries\u003ddb_api.MAX_RETRIES,"},{"line_number":1256,"context_line":"                               retry_on_deadlock\u003dTrue)"},{"line_number":1257,"context_line":"    def delete_port(self, context, id, l3_port_check\u003dTrue,"},{"line_number":1258,"context_line":"                    dhcp_port_check\u003dTrue):"},{"line_number":1259,"context_line":"        self._pre_delete_port(context, id, l3_port_check)"},{"line_number":1260,"context_line":"        # TODO(armax): get rid of the l3 dependency in the with block"},{"line_number":1261,"context_line":"        removed_routers \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_f0041ec7","line":1258,"in_reply_to":"ba3cc151_e4fd473c","updated":"2015-07-07 07:54:54.000000000","message":"do you mean that it should add the check to db base? why?","commit_id":"88c91eca36cc28ab64fd208ec0335611485def6d"}],"neutron/tests/unit/plugins/ml2/test_plugin.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"42494fa1a0770d3add0f01579a51bc58c01fc96a","unresolved":false,"context_lines":[{"line_number":636,"context_line":"        ctx \u003d context.get_admin_context()"},{"line_number":637,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":638,"context_line":"        with self.port(device_owner\u003dconstants.DEVICE_OWNER_DHCP) as port:"},{"line_number":639,"context_line":"            with mock.patch.object("},{"line_number":640,"context_line":"                    plugin,"},{"line_number":641,"context_line":"                    \u0027_prevent_dhcp_port_deletion\u0027,"},{"line_number":642,"context_line":"                    side_effect\u003dexc.DhcpPortInUse("}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_2838163d","line":639,"updated":"2015-07-10 14:01:00.000000000","message":"No... No no no, no no, no. No. Please remove this mock. You\u0027re testing that True \u003d\u003d True, please don\u0027t do that. I\u0027m just gonna go ahead and cite myself here: http://assafmuller.com/2015/05/17/testing-lightning-talk/","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"7f4a41b700b5fc99966d2b79a1a0f7973fbd0301","unresolved":false,"context_lines":[{"line_number":636,"context_line":"        ctx \u003d context.get_admin_context()"},{"line_number":637,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":638,"context_line":"        with self.port(device_owner\u003dconstants.DEVICE_OWNER_DHCP) as port:"},{"line_number":639,"context_line":"            with mock.patch.object("},{"line_number":640,"context_line":"                    plugin,"},{"line_number":641,"context_line":"                    \u0027_prevent_dhcp_port_deletion\u0027,"},{"line_number":642,"context_line":"                    side_effect\u003dexc.DhcpPortInUse("}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_d424bab0","line":639,"in_reply_to":"ba3cc151_2838163d","updated":"2015-07-11 05:45:40.000000000","message":"ok, I will read this!","commit_id":"77c7099d9fc1b842508888430a88ab7beef23680"}]}
