)]}'
{"neutron/agent/metadata/agent.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"aaa80e68b08f17658d2ce6fb20403382e361c6be","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from neutron import context"},{"line_number":38,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":39,"context_line":"from neutron.openstack.common import loopingcall"},{"line_number":40,"context_line":"from neutron.openstack.common.service import ProcessLauncher"},{"line_number":41,"context_line":"from neutron import wsgi"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F9%2B3c%3D","line":40,"updated":"2014-01-31 11:47:44.000000000","message":"you should import the whole \u0027service\u0027 module rather than single class\n\nhttp://docs.openstack.org/developer/hacking/#imports","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0ab6ea88631398ba514dd8ef6d37b45480ff5d72","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from neutron import context"},{"line_number":38,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":39,"context_line":"from neutron.openstack.common import loopingcall"},{"line_number":40,"context_line":"from neutron.openstack.common.service import ProcessLauncher"},{"line_number":41,"context_line":"from neutron import wsgi"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F99l4%3D","line":40,"in_reply_to":"AAAAUH%2F9%2B3c%3D","updated":"2014-01-31 16:20:14.000000000","message":"Done","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4065c72e065080b51682fa8f690a47010967843b","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class WorkerService(wsgi.WorkerService):"},{"line_number":197,"context_line":"    def __init__(self, service, application):"},{"line_number":198,"context_line":"        super(WorkerService, self).__init__(service, application)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def start(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BBEw%3D","line":197,"updated":"2014-01-30 23:28:15.000000000","message":"Please remove this method.  The parent class\u0027s method will be called automatically if the subclass does not override it.","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0ab6ea88631398ba514dd8ef6d37b45480ff5d72","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class WorkerService(wsgi.WorkerService):"},{"line_number":197,"context_line":"    def __init__(self, service, application):"},{"line_number":198,"context_line":"        super(WorkerService, self).__init__(service, application)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def start(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F99us%3D","line":197,"in_reply_to":"AAAAUH%2F%2BBEw%3D","updated":"2014-01-31 16:20:14.000000000","message":"But I need to override the start() method as the one in wsgi.py does a:\n\nsession.get_engine(sqlite_fk\u003dTrue).pool.dispose()\n\nAnd we don\u0027t need to do that here.","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4065c72e065080b51682fa8f690a47010967843b","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            self._server \u003d self.pool.spawn_n(self._run, application,"},{"line_number":220,"context_line":"                                             self._socket)"},{"line_number":221,"context_line":"        else:"},{"line_number":222,"context_line":"            self._launcher \u003d ProcessLauncher()"},{"line_number":223,"context_line":"            self._server \u003d WorkerService(self, application)"},{"line_number":224,"context_line":"            self._launcher.launch_service(self._server, workers\u003dworkers)"},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BBGs%3D","line":222,"updated":"2014-01-30 23:28:15.000000000","message":"The default wait_interval of ProcessLauncher will needlessly consume cpu cycles - please update to use 1s instead of the default of 0.01s.\n\nReference: https://review.openstack.org/#/c/67919/","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0ab6ea88631398ba514dd8ef6d37b45480ff5d72","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            self._server \u003d self.pool.spawn_n(self._run, application,"},{"line_number":220,"context_line":"                                             self._socket)"},{"line_number":221,"context_line":"        else:"},{"line_number":222,"context_line":"            self._launcher \u003d ProcessLauncher()"},{"line_number":223,"context_line":"            self._server \u003d WorkerService(self, application)"},{"line_number":224,"context_line":"            self._launcher.launch_service(self._server, workers\u003dworkers)"},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F99to%3D","line":222,"in_reply_to":"AAAAUH%2F%2BBGs%3D","updated":"2014-01-31 16:20:14.000000000","message":"Thanks, I\u0027ll update this to use 1s.","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"e602a313a16c6937a9997e4dc708bd320d943cfd","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"class WorkerService(wsgi.WorkerService):"},{"line_number":197,"context_line":"    def __init__(self, service, application):"},{"line_number":198,"context_line":"        super(WorkerService, self).__init__(service, application)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def start(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F99Tg%3D","line":197,"updated":"2014-01-31 17:19:32.000000000","message":"This method still needs to be removed.  start() being overridden does not require an explicit __init__().","commit_id":"20d513c66b10bd6c2dc7f10c66bc34d91e979353"}],"neutron/tests/unit/test_metadata_agent.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"24bd6194ca3438da9bd15c5cd6582b82471b284b","unresolved":false,"context_lines":[{"line_number":290,"context_line":"            )"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    @mock.patch(\u0027neutron.agent.metadata.agent.ProcessLauncher\u0027)"},{"line_number":293,"context_line":"    def test_start_multiple_workers(self, ProcessLauncher):"},{"line_number":294,"context_line":"        launcher \u003d ProcessLauncher.return_value"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"        mock_app \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F9%2FtQ%3D","line":293,"updated":"2014-01-31 07:39:45.000000000","message":"please don\u0027t use CamelCase for variable name, consider process_launcher or just launcher","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0ab6ea88631398ba514dd8ef6d37b45480ff5d72","unresolved":false,"context_lines":[{"line_number":290,"context_line":"            )"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    @mock.patch(\u0027neutron.agent.metadata.agent.ProcessLauncher\u0027)"},{"line_number":293,"context_line":"    def test_start_multiple_workers(self, ProcessLauncher):"},{"line_number":294,"context_line":"        launcher \u003d ProcessLauncher.return_value"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"        mock_app \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F99r0%3D","line":293,"in_reply_to":"AAAAUH%2F9%2FtQ%3D","updated":"2014-01-31 16:20:14.000000000","message":"Done","commit_id":"9c7bd044177ce2c80670d693b4c0a05d4a3ba867"}]}
