)]}'
{"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"a12e3a86688cb595a6b9cf2e88d76be63ab952e3","unresolved":false,"context_lines":[{"line_number":1468,"context_line":"        return (context.session.query(models_v2.IPAllocation)."},{"line_number":1469,"context_line":"                filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port).first())"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_check_user_ports(self, context, subnet_id):"},{"line_number":1472,"context_line":"        \"\"\"Check if there are any user ports on subnet and return first.\"\"\""},{"line_number":1473,"context_line":"        query \u003d (context.session.query(models_v2.IPAllocation,"},{"line_number":1474,"context_line":"                                       models_v2.Port)."}],"source_content_type":"text/x-python","patch_set":5,"id":"9aa53dc9_6ab31dea","line":1471,"updated":"2015-04-09 12:51:01.000000000","message":"Would it be better to name this method _subnet_get_user_ports?\n\nFor me \"check\" feels like there is going to happen a check and if it fails, exception is raised. Having check method returning some result is weird.\n\nI know the original method that gets ipallocation record is also called \"check\", it might be fixed in upcoming patch.","commit_id":"b8916c2cef99b5dcee0d8fc640a0e026cf52493c"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"0ff6d568c9c9c119c567ba3e5a8e22ff53eb2402","unresolved":false,"context_lines":[{"line_number":1468,"context_line":"        return (context.session.query(models_v2.IPAllocation)."},{"line_number":1469,"context_line":"                filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port).first())"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_check_user_ports(self, context, subnet_id):"},{"line_number":1472,"context_line":"        \"\"\"Check if there are any user ports on subnet and return first.\"\"\""},{"line_number":1473,"context_line":"        query \u003d (context.session.query(models_v2.IPAllocation,"},{"line_number":1474,"context_line":"                                       models_v2.Port)."}],"source_content_type":"text/x-python","patch_set":5,"id":"9aa53dc9_50a808db","line":1471,"in_reply_to":"9aa53dc9_6ab31dea","updated":"2015-04-09 13:26:29.000000000","message":"ok","commit_id":"b8916c2cef99b5dcee0d8fc640a0e026cf52493c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bb7bdc3d7252a983f1134755d24e47fe52952485","unresolved":false,"context_lines":[{"line_number":1465,"context_line":"        return result"},{"line_number":1466,"context_line":""},{"line_number":1467,"context_line":"    def _subnet_check_ip_allocations(self, context, subnet_id):"},{"line_number":1468,"context_line":"        return (context.session.query(models_v2.IPAllocation)."},{"line_number":1469,"context_line":"                filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port).first())"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_get_user_port(self, context, subnet_id):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_cccc656c","line":1468,"updated":"2015-04-10 08:41:49.000000000","message":"why reformatting? it took some time to figure out if anything was changed in this func","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c4ff3032e99a4de56251eef17c7d1512e1147411","unresolved":false,"context_lines":[{"line_number":1465,"context_line":"        return result"},{"line_number":1466,"context_line":""},{"line_number":1467,"context_line":"    def _subnet_check_ip_allocations(self, context, subnet_id):"},{"line_number":1468,"context_line":"        return (context.session.query(models_v2.IPAllocation)."},{"line_number":1469,"context_line":"                filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port).first())"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_get_user_port(self, context, subnet_id):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_57b8dec7","line":1468,"in_reply_to":"9aa53dc9_cccc656c","updated":"2015-04-10 08:52:01.000000000","message":"i personally prefere this, as it looks more structured. since I\u0027m modifying code around anyway, I felt it makes sense to improve the formatting.","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bb7bdc3d7252a983f1134755d24e47fe52952485","unresolved":false,"context_lines":[{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_get_user_port(self, context, subnet_id):"},{"line_number":1472,"context_line":"        \"\"\"Check if there are any user ports on subnet and return first.\"\"\""},{"line_number":1473,"context_line":"        query \u003d (context.session.query(models_v2.IPAllocation,"},{"line_number":1474,"context_line":"                                       models_v2.Port)."},{"line_number":1475,"context_line":"                 filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port))"},{"line_number":1476,"context_line":"        for alloc, port in query:"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_0c812dc3","line":1473,"updated":"2015-04-10 08:41:49.000000000","message":"query can be simplified a bit I believe, to get just IpAllocation by subnet_id and joining Port, then filtering by alloc.port in the loop. Can also return just alloc.","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c4ff3032e99a4de56251eef17c7d1512e1147411","unresolved":false,"context_lines":[{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_get_user_port(self, context, subnet_id):"},{"line_number":1472,"context_line":"        \"\"\"Check if there are any user ports on subnet and return first.\"\"\""},{"line_number":1473,"context_line":"        query \u003d (context.session.query(models_v2.IPAllocation,"},{"line_number":1474,"context_line":"                                       models_v2.Port)."},{"line_number":1475,"context_line":"                 filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port))"},{"line_number":1476,"context_line":"        for alloc, port in query:"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_37bd5ab7","line":1473,"in_reply_to":"9aa53dc9_0c812dc3","updated":"2015-04-10 08:52:01.000000000","message":"Done","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"078f21af9bf98174ae701fd971ba51e7aea7546b","unresolved":false,"context_lines":[{"line_number":1473,"context_line":"        query \u003d (context.session.query(models_v2.IPAllocation)."},{"line_number":1474,"context_line":"                 filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port))"},{"line_number":1475,"context_line":"        for alloc in query:"},{"line_number":1476,"context_line":"            if alloc.ports.device_owner not in AUTO_DELETE_PORT_OWNERS:"},{"line_number":1477,"context_line":"                # return on the first user port to not"},{"line_number":1478,"context_line":"                # waste cycles"},{"line_number":1479,"context_line":"                return alloc"}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_95af7929","line":1476,"updated":"2015-04-10 12:36:18.000000000","message":"this is not super important because when this query is executed it\u0027s unlikely to return a lot of records, but the condition on device_owner could have been expressed in the query filters, I think","commit_id":"5c6e8244060c5ce4a990fd30c092cb222b70f7c4"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"e718f7c26ae305265ef82719c40086a76758ddc5","unresolved":false,"context_lines":[{"line_number":1473,"context_line":"        query \u003d (context.session.query(models_v2.IPAllocation)."},{"line_number":1474,"context_line":"                 filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port))"},{"line_number":1475,"context_line":"        for alloc in query:"},{"line_number":1476,"context_line":"            if alloc.ports.device_owner not in AUTO_DELETE_PORT_OWNERS:"},{"line_number":1477,"context_line":"                # return on the first user port to not"},{"line_number":1478,"context_line":"                # waste cycles"},{"line_number":1479,"context_line":"                return alloc"}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_ca5c3b1b","line":1476,"in_reply_to":"9aa53dc9_95af7929","updated":"2015-04-10 13:59:41.000000000","message":"Done","commit_id":"5c6e8244060c5ce4a990fd30c092cb222b70f7c4"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"078f21af9bf98174ae701fd971ba51e7aea7546b","unresolved":false,"context_lines":[{"line_number":1475,"context_line":"        for alloc in query:"},{"line_number":1476,"context_line":"            if alloc.ports.device_owner not in AUTO_DELETE_PORT_OWNERS:"},{"line_number":1477,"context_line":"                # return on the first user port to not"},{"line_number":1478,"context_line":"                # waste cycles"},{"line_number":1479,"context_line":"                return alloc"},{"line_number":1480,"context_line":"        return None"},{"line_number":1481,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_35654d1d","line":1478,"updated":"2015-04-10 12:36:18.000000000","message":"I think this comment was not needed, but anyway it does not make any harm!","commit_id":"5c6e8244060c5ce4a990fd30c092cb222b70f7c4"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"e718f7c26ae305265ef82719c40086a76758ddc5","unresolved":false,"context_lines":[{"line_number":1475,"context_line":"        for alloc in query:"},{"line_number":1476,"context_line":"            if alloc.ports.device_owner not in AUTO_DELETE_PORT_OWNERS:"},{"line_number":1477,"context_line":"                # return on the first user port to not"},{"line_number":1478,"context_line":"                # waste cycles"},{"line_number":1479,"context_line":"                return alloc"},{"line_number":1480,"context_line":"        return None"},{"line_number":1481,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_aa9e97b6","line":1478,"in_reply_to":"9aa53dc9_35654d1d","updated":"2015-04-10 13:59:41.000000000","message":"Done","commit_id":"5c6e8244060c5ce4a990fd30c092cb222b70f7c4"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"348437ae998e4dfec15744f983b48be102152f92","unresolved":false,"context_lines":[{"line_number":1475,"context_line":"                 filter(~models_v2.Port.device_owner."},{"line_number":1476,"context_line":"                        in_(AUTO_DELETE_PORT_OWNERS)).all())"},{"line_number":1477,"context_line":"        if query:"},{"line_number":1478,"context_line":"            return query[0]"},{"line_number":1479,"context_line":"        return None"},{"line_number":1480,"context_line":""},{"line_number":1481,"context_line":"    def _subnet_check_ip_allocations_internal_router_ports(self, context,"}],"source_content_type":"text/x-python","patch_set":9,"id":"7aaa499b_3b03b011","line":1478,"updated":"2015-04-10 22:53:14.000000000","message":"why can\u0027t we just use first or one instead of fetching all of the records?","commit_id":"14df37850347e11a803ab01ef4c5ac70a2e9fe55"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"94e969f12cf891a9db8b585b256396d019ca4ae2","unresolved":false,"context_lines":[{"line_number":1475,"context_line":"                 filter(~models_v2.Port.device_owner."},{"line_number":1476,"context_line":"                        in_(AUTO_DELETE_PORT_OWNERS)).all())"},{"line_number":1477,"context_line":"        if query:"},{"line_number":1478,"context_line":"            return query[0]"},{"line_number":1479,"context_line":"        return None"},{"line_number":1480,"context_line":""},{"line_number":1481,"context_line":"    def _subnet_check_ip_allocations_internal_router_ports(self, context,"}],"source_content_type":"text/x-python","patch_set":9,"id":"7aaa499b_34185d84","line":1478,"in_reply_to":"7aaa499b_3b03b011","updated":"2015-04-11 06:19:28.000000000","message":"silly me, that was the initial idea","commit_id":"14df37850347e11a803ab01ef4c5ac70a2e9fe55"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"83a5e33f439899b64747ea58b0e76a3fa96ab8c8","unresolved":false,"context_lines":[{"line_number":1465,"context_line":"        return result"},{"line_number":1466,"context_line":""},{"line_number":1467,"context_line":"    def _subnet_check_ip_allocations(self, context, subnet_id):"},{"line_number":1468,"context_line":"        return (context.session.query(models_v2.IPAllocation)."},{"line_number":1469,"context_line":"                filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port).first())"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_get_user_allocation(self, context, subnet_id):"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aaa499b_8677fc01","line":1468,"updated":"2015-04-12 13:05:30.000000000","message":"do we need this first change - the code seems to be the same?","commit_id":"3faf19085e14cd3733649e3fd899f2fa8cfdd35d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8a18a3755eef6d329baaf6580e1666c0af797953","unresolved":false,"context_lines":[{"line_number":1465,"context_line":"        return result"},{"line_number":1466,"context_line":""},{"line_number":1467,"context_line":"    def _subnet_check_ip_allocations(self, context, subnet_id):"},{"line_number":1468,"context_line":"        return (context.session.query(models_v2.IPAllocation)."},{"line_number":1469,"context_line":"                filter_by(subnet_id\u003dsubnet_id).join(models_v2.Port).first())"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def _subnet_get_user_allocation(self, context, subnet_id):"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aaa499b_015876f9","line":1468,"in_reply_to":"7aaa499b_8677fc01","updated":"2015-04-12 20:35:26.000000000","message":"i personally prefer this, as it looks more structured. Since I\u0027m modifying code around anyway, I felt it makes sense to improve the formatting.","commit_id":"3faf19085e14cd3733649e3fd899f2fa8cfdd35d"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"83a5e33f439899b64747ea58b0e76a3fa96ab8c8","unresolved":false,"context_lines":[{"line_number":1474,"context_line":"                 filter_by(subnet_id\u003dsubnet_id).join()."},{"line_number":1475,"context_line":"                 filter(~models_v2.Port.device_owner."},{"line_number":1476,"context_line":"                        in_(AUTO_DELETE_PORT_OWNERS)).first())"},{"line_number":1477,"context_line":"        return alloc"},{"line_number":1478,"context_line":""},{"line_number":1479,"context_line":"    def _subnet_check_ip_allocations_internal_router_ports(self, context,"},{"line_number":1480,"context_line":"                                                           subnet_id):"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aaa499b_4660d435","line":1477,"updated":"2015-04-12 13:05:30.000000000","message":"do we need the variable alloc?","commit_id":"3faf19085e14cd3733649e3fd899f2fa8cfdd35d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8a18a3755eef6d329baaf6580e1666c0af797953","unresolved":false,"context_lines":[{"line_number":1474,"context_line":"                 filter_by(subnet_id\u003dsubnet_id).join()."},{"line_number":1475,"context_line":"                 filter(~models_v2.Port.device_owner."},{"line_number":1476,"context_line":"                        in_(AUTO_DELETE_PORT_OWNERS)).first())"},{"line_number":1477,"context_line":"        return alloc"},{"line_number":1478,"context_line":""},{"line_number":1479,"context_line":"    def _subnet_check_ip_allocations_internal_router_ports(self, context,"},{"line_number":1480,"context_line":"                                                           subnet_id):"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aaa499b_9355fd1e","line":1477,"in_reply_to":"7aaa499b_4660d435","updated":"2015-04-12 20:35:26.000000000","message":"No really, it is left from going back and forth in the method\u0027s code.\nCould be removed","commit_id":"3faf19085e14cd3733649e3fd899f2fa8cfdd35d"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"3247254bbc68e00fec4cbf93addbc4346747428b","unresolved":false,"context_lines":[{"line_number":887,"context_line":"                                      \u0027port_id\u0027: user_alloc.port_id,"},{"line_number":888,"context_line":"                                      \u0027subnet\u0027: id})"},{"line_number":889,"context_line":"                        else:"},{"line_number":890,"context_line":"                            raise os_db_exception.RetryRequest("},{"line_number":891,"context_line":"                                exc.SubnetInUse(subnet_id\u003did))"},{"line_number":892,"context_line":""},{"line_number":893,"context_line":"                # If allocated is None, then all the IPAllocation were"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_020ed13a","line":890,"updated":"2015-04-08 22:41:11.000000000","message":"Retry to give a chance to run autodeletion again.","commit_id":"8fe73e884717d10207a33708418ed58993daf1d8"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bb7bdc3d7252a983f1134755d24e47fe52952485","unresolved":false,"context_lines":[{"line_number":877,"context_line":"                if not is_auto_addr_subnet:"},{"line_number":878,"context_line":"                    alloc \u003d self._subnet_check_ip_allocations(context, id)"},{"line_number":879,"context_line":"                    if alloc:"},{"line_number":880,"context_line":"                        user_port, user_alloc \u003d self._subnet_get_user_port("},{"line_number":881,"context_line":"                            context, id)"},{"line_number":882,"context_line":"                        if user_port:"},{"line_number":883,"context_line":"                            LOG.info(_LI(\"Found port (%(port_id)s, %(ip)s) \""}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_57d21e5d","line":880,"updated":"2015-04-10 08:41:49.000000000","message":"this seems redundant: first getting any alloc at 878 and then getting user alloc. Can this be combined in any way?","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c4ff3032e99a4de56251eef17c7d1512e1147411","unresolved":false,"context_lines":[{"line_number":877,"context_line":"                if not is_auto_addr_subnet:"},{"line_number":878,"context_line":"                    alloc \u003d self._subnet_check_ip_allocations(context, id)"},{"line_number":879,"context_line":"                    if alloc:"},{"line_number":880,"context_line":"                        user_port, user_alloc \u003d self._subnet_get_user_port("},{"line_number":881,"context_line":"                            context, id)"},{"line_number":882,"context_line":"                        if user_port:"},{"line_number":883,"context_line":"                            LOG.info(_LI(\"Found port (%(port_id)s, %(ip)s) \""}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_b7a28a97","line":880,"in_reply_to":"9aa53dc9_57d21e5d","updated":"2015-04-10 08:52:01.000000000","message":"Done","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bb7bdc3d7252a983f1134755d24e47fe52952485","unresolved":false,"context_lines":[{"line_number":882,"context_line":"                        if user_port:"},{"line_number":883,"context_line":"                            LOG.info(_LI(\"Found port (%(port_id)s, %(ip)s) \""},{"line_number":884,"context_line":"                                         \"having IP allocation on subnet \""},{"line_number":885,"context_line":"                                         \"%(subnet)s, trying again\"),"},{"line_number":886,"context_line":"                                     {\u0027ip\u0027: user_alloc.ip_address,"},{"line_number":887,"context_line":"                                      \u0027port_id\u0027: user_alloc.port_id,"},{"line_number":888,"context_line":"                                      \u0027subnet\u0027: id})"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_170db6e7","line":885,"updated":"2015-04-10 08:41:49.000000000","message":"will this actually try again? Looks it will just fail deleting subnet","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c4ff3032e99a4de56251eef17c7d1512e1147411","unresolved":false,"context_lines":[{"line_number":882,"context_line":"                        if user_port:"},{"line_number":883,"context_line":"                            LOG.info(_LI(\"Found port (%(port_id)s, %(ip)s) \""},{"line_number":884,"context_line":"                                         \"having IP allocation on subnet \""},{"line_number":885,"context_line":"                                         \"%(subnet)s, trying again\"),"},{"line_number":886,"context_line":"                                     {\u0027ip\u0027: user_alloc.ip_address,"},{"line_number":887,"context_line":"                                      \u0027port_id\u0027: user_alloc.port_id,"},{"line_number":888,"context_line":"                                      \u0027subnet\u0027: id})"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_d7a50ea2","line":885,"in_reply_to":"9aa53dc9_170db6e7","updated":"2015-04-10 08:52:01.000000000","message":"yes, when user port is found - we fail we regular SubnetInUse. We only retry when non-user allocation has been found (else condition)","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"5a87014a6c2a1b2c7b3343102c344e81827d2c74","unresolved":false,"context_lines":[{"line_number":878,"context_line":"                    alloc \u003d self._subnet_check_ip_allocations(context, id)"},{"line_number":879,"context_line":"                    if alloc:"},{"line_number":880,"context_line":"                        user_alloc \u003d (self._subnet_get_user_allocation("},{"line_number":881,"context_line":"                            context, id))"},{"line_number":882,"context_line":"                        if user_alloc:"},{"line_number":883,"context_line":"                            LOG.info(_LI(\"Found port (%(port_id)s, %(ip)s) \""},{"line_number":884,"context_line":"                                         \"having IP allocation on subnet \""}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_cf951f41","line":881,"updated":"2015-04-11 17:53:14.000000000","message":"Nit: you don\u0027t need the outer parentheses.","commit_id":"cd38b6e76a6922f199bbd5fc7ac8912f4f9c1745"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a73aac6da9a1ad8cfa9681678c83d4e3a3eb7159","unresolved":false,"context_lines":[{"line_number":878,"context_line":"                    alloc \u003d self._subnet_check_ip_allocations(context, id)"},{"line_number":879,"context_line":"                    if alloc:"},{"line_number":880,"context_line":"                        user_alloc \u003d (self._subnet_get_user_allocation("},{"line_number":881,"context_line":"                            context, id))"},{"line_number":882,"context_line":"                        if user_alloc:"},{"line_number":883,"context_line":"                            LOG.info(_LI(\"Found port (%(port_id)s, %(ip)s) \""},{"line_number":884,"context_line":"                                         \"having IP allocation on subnet \""}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_e0afc892","line":881,"in_reply_to":"7aaa499b_cf951f41","updated":"2015-04-12 20:35:42.000000000","message":"Done","commit_id":"cd38b6e76a6922f199bbd5fc7ac8912f4f9c1745"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"5a87014a6c2a1b2c7b3343102c344e81827d2c74","unresolved":false,"context_lines":[{"line_number":889,"context_line":"                            raise exc.SubnetInUse(subnet_id\u003did)"},{"line_number":890,"context_line":"                        else:"},{"line_number":891,"context_line":"                            # allocation found and it was DHCP port"},{"line_number":892,"context_line":"                            # that appreared after autodelete ports were"},{"line_number":893,"context_line":"                            # removed - need to restart whole operation"},{"line_number":894,"context_line":"                            raise os_db_exception.RetryRequest("},{"line_number":895,"context_line":"                                exc.SubnetInUse(subnet_id\u003did))"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_af92d355","line":892,"updated":"2015-04-11 17:53:14.000000000","message":"Nit: appeared","commit_id":"cd38b6e76a6922f199bbd5fc7ac8912f4f9c1745"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a73aac6da9a1ad8cfa9681678c83d4e3a3eb7159","unresolved":false,"context_lines":[{"line_number":889,"context_line":"                            raise exc.SubnetInUse(subnet_id\u003did)"},{"line_number":890,"context_line":"                        else:"},{"line_number":891,"context_line":"                            # allocation found and it was DHCP port"},{"line_number":892,"context_line":"                            # that appreared after autodelete ports were"},{"line_number":893,"context_line":"                            # removed - need to restart whole operation"},{"line_number":894,"context_line":"                            raise os_db_exception.RetryRequest("},{"line_number":895,"context_line":"                                exc.SubnetInUse(subnet_id\u003did))"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_c095ec40","line":892,"in_reply_to":"7aaa499b_af92d355","updated":"2015-04-12 20:35:42.000000000","message":"Done","commit_id":"cd38b6e76a6922f199bbd5fc7ac8912f4f9c1745"}],"neutron/tests/unit/plugins/ml2/test_plugin.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bb7bdc3d7252a983f1134755d24e47fe52952485","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                       Ml2PluginV2TestCase):"},{"line_number":272,"context_line":"    def test_delete_subnet_race_with_dhcp_port_creation(self):"},{"line_number":273,"context_line":"        with self.network() as network:"},{"line_number":274,"context_line":"            data \u003d {\u0027subnet\u0027: {\u0027network_id\u0027:"},{"line_number":275,"context_line":"                               network[\u0027network\u0027][\u0027id\u0027],"},{"line_number":276,"context_line":"                               \u0027cidr\u0027: \u002710.0.20.0/24\u0027,"},{"line_number":277,"context_line":"                               \u0027ip_version\u0027: \u00274\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_57bc5edb","line":274,"updated":"2015-04-10 08:41:49.000000000","message":"any reason not to use with self.subnet(...) instead of 274-286?","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c4ff3032e99a4de56251eef17c7d1512e1147411","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                       Ml2PluginV2TestCase):"},{"line_number":272,"context_line":"    def test_delete_subnet_race_with_dhcp_port_creation(self):"},{"line_number":273,"context_line":"        with self.network() as network:"},{"line_number":274,"context_line":"            data \u003d {\u0027subnet\u0027: {\u0027network_id\u0027:"},{"line_number":275,"context_line":"                               network[\u0027network\u0027][\u0027id\u0027],"},{"line_number":276,"context_line":"                               \u0027cidr\u0027: \u002710.0.20.0/24\u0027,"},{"line_number":277,"context_line":"                               \u0027ip_version\u0027: \u00274\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_97c2e632","line":274,"in_reply_to":"9aa53dc9_57bc5edb","updated":"2015-04-10 08:52:01.000000000","message":"Done","commit_id":"d007845b96f7ebf022a4c13889732ac19f0ded8d"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"5a87014a6c2a1b2c7b3343102c344e81827d2c74","unresolved":false,"context_lines":[{"line_number":302,"context_line":"                # we mock _subnet_check_ip_allocations with method"},{"line_number":303,"context_line":"                # that creates DHCP port \u0027in the middle\u0027 of subnet_delete"},{"line_number":304,"context_line":"                # causing retry this way subnet is deleted on the"},{"line_number":305,"context_line":"                # scond attempt"},{"line_number":306,"context_line":"                with mock.patch.object(plugin, \u0027_subnet_check_ip_allocations\u0027,"},{"line_number":307,"context_line":"                                       side_effect\u003dcheck_and_create_ports):"},{"line_number":308,"context_line":"                    req \u003d self.new_delete_request(\u0027subnets\u0027, subnet_id)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_af79b331","line":305,"updated":"2015-04-11 17:53:14.000000000","message":"Nit: second","commit_id":"cd38b6e76a6922f199bbd5fc7ac8912f4f9c1745"}]}
