)]}'
{"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"42e98bcb5c3bdc22e953e02ef8f041bba0b208b1","unresolved":false,"context_lines":[{"line_number":418,"context_line":"            self.delete_port(context.elevated(), port)"},{"line_number":419,"context_line":"        # clean up subnets"},{"line_number":420,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"},{"line_number":421,"context_line":"        with db_api.exc_to_retry(sql_exc.IntegrityError):"},{"line_number":422,"context_line":"            # retry integrity errors so we can check the port type and"},{"line_number":423,"context_line":"            # cleanup if a network-owned port snuck in without failing"},{"line_number":424,"context_line":"            for subnet in subnets:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_20f95a4e","line":421,"range":{"start_line":421,"start_character":33,"end_line":421,"end_character":55},"updated":"2017-02-17 00:06:49.000000000","message":"Per https://review.openstack.org/#/c/429148, shouldn\u0027t we catch DBReferenceError? Are you not referring to this patchset here: https://review.openstack.org/#/c/429148/3//COMMIT_MSG@27?","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f47a86e304e3590cf051ae1845a948e82b46fa5","unresolved":false,"context_lines":[{"line_number":418,"context_line":"            self.delete_port(context.elevated(), port)"},{"line_number":419,"context_line":"        # clean up subnets"},{"line_number":420,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"},{"line_number":421,"context_line":"        with db_api.exc_to_retry(sql_exc.IntegrityError):"},{"line_number":422,"context_line":"            # retry integrity errors so we can check the port type and"},{"line_number":423,"context_line":"            # cleanup if a network-owned port snuck in without failing"},{"line_number":424,"context_line":"            for subnet in subnets:"}],"source_content_type":"text/x-python","patch_set":8,"id":"da36d5c6_c5e4173d","line":421,"range":{"start_line":421,"start_character":33,"end_line":421,"end_character":55},"in_reply_to":"fa31d9ce_20f95a4e","updated":"2017-02-20 10:30:22.000000000","message":"Yep. I wrote this before that patch and forgot to update it. IntegrityError is a superset of DBReferenceError so it would work, but it would be a good idea to be as narrow as possible.","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"42e98bcb5c3bdc22e953e02ef8f041bba0b208b1","unresolved":false,"context_lines":[{"line_number":420,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"},{"line_number":421,"context_line":"        with db_api.exc_to_retry(sql_exc.IntegrityError):"},{"line_number":422,"context_line":"            # retry integrity errors so we can check the port type and"},{"line_number":423,"context_line":"            # cleanup if a network-owned port snuck in without failing"},{"line_number":424,"context_line":"            for subnet in subnets:"},{"line_number":425,"context_line":"                self.delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":426,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_40dc8e18","line":423,"range":{"start_line":423,"start_character":22,"end_line":423,"end_character":70},"updated":"2017-02-17 00:06:49.000000000","message":"I have been following this bug lately: https://bugs.launchpad.net/neutron/+bug/1627424. A common occurrence of it is as follows:\n\n1) The server receivers a create dhcp port request: http://paste.openstack.org/raw/598918/\n\n2) Concurrently, the server receives request to delete the network the port in point 1 is being created on: http://paste.openstack.org/raw/599252/\n\n3) The request to delete the network succeeds in deleting the port and the network\n\n4) The request to create the port fails producing Traceback with FlushError exception\n\nIf I understand correctly what is implied in this comment, that is sort of the outcome we are looking for, in that the port creation failed, so the IntegrityError exception won\u0027t be raised. The only problem is that we are leaving Tracebacks with FlushError in the logs. Should we somehow quite down that exception? I understand that is out of the scope of this patchset, I am just trying to agree on how to move forward in regards to the bug I refer to at the top of this comment.\n\nThe flip side is that if the request to create the dhcp port were to succeed, that would generate an IntegrityError, the delete network request will be retried and we wipe out the port. Correct?","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"602d96c59e4dbd1d01579fe1c849545bf8a22b3a","unresolved":false,"context_lines":[{"line_number":420,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"},{"line_number":421,"context_line":"        with db_api.exc_to_retry(sql_exc.IntegrityError):"},{"line_number":422,"context_line":"            # retry integrity errors so we can check the port type and"},{"line_number":423,"context_line":"            # cleanup if a network-owned port snuck in without failing"},{"line_number":424,"context_line":"            for subnet in subnets:"},{"line_number":425,"context_line":"                self.delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":426,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":8,"id":"da36d5c6_c2231f04","line":423,"range":{"start_line":423,"start_character":22,"end_line":423,"end_character":70},"in_reply_to":"da36d5c6_45f827e6","updated":"2017-02-20 17:09:08.000000000","message":"Yes, I realize that this patchset and the one for subnet might make the FlushError bug go away. In fact, I am updating that bug with a note stating that we need to wait for the merge of these two patchsets and then re-evaluate whether the bug is closed or not :-)","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f47a86e304e3590cf051ae1845a948e82b46fa5","unresolved":false,"context_lines":[{"line_number":420,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"},{"line_number":421,"context_line":"        with db_api.exc_to_retry(sql_exc.IntegrityError):"},{"line_number":422,"context_line":"            # retry integrity errors so we can check the port type and"},{"line_number":423,"context_line":"            # cleanup if a network-owned port snuck in without failing"},{"line_number":424,"context_line":"            for subnet in subnets:"},{"line_number":425,"context_line":"                self.delete_subnet(context, subnet[\u0027id\u0027])"},{"line_number":426,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":8,"id":"da36d5c6_45f827e6","line":423,"range":{"start_line":423,"start_character":22,"end_line":423,"end_character":70},"in_reply_to":"fa31d9ce_40dc8e18","updated":"2017-02-20 10:30:22.000000000","message":"Yes, if you\u0027ve traced that flusherror to being caused by the subnet or network being deleted out from underneath the dhcp port creation request, then we just need to find a way to detect that was the cause and suppress the exception in that case.\n\n\u003eThe flip side is that if the request to create the dhcp port were to succeed, that would generate an IntegrityError, the delete network request will be retried and we wipe out the port. Correct?\n\nYep.\n\nThis patch and the patch to cleanup subnet_delete may significantly alter how long some of these sqlalchemy objects are kept in memory, so that bug *might* disappear.","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"f2952618bd6753880a74e5bb3af4a0d9f169136a","unresolved":false,"context_lines":[{"line_number":398,"context_line":"                ndb_utils.filter_non_model_columns(n, models_v2.Network))"},{"line_number":399,"context_line":"        return self._make_network_dict(network, context\u003dcontext)"},{"line_number":400,"context_line":""},{"line_number":401,"context_line":"    def _ensure_network_not_in_use(self, context, net_id):"},{"line_number":402,"context_line":"        non_auto_ports \u003d context.session.query("},{"line_number":403,"context_line":"            models_v2.Port).filter_by(network_id\u003dnet_id).filter("},{"line_number":404,"context_line":"            ~models_v2.Port.device_owner.in_(AUTO_DELETE_PORT_OWNERS))"},{"line_number":405,"context_line":"        if non_auto_ports.count():"},{"line_number":406,"context_line":"            raise exc.NetworkInUse(net_id\u003dnet_id)"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"    @db_api.retry_if_session_inactive()"},{"line_number":409,"context_line":"    def delete_network(self, context, id):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da36d5c6_3978892b","line":406,"range":{"start_line":401,"start_character":4,"end_line":406,"end_character":49},"updated":"2017-02-21 21:01:12.000000000","message":"What about moving this method as classmethod of network OVO class?","commit_id":"663a593bb14d4e4cba73cd0576d2464b34c7ff69"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"08274cdc11312cee3851db8947e07430a11a530e","unresolved":false,"context_lines":[{"line_number":398,"context_line":"                ndb_utils.filter_non_model_columns(n, models_v2.Network))"},{"line_number":399,"context_line":"        return self._make_network_dict(network, context\u003dcontext)"},{"line_number":400,"context_line":""},{"line_number":401,"context_line":"    def _ensure_network_not_in_use(self, context, net_id):"},{"line_number":402,"context_line":"        non_auto_ports \u003d context.session.query("},{"line_number":403,"context_line":"            models_v2.Port).filter_by(network_id\u003dnet_id).filter("},{"line_number":404,"context_line":"            ~models_v2.Port.device_owner.in_(AUTO_DELETE_PORT_OWNERS))"},{"line_number":405,"context_line":"        if non_auto_ports.count():"},{"line_number":406,"context_line":"            raise exc.NetworkInUse(net_id\u003dnet_id)"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"    @db_api.retry_if_session_inactive()"},{"line_number":409,"context_line":"    def delete_network(self, context, id):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da36d5c6_88487389","line":406,"range":{"start_line":401,"start_character":4,"end_line":406,"end_character":49},"in_reply_to":"da36d5c6_3978892b","updated":"2017-02-28 07:44:37.000000000","message":"Let\u0027s do that as a follow-up patch. I want to keep this one as focused on just the refactor as possible. If you have time to submit it that would be awesome.","commit_id":"663a593bb14d4e4cba73cd0576d2464b34c7ff69"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b74de1ac9196e4c5f9984710d8c03a48f291f36a","unresolved":false,"context_lines":[{"line_number":407,"context_line":"        registry.notify(resources.NETWORK, events.BEFORE_DELETE, self,"},{"line_number":408,"context_line":"                        context\u003dcontext, network_id\u003did)"},{"line_number":409,"context_line":"        self._ensure_network_not_in_use(context, id)"},{"line_number":410,"context_line":"        auto_delete_ports \u003d [p.id for p in context.session.query("},{"line_number":411,"context_line":"            models_v2.Port.id).filter_by(network_id\u003did).filter("},{"line_number":412,"context_line":"            models_v2.Port.device_owner.in_(AUTO_DELETE_PORT_OWNERS))]"},{"line_number":413,"context_line":"        for port in auto_delete_ports:"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_d53fb4b1","line":410,"updated":"2017-03-04 03:38:22.000000000","message":"Done","commit_id":"bc054148530825d8047de0359712ad4a36267b90"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"be40ea68440a2c7ad59a02ff557cf188883e4617","unresolved":false,"context_lines":[{"line_number":407,"context_line":"        registry.notify(resources.NETWORK, events.BEFORE_DELETE, self,"},{"line_number":408,"context_line":"                        context\u003dcontext, network_id\u003did)"},{"line_number":409,"context_line":"        self._ensure_network_not_in_use(context, id)"},{"line_number":410,"context_line":"        auto_delete_ports \u003d [p.id for p in context.session.query("},{"line_number":411,"context_line":"            models_v2.Port.id).filter_by(network_id\u003did).filter("},{"line_number":412,"context_line":"            models_v2.Port.device_owner.in_(AUTO_DELETE_PORT_OWNERS))]"},{"line_number":413,"context_line":"        for port in auto_delete_ports:"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_0958d431","line":410,"range":{"start_line":410,"start_character":8,"end_line":410,"end_character":25},"updated":"2017-03-02 04:24:32.000000000","message":"Nit: Since you changed the query to just retrieve the port ids, consider renaming this to auto_delete_ports_ids","commit_id":"bc054148530825d8047de0359712ad4a36267b90"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b74de1ac9196e4c5f9984710d8c03a48f291f36a","unresolved":false,"context_lines":[{"line_number":410,"context_line":"        auto_delete_ports \u003d [p.id for p in context.session.query("},{"line_number":411,"context_line":"            models_v2.Port.id).filter_by(network_id\u003did).filter("},{"line_number":412,"context_line":"            models_v2.Port.device_owner.in_(AUTO_DELETE_PORT_OWNERS))]"},{"line_number":413,"context_line":"        for port in auto_delete_ports:"},{"line_number":414,"context_line":"            self.delete_port(context.elevated(), port)"},{"line_number":415,"context_line":"        # clean up subnets"},{"line_number":416,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_f54af853","line":413,"updated":"2017-03-04 03:38:22.000000000","message":"Done","commit_id":"bc054148530825d8047de0359712ad4a36267b90"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"be40ea68440a2c7ad59a02ff557cf188883e4617","unresolved":false,"context_lines":[{"line_number":410,"context_line":"        auto_delete_ports \u003d [p.id for p in context.session.query("},{"line_number":411,"context_line":"            models_v2.Port.id).filter_by(network_id\u003did).filter("},{"line_number":412,"context_line":"            models_v2.Port.device_owner.in_(AUTO_DELETE_PORT_OWNERS))]"},{"line_number":413,"context_line":"        for port in auto_delete_ports:"},{"line_number":414,"context_line":"            self.delete_port(context.elevated(), port)"},{"line_number":415,"context_line":"        # clean up subnets"},{"line_number":416,"context_line":"        subnets \u003d self._get_subnets_by_network(context, id)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_29f758f6","line":413,"range":{"start_line":413,"start_character":8,"end_line":413,"end_character":37},"updated":"2017-03-02 04:24:32.000000000","message":"Nit: if you follow suggestion to L410, this might become:\n\nfor port_id in auto_delete_ports_ids:\n\nDon\u0027t forget to adjust L414 also :-)","commit_id":"bc054148530825d8047de0359712ad4a36267b90"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"42e98bcb5c3bdc22e953e02ef8f041bba0b208b1","unresolved":false,"context_lines":[{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        return [db_utils.resource_fields(net, fields) for net in nets]"},{"line_number":867,"context_line":""},{"line_number":868,"context_line":"    def _delete_ports(self, context, port_ids):"},{"line_number":869,"context_line":"        for port_id in port_ids:"},{"line_number":870,"context_line":"            try:"},{"line_number":871,"context_line":"                self.delete_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_4c03ef0d","line":868,"updated":"2017-02-17 00:06:49.000000000","message":"This method might not needed anymore. I searched through the code and the only reference left is:\n\nhttps://github.com/openstack/group-based-policy/blob/master/gbpservice/neutron/extensions/patch_ml2.py#L119\n\nShould we remove this method? If yes, we will need to take care of this unit test case: https://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/test_plugin.py#L246","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f47a86e304e3590cf051ae1845a948e82b46fa5","unresolved":false,"context_lines":[{"line_number":865,"context_line":""},{"line_number":866,"context_line":"        return [db_utils.resource_fields(net, fields) for net in nets]"},{"line_number":867,"context_line":""},{"line_number":868,"context_line":"    def _delete_ports(self, context, port_ids):"},{"line_number":869,"context_line":"        for port_id in port_ids:"},{"line_number":870,"context_line":"            try:"},{"line_number":871,"context_line":"                self.delete_port(context, port_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da36d5c6_2541730c","line":868,"in_reply_to":"fa31d9ce_4c03ef0d","updated":"2017-02-20 10:30:22.000000000","message":"Yeah, let\u0027s get rid of it. Good catch.","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"42e98bcb5c3bdc22e953e02ef8f041bba0b208b1","unresolved":false,"context_lines":[{"line_number":879,"context_line":"                        e,"},{"line_number":880,"context_line":"                        _LE(\"Exception auto-deleting port %s\"), port_id)"},{"line_number":881,"context_line":""},{"line_number":882,"context_line":"    def _delete_subnets(self, context, subnet_ids):"},{"line_number":883,"context_line":"        for subnet_id in subnet_ids:"},{"line_number":884,"context_line":"            try:"},{"line_number":885,"context_line":"                self.delete_subnet(context, subnet_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_6c08b329","line":882,"updated":"2017-02-17 00:06:49.000000000","message":"This method might not be needed anymore. I also searched through the code and it seems the only other reference left is:\n\nhttps://github.com/openstack/group-based-policy/blob/master/gbpservice/neutron/extensions/patch_ml2.py#L122\n\nShould we remove this method? If yes, we will need to take care of this unit test case:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/test_plugin.py#L256","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f47a86e304e3590cf051ae1845a948e82b46fa5","unresolved":false,"context_lines":[{"line_number":879,"context_line":"                        e,"},{"line_number":880,"context_line":"                        _LE(\"Exception auto-deleting port %s\"), port_id)"},{"line_number":881,"context_line":""},{"line_number":882,"context_line":"    def _delete_subnets(self, context, subnet_ids):"},{"line_number":883,"context_line":"        for subnet_id in subnet_ids:"},{"line_number":884,"context_line":"            try:"},{"line_number":885,"context_line":"                self.delete_subnet(context, subnet_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da36d5c6_654b6b2c","line":882,"in_reply_to":"fa31d9ce_6c08b329","updated":"2017-02-20 10:30:22.000000000","message":"Done","commit_id":"89a6aeb4aa263e0cf4a48e1e664ed6a3848f4af0"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"f2952618bd6753880a74e5bb3af4a0d9f169136a","unresolved":false,"context_lines":[{"line_number":920,"context_line":"                # Using query().with_lockmode isn\u0027t necessary. Foreign-key"},{"line_number":921,"context_line":"                # constraints prevent deletion if concurrent creation happens."},{"line_number":922,"context_line":"                with session.begin(subtransactions\u003dTrue):"},{"line_number":923,"context_line":"                    # Get ports to auto-delete."},{"line_number":924,"context_line":"                    ports \u003d (session.query(models_v2.Port)."},{"line_number":925,"context_line":"                             enable_eagerloads(False)."},{"line_number":926,"context_line":"                             filter_by(network_id\u003did).all())"},{"line_number":927,"context_line":"                    LOG.debug(\"Ports to auto-delete: %s\", ports)"},{"line_number":928,"context_line":"                    only_auto_del \u003d all(p.device_owner"},{"line_number":929,"context_line":"                                        in db_base_plugin_v2."},{"line_number":930,"context_line":"                                        AUTO_DELETE_PORT_OWNERS"},{"line_number":931,"context_line":"                                        for p in ports)"},{"line_number":932,"context_line":"                    if not only_auto_del:"},{"line_number":933,"context_line":"                        LOG.debug(\"Tenant-owned ports exist\")"},{"line_number":934,"context_line":"                        raise exc.NetworkInUse(net_id\u003did)"},{"line_number":935,"context_line":""},{"line_number":936,"context_line":"                    # Get subnets to auto-delete."},{"line_number":937,"context_line":"                    subnets \u003d (session.query(models_v2.Subnet)."}],"source_content_type":"text/x-python","patch_set":10,"id":"da36d5c6_c1604f38","side":"PARENT","line":934,"range":{"start_line":923,"start_character":20,"end_line":934,"end_character":57},"updated":"2017-02-21 21:01:12.000000000","message":"I didn\u0027t notice that this is similar than _ensure_network_not_in_use function with the major difference on disabling the enable_eagerloads","commit_id":"dbadf7b2ed4a9a6dad0a049c9ca02c451c99c8c0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"08274cdc11312cee3851db8947e07430a11a530e","unresolved":false,"context_lines":[{"line_number":920,"context_line":"                # Using query().with_lockmode isn\u0027t necessary. Foreign-key"},{"line_number":921,"context_line":"                # constraints prevent deletion if concurrent creation happens."},{"line_number":922,"context_line":"                with session.begin(subtransactions\u003dTrue):"},{"line_number":923,"context_line":"                    # Get ports to auto-delete."},{"line_number":924,"context_line":"                    ports \u003d (session.query(models_v2.Port)."},{"line_number":925,"context_line":"                             enable_eagerloads(False)."},{"line_number":926,"context_line":"                             filter_by(network_id\u003did).all())"},{"line_number":927,"context_line":"                    LOG.debug(\"Ports to auto-delete: %s\", ports)"},{"line_number":928,"context_line":"                    only_auto_del \u003d all(p.device_owner"},{"line_number":929,"context_line":"                                        in db_base_plugin_v2."},{"line_number":930,"context_line":"                                        AUTO_DELETE_PORT_OWNERS"},{"line_number":931,"context_line":"                                        for p in ports)"},{"line_number":932,"context_line":"                    if not only_auto_del:"},{"line_number":933,"context_line":"                        LOG.debug(\"Tenant-owned ports exist\")"},{"line_number":934,"context_line":"                        raise exc.NetworkInUse(net_id\u003did)"},{"line_number":935,"context_line":""},{"line_number":936,"context_line":"                    # Get subnets to auto-delete."},{"line_number":937,"context_line":"                    subnets \u003d (session.query(models_v2.Subnet)."}],"source_content_type":"text/x-python","patch_set":10,"id":"da36d5c6_082c83aa","side":"PARENT","line":934,"range":{"start_line":923,"start_character":20,"end_line":934,"end_character":57},"in_reply_to":"da36d5c6_c1604f38","updated":"2017-02-28 07:44:37.000000000","message":"Right. I actually need to adjust the other one a bit to only query ports. We don\u0027t care about loading anything else.","commit_id":"dbadf7b2ed4a9a6dad0a049c9ca02c451c99c8c0"}]}
