)]}'
{"neutron/db/ipam_pluggable_backend.py":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"19af45f48ac0e4f6bc4a9efc83e8ffbca8e1534a","unresolved":false,"context_lines":[{"line_number":457,"context_line":"                        context,"},{"line_number":458,"context_line":"                        network_id\u003dnetwork_id)"},{"line_number":459,"context_line":"            ports \u003d [port for port in ports_all"},{"line_number":460,"context_line":"                    if port.device_owner"},{"line_number":461,"context_line":"                    in constants.ROUTER_INTERFACE_OWNERS_SNAT]"},{"line_number":462,"context_line":"            updated_ports \u003d []"},{"line_number":463,"context_line":"            ipam_driver \u003d driver.Pool.get_instance(None, context)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_81853909","line":460,"range":{"start_line":460,"start_character":20,"end_line":460,"end_character":40},"updated":"2018-08-15 21:37:33.000000000","message":"I believe doing this in database is more efficient than doing it manually. This matters if there are a large number of ports in a network.","commit_id":"ebf9acf30c7e48c4c64233b34123fac05740a6b1"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"2ded77b769a92bab817a13a28b9049a34042c598","unresolved":false,"context_lines":[{"line_number":457,"context_line":"                        context,"},{"line_number":458,"context_line":"                        network_id\u003dnetwork_id)"},{"line_number":459,"context_line":"            ports \u003d [port for port in ports_all"},{"line_number":460,"context_line":"                    if port.device_owner"},{"line_number":461,"context_line":"                    in constants.ROUTER_INTERFACE_OWNERS_SNAT]"},{"line_number":462,"context_line":"            updated_ports \u003d []"},{"line_number":463,"context_line":"            ipam_driver \u003d driver.Pool.get_instance(None, context)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_0dd789f0","line":460,"range":{"start_line":460,"start_character":20,"end_line":460,"end_character":40},"in_reply_to":"3f79a3b5_81853909","updated":"2018-08-22 14:40:50.000000000","message":"Created a separate change for that [1], and rebased this on top of that.\n\n[1] https://review.openstack.org/592701","commit_id":"ebf9acf30c7e48c4c64233b34123fac05740a6b1"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"19af45f48ac0e4f6bc4a9efc83e8ffbca8e1534a","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                        network_id\u003dnetwork_id)"},{"line_number":459,"context_line":"            ports \u003d [port for port in ports_all"},{"line_number":460,"context_line":"                    if port.device_owner"},{"line_number":461,"context_line":"                    in constants.ROUTER_INTERFACE_OWNERS_SNAT]"},{"line_number":462,"context_line":"            updated_ports \u003d []"},{"line_number":463,"context_line":"            ipam_driver \u003d driver.Pool.get_instance(None, context)"},{"line_number":464,"context_line":"            factory \u003d ipam_driver.get_address_request_factory()"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_e100adad","line":461,"range":{"start_line":461,"start_character":20,"end_line":461,"end_character":22},"updated":"2018-08-15 21:37:33.000000000","message":"I believe this should be \"not in\", because the original query is for retrieving ports where device_owner is not in the list but the new change will retrieve all the ports where device_owner is in the list.","commit_id":"ebf9acf30c7e48c4c64233b34123fac05740a6b1"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"2ded77b769a92bab817a13a28b9049a34042c598","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                        network_id\u003dnetwork_id)"},{"line_number":459,"context_line":"            ports \u003d [port for port in ports_all"},{"line_number":460,"context_line":"                    if port.device_owner"},{"line_number":461,"context_line":"                    in constants.ROUTER_INTERFACE_OWNERS_SNAT]"},{"line_number":462,"context_line":"            updated_ports \u003d []"},{"line_number":463,"context_line":"            ipam_driver \u003d driver.Pool.get_instance(None, context)"},{"line_number":464,"context_line":"            factory \u003d ipam_driver.get_address_request_factory()"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_2dbfe5aa","line":461,"range":{"start_line":461,"start_character":20,"end_line":461,"end_character":22},"in_reply_to":"3f79a3b5_e100adad","updated":"2018-08-22 14:40:50.000000000","message":"Overcome by the aforementioned change.","commit_id":"ebf9acf30c7e48c4c64233b34123fac05740a6b1"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"ad579c405cfe1876265411e3bf2dea2ac5cba4c3","unresolved":false,"context_lines":[{"line_number":453,"context_line":"        # will be available for neutron"},{"line_number":454,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":455,"context_line":"            network_id \u003d subnet[\u0027network_id\u0027]"},{"line_number":456,"context_line":"            ports \u003d port_obj.get_object_except_router("},{"line_number":457,"context_line":"                    context,"},{"line_number":458,"context_line":"                    network_id\u003dnetwork_id)"},{"line_number":459,"context_line":"            updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_32f563cd","line":456,"updated":"2018-09-11 14:43:19.000000000","message":"This line appears to break a number of tests due to https://review.openstack.org/#/c/592701/5 which this depends on. It should be OK as the dependent change is worked out.","commit_id":"7fd5d0ea68b1d932e7b640da3a0eaa5c1810e381"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"98f173636808d52db726bde9ceaf07ebcc282ca6","unresolved":false,"context_lines":[{"line_number":504,"context_line":"        # will be available for neutron"},{"line_number":505,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":506,"context_line":"            network_id \u003d subnet[\u0027network_id\u0027]"},{"line_number":507,"context_line":"            ports \u003d port_obj.get_object_except_router("},{"line_number":508,"context_line":"                    context,"},{"line_number":509,"context_line":"                    network_id\u003dnetwork_id)"},{"line_number":510,"context_line":"            updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_c541410b","line":507,"range":{"start_line":507,"start_character":29,"end_line":507,"end_character":54},"updated":"2018-12-20 01:48:29.000000000","message":"Since this patch used to depend on https://review.openstack.org/#/c/592701/11, where we have changed the name of the method to be \"\"get_ports_ids_by_security_groups(), we also need to carry the change here. Am I seeing it correctly?","commit_id":"dfd25c26234cb49270b3fdae4fe5cb89a3b0b784"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"49cecc63e3b1af0da3ab5dec07abf7ffc804f01d","unresolved":false,"context_lines":[{"line_number":2121,"context_line":"        binding \u003d ports_obj.PortBinding.get_object(context, host\u003dhost,"},{"line_number":2122,"context_line":"                                                   port_id\u003dport_id)"},{"line_number":2123,"context_line":"        if not binding:"},{"line_number":2124,"context_line":"            raise exc.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":2125,"context_line":"        return self._make_port_binding_dict(binding, fields)"},{"line_number":2126,"context_line":""},{"line_number":2127,"context_line":"    def _get_binding_for_host(self, bindings, host):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_7c143ba0","line":2124,"updated":"2018-09-09 09:22:41.000000000","message":"It should be still \"n_exc.PortBindingNotFound\" probably","commit_id":"7fd5d0ea68b1d932e7b640da3a0eaa5c1810e381"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"ad579c405cfe1876265411e3bf2dea2ac5cba4c3","unresolved":false,"context_lines":[{"line_number":2121,"context_line":"        binding \u003d ports_obj.PortBinding.get_object(context, host\u003dhost,"},{"line_number":2122,"context_line":"                                                   port_id\u003dport_id)"},{"line_number":2123,"context_line":"        if not binding:"},{"line_number":2124,"context_line":"            raise exc.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":2125,"context_line":"        return self._make_port_binding_dict(binding, fields)"},{"line_number":2126,"context_line":""},{"line_number":2127,"context_line":"    def _get_binding_for_host(self, bindings, host):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_578251a7","line":2124,"in_reply_to":"3f79a3b5_7c143ba0","updated":"2018-09-11 14:43:19.000000000","message":"This actually looks OK to me, we ought to be able to use neutron-lib here: https://github.com/openstack/neutron-lib/blob/67865c701b6386b82cfed2ea74fe9462a23b7dc7/neutron_lib/exceptions/__init__.py#L786","commit_id":"7fd5d0ea68b1d932e7b640da3a0eaa5c1810e381"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"49cecc63e3b1af0da3ab5dec07abf7ffc804f01d","unresolved":false,"context_lines":[{"line_number":2139,"context_line":"            original_binding \u003d self._get_binding_for_host("},{"line_number":2140,"context_line":"                port_db.port_bindings, host)"},{"line_number":2141,"context_line":"            if not original_binding:"},{"line_number":2142,"context_line":"                raise exc.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":2143,"context_line":"            is_active_binding \u003d (original_binding.status \u003d\u003d const.ACTIVE)"},{"line_number":2144,"context_line":"            network \u003d self.get_network(context, port_db[\u0027network_id\u0027])"},{"line_number":2145,"context_line":"            port_dict \u003d self._make_port_dict(port_db)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_9c17d7a3","line":2142,"updated":"2018-09-09 09:22:41.000000000","message":"ditto","commit_id":"7fd5d0ea68b1d932e7b640da3a0eaa5c1810e381"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"49cecc63e3b1af0da3ab5dec07abf7ffc804f01d","unresolved":false,"context_lines":[{"line_number":2181,"context_line":"            inactive_binding \u003d p_utils.get_port_binding_by_status_and_host("},{"line_number":2182,"context_line":"                port_db.port_bindings, const.INACTIVE, host\u003dhost)"},{"line_number":2183,"context_line":"            if not inactive_binding or inactive_binding.host !\u003d host:"},{"line_number":2184,"context_line":"                raise exc.PortBindingNotFound(port_id\u003dport_id, host\u003dhost)"},{"line_number":2185,"context_line":"            network \u003d self.get_network(context, port_db[\u0027network_id\u0027])"},{"line_number":2186,"context_line":"            port_dict \u003d self._make_port_dict(port_db)"},{"line_number":2187,"context_line":"            levels \u003d db.get_binding_levels(context, port_id,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_3c0a4378","line":2184,"updated":"2018-09-09 09:22:41.000000000","message":"ditto","commit_id":"7fd5d0ea68b1d932e7b640da3a0eaa5c1810e381"}]}
