)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":25,"context_line":"   actually intended to run as root. Especially when handling the"},{"line_number":26,"context_line":"   setting of root_helper via config and using it just in execute()."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"3) Currnetly, the existing neutron.agent.linux.utils.execute just"},{"line_number":29,"context_line":"   wraps processutils execute to keep the same semantics and allow"},{"line_number":30,"context_line":"   tests of non-converted functions to pass. This also allows us to"},{"line_number":31,"context_line":"   verify that processutils.execute() can handle running everything"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a930d6b_586a551b","line":28,"updated":"2015-01-21 22:13:54.000000000","message":"nit: Currnetly -\u003e Currently","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"34f8ab569abb32129e354e8fba17cf80d731a6ea","unresolved":false,"context_lines":[{"line_number":25,"context_line":"   actually intended to run as root. Especially when handling the"},{"line_number":26,"context_line":"   setting of root_helper via config and using it just in execute()."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"3) Currnetly, the existing neutron.agent.linux.utils.execute just"},{"line_number":29,"context_line":"   wraps processutils execute to keep the same semantics and allow"},{"line_number":30,"context_line":"   tests of non-converted functions to pass. This also allows us to"},{"line_number":31,"context_line":"   verify that processutils.execute() can handle running everything"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a930d6b_6a60b7cf","line":28,"in_reply_to":"1a930d6b_586a551b","updated":"2015-01-23 23:18:24.000000000","message":"Done","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"}],"neutron/agent/common/config.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5882491ae63ea4ef026b42044661ede3f2dbbac6","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def register_root_helper(conf):"},{"line_number":87,"context_line":"    # The first call is to ensure backward compatibility"},{"line_number":88,"context_line":"    conf.register_opts(ROOT_HELPER_OPTS)"},{"line_number":89,"context_line":"    conf.register_opts(ROOT_HELPER_OPTS, \u0027AGENT\u0027)"},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_93e91b82","side":"PARENT","line":87,"updated":"2015-01-19 14:28:16.000000000","message":"nit, changes to this file could go on a separate patch? :)","commit_id":"ce925ecee8c3dbc602c916f18a2072a9f6ba1376"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"34f8ab569abb32129e354e8fba17cf80d731a6ea","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def register_root_helper(conf):"},{"line_number":87,"context_line":"    # The first call is to ensure backward compatibility"},{"line_number":88,"context_line":"    conf.register_opts(ROOT_HELPER_OPTS)"},{"line_number":89,"context_line":"    conf.register_opts(ROOT_HELPER_OPTS, \u0027AGENT\u0027)"},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_0a801345","side":"PARENT","line":87,"in_reply_to":"3a961159_93e91b82","updated":"2015-01-23 23:18:24.000000000","message":"They probably could/should. It also affects some other files where the old version exists. I may go ahead and try to split that out.","commit_id":"ce925ecee8c3dbc602c916f18a2072a9f6ba1376"}],"neutron/agent/linux/ip_lib.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                                 log_fail_as_error\u003dself.log_fail_as_error)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _as_root(self, options, command, args, use_root_namespace\u003dFalse):"},{"line_number":63,"context_line":"        # enforce_root_helper removed as processutils.execute() raises"},{"line_number":64,"context_line":"        # when run_as_root is passed and not root or no root_helper passed"},{"line_number":65,"context_line":"        namespace \u003d self.namespace if not use_root_namespace else None"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_1841ad5a","line":63,"updated":"2015-01-21 22:13:54.000000000","message":"Nit: Rather that reference a method that, once this is approved, doesn\u0027t exist, could just mention that don\u0027 thave to test that running as root, as handled by execute.","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"34f8ab569abb32129e354e8fba17cf80d731a6ea","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                                 log_fail_as_error\u003dself.log_fail_as_error)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _as_root(self, options, command, args, use_root_namespace\u003dFalse):"},{"line_number":63,"context_line":"        # enforce_root_helper removed as processutils.execute() raises"},{"line_number":64,"context_line":"        # when run_as_root is passed and not root or no root_helper passed"},{"line_number":65,"context_line":"        namespace \u003d self.namespace if not use_root_namespace else None"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_eac827aa","line":63,"in_reply_to":"1a930d6b_1841ad5a","updated":"2015-01-23 23:18:24.000000000","message":"This comment was really just for the benefit of reviewers and I was planning on removing it before merge, but seeing the actual diff, it\u0027s actually pretty obvious with the whole run_as_root\u003dTrue option. I\u0027ll just remove the comment altogether.","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"412e75ae9d5b4ac086c5d4a2561c573c9fd54099","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def get_devices(self, exclude_loopback\u003dFalse):"},{"line_number":99,"context_line":"        retval \u003d []"},{"line_number":100,"context_line":"        # XXX REVIEWERS: check me here, but I think this should be right"},{"line_number":101,"context_line":"        output \u003d self._run([\u0027o\u0027, \u0027d\u0027], \u0027link\u0027, (\u0027list\u0027,))"},{"line_number":102,"context_line":"        for line in output.split(\u0027\\n\u0027):"},{"line_number":103,"context_line":"            if \u0027\u003c\u0027 not in line:"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_c766baba","line":100,"updated":"2015-02-05 10:06:29.000000000","message":"I believe you can remove it ^\nLooks good, you get back the namespace...\n and it\u0027s executed as root because you have one.\n\n:-)","commit_id":"8df512675b6b20c3fb94beb1d0c060cc10ac533e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9bfd42494292d4ca700387c57812b928462233fb","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def get_devices(self, exclude_loopback\u003dFalse):"},{"line_number":99,"context_line":"        retval \u003d []"},{"line_number":100,"context_line":"        # XXX REVIEWERS: check me here, but I think this should be right"},{"line_number":101,"context_line":"        output \u003d self._run([\u0027o\u0027, \u0027d\u0027], \u0027link\u0027, (\u0027list\u0027,))"},{"line_number":102,"context_line":"        for line in output.split(\u0027\\n\u0027):"},{"line_number":103,"context_line":"            if \u0027\u003c\u0027 not in line:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_31ba220b","line":100,"updated":"2015-02-07 16:55:48.000000000","message":"Looks correct. You will need to remove the comment before merge.","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"492c51b0fd0b34f882caf91a71dd1d4250eeb2e3","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def get_devices(self, exclude_loopback\u003dFalse):"},{"line_number":99,"context_line":"        retval \u003d []"},{"line_number":100,"context_line":"        # XXX REVIEWERS: check me here, but I think this should be right"},{"line_number":101,"context_line":"        output \u003d self._run([\u0027o\u0027, \u0027d\u0027], \u0027link\u0027, (\u0027list\u0027,))"},{"line_number":102,"context_line":"        for line in output.split(\u0027\\n\u0027):"},{"line_number":103,"context_line":"            if \u0027\u003c\u0027 not in line:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_71649a49","line":100,"in_reply_to":"da86d52c_31ba220b","updated":"2015-02-07 17:56:49.000000000","message":"Yeah, I keep rebasing and forgetting to remove that comment. :p","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9bfd42494292d4ca700387c57812b928462233fb","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        return (IPDevice(name, namespace\u003dself.namespace))"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    @classmethod"},{"line_number":189,"context_line":"    def get_namespaces(cls, root_helper):"},{"line_number":190,"context_line":"        output \u003d cls._execute(\u0027\u0027, \u0027netns\u0027, (\u0027list\u0027,))"},{"line_number":191,"context_line":"        return [l.strip() for l in output.split(\u0027\\n\u0027)]"},{"line_number":192,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_71301a9f","line":189,"updated":"2015-02-07 16:55:48.000000000","message":"Should we then kill root_helper\u003d argument here too?","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"85487e29b807542296182f3dfbe6241d7b5c206c","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        return (IPDevice(name, namespace\u003dself.namespace))"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    @classmethod"},{"line_number":189,"context_line":"    def get_namespaces(cls, root_helper):"},{"line_number":190,"context_line":"        output \u003d cls._execute(\u0027\u0027, \u0027netns\u0027, (\u0027list\u0027,))"},{"line_number":191,"context_line":"        return [l.strip() for l in output.split(\u0027\\n\u0027)]"},{"line_number":192,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_31e1429b","line":189,"in_reply_to":"da86d52c_31730217","updated":"2015-02-07 18:00:57.000000000","message":"That sounds quite involved. Good luck with all that.","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"492c51b0fd0b34f882caf91a71dd1d4250eeb2e3","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        return (IPDevice(name, namespace\u003dself.namespace))"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    @classmethod"},{"line_number":189,"context_line":"    def get_namespaces(cls, root_helper):"},{"line_number":190,"context_line":"        output \u003d cls._execute(\u0027\u0027, \u0027netns\u0027, (\u0027list\u0027,))"},{"line_number":191,"context_line":"        return [l.strip() for l in output.split(\u0027\\n\u0027)]"},{"line_number":192,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_31730217","line":189,"in_reply_to":"da86d52c_71301a9f","updated":"2015-02-07 17:56:49.000000000","message":"Removing the root_helper\u003d arguments will happen in a later patch, after external services stop passing root_helper\u003d. There will be a second patch that goes through and converts all of the root_helper\u003d arguments to default to None (so that external projects like *aaS which have been updated to pass root_helper as kwarg) will not cause the neutron tempest tests to fail. This patch will also go in and fix all in-tree ip_lib callers to not pass root_helper.\n\nAfter that merges, we can remove the passing of root_helper from the *aaS projects, then can remove the options from ip_lib. Kind of a pain.\n\nThen on to removing root_helper from everywhere else that calls execute(). ip_lib *should* be the most involved one, though.","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    return obj, cmd"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"# XXX Temporary name, will become execute when patch finished"},{"line_number":65,"context_line":"def executer(*cmd, **kwargs):"},{"line_number":66,"context_line":"    \"\"\"Convenience wrapper around oslo\u0027s execute() method.\"\"\""},{"line_number":67,"context_line":"    if \u0027run_as_root\u0027 in kwargs and \u0027root_helper\u0027 not in kwargs:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_831d3269","line":64,"updated":"2015-01-21 22:13:54.000000000","message":"nit: XXX -\u003e TODO(person)","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        raise RuntimeError(err.message)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"# XXX Temporary, just to ensure we can use processutils.execute() everywhere"},{"line_number":83,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":84,"context_line":"           check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":85,"context_line":"           extra_ok_codes\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_836292d6","line":82,"updated":"2015-01-21 22:13:54.000000000","message":"ditto","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"41fb9ff9dce98184be002aca7948b132485a156a","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        kwargs[\u0027check_exit_code\u0027] \u003d [0] + extra_ok_codes"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    try:"},{"line_number":101,"context_line":"        _stdout, _stderr \u003d processutils.execute(*cmd, **kwargs)"},{"line_number":102,"context_line":"    except processutils.ProcessExecutionError as err:"},{"line_number":103,"context_line":"        m \u003d _(\"\\nCommand: %(cmd)s\\nExit code: %(code)s\\nStdout: %(stdout)r\\n\""},{"line_number":104,"context_line":"              \"Stderr: %(stderr)r\") % {"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_50419737","line":101,"updated":"2015-01-16 14:38:52.000000000","message":"incubator\u0027s processutils was dropped from the tree recently. Please rebase on top of oslo.concurrency adoption patch to get access to the module: https://review.openstack.org/139717","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"aa57809d6d399e5e03805525cbeccc7cd3e23b65","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        kwargs[\u0027check_exit_code\u0027] \u003d [0] + extra_ok_codes"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    try:"},{"line_number":101,"context_line":"        _stdout, _stderr \u003d processutils.execute(*cmd, **kwargs)"},{"line_number":102,"context_line":"    except processutils.ProcessExecutionError as err:"},{"line_number":103,"context_line":"        m \u003d _(\"\\nCommand: %(cmd)s\\nExit code: %(code)s\\nStdout: %(stdout)r\\n\""},{"line_number":104,"context_line":"              \"Stderr: %(stderr)r\") % {"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_a3def767","line":101,"in_reply_to":"3a961159_50419737","updated":"2015-01-16 15:20:32.000000000","message":"See above: from oslo_concurrency import processutils. Also, I dropped incubator processutils from the tree. :) https://review.openstack.org/#/c/140507/","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"}],"neutron/tests/unit/test_agent_linux_utils.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        open(self.test_file, \u0027w\u0027).close()"},{"line_number":46,"context_line":"        self.process \u003d mock.patch(\u0027subprocess.Popen\u0027).start()"},{"line_number":47,"context_line":"        self.process.return_value.returncode \u003d 0"},{"line_number":48,"context_line":"        #self.mock_popen_p \u003d mock.patch(\"subprocess.Popen.communicate\")"},{"line_number":49,"context_line":"        #self.mock_popen \u003d self.mock_popen_p.start()"},{"line_number":50,"context_line":"        self.mock_popen \u003d self.process.return_value.communicate"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_8e9b92c8","line":48,"updated":"2015-01-21 22:13:54.000000000","message":"Remove dead code.","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            self.assertTrue(log.error.called)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def test_return_code_log_error_no_raise_runtime(self):"},{"line_number":106,"context_line":"        # XXX This will still fail because processutils.execute logs everything"},{"line_number":107,"context_line":"        # with the same loglevel, so you either everything as DEBUG or ERROR. I"},{"line_number":108,"context_line":"        # plan on adding a fail_loglevel option to it to fix this."},{"line_number":109,"context_line":"        self.skipTest(\"Need to modify processutils.execute for fail_loglevel\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_2e48de2c","line":106,"updated":"2015-01-21 22:13:54.000000000","message":"Nit: XXX -\u003e Note","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"83d09cbe9c4b6148e9315b83e7dd6f9a62ea3d52","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def test_return_code_log_error_no_raise_runtime(self):"},{"line_number":106,"context_line":"        # XXX This will still fail because processutils.execute logs everything"},{"line_number":107,"context_line":"        # with the same loglevel, so you either everything as DEBUG or ERROR. I"},{"line_number":108,"context_line":"        # plan on adding a fail_loglevel option to it to fix this."},{"line_number":109,"context_line":"        self.skipTest(\"Need to modify processutils.execute for fail_loglevel\")"},{"line_number":110,"context_line":"        self.mock_popen.return_value \u003d (\u0027\u0027, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_2e5b7e55","line":107,"updated":"2015-01-21 22:13:54.000000000","message":"nit: either everything -\u003e either log everything\n\nI plan on adding -\u003e TODO(person): Add","commit_id":"aa3afc3c74e169ada578a1249b36ca7ea996000e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"9735bfff985cf9aab1121759e4cd0ca7b6797d5f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        open(self.test_file, \u0027w\u0027).close()"},{"line_number":46,"context_line":"        self.process \u003d mock.patch(\u0027subprocess.Popen\u0027).start()"},{"line_number":47,"context_line":"        self.process.return_value.returncode \u003d 0"},{"line_number":48,"context_line":"        #self.mock_popen_p \u003d mock.patch(\"subprocess.Popen.communicate\")"},{"line_number":49,"context_line":"        #self.mock_popen \u003d self.mock_popen_p.start()"},{"line_number":50,"context_line":"        self.mock_popen \u003d self.process.return_value.communicate"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_9a07c3c9","line":48,"updated":"2015-01-26 16:15:57.000000000","message":"Please see comments from PS5","commit_id":"250ad3a0e0f0b428954888e27e27492e903434dd"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b22be182eac02395675431081ced33af4424f7c2","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        open(self.test_file, \u0027w\u0027).close()"},{"line_number":46,"context_line":"        self.process \u003d mock.patch(\u0027subprocess.Popen\u0027).start()"},{"line_number":47,"context_line":"        self.process.return_value.returncode \u003d 0"},{"line_number":48,"context_line":"        #self.mock_popen_p \u003d mock.patch(\"subprocess.Popen.communicate\")"},{"line_number":49,"context_line":"        #self.mock_popen \u003d self.mock_popen_p.start()"},{"line_number":50,"context_line":"        self.mock_popen \u003d self.process.return_value.communicate"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_7df9b64c","line":48,"in_reply_to":"1a930d6b_9a07c3c9","updated":"2015-02-02 12:38:20.000000000","message":"Dead code, we don\u0027t like you! ;)","commit_id":"250ad3a0e0f0b428954888e27e27492e903434dd"}],"neutron/tests/unit/test_linux_ip_lib.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9bfd42494292d4ca700387c57812b928462233fb","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        base \u003d ip_lib.SubProcessBase()"},{"line_number":199,"context_line":"        not_root \u003d 42"},{"line_number":200,"context_line":"        with mock.patch.object(os, \u0027geteuid\u0027, return_value\u003dnot_root):"},{"line_number":201,"context_line":"            self.assertRaises(exceptions.SudoRequired,"},{"line_number":202,"context_line":"                              base.enforce_root_helper)"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def test_enforce_root_helper_with_root_helper_supplied(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_31686287","side":"PARENT","line":201,"updated":"2015-02-07 16:55:48.000000000","message":"I assume this exception is not used anymore, so we should kill it.","commit_id":"65d818c5b83a42b02f2c8ac3ec7b420c206bb6d6"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"492c51b0fd0b34f882caf91a71dd1d4250eeb2e3","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        base \u003d ip_lib.SubProcessBase()"},{"line_number":199,"context_line":"        not_root \u003d 42"},{"line_number":200,"context_line":"        with mock.patch.object(os, \u0027geteuid\u0027, return_value\u003dnot_root):"},{"line_number":201,"context_line":"            self.assertRaises(exceptions.SudoRequired,"},{"line_number":202,"context_line":"                              base.enforce_root_helper)"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def test_enforce_root_helper_with_root_helper_supplied(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_f14faabc","side":"PARENT","line":201,"in_reply_to":"da86d52c_31686287","updated":"2015-02-07 17:56:49.000000000","message":"Done","commit_id":"65d818c5b83a42b02f2c8ac3ec7b420c206bb6d6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9bfd42494292d4ca700387c57812b928462233fb","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.execute \u003d self.execute_p.start()"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def test_execute_wrapper(self):"},{"line_number":152,"context_line":"        ip_lib.SubProcessBase._execute(\u0027o\u0027, \u0027link\u0027, (\u0027list\u0027,), True)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        self.execute.assert_called_once_with([\u0027ip\u0027, \u0027-o\u0027, \u0027link\u0027, \u0027list\u0027],"},{"line_number":155,"context_line":"                                             run_as_root\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_b15c52ef","line":152,"updated":"2015-02-07 16:55:48.000000000","message":"it would be better to see that it\u0027s run_as_root\u003d and not just random argument.","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"492c51b0fd0b34f882caf91a71dd1d4250eeb2e3","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.execute \u003d self.execute_p.start()"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def test_execute_wrapper(self):"},{"line_number":152,"context_line":"        ip_lib.SubProcessBase._execute(\u0027o\u0027, \u0027link\u0027, (\u0027list\u0027,), True)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        self.execute.assert_called_once_with([\u0027ip\u0027, \u0027-o\u0027, \u0027link\u0027, \u0027list\u0027],"},{"line_number":155,"context_line":"                                             run_as_root\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_d152a667","line":152,"in_reply_to":"da86d52c_b15c52ef","updated":"2015-02-07 17:56:49.000000000","message":"Done","commit_id":"766ca584a7e1d1e035b7799e5d83a5ec422b4d75"}]}
