)]}'
{"rally/api.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        try:"},{"line_number":104,"context_line":"            deployer.validate()"},{"line_number":105,"context_line":"        except jsonschema.ValidationError:"},{"line_number":106,"context_line":"            LOG.error(\"Deployment %s: Schema validation error.\" %"},{"line_number":107,"context_line":"                      deployment[\"uuid\"])"},{"line_number":108,"context_line":"            deployment.update_status(consts.DeployStatus.DEPLOY_FAILED)"},{"line_number":109,"context_line":"            raise"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_f96454e7","line":106,"updated":"2017-06-23 02:34:46.000000000","message":"Should be LOG.error(\"...\", deployment[\"uuid\"])\n\nhttps://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"},{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":507,"context_line":"            current_status \u003d objects.Task.get_status(task_uuid)"},{"line_number":508,"context_line":"            if current_status in objects.Task.NOT_IMPLEMENTED_STAGES_FOR_ABORT:"},{"line_number":509,"context_line":"                LOG.info(\"Task status is \u0027%s\u0027. Should wait until it became\""},{"line_number":510,"context_line":"                         \" \u0027running\u0027\" % current_status)"},{"line_number":511,"context_line":"                while (current_status in"},{"line_number":512,"context_line":"                       objects.Task.NOT_IMPLEMENTED_STAGES_FOR_ABORT):"},{"line_number":513,"context_line":"                    time.sleep(1)"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_d963d8db","line":510,"range":{"start_line":510,"start_character":37,"end_line":510,"end_character":39},"updated":"2017-06-23 02:34:46.000000000","message":"ditto","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"}],"rally/common/broker.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        try:"},{"line_number":42,"context_line":"            consume(cache, args)"},{"line_number":43,"context_line":"        except Exception as e:"},{"line_number":44,"context_line":"            LOG.warning(\"Failed to consume a task from the queue: %s\" % e)"},{"line_number":45,"context_line":"            if logging.is_debug():"},{"line_number":46,"context_line":"                LOG.exception(e)"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_0d5b40f7","line":44,"range":{"start_line":44,"start_character":70,"end_line":44,"end_character":71},"updated":"2017-06-23 10:04:05.000000000","message":"lazy load should be used here","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"},{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    try:"},{"line_number":56,"context_line":"        publish(queue)"},{"line_number":57,"context_line":"    except Exception as e:"},{"line_number":58,"context_line":"        LOG.warning(\"Failed to publish a task to the queue: %s\" % e)"},{"line_number":59,"context_line":"        if logging.is_debug():"},{"line_number":60,"context_line":"            LOG.exception(e)"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_8d6e3093","line":58,"range":{"start_line":58,"start_character":63,"end_line":58,"end_character":65},"updated":"2017-06-23 10:04:05.000000000","message":"ditto","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"}],"rally/common/i18n.py":[{"author":{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},"change_message_id":"2688505b573b347ff23065ff2ac93881b48f663d","unresolved":false,"context_lines":[{"line_number":29,"context_line":"# The abbreviated names are meant to reflect the usual use of a short"},{"line_number":30,"context_line":"# name like \u0027_\u0027. The \"L\" is for \"log\" and the other letter comes from"},{"line_number":31,"context_line":"# the level."},{"line_number":32,"context_line":"_LI \u003d _translators.log_info"},{"line_number":33,"context_line":"_LW \u003d _translators.log_warning"},{"line_number":34,"context_line":"_LE \u003d _translators.log_error"},{"line_number":35,"context_line":"_LC \u003d _translators.log_critical"}],"source_content_type":"text/x-python","patch_set":15,"id":"3f1d235d_7112b20b","side":"PARENT","line":35,"range":{"start_line":32,"start_character":0,"end_line":35,"end_character":31},"updated":"2017-07-01 02:27:19.000000000","message":"hm... it is hard to we should keep these or not, i worried they may be used in other plugins what were created by users.","commit_id":"126689eb3546824d3de2d2da820266facfb9a244"}],"rally/common/objects/task.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":581,"context_line":""},{"line_number":582,"context_line":"        if current_status in self.NOT_IMPLEMENTED_STAGES_FOR_ABORT:"},{"line_number":583,"context_line":"            raise exceptions.RallyException("},{"line_number":584,"context_line":"                \"Failed to abort task \u0027%(uuid)s\u0027. It doesn\u0027t implemented \""},{"line_number":585,"context_line":"                \"for \u0027%(stages)s\u0027 stages. Current task status is \""},{"line_number":586,"context_line":"                \"\u0027%(status)s\u0027.\" %"},{"line_number":587,"context_line":"                {\"uuid\": self.task[\"uuid\"], \"status\": current_status,"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_d991989b","line":584,"updated":"2017-06-23 02:34:46.000000000","message":"Anytime that the message will be passed outside of the current context (for example as part of an exception) the _() marker function must be used.\n\nhttps://docs.openstack.org/developer/oslo.i18n/guidelines.html#choosing-a-marker-function","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"},{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                                consts.TaskStatus.CRASHED,"},{"line_number":591,"context_line":"                                consts.TaskStatus.ABORTED]:"},{"line_number":592,"context_line":"            raise exceptions.RallyException("},{"line_number":593,"context_line":"                \"Failed to abort task \u0027%s\u0027, since it already \""},{"line_number":594,"context_line":"                \"finished.\" % self.task[\"uuid\"])"},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"        new_status \u003d (consts.TaskStatus.SOFT_ABORTING"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_b98c9c7f","line":593,"updated":"2017-06-23 02:34:46.000000000","message":"ditto","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"},{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":581,"context_line":"        current_status \u003d self.get_status(self.task[\"uuid\"])"},{"line_number":582,"context_line":""},{"line_number":583,"context_line":"        if current_status in self.NOT_IMPLEMENTED_STAGES_FOR_ABORT:"},{"line_number":584,"context_line":"            raise exceptions.RallyException(_("},{"line_number":585,"context_line":"                \"Failed to abort task \u0027%(uuid)s\u0027. It doesn\u0027t implemented \""},{"line_number":586,"context_line":"                \"for \u0027%(stages)s\u0027 stages. Current task status is \""},{"line_number":587,"context_line":"                \"\u0027%(status)s\u0027.\") %"},{"line_number":588,"context_line":"                {\"uuid\": self.task[\"uuid\"], \"status\": current_status,"},{"line_number":589,"context_line":"                 \"stages\": \", \".join(self.NOT_IMPLEMENTED_STAGES_FOR_ABORT)})"},{"line_number":590,"context_line":"        elif current_status in [consts.TaskStatus.FINISHED,"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_ad79ec2f","line":587,"range":{"start_line":584,"start_character":44,"end_line":587,"end_character":32},"updated":"2017-06-23 10:04:05.000000000","message":"I think it will be more readable if you just replace\n_LE(\" ... \") -\u003e _(\"...\")\n\n\n_(\"Failed ...\"\n  \"for ...\"\n  \"    \")","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"},{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":590,"context_line":"        elif current_status in [consts.TaskStatus.FINISHED,"},{"line_number":591,"context_line":"                                consts.TaskStatus.CRASHED,"},{"line_number":592,"context_line":"                                consts.TaskStatus.ABORTED]:"},{"line_number":593,"context_line":"            raise exceptions.RallyException(_("},{"line_number":594,"context_line":"                \"Failed to abort task \u0027%s\u0027, since it already \""},{"line_number":595,"context_line":"                \"finished.\") % self.task[\"uuid\"])"},{"line_number":596,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_cda3089e","line":593,"range":{"start_line":593,"start_character":44,"end_line":593,"end_character":46},"updated":"2017-06-23 10:04:05.000000000","message":"ditto","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"}],"rally/common/plugin/plugin.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        elif potential_result:"},{"line_number":243,"context_line":"            hint \u003d \"Try to choose the correct Plugin base or namespace to \""},{"line_number":244,"context_line":"            \"search in.\""},{"line_number":245,"context_line":"            if namespace:"},{"line_number":246,"context_line":"                needle \u003d \"%s at %s namespace\" % (name, namespace)"},{"line_number":247,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_39f64cfb","line":244,"updated":"2017-06-23 02:34:46.000000000","message":"indent","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"}],"rally/common/utils.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":768,"context_line":"    def backup(self, original_path):"},{"line_number":769,"context_line":"        if original_path in self._stored_data:"},{"line_number":770,"context_line":"            raise exceptions.RallyException("},{"line_number":771,"context_line":"                \"Failed to back up %s since it was already stored.\" %"},{"line_number":772,"context_line":"                original_path)"},{"line_number":773,"context_line":"        backup_path \u003d generate_random_path(self._tempdir)"},{"line_number":774,"context_line":"        LOG.debug(\"Creating backup of %s in %s\" % (original_path, backup_path))"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_f9d7b44e","line":771,"updated":"2017-06-23 02:34:46.000000000","message":"_()","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"}],"rally/deployment/engine.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            return engine_cls(deployment)"},{"line_number":87,"context_line":"        except exceptions.PluginNotFound as e:"},{"line_number":88,"context_line":"            LOG.error(\"Deployment %(uuid)s: Deploy engine for %(name)s \""},{"line_number":89,"context_line":"                      \"does not exist.\" %"},{"line_number":90,"context_line":"                      {\"uuid\": deployment[\"uuid\"], \"name\": name})"},{"line_number":91,"context_line":"            deployment.update_status(consts.DeployStatus.DEPLOY_FAILED)"},{"line_number":92,"context_line":"            raise exceptions.PluginNotFound("}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_6dc1942e","line":89,"range":{"start_line":89,"start_character":40,"end_line":89,"end_character":41},"updated":"2017-06-23 10:04:05.000000000","message":",","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"}],"rally/plugins/common/verification/testr.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":98,"context_line":"                if os.path.exists(test_repository_dir):"},{"line_number":99,"context_line":"                    shutil.rmtree(test_repository_dir)"},{"line_number":100,"context_line":"                raise exceptions.RallyException("},{"line_number":101,"context_line":"                    \"Failed to initialize testr.\")"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def install(self):"},{"line_number":104,"context_line":"        super(TestrLauncher, self).install()"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_99d2005c","line":101,"updated":"2017-06-23 02:34:46.000000000","message":"_()","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"}],"rally/plugins/openstack/context/murano/murano_packages.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":58,"context_line":"            is_config_app_dir \u003d True"},{"line_number":59,"context_line":"            zip_name \u003d fileutils.pack_dir(pckg_path)"},{"line_number":60,"context_line":"        else:"},{"line_number":61,"context_line":"            msg \u003d (\"There is no zip archive or directory by this path:\""},{"line_number":62,"context_line":"                   \" %s\" % pckg_path)"},{"line_number":63,"context_line":"            raise exceptions.ContextSetupFailure(msg\u003dmsg,"},{"line_number":64,"context_line":"                                                 ctx_name\u003dself.get_name())"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_2d7ddce6","line":61,"updated":"2017-06-23 10:04:05.000000000","message":"_() is needed here","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"}],"rally/plugins/openstack/scenarios/keystone/utils.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"9d25fcd6aecb17a873318d933cba7119f2b4fe74","unresolved":false,"context_lines":[{"line_number":33,"context_line":"            \"Class %s is deprecated since Rally 0.8.0 and will be removed \""},{"line_number":34,"context_line":"            \"soon. Use \""},{"line_number":35,"context_line":"            \"rally.plugins.openstack.services.identity.identity.Identity \""},{"line_number":36,"context_line":"            \"instead.\" % self.__class__)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @atomic.action_timer(\"keystone.create_user\")"},{"line_number":39,"context_line":"    def _user_create(self, email\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f201791_f9c0d47e","line":36,"range":{"start_line":36,"start_character":22,"end_line":36,"end_character":24},"updated":"2017-06-23 02:34:46.000000000","message":"% -\u003e ,","commit_id":"57f173d659439ac1a7bc3099de44f61a61bf4906"}],"rally/plugins/openstack/verification/tempest/manager.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        \"\"\"Install a Tempest plugin.\"\"\""},{"line_number":128,"context_line":"        if extra_settings:"},{"line_number":129,"context_line":"            raise NotImplementedError("},{"line_number":130,"context_line":"                \"\u0027%s\u0027 verifiers don\u0027t support extra installation settings \""},{"line_number":131,"context_line":"                \"for extensions.\" % self.get_name())"},{"line_number":132,"context_line":"        version \u003d version or \"master\""},{"line_number":133,"context_line":"        egg \u003d re.sub(\"\\.git$\", \"\", os.path.basename(source.strip(\"/\")))"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_0dd220d3","line":130,"updated":"2017-06-23 10:04:05.000000000","message":"_()","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"}],"rally/verification/manager.py":[{"author":{"_account_id":25720,"name":"Ngo Quoc Cuong","email":"cuongngo.ict@gmail.com","username":"cuongnq"},"change_message_id":"682ec4ec60da99b608e3a2a338eb68984ec85982","unresolved":false,"context_lines":[{"line_number":308,"context_line":"            configuration"},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        raise NotImplementedError("},{"line_number":311,"context_line":"            \"\u0027%s\u0027 verifiers don\u0027t support configuration at all.\""},{"line_number":312,"context_line":"            % self.get_name())"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"    def is_configured(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f201791_8de510ab","line":311,"updated":"2017-06-23 10:04:05.000000000","message":"_()","commit_id":"1c561916f5abc996056f82f7539dfdfa38d6a762"}]}
