)]}'
{"neutron/services/firewall/fwaas_plugin.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"c4022b0d46da76de7cbb19be926d72490dd35a00","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7adec928_3c49d1b7","side":"PARENT","line":298,"updated":"2014-05-22 13:23:19.000000000","message":"This is necessary to fire RPC event which the parent class does not send.","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"98ad574c341abf5c32e773a83f9766a858f2ef32","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_00965b4c","side":"PARENT","line":298,"in_reply_to":"3ae8d1ca_ec834cca","updated":"2014-05-28 20:29:53.000000000","message":"Yes, for this patch, just change the name of the private function.","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":7317,"name":"Bo Lin","email":"linb@vmware.com","username":"berlin"},"change_message_id":"c3dfb3f8e62b3765d4dc72e9624577d4f84b8b7b","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_ec834cca","side":"PARENT","line":298,"in_reply_to":"3ae8d1ca_fbe784e2","updated":"2014-05-28 05:18:40.000000000","message":"@Summit, I prefer to keep the present design that we can\u0027t delete a firewall rule once it is attached to a firewall policy. Which way do you think out to make it easier to delete? IMO(I didn\u0027t test it), if a firewall rule is \"shared\" by two tenants, if the firewall rule has been attached to a firewall policy by one tenant, the other tenant can\u0027t directly delete it. What do you think?\nAnd if so, the next patch would just change the name of the private method.","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"20b615bd57f45df6c30cf98e634c09a8e1b891f5","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_fbe784e2","side":"PARENT","line":298,"in_reply_to":"5adbc538_b5b9abeb","updated":"2014-05-28 02:47:31.000000000","message":"The analysis here is correct. We do not allow deleting a firewall_rule if its associated with a firewall policy, regardless of whether the firewall_policy is applied to a firewall or not. To delete a firewall_rule, one would have to remove the firewall_rule from the firewall_policy and then delete it. If the firewall_policy (associated with that firewall_rule) was indeed associated with a firewall, the RPC event would be sent when the firewall_rule is removed from the firewall_policy (its an update at that point).\n\nI was debating whether we should change those semantics (to make it easier to delete), but if we do, that should probably be a separate bug/patch.\n\nFor now, if we want to drop this function, we should change the name of the private method to:\n\n_ensure_update_firewall_rule()","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"66b3be028b56fc14c769e4b9a6cdbcf251a66c08","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7adec928_d19feb01","side":"PARENT","line":298,"in_reply_to":"7adec928_3c49d1b7","updated":"2014-05-22 17:59:36.000000000","message":"I agree, shouldn\u0027t we get agent side filter deleted?","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":7317,"name":"Bo Lin","email":"linb@vmware.com","username":"berlin"},"change_message_id":"e1e44a0e3e8b4cb660efe2739d0745bbf27abf7d","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7adec928_d9a9c925","side":"PARENT","line":298,"in_reply_to":"7adec928_3c49d1b7","updated":"2014-05-23 01:36:56.000000000","message":"In line 286, it would call https://github.com/openstack/neutron/blob/master/neutron/db/firewall/firewall_db.py#L393. If firewall_poicy_id is not none, it would raise FirewallRuleInUse error first and not fire RPC event.","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":7317,"name":"Bo Lin","email":"linb@vmware.com","username":"berlin"},"change_message_id":"a8414c76f2df9e744bdbe457d6c29b560737d557","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5adbc538_b5b9abeb","side":"PARENT","line":298,"in_reply_to":"7adec928_a1b91f7b","updated":"2014-05-26 03:06:21.000000000","message":"@Nachi, i didn\u0027t get your point wholly, did you mean \"you can NOT delete firewall rule linked with policy_id\". We don\u0027t need to consider \"fire RPC event\", since we can\u0027t delete the rule DB entry if it is attached to a firewall policy.\n\nThe comments \"  # At this point we have already deleted the rule in the DB, \t\t\n288\t        # however it\u0027s still not deleted on the backend firewall. \" is not correct, since if we can delete the rule in DB, it must be only a db object and it can\u0027t exist at the backend.","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":7317,"name":"Bo Lin","email":"linb@vmware.com","username":"berlin"},"change_message_id":"e1e44a0e3e8b4cb660efe2739d0745bbf27abf7d","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7adec928_b9715de0","side":"PARENT","line":298,"in_reply_to":"7adec928_d19feb01","updated":"2014-05-23 01:36:56.000000000","message":"Hi Nachi, the same response for Mcclain.","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"3bd6ae7e2e0c576e3240cbf04ff373c6b0253cd5","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        # PENDING_UPDATE state, the firewall behavior might differ based"},{"line_number":296,"context_line":"        # on the backend implementation."},{"line_number":297,"context_line":"        if firewall_policy_id:"},{"line_number":298,"context_line":"            self._rpc_update_firewall_policy(context, firewall_policy_id)"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    def insert_rule(self, context, id, rule_info):"},{"line_number":301,"context_line":"        LOG.debug(_(\"insert_rule() called\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7adec928_a1b91f7b","side":"PARENT","line":298,"in_reply_to":"7adec928_d9a9c925","updated":"2014-05-23 05:23:32.000000000","message":"Ah I got your point now!\nso you can delete firewall rule linked with policy_id.\nWhen we delete policy_id, filtering rule in the agent will be deleted, right?","commit_id":"956b9f4d22c4a2a73be3d360d660c877e4ddcde8"}]}
