)]}'
{"rally/exceptions.py":[{"author":{"_account_id":21528,"name":"chenhb","email":"chen.haibing1@zte.com.cn","username":"chenhb"},"change_message_id":"e1613542830dbafe68411b4a7527c0e905c89d0a","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    \"\"\"Discover a proper exception class based on response object.\"\"\""},{"line_number":51,"context_line":"    exc_class \u003d exception_map.get(response.status_code, RallyException)"},{"line_number":52,"context_line":"    error_data \u003d response.json()[\"error\"]"},{"line_number":53,"context_line":"    if error_data[\"args\"]:"},{"line_number":54,"context_line":"        return exc_class(error_data[\"args\"])"},{"line_number":55,"context_line":"    return exc_class(error_data[\"msg\"])"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"def make_exception(exc):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f044301_f1f4cad1","line":55,"range":{"start_line":53,"start_character":1,"end_line":55,"end_character":39},"updated":"2017-05-03 23:59:52.000000000","message":"look like not sure args key is existing all the time.","commit_id":"5a66b522a7d78a695a6a76b12bbd2be44d340866"},{"author":{"_account_id":22960,"name":"Hai Shi","email":"shihai1992@gmail.com","username":"haishi"},"change_message_id":"c1d0b737417c7b7116c019f41dfc1673d6293634","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    \"\"\"Discover a proper exception class based on response object.\"\"\""},{"line_number":51,"context_line":"    exc_class \u003d exception_map.get(response.status_code, RallyException)"},{"line_number":52,"context_line":"    error_data \u003d response.json()[\"error\"]"},{"line_number":53,"context_line":"    if error_data[\"args\"]:"},{"line_number":54,"context_line":"        return exc_class(error_data[\"args\"])"},{"line_number":55,"context_line":"    return exc_class(error_data[\"msg\"])"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"def make_exception(exc):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f044301_a68e0725","line":55,"range":{"start_line":53,"start_character":1,"end_line":55,"end_character":39},"in_reply_to":"3f044301_f1f4cad1","updated":"2017-05-04 01:58:58.000000000","message":"yep. It is depending on what\u0027s content server transmitted.","commit_id":"5a66b522a7d78a695a6a76b12bbd2be44d340866"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":6,"context_line":"#    a copy of the License at"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"#         http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":9,"context_line":"#"},{"line_number":10,"context_line":"#    Unless required by applicable law or agreed to in writing, software"},{"line_number":11,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":12,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_0e914e53","line":9,"updated":"2017-05-14 19:26:18.000000000","message":"It is a good time to revise all usage of exceptions :)","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":22960,"name":"Hai Shi","email":"shihai1992@gmail.com","username":"haishi"},"change_message_id":"c480fcae4fa18a95b15a433645a3dd9f67aecd2e","unresolved":false,"context_lines":[{"line_number":6,"context_line":"#    a copy of the License at"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"#         http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":9,"context_line":"#"},{"line_number":10,"context_line":"#    Unless required by applicable law or agreed to in writing, software"},{"line_number":11,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":12,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_d062e016","line":9,"in_reply_to":"1f013ff3_0e914e53","updated":"2017-05-15 02:18:37.000000000","message":"Finally:)","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        return six.text_type(self)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"exception_map \u003d dict("},{"line_number":46,"context_line":"    (e.error_code, e) for e in discover.itersubclasses(RallyException))"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"def find_exception(response):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_4e607633","line":46,"range":{"start_line":45,"start_character":0,"end_line":46,"end_character":71},"updated":"2017-05-14 19:26:18.000000000","message":"this approach has two negative sides:\n\n1) it is executed in the root of module which means that some places with exceptions can be unloaded at that moment. Even more, since discover.itersubclasses is called before specifying other exceptions in current module, they are not included in that map\n\n2) obtaining all subclasses should not take too much time, but nevermind it takes some of them while just importing module.\n\nTo fix both of these issues let\u0027s initialize it in find_excpetion map:\n\n    _exception_map \u003d None\n\n    def find_exception():\n        global _exception_map\n        if _exception_map is None:\n            _exception_map \u003d dict((e.error_code, e)...)\n        exc_class \u003d _exception_map.get(...)\n        ...","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"class ImmutableException(RallyException):"},{"line_number":66,"context_line":"    error_code \u003d 515"},{"line_number":67,"context_line":"    msg_fmt \u003d _(\"This object is immutable.\")"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_ae893a27","line":66,"range":{"start_line":66,"start_character":4,"end_line":66,"end_character":20},"updated":"2017-05-14 19:26:18.000000000","message":"There is no defined case when that exception should be thrown in the API. Actually, it is used only in one place and I think it can be easily replaced by AttributeError, so we can remove this custom class at all","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"class InvalidArgumentsException(RallyException):"},{"line_number":71,"context_line":"    error_code \u003d 516"},{"line_number":72,"context_line":"    msg_fmt \u003d _(\"Invalid arguments: \u0027%(message)s\u0027\")"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"class InvalidConfigException(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_ae8eda24","line":72,"range":{"start_line":71,"start_character":4,"end_line":72,"end_character":29},"updated":"2017-05-14 19:26:18.000000000","message":"InvalidArgumentException is used when specific argument or arguments are wrong. These arguments are user-specified, so it should be 4** error.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    msg_fmt \u003d _(\"Invalid arguments: \u0027%(message)s\u0027\")"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"class InvalidConfigException(RallyException):"},{"line_number":76,"context_line":"    error_code \u003d 517"},{"line_number":77,"context_line":"    msg_fmt \u003d _(\"This config has invalid schema: `%(message)s`\")"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class InvalidRunnerResult(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_0e9f0e51","line":77,"range":{"start_line":75,"start_character":0,"end_line":77,"end_character":64},"updated":"2017-05-14 19:26:18.000000000","message":"The same. It is used while validating user-specified data, so it should be 4**","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":77,"context_line":"    msg_fmt \u003d _(\"This config has invalid schema: `%(message)s`\")"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class InvalidRunnerResult(RallyException):"},{"line_number":81,"context_line":"    error_code \u003d 518"},{"line_number":82,"context_line":"    msg_fmt \u003d _(\"Type of result of `%(name)s` runner should be\""},{"line_number":83,"context_line":"                \" `base.ScenarioRunnerResult`. Got: `%(results_type)s`\")"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"class InvalidTaskException(InvalidConfigException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_eeabc272","line":83,"range":{"start_line":80,"start_character":0,"end_line":83,"end_character":72},"updated":"2017-05-14 19:26:18.000000000","message":"it is not used anywhere, let\u0027s just remove it.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"class InvalidTaskException(InvalidConfigException):"},{"line_number":87,"context_line":"    error_code \u003d 519"},{"line_number":88,"context_line":"    msg_fmt \u003d _(\"Task config is invalid: `%(message)s`\")"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"class NotFoundScenarios(InvalidTaskException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_0e526e68","line":88,"range":{"start_line":87,"start_character":4,"end_line":88,"end_character":56},"updated":"2017-05-14 19:26:18.000000000","message":"should be 4**","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    msg_fmt \u003d _(\"Task config is invalid: `%(message)s`\")"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"class NotFoundScenarios(InvalidTaskException):"},{"line_number":92,"context_line":"    error_code \u003d 455"},{"line_number":93,"context_line":"    msg_fmt \u003d _(\"There are no benchmark scenarios with names: `%(names)s`.\")"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"class InvalidTaskConfig(InvalidTaskException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_8ecb1e1d","line":93,"range":{"start_line":91,"start_character":0,"end_line":93,"end_character":76},"updated":"2017-05-14 19:26:18.000000000","message":"it is not used anywhere. just remove it","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"class InvalidTaskConfig(InvalidTaskException):"},{"line_number":97,"context_line":"    error_code \u003d 520"},{"line_number":98,"context_line":"    msg_fmt \u003d _(\"Input task is invalid!\\n\\n\""},{"line_number":99,"context_line":"                \"Subtask %(name)s[%(pos)s] has wrong configuration\""},{"line_number":100,"context_line":"                \"\\nSubtask configuration:\\n%(config)s\\n\""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_ee4e22c0","line":97,"range":{"start_line":97,"start_character":4,"end_line":97,"end_character":20},"updated":"2017-05-14 19:26:18.000000000","message":"should be 4** since it is an error about incorrect user-specified data.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":125,"context_line":"                \"allocates at %(new_path)s.\")"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"class NoSuchConfigField(NotFoundException):"},{"line_number":129,"context_line":"    error_code \u003d 523"},{"line_number":130,"context_line":"    msg_fmt \u003d _(\"There is no field in the task config with name `%(name)s`.\")"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"class NoSuchRole(NotFoundException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_2edacae8","line":130,"range":{"start_line":128,"start_character":0,"end_line":130,"end_character":77},"updated":"2017-05-14 19:26:18.000000000","message":"not used - remove it:)","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":130,"context_line":"    msg_fmt \u003d _(\"There is no field in the task config with name `%(name)s`.\")"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"class NoSuchRole(NotFoundException):"},{"line_number":134,"context_line":"    error_code \u003d 524"},{"line_number":135,"context_line":"    msg_fmt \u003d _(\"There is no role with name `%(role)s`.\")"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"class TaskNotFound(NotFoundException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_8ef43e5d","line":135,"range":{"start_line":133,"start_character":0,"end_line":135,"end_character":57},"updated":"2017-05-14 19:26:18.000000000","message":"it is used in one place - in roles context. It is not used by end user, so there is no real reason to have a separate class for it. Let\u0027s remove it and reuse NotFoundException there with proper message.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    msg_fmt \u003d _(\"Deployment name \u0027%(deployment)s\u0027 already registered.\")"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"class DeploymentNotFinishedStatus(RallyException):"},{"line_number":154,"context_line":"    error_code \u003d 525"},{"line_number":155,"context_line":"    msg_fmt \u003d _(\"Deployment \u0027%(name)s\u0027 (UUID\u003d%(uuid)s) is in\""},{"line_number":156,"context_line":"                \" \u0027%(status)s\u0027 status.\")"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"class DeploymentIsBusy(RallyException):"},{"line_number":160,"context_line":"    error_code \u003d 526"},{"line_number":161,"context_line":"    msg_fmt \u003d _(\"There are allocated resources for the deployment with \""},{"line_number":162,"context_line":"                \"uuid\u003d%(uuid)s.\")"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"class RallyAssertionError(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_2e03ea44","line":162,"range":{"start_line":153,"start_character":0,"end_line":162,"end_character":33},"updated":"2017-05-14 19:26:18.000000000","message":"must be 4**, since user is trying to do the wrong thing or in a wrong time with rally resource.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":22960,"name":"Hai Shi","email":"shihai1992@gmail.com","username":"haishi"},"change_message_id":"c480fcae4fa18a95b15a433645a3dd9f67aecd2e","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    msg_fmt \u003d _(\"Deployment name \u0027%(deployment)s\u0027 already registered.\")"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"class DeploymentNotFinishedStatus(RallyException):"},{"line_number":154,"context_line":"    error_code \u003d 525"},{"line_number":155,"context_line":"    msg_fmt \u003d _(\"Deployment \u0027%(name)s\u0027 (UUID\u003d%(uuid)s) is in\""},{"line_number":156,"context_line":"                \" \u0027%(status)s\u0027 status.\")"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"class DeploymentIsBusy(RallyException):"},{"line_number":160,"context_line":"    error_code \u003d 526"},{"line_number":161,"context_line":"    msg_fmt \u003d _(\"There are allocated resources for the deployment with \""},{"line_number":162,"context_line":"                \"uuid\u003d%(uuid)s.\")"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"class RallyAssertionError(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_13e61246","line":162,"range":{"start_line":153,"start_character":0,"end_line":162,"end_character":33},"in_reply_to":"1f013ff3_2e03ea44","updated":"2017-05-15 02:18:37.000000000","message":"OK.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"class RallyAssertionError(RallyException):"},{"line_number":166,"context_line":"    error_code \u003d 527"},{"line_number":167,"context_line":"    msg_fmt \u003d _(\"Assertion error: %(message)s\")"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_0e002e34","line":166,"range":{"start_line":166,"start_character":4,"end_line":166,"end_character":20},"updated":"2017-05-14 19:26:18.000000000","message":"it is used only in scenarios and should not be thrown outside, so there is no reason to add separate error_code","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"class ScriptError(RallyException):"},{"line_number":199,"context_line":"    error_code \u003d 532"},{"line_number":200,"context_line":"    msg_fmt \u003d _(\"Script execution failed: %(message)s\")"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_ae625a15","line":199,"range":{"start_line":199,"start_character":4,"end_line":199,"end_character":20},"updated":"2017-05-14 19:26:18.000000000","message":"this exception should not be exposed to the user. it is only scenario exception, so there is no need for custom error_code","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"class TaskInvalidStatus(RallyException):"},{"line_number":204,"context_line":"    error_code \u003d 533"},{"line_number":205,"context_line":"    msg_fmt \u003d _(\"Task `%(uuid)s` in `%(actual)s` status but `%(require)s` is \""},{"line_number":206,"context_line":"                \"required.\")"},{"line_number":207,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_ee7f42a9","line":204,"range":{"start_line":204,"start_character":4,"end_line":204,"end_character":20},"updated":"2017-05-14 19:26:18.000000000","message":"I suppose that such exception can be raisen when user tries to work with the wrong task. it should be 4**","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":22960,"name":"Hai Shi","email":"shihai1992@gmail.com","username":"haishi"},"change_message_id":"c480fcae4fa18a95b15a433645a3dd9f67aecd2e","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"class TaskInvalidStatus(RallyException):"},{"line_number":204,"context_line":"    error_code \u003d 533"},{"line_number":205,"context_line":"    msg_fmt \u003d _(\"Task `%(uuid)s` in `%(actual)s` status but `%(require)s` is \""},{"line_number":206,"context_line":"                \"required.\")"},{"line_number":207,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_b33bde9a","line":204,"range":{"start_line":204,"start_character":4,"end_line":204,"end_character":20},"in_reply_to":"1f013ff3_ee7f42a9","updated":"2017-05-15 02:18:37.000000000","message":"Copy that.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"07b01c903c98848548a5790aa65070d7902869f3","unresolved":false,"context_lines":[{"line_number":206,"context_line":"                \"required.\")"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"class ChecksumMismatch(RallyException):"},{"line_number":210,"context_line":"    error_code \u003d 534"},{"line_number":211,"context_line":"    msg_fmt \u003d _(\"Checksum mismatch for image: %(url)s\")"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"class InvalidAdminException(InvalidArgumentsException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_ce7c86b7","line":211,"range":{"start_line":209,"start_character":0,"end_line":211,"end_character":55},"updated":"2017-05-14 19:26:18.000000000","message":"it is used only in one place, let\u0027s use RallyExcpetion instead there.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"class InvalidScenarioArgument(RallyException):"},{"line_number":231,"context_line":"    error_code \u003d 538"},{"line_number":232,"context_line":"    msg_fmt \u003d _(\"Invalid scenario argument: \u0027%(message)s\u0027\")"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_b62f4cf5","line":231,"range":{"start_line":231,"start_character":4,"end_line":231,"end_character":20},"updated":"2017-05-15 05:00:45.000000000","message":"it is user-exception, should be 4**","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":232,"context_line":"    msg_fmt \u003d _(\"Invalid scenario argument: \u0027%(message)s\u0027\")"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"class BenchmarkSetupFailure(RallyException):"},{"line_number":236,"context_line":"    error_code \u003d 539"},{"line_number":237,"context_line":"    msg_fmt \u003d _(\"Unable to setup benchmark: \u0027%(message)s\u0027\")"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"class ContextSetupFailure(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_363b3c39","line":237,"range":{"start_line":235,"start_character":0,"end_line":237,"end_character":59},"updated":"2017-05-15 05:00:45.000000000","message":"redundant, ContextSetupFailure should be used instead.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":243,"context_line":""},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"class ValidationError(RallyException):"},{"line_number":246,"context_line":"    error_code \u003d 541"},{"line_number":247,"context_line":"    msg_fmt \u003d _(\"Validation error: %(message)s\")"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_d613f8b7","line":246,"range":{"start_line":246,"start_character":4,"end_line":246,"end_character":20},"updated":"2017-05-15 05:00:45.000000000","message":"validation usually relates to user data, so it is 4**","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":247,"context_line":"    msg_fmt \u003d _(\"Validation error: %(message)s\")"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"class NoNodesFound(RallyException):"},{"line_number":251,"context_line":"    error_code \u003d 542"},{"line_number":252,"context_line":"    msg_fmt \u003d _(\"There is no nodes matching filters: %(filters)r\")"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"class UnknownRelease(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_162160fc","line":252,"range":{"start_line":250,"start_character":0,"end_line":252,"end_character":66},"updated":"2017-05-15 05:00:45.000000000","message":"is not used anywhere","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":252,"context_line":"    msg_fmt \u003d _(\"There is no nodes matching filters: %(filters)r\")"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"class UnknownRelease(RallyException):"},{"line_number":256,"context_line":"    error_code \u003d 543"},{"line_number":257,"context_line":"    msg_fmt \u003d _(\"Unknown release \u0027%(release)s\u0027\")"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"class CleanUpException(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_f6727411","line":257,"range":{"start_line":255,"start_character":1,"end_line":257,"end_character":48},"updated":"2017-05-15 05:00:45.000000000","message":"is not used anywhere","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":257,"context_line":"    msg_fmt \u003d _(\"Unknown release \u0027%(release)s\u0027\")"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"class CleanUpException(RallyException):"},{"line_number":261,"context_line":"    error_code \u003d 544"},{"line_number":262,"context_line":"    msg_fmt \u003d _(\"Cleanup failed.\")"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"class ImageCleanUpException(CleanUpException):"},{"line_number":266,"context_line":"    error_code \u003d 545"},{"line_number":267,"context_line":"    msg_fmt \u003d _(\"Image Deletion Failed\")"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"class EncryptionTypeDeleteException(CleanUpException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_36d7bcc2","line":267,"range":{"start_line":260,"start_character":0,"end_line":267,"end_character":40},"updated":"2017-05-15 05:00:45.000000000","message":"redundant","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":267,"context_line":"    msg_fmt \u003d _(\"Image Deletion Failed\")"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"class EncryptionTypeDeleteException(CleanUpException):"},{"line_number":271,"context_line":"    error_code \u003d 546"},{"line_number":272,"context_line":"    msg_fmt \u003d _(\"EncryptionType Deletion Failed\")"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"class IncompatiblePythonVersion(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_b6c2ace8","line":272,"range":{"start_line":270,"start_character":0,"end_line":272,"end_character":49},"updated":"2017-05-15 05:00:45.000000000","message":"it is used only in one place and nothing should catch it. Let\u0027s replace it by RallyExpcetion with proper message.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":272,"context_line":"    msg_fmt \u003d _(\"EncryptionType Deletion Failed\")"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"class IncompatiblePythonVersion(RallyException):"},{"line_number":276,"context_line":"    error_code \u003d 547"},{"line_number":277,"context_line":"    msg_fmt \u003d _(\"Incompatible python version found \u0027%(version)s\u0027, \""},{"line_number":278,"context_line":"                \"required \u0027%(required_version)s\u0027\")"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"class WorkerNotFound(NotFoundException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_96b7b087","line":278,"range":{"start_line":275,"start_character":0,"end_line":278,"end_character":50},"updated":"2017-05-15 05:00:45.000000000","message":"not used.","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    msg_fmt \u003d _(\"Worker %(worker)s already registered\")"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"class SaharaClusterFailure(RallyException):"},{"line_number":292,"context_line":"    error_code \u003d 550"},{"line_number":293,"context_line":"    msg_fmt \u003d _(\"Sahara cluster %(name)s has failed to %(action)s. \""},{"line_number":294,"context_line":"                \"Reason: \u0027%(reason)s\u0027\")"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"class LiveMigrateException(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_011c7c68","line":294,"range":{"start_line":291,"start_character":1,"end_line":294,"end_character":39},"updated":"2017-05-15 05:00:45.000000000","message":"let\u0027s replace it by ContextSetupFailure","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":294,"context_line":"                \"Reason: \u0027%(reason)s\u0027\")"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"class LiveMigrateException(RallyException):"},{"line_number":298,"context_line":"    error_code \u003d 551"},{"line_number":299,"context_line":"    msg_fmt \u003d _(\"Live Migration failed: %(message)s\")"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"class MigrateException(RallyException):"},{"line_number":303,"context_line":"    error_code \u003d 552"},{"line_number":304,"context_line":"    msg_fmt \u003d _(\"Migration failed: %(message)s\")"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"class InvalidHostException(RallyException):"},{"line_number":308,"context_line":"    error_code \u003d 553"},{"line_number":309,"context_line":"    msg_fmt \u003d _(\"Live Migration failed: %(message)s\")"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"class MultipleMatchesFound(RallyException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_41404436","line":309,"range":{"start_line":297,"start_character":0,"end_line":309,"end_character":53},"updated":"2017-05-15 05:00:45.000000000","message":"they used in one place, let\u0027s replace them by something","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":309,"context_line":"    msg_fmt \u003d _(\"Live Migration failed: %(message)s\")"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"class MultipleMatchesFound(RallyException):"},{"line_number":313,"context_line":"    error_code \u003d 554"},{"line_number":314,"context_line":"    msg_fmt \u003d _(\"Found multiple %(needle)s: %(haystack)s\")"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"    def __init__(self, **kwargs):"},{"line_number":317,"context_line":"        if \"hint\" in kwargs:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_a17a6885","line":314,"range":{"start_line":312,"start_character":0,"end_line":314,"end_character":58},"updated":"2017-05-15 05:00:45.000000000","message":"it should user error too","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"bacc00909e36c2f8dcd8ed61b17ddb899f161914","unresolved":false,"context_lines":[{"line_number":330,"context_line":""},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"class InvalidConnectionString(RallyException):"},{"line_number":333,"context_line":"    error_code \u003d 557"},{"line_number":334,"context_line":"    msg_fmt \u003d _(\"The connection string is not valid: %(message)s. Please \""},{"line_number":335,"context_line":"                \"check your connection string.\")"},{"line_number":336,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_c19a14c4","line":333,"range":{"start_line":333,"start_character":4,"end_line":333,"end_character":20},"updated":"2017-05-15 05:00:45.000000000","message":"user error","commit_id":"4e25ac5b75847c39ee12de80817fd304478c742e"}]}
