)]}'
{"ironic_python_agent/extensions/standby.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2d5631707ee87b711eda2d848a84ec4f9b408391","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        self._run_shutdown_script(\u0027-h\u0027)"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    @base.sync_command(\u0027sync\u0027)"},{"line_number":332,"context_line":"    def sync(self):"},{"line_number":333,"context_line":"        \"\"\"Flush file system buffers forcing changed blocks to disk.\"\"\""},{"line_number":334,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":335,"context_line":"        self._run_sync_script()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_2ae43adf","line":332,"updated":"2016-03-17 14:12:57.000000000","message":"do we really need it as a separate command, or e.g. as part of power_off()?","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"41d54d16510ad5366546c2110398a2293ca8f1cf","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        self._run_shutdown_script(\u0027-h\u0027)"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    @base.sync_command(\u0027sync\u0027)"},{"line_number":332,"context_line":"    def sync(self):"},{"line_number":333,"context_line":"        \"\"\"Flush file system buffers forcing changed blocks to disk.\"\"\""},{"line_number":334,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":335,"context_line":"        self._run_sync_script()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_2d5a662a","line":332,"in_reply_to":"1af94dfe_2a152c48","updated":"2016-03-18 09:53:32.000000000","message":"Sure, will do","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"cdb2570da66df60a8649bd0ab5072386d8c28d4e","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        self._run_shutdown_script(\u0027-h\u0027)"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    @base.sync_command(\u0027sync\u0027)"},{"line_number":332,"context_line":"    def sync(self):"},{"line_number":333,"context_line":"        \"\"\"Flush file system buffers forcing changed blocks to disk.\"\"\""},{"line_number":334,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":335,"context_line":"        self._run_sync_script()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_8afba0c0","line":332,"in_reply_to":"1af94dfe_2ae43adf","updated":"2016-03-18 09:39:09.000000000","message":"Yes, because power_off() will not be called when addressing #1512492\n\nI first changed power_off to also be able to halt (see patch-set #1) but we discussed on IRC and decided that a sync() command would make more sense","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3fe52aa2880437ae343460359f42a634cac3e322","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        self._run_shutdown_script(\u0027-h\u0027)"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    @base.sync_command(\u0027sync\u0027)"},{"line_number":332,"context_line":"    def sync(self):"},{"line_number":333,"context_line":"        \"\"\"Flush file system buffers forcing changed blocks to disk.\"\"\""},{"line_number":334,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":335,"context_line":"        self._run_sync_script()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_2a152c48","line":332,"in_reply_to":"1af94dfe_8afba0c0","updated":"2016-03-18 09:47:03.000000000","message":"Actually it\u0027s not immediately obvious how this patch helps solving the bug in question. Could you please also update the commit message with this information?","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ebe01ebabb08907ba9aab99ff5e449617656e09d","unresolved":false,"context_lines":[{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        :raises: CommandExecutionError if flushing file system buffers fails."},{"line_number":317,"context_line":"        \"\"\""},{"line_number":318,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":319,"context_line":"        try:"},{"line_number":320,"context_line":"            utils.execute(\u0027sync\u0027, check_exit_code\u003d[0])"},{"line_number":321,"context_line":"        except processutils.ProcessExecutionError as e:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_c50e29e4","line":318,"updated":"2016-03-18 14:59:12.000000000","message":"things ending with -ing are usually logged at DEBUG level","commit_id":"e4baa9346d55818752eb898757736b5dd6f08d74"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"db0b9be61aaf1d2d4a6a435987cc58d355c3d43b","unresolved":false,"context_lines":[{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        :raises: CommandExecutionError if flushing file system buffers fails."},{"line_number":317,"context_line":"        \"\"\""},{"line_number":318,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":319,"context_line":"        try:"},{"line_number":320,"context_line":"            utils.execute(\u0027sync\u0027, check_exit_code\u003d[0])"},{"line_number":321,"context_line":"        except processutils.ProcessExecutionError as e:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_80bc0fbc","line":318,"in_reply_to":"1af94dfe_c50e29e4","updated":"2016-03-18 15:15:29.000000000","message":"Done","commit_id":"e4baa9346d55818752eb898757736b5dd6f08d74"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ebe01ebabb08907ba9aab99ff5e449617656e09d","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        \"\"\""},{"line_number":318,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":319,"context_line":"        try:"},{"line_number":320,"context_line":"            utils.execute(\u0027sync\u0027, check_exit_code\u003d[0])"},{"line_number":321,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":322,"context_line":"            error_msg \u003d \u0027Flushing file system buffers failed. Error: %s\u0027 % e"},{"line_number":323,"context_line":"            LOG.error(error_msg)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_a5115d06","line":320,"updated":"2016-03-18 14:59:12.000000000","message":"isn\u0027t this check_exit_code the default?","commit_id":"e4baa9346d55818752eb898757736b5dd6f08d74"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"db0b9be61aaf1d2d4a6a435987cc58d355c3d43b","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        \"\"\""},{"line_number":318,"context_line":"        LOG.info(\u0027Flushing file system buffers\u0027)"},{"line_number":319,"context_line":"        try:"},{"line_number":320,"context_line":"            utils.execute(\u0027sync\u0027, check_exit_code\u003d[0])"},{"line_number":321,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":322,"context_line":"            error_msg \u003d \u0027Flushing file system buffers failed. Error: %s\u0027 % e"},{"line_number":323,"context_line":"            LOG.error(error_msg)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_e0afd37a","line":320,"in_reply_to":"1af94dfe_a5115d06","updated":"2016-03-18 15:15:29.000000000","message":"Done","commit_id":"e4baa9346d55818752eb898757736b5dd6f08d74"}],"ironic_python_agent/shell/sync.sh":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2d5631707ee87b711eda2d848a84ec4f9b408391","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1af94dfe_4adf060d","updated":"2016-03-17 14:12:57.000000000","message":"we have a bug up to get rid of bash scripts. these 2 trivial commands can be easily implemented in Python","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5951814003ef874bf03157afb339471dc41d3939","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1af94dfe_ca7f68a9","in_reply_to":"1af94dfe_0a7b10f6","updated":"2016-03-18 09:45:07.000000000","message":"I don\u0027t see a point in supporting bad practices...","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"cdb2570da66df60a8649bd0ab5072386d8c28d4e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1af94dfe_0a7b10f6","in_reply_to":"1af94dfe_4adf060d","updated":"2016-03-18 09:39:09.000000000","message":"I don\u0027t making it in python. I believe some of the scripts will disapear once we unify more stuff with ironic-lib (e.g write_image.sh). But that said, this patch just follows the way IPA does things now.","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"41d54d16510ad5366546c2110398a2293ca8f1cf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1af94dfe_4d3ff286","in_reply_to":"1af94dfe_ca7f68a9","updated":"2016-03-18 09:53:32.000000000","message":"Right, I agree with that. I just wonder if someone else may think that scripts for such cases are better than python* because it brings some flexibility (and the reason why things were done in bash in the first place)\n\np.s * That bug was opened after this patch was created","commit_id":"cb27814f98fdda13da855f367ac46dcfcaf62698"}]}
