)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Yoni Shafrir \u003cyshafrir@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-12-29 07:48:26 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deleting an HA router with a port attached causes DB inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a HA router is being deleted via the Neutron Client"},{"line_number":10,"context_line":"while it has an attached interface the deletion will fail since"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_c5801c4c","line":7,"updated":"2014-12-29 11:36:32.000000000","message":"First line must be less than (or equal to) 50 chars. Please follow: https://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deleting an HA router with a port attached causes DB inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a HA router is being deleted via the Neutron Client"},{"line_number":10,"context_line":"while it has an attached interface the deletion will fail since"},{"line_number":11,"context_line":"the router is in use. However the order in which the deletion"},{"line_number":12,"context_line":"is done is - first remove the HA interfaces and then delete"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_25800046","line":9,"updated":"2014-12-29 11:36:32.000000000","message":"Does \"Neutron Client\" reference \"python-neutronclient\"? Why not use its proper name?","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a HA router is being deleted via the Neutron Client"},{"line_number":10,"context_line":"while it has an attached interface the deletion will fail since"},{"line_number":11,"context_line":"the router is in use. However the order in which the deletion"},{"line_number":12,"context_line":"is done is - first remove the HA interfaces and then delete"},{"line_number":13,"context_line":"the router. In this case the HA interfaces were indeed deleted"},{"line_number":14,"context_line":"but the router itself was not (router is in use)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_85e5343a","line":11,"updated":"2014-12-29 11:36:32.000000000","message":"The \"However\" part hints at a contradiction, but I didn\u0027t find one in the following sentence, since it describes the actual failure that happens. Overall I think this part of the paragraph needs a rewrite...","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":12,"context_line":"is done is - first remove the HA interfaces and then delete"},{"line_number":13,"context_line":"the router. In this case the HA interfaces were indeed deleted"},{"line_number":14,"context_line":"but the router itself was not (router is in use)."},{"line_number":15,"context_line":"This causes the DB to be inconsistent and may lead to"},{"line_number":16,"context_line":"undesired behaviors."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This patch simply deletes the router first, then we know"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_c5357ca9","line":15,"updated":"2014-12-29 11:36:32.000000000","message":"The DB is inconsistent in that there now exists an HA router with no HA interfaces? It sounds to me more like an inconsistency in the state, not the DB (since the DB will reflect the actual state, which is problematic).","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":13,"context_line":"the router. In this case the HA interfaces were indeed deleted"},{"line_number":14,"context_line":"but the router itself was not (router is in use)."},{"line_number":15,"context_line":"This causes the DB to be inconsistent and may lead to"},{"line_number":16,"context_line":"undesired behaviors."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This patch simply deletes the router first, then we know"},{"line_number":19,"context_line":"it\u0027s safe to remove it\u0027s HA interfaces as well."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_a55070d5","line":16,"updated":"2014-12-29 11:36:32.000000000","message":"(no action required) I think it\u0027s best to either specify some of these undesired behaviors, or not mention it at all. The inconsistency should be reason enough to justify this fix.","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":15,"context_line":"This causes the DB to be inconsistent and may lead to"},{"line_number":16,"context_line":"undesired behaviors."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This patch simply deletes the router first, then we know"},{"line_number":19,"context_line":"it\u0027s safe to remove it\u0027s HA interfaces as well."},{"line_number":20,"context_line":"If the router is in use and deletion fails the HA"},{"line_number":21,"context_line":"interfaces remain intact."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a961159_4570ac73","line":18,"updated":"2014-12-29 11:36:32.000000000","message":"nit: first, then -\u003e first, and then","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c8d87cfc7091634b52baea668099dd957cf5e98f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deleting an HA router with a port attached causes DB inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a HA router is being deleted via the Neutron Client"},{"line_number":10,"context_line":"while it has an attached interface the deletion will fail since"},{"line_number":11,"context_line":"the router is in use. However the order in which the deletion"},{"line_number":12,"context_line":"is done is - first remove the HA interfaces and then delete"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_c502dc71","line":9,"updated":"2014-12-29 11:49:54.000000000","message":"This paragraph can be skipped since this information is in the bug report and there\u0027s no need to explain the bug here. It\u0027s important to know how you fixed it.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"8ac8cfdfeabcd678c1618c5c32306f2d4398ef83","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deleting an HA router with a port attached causes DB inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a HA router is being deleted via the Neutron Client"},{"line_number":10,"context_line":"while it has an attached interface the deletion will fail since"},{"line_number":11,"context_line":"the router is in use. However the order in which the deletion"},{"line_number":12,"context_line":"is done is - first remove the HA interfaces and then delete"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_f7386b3f","line":9,"in_reply_to":"3a961159_c502dc71","updated":"2015-01-11 11:49:04.000000000","message":"I see no harm in putting the patch\u0027s motivation in context. It might seem like excess info since a bug describes it but its still nice to see the entire picture in the same place.\n\nAt least that\u0027s how i see.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"}],"neutron/db/l3_hamode_db.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c8d87cfc7091634b52baea668099dd957cf5e98f","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_c5c57c0b","line":413,"updated":"2014-12-29 11:49:54.000000000","message":"Moving the router deletion will fix the bug but still there\u0027s the possibility of inconsistencies. What if the router is deleted and then the operation at line 420 or the one at line 422 fails? I think all these operations should be inside a transaction so that all of them can be reverted in case of failure. Consider adding:\n\nwith context.session.begin(subtransactions\u003dTrue):\n\nbefore line 413","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"0baebc14946bbc7e007497891d584f8a92a57f25","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_7f2a7030","line":413,"in_reply_to":"3a961159_25156049","updated":"2015-01-13 08:50:22.000000000","message":"I\u0027m not sure how a validation check will resolve this since it will still be raceful and we can still end up with an inconsistent db.\n\nam i understanding your suggestion correctly ?","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2b1b976fefc6f031706a7c4c577c56c2f22ade38","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_5d3ad5cd","line":413,"in_reply_to":"3a961159_4510504e","updated":"2015-01-06 07:00:09.000000000","message":"That\u0027s why Yoni moved the deletion to line 413. If in that call the validation fails it throws an exception and lines 416+ are not executed.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"35cab3fca807cbdc4cc3f5cbcec153c880f7a19f","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_bdbd79b3","line":413,"in_reply_to":"3a961159_5d3ad5cd","updated":"2015-01-06 07:19:12.000000000","message":"Understood. To me it would have been safer to keep the chain as is, but introduce the validation check explicitly, but if you think this is okay too, then I\u0027ll shut up.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"417449a2e467830cd79c3d6f8974b0ef4ef100e0","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_4510504e","line":413,"in_reply_to":"3a961159_77b9db14","updated":"2015-01-05 19:58:19.000000000","message":"My understanding from the bug report is that the right fix would be to prevent the \u0027broken\u0027 deletion from happening in the first place, and force the user to remove the interfaces first and then delete the router.\n\nSo we should follow a fix along the lines of:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/db/l3_db.py#L397\n\nFrom Assaf\u0027s report:\n\nExpected behavior:\nDeletion validations should occur before deleting any resources. The deletion should fail and the router should continue to exist properly, with HA ports and all.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5effd5bb5f9fa6fcc61d97a5b4c5698495ed948a","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_97752a35","line":413,"in_reply_to":"3a961159_7f2a7030","updated":"2015-01-13 20:37:40.000000000","message":"That\u0027s fine, leave it as is.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"14aabaf726eaa07870f06de9a5df9935f6631363","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_039e5207","line":413,"in_reply_to":"3a961159_97752a35","updated":"2015-01-14 06:16:13.000000000","message":"What do you mean, leave the patch as it is right now ?","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"729d52c812dbd71931690a45645b37f0ef9d72c2","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_25156049","line":413,"in_reply_to":"3a961159_bdbd79b3","updated":"2015-01-12 12:11:42.000000000","message":"I agree with Armando. Explicit validation check would make it more clear. Removing my \u0027-1\u0027 .","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0e9915e582bba56fd35f32be3a7fc8c7b6261d29","unresolved":false,"context_lines":[{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def delete_router(self, context, id):"},{"line_number":412,"context_line":"        router_db \u003d self._get_router(context, id)"},{"line_number":413,"context_line":"        router_deleted \u003d super(L3_HA_NAT_db_mixin, self).delete_router("},{"line_number":414,"context_line":"            context, id)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        if router_db.extra_attributes.ha:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_77b9db14","line":413,"in_reply_to":"3a961159_c5c57c0b","updated":"2014-12-29 12:17:58.000000000","message":"Note that _delete_ha_interfaces uses the core plugin to delete the port. We do that so in ML2 for example the mechanism drivers are notified. We also notify the agents that the port should be deleted.\n\nWe shouldn\u0027t send notifications in transactions, that\u0027s why the code was originally structured this way, and still should be.\n\nWhen we create resources in this file you\u0027ll notice that we don\u0027t surround them in transactions, but perform manual rollbacks instead if we detect errors. You can\u0027t do this when you delete resources, so here we are.\n\nIf/when ML2 stops sending notifications during its operations (But buffer them and send them when the API call is complete, for example), any code that uses it can call out to it in transactions. Until then we\u0027re stuck in this mess.","commit_id":"8c0f13b9fea861e7ccb7fef2715aedaa21d297bd"}],"neutron/tests/unit/db/test_l3_ha_db.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":403,"context_line":"                               \u0027shared\u0027: False,"},{"line_number":404,"context_line":"                               \u0027admin_state_up\u0027: True,"},{"line_number":405,"context_line":"                               \u0027tenant_id\u0027: tenant_id}}"},{"line_number":406,"context_line":"        created_network \u003d plugin.create_network(ctx, network)"},{"line_number":407,"context_line":"        return created_network[\u0027id\u0027]"},{"line_number":408,"context_line":""},{"line_number":409,"context_line":"    def _create_subnet(self, plugin, ctx, network_id, cidr\u003d\u002710.0.0.0/8\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_e5a438bb","line":406,"updated":"2014-12-29 11:36:32.000000000","message":"Might be better to \u0027return plugin.create_network(ctx, network)[\u0027id\u0027]\u0027?\n\nSame in L423","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"42e2a58d6d5e58ae4a719f6301190932e6f9668b","unresolved":false,"context_lines":[{"line_number":403,"context_line":"                               \u0027shared\u0027: False,"},{"line_number":404,"context_line":"                               \u0027admin_state_up\u0027: True,"},{"line_number":405,"context_line":"                               \u0027tenant_id\u0027: tenant_id}}"},{"line_number":406,"context_line":"        created_network \u003d plugin.create_network(ctx, network)"},{"line_number":407,"context_line":"        return created_network[\u0027id\u0027]"},{"line_number":408,"context_line":""},{"line_number":409,"context_line":"    def _create_subnet(self, plugin, ctx, network_id, cidr\u003d\u002710.0.0.0/8\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_571e9fbc","line":406,"in_reply_to":"3a961159_e5a438bb","updated":"2014-12-29 12:40:27.000000000","message":"Done","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":423,"context_line":"        return created_subnet"},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"    def test_remove_ha_in_use(self):"},{"line_number":426,"context_line":"        router \u003d self._create_router(ctx\u003dself.admin_ctx)"},{"line_number":427,"context_line":"        network_id \u003d self._create_network(self.core_plugin, self.admin_ctx)"},{"line_number":428,"context_line":"        subnet \u003d self._create_subnet(self.core_plugin, self.admin_ctx,"},{"line_number":429,"context_line":"                                     network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_25864014","line":426,"updated":"2014-12-29 11:36:32.000000000","message":"If this test class will inherit NeutronDbPluginV2TestCase, you\u0027ll be able to use the contextmanagers router(), network() and subnet() to create these resources in a nicer way. Might be worth thinking about it.","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"42e2a58d6d5e58ae4a719f6301190932e6f9668b","unresolved":false,"context_lines":[{"line_number":423,"context_line":"        return created_subnet"},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"    def test_remove_ha_in_use(self):"},{"line_number":426,"context_line":"        router \u003d self._create_router(ctx\u003dself.admin_ctx)"},{"line_number":427,"context_line":"        network_id \u003d self._create_network(self.core_plugin, self.admin_ctx)"},{"line_number":428,"context_line":"        subnet \u003d self._create_subnet(self.core_plugin, self.admin_ctx,"},{"line_number":429,"context_line":"                                     network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_1724170d","line":426,"in_reply_to":"3a961159_25864014","updated":"2014-12-29 12:40:27.000000000","message":"I did use it but since i want to delete the router myself i will conflict with the context manager\u0027s cleanup.\nIt becomes overly complicated to assert the test\u0027s success this way.","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"4ff4eb9a9de4bf869fb7b6280ee8cfbb82315a41","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        network_id \u003d self._create_network(self.core_plugin, self.admin_ctx)"},{"line_number":428,"context_line":"        subnet \u003d self._create_subnet(self.core_plugin, self.admin_ctx,"},{"line_number":429,"context_line":"                                     network_id)"},{"line_number":430,"context_line":"        if_info \u003d {\u0027subnet_id\u0027: subnet[\u0027id\u0027]}"},{"line_number":431,"context_line":"        self.plugin.add_router_interface(self.admin_ctx,"},{"line_number":432,"context_line":"                                         router[\u0027id\u0027], if_info)"},{"line_number":433,"context_line":"        self.assertRaises(l3.RouterInUse, self.plugin.delete_router,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_6577683c","line":430,"updated":"2014-12-29 11:36:32.000000000","message":"nit: if_info -\u003e interface_info (if_info is a bit confusing).","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"42e2a58d6d5e58ae4a719f6301190932e6f9668b","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        network_id \u003d self._create_network(self.core_plugin, self.admin_ctx)"},{"line_number":428,"context_line":"        subnet \u003d self._create_subnet(self.core_plugin, self.admin_ctx,"},{"line_number":429,"context_line":"                                     network_id)"},{"line_number":430,"context_line":"        if_info \u003d {\u0027subnet_id\u0027: subnet[\u0027id\u0027]}"},{"line_number":431,"context_line":"        self.plugin.add_router_interface(self.admin_ctx,"},{"line_number":432,"context_line":"                                         router[\u0027id\u0027], if_info)"},{"line_number":433,"context_line":"        self.assertRaises(l3.RouterInUse, self.plugin.delete_router,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_b77c23ed","line":430,"in_reply_to":"3a961159_6577683c","updated":"2014-12-29 12:40:27.000000000","message":"Done","commit_id":"82bb7d486eff8195621b369639426b16e33b52ba"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"6fa884e4eed9bfec0054bbbadbcd2813391b1a6b","unresolved":false,"context_lines":[{"line_number":457,"context_line":"                                         router[\u0027id\u0027],"},{"line_number":458,"context_line":"                                         interface_info)"},{"line_number":459,"context_line":"        self.assertRaises(l3.RouterInUse, self.plugin.delete_router,"},{"line_number":460,"context_line":"                          self.admin_ctx, router[\u0027id\u0027])"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"class L3HAUserTestCase(L3HATestFramework):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a930d6b_94424666","line":460,"updated":"2015-01-26 12:38:40.000000000","message":"Seems to me that this test would\u0027ve worked even without your change.\n\nDo you want to additionally check that the HA interface remained?","commit_id":"4fc7b1a60859b173e3ae8759ea25befb8851becf"},{"author":{"_account_id":14024,"name":"Yoni Shafrir","email":"yshafrir@redhat.com","username":"yoni"},"change_message_id":"ddbf5aa2a531918c5cb3b7bfbe4c96ded93a7e67","unresolved":false,"context_lines":[{"line_number":457,"context_line":"                                         router[\u0027id\u0027],"},{"line_number":458,"context_line":"                                         interface_info)"},{"line_number":459,"context_line":"        self.assertRaises(l3.RouterInUse, self.plugin.delete_router,"},{"line_number":460,"context_line":"                          self.admin_ctx, router[\u0027id\u0027])"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"class L3HAUserTestCase(L3HATestFramework):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a930d6b_261943d7","line":460,"in_reply_to":"1a930d6b_94424666","updated":"2015-01-27 06:38:38.000000000","message":"Your\u0027e right, i\u0027ll verify that.","commit_id":"4fc7b1a60859b173e3ae8759ea25befb8851becf"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"25d5013f5837e3e69fc2709cd55c39236a37c789","unresolved":false,"context_lines":[{"line_number":457,"context_line":"                                         router[\u0027id\u0027],"},{"line_number":458,"context_line":"                                         interface_info)"},{"line_number":459,"context_line":"        self.assertRaises(l3.RouterInUse, self.plugin.delete_router,"},{"line_number":460,"context_line":"                          self.admin_ctx, router[\u0027id\u0027])"},{"line_number":461,"context_line":"        with self.admin_ctx.session.begin(subtransactions\u003dTrue):"},{"line_number":462,"context_line":"            bindings \u003d self.plugin.get_ha_router_port_bindings("},{"line_number":463,"context_line":"                self.admin_ctx, [router[\u0027id\u0027]])"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_1db3a4e9","line":460,"updated":"2015-01-27 13:35:35.000000000","message":"Please remove line 461.","commit_id":"a9dc301b103075328df0fe4c3b1c1e0bf3ade5cb"}]}
