)]}'
{"networking_ovn/common/maintenance.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"151c7456cdcdccdaefd2615fc9e6faf1acc73380","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        sg_db_obj \u003d self._ovn_client._plugin.get_security_group("},{"line_number":200,"context_line":"            admin_context, row.resource_uuid)"},{"line_number":201,"context_line":"        ovn_sg \u003d self._nb_idl.get_address_set("},{"line_number":202,"context_line":"            utils.ovn_addrset_name(row.resource_uuid, \u0027ip4\u0027))"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        # Since we don\u0027t have updates for Security Groups, we only need to"},{"line_number":205,"context_line":"        # check whether its been created or not."}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_5a545221","line":202,"range":{"start_line":202,"start_character":55,"end_line":202,"end_character":58},"updated":"2018-01-16 11:34:27.000000000","message":"I think there\u0027s no point to check but we don\u0027t really want to recover from a situation where the \u0027ip4\u0027 version of the address set exist and the \u0027ip6\u0027 doesn\u0027t or the other way around? I know that they\u0027re inserted in the same transaction so it shouldn\u0027t happen. If it changes over the time we\u0027d need to take it into account here.","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"ca7c13933107988db43d01c514e9af2d3523da24","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        sg_db_obj \u003d self._ovn_client._plugin.get_security_group("},{"line_number":200,"context_line":"            admin_context, row.resource_uuid)"},{"line_number":201,"context_line":"        ovn_sg \u003d self._nb_idl.get_address_set("},{"line_number":202,"context_line":"            utils.ovn_addrset_name(row.resource_uuid, \u0027ip4\u0027))"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        # Since we don\u0027t have updates for Security Groups, we only need to"},{"line_number":205,"context_line":"        # check whether its been created or not."}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_9c75f766","line":202,"range":{"start_line":202,"start_character":55,"end_line":202,"end_character":58},"in_reply_to":"7f96bb07_1cd48747","updated":"2018-01-16 11:43:15.000000000","message":"I think it\u0027s fine :) It just looks a bit \"weird\" and one has to look at the actual code to check how address sets are created and realize that both ip4 and ip6 are created when a SG is created and also that it happens within the same transaction. Perhaps hiding it by defaulting the parameter to \u0027ip4\u0027 would be clearer or leaving a comment but we could do it as part of your planned refactor at the end of the series.","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"14206333e5976bec561477b8d5625d53a81158a7","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        sg_db_obj \u003d self._ovn_client._plugin.get_security_group("},{"line_number":200,"context_line":"            admin_context, row.resource_uuid)"},{"line_number":201,"context_line":"        ovn_sg \u003d self._nb_idl.get_address_set("},{"line_number":202,"context_line":"            utils.ovn_addrset_name(row.resource_uuid, \u0027ip4\u0027))"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        # Since we don\u0027t have updates for Security Groups, we only need to"},{"line_number":205,"context_line":"        # check whether its been created or not."}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_1cd48747","line":202,"range":{"start_line":202,"start_character":55,"end_line":202,"end_character":58},"in_reply_to":"7f96bb07_5a545221","updated":"2018-01-16 11:39:36.000000000","message":"Right, yeah I\u0027m not taking this in account cause as you said, they are both created and deleted within the same transaction. So if one exist the other one will be there as well. \n\nI could change the code tho to look at both if we think it\u0027s necessary.","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"151c7456cdcdccdaefd2615fc9e6faf1acc73380","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        # check whether its been created or not."},{"line_number":206,"context_line":"        if not ovn_sg:"},{"line_number":207,"context_line":"            self._ovn_client.create_security_group(sg_db_obj)"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            db_rev.bump_revision(sg_db_obj, ovn_const.TYPE_SECURITY_GROUPS)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    def _fix_delete_security_group(self, row):"}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_fa1bde7d","line":208,"updated":"2018-01-16 11:34:27.000000000","message":"As in the SG rules, we don\u0027t support updates. Do we want to check if the revision number is different from the initial and log an error here? I\u0027d do that it for completeness but as you\u0027re working on a refactor, I leave this as a note :)","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"ca7c13933107988db43d01c514e9af2d3523da24","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        # check whether its been created or not."},{"line_number":206,"context_line":"        if not ovn_sg:"},{"line_number":207,"context_line":"            self._ovn_client.create_security_group(sg_db_obj)"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            db_rev.bump_revision(sg_db_obj, ovn_const.TYPE_SECURITY_GROUPS)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    def _fix_delete_security_group(self, row):"}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_fc119b05","line":208,"in_reply_to":"7f96bb07_9c42d73d","updated":"2018-01-16 11:43:15.000000000","message":"fair enough :)","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"14206333e5976bec561477b8d5625d53a81158a7","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        # check whether its been created or not."},{"line_number":206,"context_line":"        if not ovn_sg:"},{"line_number":207,"context_line":"            self._ovn_client.create_security_group(sg_db_obj)"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            db_rev.bump_revision(sg_db_obj, ovn_const.TYPE_SECURITY_GROUPS)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    def _fix_delete_security_group(self, row):"}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_9c42d73d","line":208,"in_reply_to":"7f96bb07_fa1bde7d","updated":"2018-01-16 11:39:36.000000000","message":"So not really, because there\u0027s an API in neutron to update security groups [0]. We, in networking-ovn, just don\u0027t make use of it (because we don\u0027t really need). So I\u0027m just bumping the version here to avoid it showing as an inconsistency.\n\n[0] https://review.openstack.org/#/c/529637/14/networking_ovn/ml2/mech_driver.py@223","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"}],"networking_ovn/ovsdb/impl_idl_ovn.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"151c7456cdcdccdaefd2615fc9e6faf1acc73380","unresolved":false,"context_lines":[{"line_number":607,"context_line":"            return idlutils.row_by_value(self.idl, \u0027Address_Set\u0027,"},{"line_number":608,"context_line":"                                         \u0027name\u0027, addr_name)"},{"line_number":609,"context_line":"        except idlutils.RowNotFound:"},{"line_number":610,"context_line":"            return None"},{"line_number":611,"context_line":""},{"line_number":612,"context_line":"    def check_revision_number(self, name, resource, resource_type,"},{"line_number":613,"context_line":"                              if_exists\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_5a02120d","line":610,"range":{"start_line":610,"start_character":12,"end_line":610,"end_character":23},"updated":"2018-01-16 11:34:27.000000000","message":"super nit: i\u0027d prefer just \"return\" :)","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"14206333e5976bec561477b8d5625d53a81158a7","unresolved":false,"context_lines":[{"line_number":607,"context_line":"            return idlutils.row_by_value(self.idl, \u0027Address_Set\u0027,"},{"line_number":608,"context_line":"                                         \u0027name\u0027, addr_name)"},{"line_number":609,"context_line":"        except idlutils.RowNotFound:"},{"line_number":610,"context_line":"            return None"},{"line_number":611,"context_line":""},{"line_number":612,"context_line":"    def check_revision_number(self, name, resource, resource_type,"},{"line_number":613,"context_line":"                              if_exists\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":14,"id":"7f96bb07_fcce7bb2","line":610,"range":{"start_line":610,"start_character":12,"end_line":610,"end_character":23},"in_reply_to":"7f96bb07_5a02120d","updated":"2018-01-16 11:39:36.000000000","message":"++!","commit_id":"18850039828a8a3ce729c61bf2abb0d951d8e9fd"}]}
