)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":15,"context_line":"  in classes that encapsulate their responsibility. E.g: the"},{"line_number":16,"context_line":"  protocol helper should not access the container to obtain its"},{"line_number":17,"context_line":"  IP address, it should invoke a method from the container helper."},{"line_number":18,"context_line":"- Don\u0027t use share_id everywhere: even though the code"},{"line_number":19,"context_line":"  currently does not use the instance_id, deriving the"},{"line_number":20,"context_line":"  share name from the export location makes it easier to"},{"line_number":21,"context_line":"  support instance_id or manage/unmanage future implementations."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9fdfeff1_57d8b251","line":18,"range":{"start_line":18,"start_character":1,"end_line":18,"end_character":31},"updated":"2019-02-25 23:13:32.000000000","message":":( We didn\u0027t catch this for this long. Thanks!","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"}],"manila/share/drivers/container/container_helper.py":[{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            raise exception.ManilaException(_(\"Missing or malformed command.\"))"},{"line_number":86,"context_line":"        LOG.debug(\"Executing inside a container %s.\", name)"},{"line_number":87,"context_line":"        cmd \u003d [\"docker\", \"exec\", \"-i\", name] + cmd"},{"line_number":88,"context_line":"        result \u003d self._inner_execute(cmd)"},{"line_number":89,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":90,"context_line":"        return result"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _inner_execute(self, cmd):"},{"line_number":93,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_ad430f3f","side":"PARENT","line":90,"range":{"start_line":88,"start_character":8,"end_line":90,"end_character":21},"updated":"2019-02-21 20:41:06.000000000","message":"then returning normally here, no exception raised","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            raise exception.ManilaException(_(\"Missing or malformed command.\"))"},{"line_number":86,"context_line":"        LOG.debug(\"Executing inside a container %s.\", name)"},{"line_number":87,"context_line":"        cmd \u003d [\"docker\", \"exec\", \"-i\", name] + cmd"},{"line_number":88,"context_line":"        result \u003d self._inner_execute(cmd)"},{"line_number":89,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":90,"context_line":"        return result"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _inner_execute(self, cmd):"},{"line_number":93,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_c8c9a15a","side":"PARENT","line":90,"range":{"start_line":88,"start_character":8,"end_line":90,"end_character":21},"in_reply_to":"9fdfeff1_ad430f3f","updated":"2019-02-21 22:26:22.000000000","message":"OK, agree.","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"},{"line_number":96,"context_line":"        except Exception:"},{"line_number":97,"context_line":"            LOG.exception(\"Executing command failed.\")"},{"line_number":98,"context_line":"            return None"},{"line_number":99,"context_line":"        LOG.debug(\"Execution result: %s.\", result)"},{"line_number":100,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_0d557bfa","side":"PARENT","line":98,"range":{"start_line":96,"start_character":7,"end_line":98,"end_character":23},"updated":"2019-02-21 20:41:06.000000000","message":"it was swallowing here","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"},{"line_number":96,"context_line":"        except Exception:"},{"line_number":97,"context_line":"            LOG.exception(\"Executing command failed.\")"},{"line_number":98,"context_line":"            return None"},{"line_number":99,"context_line":"        LOG.debug(\"Execution result: %s.\", result)"},{"line_number":100,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_28b38deb","side":"PARENT","line":98,"range":{"start_line":96,"start_character":7,"end_line":98,"end_character":23},"in_reply_to":"9fdfeff1_0d557bfa","updated":"2019-02-21 22:26:22.000000000","message":"Ack","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":65,"context_line":"               \"-v\", \"/tmp/shares:/shares\", image_name]"},{"line_number":66,"context_line":"        try:"},{"line_number":67,"context_line":"            result \u003d self._inner_execute(cmd)"},{"line_number":68,"context_line":"        except Exception:"},{"line_number":69,"context_line":"            raise exception.ShareBackendException("},{"line_number":70,"context_line":"                msg\u003d\"Container %s has failed to start.\" % name)"},{"line_number":71,"context_line":"        LOG.info(\"A container has been successfully started! Its id is \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_947938c6","line":68,"range":{"start_line":68,"start_character":15,"end_line":68,"end_character":24},"updated":"2019-02-25 23:13:32.000000000","message":"We know what exceptions are possible, please only process those: \n\nexception.ProcessExecutionError, OSError\n\n\n[1] https://github.com/openstack/oslo.concurrency/blob/9a4dea3/oslo_concurrency/processutils.py#L270","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":65,"context_line":"               \"-v\", \"/tmp/shares:/shares\", image_name]"},{"line_number":66,"context_line":"        try:"},{"line_number":67,"context_line":"            result \u003d self._inner_execute(cmd)"},{"line_number":68,"context_line":"        except Exception:"},{"line_number":69,"context_line":"            raise exception.ShareBackendException("},{"line_number":70,"context_line":"                msg\u003d\"Container %s has failed to start.\" % name)"},{"line_number":71,"context_line":"        LOG.info(\"A container has been successfully started! Its id is \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_e921c2b5","line":68,"range":{"start_line":68,"start_character":15,"end_line":68,"end_character":24},"in_reply_to":"9fdfeff1_947938c6","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        LOG.debug(\"Stopping container %s.\", name)"},{"line_number":76,"context_line":"        try:"},{"line_number":77,"context_line":"            self._inner_execute([\"docker\", \"stop\", name])"},{"line_number":78,"context_line":"        except Exception:"},{"line_number":79,"context_line":"            raise exception.ShareBackendException("},{"line_number":80,"context_line":"                msg\u003d\"Container %s has failed to stop properly.\" % name)"},{"line_number":81,"context_line":"        LOG.info(\"Container %s is successfully stopped.\", name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_b45f9c3f","line":78,"range":{"start_line":78,"start_character":15,"end_line":78,"end_character":24},"updated":"2019-02-25 23:13:32.000000000","message":"same","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        LOG.debug(\"Stopping container %s.\", name)"},{"line_number":76,"context_line":"        try:"},{"line_number":77,"context_line":"            self._inner_execute([\"docker\", \"stop\", name])"},{"line_number":78,"context_line":"        except Exception:"},{"line_number":79,"context_line":"            raise exception.ShareBackendException("},{"line_number":80,"context_line":"                msg\u003d\"Container %s has failed to stop properly.\" % name)"},{"line_number":81,"context_line":"        LOG.info(\"Container %s is successfully stopped.\", name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_892a768e","line":78,"range":{"start_line":78,"start_character":15,"end_line":78,"end_character":24},"in_reply_to":"9fdfeff1_b45f9c3f","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                msg\u003d\"Container %s has failed to stop properly.\" % name)"},{"line_number":81,"context_line":"        LOG.info(\"Container %s is successfully stopped.\", name)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def execute(self, name\u003dNone, cmd\u003dNone, swallow_exception\u003dFalse):"},{"line_number":84,"context_line":"        if name is None:"},{"line_number":85,"context_line":"            raise exception.ManilaException(_(\"Container name not specified.\"))"},{"line_number":86,"context_line":"        if cmd is None or (type(cmd) is not list):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_143c68df","line":83,"range":{"start_line":83,"start_character":43,"end_line":83,"end_character":60},"updated":"2019-02-25 23:13:32.000000000","message":"nit: \"ignore_errors\" is easier to read..","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                msg\u003d\"Container %s has failed to stop properly.\" % name)"},{"line_number":81,"context_line":"        LOG.info(\"Container %s is successfully stopped.\", name)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def execute(self, name\u003dNone, cmd\u003dNone, swallow_exception\u003dFalse):"},{"line_number":84,"context_line":"        if name is None:"},{"line_number":85,"context_line":"            raise exception.ManilaException(_(\"Container name not specified.\"))"},{"line_number":86,"context_line":"        if cmd is None or (type(cmd) is not list):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_89035610","line":83,"range":{"start_line":83,"start_character":43,"end_line":83,"end_character":60},"in_reply_to":"9fdfeff1_143c68df","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":87,"context_line":"            raise exception.ManilaException(_(\"Missing or malformed command.\"))"},{"line_number":88,"context_line":"        LOG.debug(\"Executing inside a container %s.\", name)"},{"line_number":89,"context_line":"        cmd \u003d [\"docker\", \"exec\", \"-i\", name] + cmd"},{"line_number":90,"context_line":"        result \u003d self._inner_execute(cmd, swallow_exception)"},{"line_number":91,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":92,"context_line":"        return result"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_d42100b6","line":90,"range":{"start_line":90,"start_character":42,"end_line":90,"end_character":59},"updated":"2019-02-25 23:13:32.000000000","message":"pass kwargs as kwargs","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":87,"context_line":"            raise exception.ManilaException(_(\"Missing or malformed command.\"))"},{"line_number":88,"context_line":"        LOG.debug(\"Executing inside a container %s.\", name)"},{"line_number":89,"context_line":"        cmd \u003d [\"docker\", \"exec\", \"-i\", name] + cmd"},{"line_number":90,"context_line":"        result \u003d self._inner_execute(cmd, swallow_exception)"},{"line_number":91,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":92,"context_line":"        return result"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_44ff9500","line":90,"range":{"start_line":90,"start_character":42,"end_line":90,"end_character":59},"in_reply_to":"9fdfeff1_d42100b6","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":92,"context_line":"        return result"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def _inner_execute(self, cmd, swallow_exception\u003dFalse):"},{"line_number":95,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_74037411","line":94,"range":{"start_line":94,"start_character":34,"end_line":94,"end_character":51},"updated":"2019-02-25 23:13:32.000000000","message":"same as above","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":92,"context_line":"        return result"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def _inner_execute(self, cmd, swallow_exception\u003dFalse):"},{"line_number":95,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_64041916","line":94,"range":{"start_line":94,"start_character":34,"end_line":94,"end_character":51},"in_reply_to":"9fdfeff1_74037411","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"},{"line_number":98,"context_line":"        except Exception as e:"},{"line_number":99,"context_line":"            if not swallow_exception:"},{"line_number":100,"context_line":"                LOG.exception(\"Executing command \u0027%s\u0027 failed.\", cmd)"},{"line_number":101,"context_line":"                raise"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_d40a6024","line":98,"range":{"start_line":98,"start_character":15,"end_line":98,"end_character":24},"updated":"2019-02-25 23:13:32.000000000","message":"same as above","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        LOG.debug(\"Executing command: %s.\", \" \".join(cmd))"},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"},{"line_number":98,"context_line":"        except Exception as e:"},{"line_number":99,"context_line":"            if not swallow_exception:"},{"line_number":100,"context_line":"                LOG.exception(\"Executing command \u0027%s\u0027 failed.\", cmd)"},{"line_number":101,"context_line":"                raise"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_04050d10","line":98,"range":{"start_line":98,"start_character":15,"end_line":98,"end_character":24},"in_reply_to":"9fdfeff1_d40a6024","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"},{"line_number":98,"context_line":"        except Exception as e:"},{"line_number":99,"context_line":"            if not swallow_exception:"},{"line_number":100,"context_line":"                LOG.exception(\"Executing command \u0027%s\u0027 failed.\", cmd)"},{"line_number":101,"context_line":"                raise"},{"line_number":102,"context_line":"            else:"},{"line_number":103,"context_line":"                LOG.warning(\"Failed to run command %(cmd)s due to \""},{"line_number":104,"context_line":"                            \"%(reason)s.\", {\u0027cmd\u0027: cmd, \u0027reason\u0027: e})"},{"line_number":105,"context_line":"                return"},{"line_number":106,"context_line":"        LOG.debug(\"Execution result: %s.\", result)"},{"line_number":107,"context_line":"        return result"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_57ee7222","line":105,"range":{"start_line":99,"start_character":12,"end_line":105,"end_character":22},"updated":"2019-02-25 23:13:32.000000000","message":"use the exception handling from excutils to reraise the same exception, also one of the advantages of using oslo_utils\u0027 processutils is logging, it\u0027s being done already, so LOG.exception not necessary, on the other hand, LOG.warning may be:\n\n with excutils.save_and_reraise_exception(\n           reraise\u003dswallow_exception) as exc:\n       LOG.warning(\"the warning message\")","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            result \u003d self._execute(*cmd, run_as_root\u003dTrue)"},{"line_number":98,"context_line":"        except Exception as e:"},{"line_number":99,"context_line":"            if not swallow_exception:"},{"line_number":100,"context_line":"                LOG.exception(\"Executing command \u0027%s\u0027 failed.\", cmd)"},{"line_number":101,"context_line":"                raise"},{"line_number":102,"context_line":"            else:"},{"line_number":103,"context_line":"                LOG.warning(\"Failed to run command %(cmd)s due to \""},{"line_number":104,"context_line":"                            \"%(reason)s.\", {\u0027cmd\u0027: cmd, \u0027reason\u0027: e})"},{"line_number":105,"context_line":"                return"},{"line_number":106,"context_line":"        LOG.debug(\"Execution result: %s.\", result)"},{"line_number":107,"context_line":"        return result"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_e4c24985","line":105,"range":{"start_line":99,"start_character":12,"end_line":105,"end_character":22},"in_reply_to":"9fdfeff1_57ee7222","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"84a254b3bbc40935772a21f9dc4aeeab5729a10a","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        LOG.debug(\"Executing inside a container %s.\", name)"},{"line_number":90,"context_line":"        cmd \u003d [\"docker\", \"exec\", \"-i\", name] + cmd"},{"line_number":91,"context_line":"        result \u003d self._inner_execute(cmd, ignore_errors\u003dignore_errors)"},{"line_number":92,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":93,"context_line":"        return result"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def _inner_execute(self, cmd, ignore_errors\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_246b67b9","line":92,"range":{"start_line":92,"start_character":0,"end_line":92,"end_character":44},"updated":"2019-02-26 19:45:19.000000000","message":"This is duplicate logging.. since _inner_execute already logs the result or warns on failure..","commit_id":"445db46976b43884648856839acaf69836925847"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"9faf84fe686f0e758dad4b218018ab816ee9be73","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        LOG.debug(\"Executing inside a container %s.\", name)"},{"line_number":90,"context_line":"        cmd \u003d [\"docker\", \"exec\", \"-i\", name] + cmd"},{"line_number":91,"context_line":"        result \u003d self._inner_execute(cmd, ignore_errors\u003dignore_errors)"},{"line_number":92,"context_line":"        LOG.debug(\"Run result: %s.\", result)"},{"line_number":93,"context_line":"        return result"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def _inner_execute(self, cmd, ignore_errors\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_b10b9cd3","line":92,"range":{"start_line":92,"start_character":0,"end_line":92,"end_character":44},"in_reply_to":"9fdfeff1_246b67b9","updated":"2019-03-04 17:53:51.000000000","message":"Done","commit_id":"445db46976b43884648856839acaf69836925847"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"45cf7dbf41ce6c2540ec1710f606e035e5114ec2","unresolved":false,"context_lines":[{"line_number":125,"context_line":"                iface_data \u003d self._execute(\"ovs-vsctl\", \"list\", \"interface\","},{"line_number":126,"context_line":"                                           veth, run_as_root\u003dTrue)[0]"},{"line_number":127,"context_line":"            except (exception.ProcessExecutionError, OSError):"},{"line_number":128,"context_line":"                LOG.debug(\"Error listing interface %s, as it was probably \""},{"line_number":129,"context_line":"                          \"removed while we are iterating, moving on...\")"},{"line_number":130,"context_line":"                continue"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"            container_id \u003d re.findall(manila_re, iface_data)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9fdfeff1_7152146b","line":129,"range":{"start_line":128,"start_character":16,"end_line":129,"end_character":73},"updated":"2019-03-04 18:11:20.000000000","message":"Missing veth argument to log, also, can you log the error message too? this debug log makes sense if we\u0027re checking the error for a \"missing interface\", i.e, something that looks like:\n\n ovs-vsctl: no row \"xyzzy\" in table Interface\n\nelse, log the message and continue iterating","commit_id":"032ddf27db22780180903d1a0ffbb9540e4c6e3c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fa7488088853f021bbe34ad5def39d612fc386c7","unresolved":false,"context_lines":[{"line_number":125,"context_line":"                iface_data \u003d self._execute(\"ovs-vsctl\", \"list\", \"interface\","},{"line_number":126,"context_line":"                                           veth, run_as_root\u003dTrue)[0]"},{"line_number":127,"context_line":"            except (exception.ProcessExecutionError, OSError):"},{"line_number":128,"context_line":"                LOG.debug(\"Error listing interface %s, as it was probably \""},{"line_number":129,"context_line":"                          \"removed while we are iterating, moving on...\")"},{"line_number":130,"context_line":"                continue"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"            container_id \u003d re.findall(manila_re, iface_data)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9fdfeff1_149db6ba","line":129,"range":{"start_line":128,"start_character":16,"end_line":129,"end_character":73},"in_reply_to":"9fdfeff1_7152146b","updated":"2019-03-04 18:34:38.000000000","message":"Done","commit_id":"032ddf27db22780180903d1a0ffbb9540e4c6e3c"}],"manila/share/drivers/container/driver.py":[{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        server_id \u003d self._get_container_name(share_server[\"id\"])"},{"line_number":142,"context_line":"        self._get_helper(share).delete_share(server_id)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        self.container.execute("},{"line_number":145,"context_line":"            server_id,"},{"line_number":146,"context_line":"            [\"umount\", \"/shares/%s\" % share.share_id]"},{"line_number":147,"context_line":"        )"},{"line_number":148,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself here as well as in"},{"line_number":149,"context_line":"        # storage helper. There is a chance that we won\u0027t be able to remove"},{"line_number":150,"context_line":"        # this directory, despite the fact that it is not shared anymore and"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_8d8f2b74","side":"PARENT","line":147,"range":{"start_line":144,"start_character":8,"end_line":147,"end_character":9},"updated":"2019-02-21 20:41:06.000000000","message":"you see an error because unmount was done (and still is) done twice, first here","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        server_id \u003d self._get_container_name(share_server[\"id\"])"},{"line_number":142,"context_line":"        self._get_helper(share).delete_share(server_id)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        self.container.execute("},{"line_number":145,"context_line":"            server_id,"},{"line_number":146,"context_line":"            [\"umount\", \"/shares/%s\" % share.share_id]"},{"line_number":147,"context_line":"        )"},{"line_number":148,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself here as well as in"},{"line_number":149,"context_line":"        # storage helper. There is a chance that we won\u0027t be able to remove"},{"line_number":150,"context_line":"        # this directory, despite the fact that it is not shared anymore and"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_a8be9dab","side":"PARENT","line":147,"range":{"start_line":144,"start_character":8,"end_line":147,"end_character":9},"in_reply_to":"9fdfeff1_8d8f2b74","updated":"2019-02-21 22:26:22.000000000","message":"ok","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        LOG.debug(\"Updating access to share %(share)s at \""},{"line_number":172,"context_line":"                  \"share server %(share_server)s.\","},{"line_number":173,"context_line":"                  {\"share_server\": share_server[\"id\"],"},{"line_number":174,"context_line":"                   \"share\": self._get_share_name(share)})"},{"line_number":175,"context_line":"        self._get_helper(share).update_access(server_id, share_name,"},{"line_number":176,"context_line":"                                              access_rules, add_rules,"},{"line_number":177,"context_line":"                                              delete_rules)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_d4f6e08f","line":174,"range":{"start_line":174,"start_character":28,"end_line":174,"end_character":55},"updated":"2019-02-25 23:13:32.000000000","message":"share_name","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        LOG.debug(\"Updating access to share %(share)s at \""},{"line_number":172,"context_line":"                  \"share server %(share_server)s.\","},{"line_number":173,"context_line":"                  {\"share_server\": share_server[\"id\"],"},{"line_number":174,"context_line":"                   \"share\": self._get_share_name(share)})"},{"line_number":175,"context_line":"        self._get_helper(share).update_access(server_id, share_name,"},{"line_number":176,"context_line":"                                              access_rules, add_rules,"},{"line_number":177,"context_line":"                                              delete_rules)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_c44aa525","line":174,"range":{"start_line":174,"start_character":28,"end_line":174,"end_character":55},"in_reply_to":"9fdfeff1_d4f6e08f","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        try:"},{"line_number":302,"context_line":"            self._get_helper(share).delete_share(server_id, share_name)"},{"line_number":303,"context_line":"        except Exception as e:"},{"line_number":304,"context_line":"            if not swallow_exception:"},{"line_number":305,"context_line":"                LOG.exception(\"Failed to delete the export.\")"},{"line_number":306,"context_line":"                raise"},{"line_number":307,"context_line":"            else:"},{"line_number":308,"context_line":"                LOG.warning(\"Failed to delete the export due to %s.\", e)"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        self.container.execute("},{"line_number":311,"context_line":"            server_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_f7e206d4","line":308,"range":{"start_line":303,"start_character":0,"end_line":308,"end_character":72},"updated":"2019-02-25 23:13:32.000000000","message":"Instead, shouldn\u0027t you pass the \"swallow_exception\" kwarg to the delete_share call?","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        try:"},{"line_number":302,"context_line":"            self._get_helper(share).delete_share(server_id, share_name)"},{"line_number":303,"context_line":"        except Exception as e:"},{"line_number":304,"context_line":"            if not swallow_exception:"},{"line_number":305,"context_line":"                LOG.exception(\"Failed to delete the export.\")"},{"line_number":306,"context_line":"                raise"},{"line_number":307,"context_line":"            else:"},{"line_number":308,"context_line":"                LOG.warning(\"Failed to delete the export due to %s.\", e)"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        self.container.execute("},{"line_number":311,"context_line":"            server_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_84449db9","line":308,"range":{"start_line":303,"start_character":0,"end_line":308,"end_character":72},"in_reply_to":"9fdfeff1_f7e206d4","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            else:"},{"line_number":308,"context_line":"                LOG.warning(\"Failed to delete the export due to %s.\", e)"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        self.container.execute("},{"line_number":311,"context_line":"            server_id,"},{"line_number":312,"context_line":"            [\"umount\", \"/shares/%s\" % share_name],"},{"line_number":313,"context_line":"            swallow_exception"},{"line_number":314,"context_line":"        )"},{"line_number":315,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself here as well as in"},{"line_number":316,"context_line":"        # storage helper. There is a chance that we won\u0027t be able to remove"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_cdda1378","line":313,"range":{"start_line":310,"start_character":1,"end_line":313,"end_character":29},"updated":"2019-02-21 20:41:06.000000000","message":"1st time it is unmounted in the refactored code","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            else:"},{"line_number":308,"context_line":"                LOG.warning(\"Failed to delete the export due to %s.\", e)"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        self.container.execute("},{"line_number":311,"context_line":"            server_id,"},{"line_number":312,"context_line":"            [\"umount\", \"/shares/%s\" % share_name],"},{"line_number":313,"context_line":"            swallow_exception"},{"line_number":314,"context_line":"        )"},{"line_number":315,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself here as well as in"},{"line_number":316,"context_line":"        # storage helper. There is a chance that we won\u0027t be able to remove"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_28e86db1","line":313,"range":{"start_line":310,"start_character":1,"end_line":313,"end_character":29},"in_reply_to":"9fdfeff1_cdda1378","updated":"2019-02-21 22:26:22.000000000","message":"ok","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"84a254b3bbc40935772a21f9dc4aeeab5729a10a","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                                            ignore_errors\u003dTrue)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        self.storage.remove_storage(share_name)"},{"line_number":142,"context_line":"        LOG.debug(\"Deletion of share %s is completed!\", share_name)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def _get_share_name(self, share):"},{"line_number":145,"context_line":"        if share.get(\u0027export_location\u0027):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_049f4350","line":142,"range":{"start_line":142,"start_character":19,"end_line":142,"end_character":53},"updated":"2019-02-26 19:45:19.000000000","message":"\"Deleted share %s successfully\" perhaps?","commit_id":"445db46976b43884648856839acaf69836925847"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"9faf84fe686f0e758dad4b218018ab816ee9be73","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                                            ignore_errors\u003dTrue)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        self.storage.remove_storage(share_name)"},{"line_number":142,"context_line":"        LOG.debug(\"Deletion of share %s is completed!\", share_name)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def _get_share_name(self, share):"},{"line_number":145,"context_line":"        if share.get(\u0027export_location\u0027):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_d110a003","line":142,"range":{"start_line":142,"start_character":19,"end_line":142,"end_character":53},"in_reply_to":"9fdfeff1_049f4350","updated":"2019-03-04 17:53:51.000000000","message":"Done","commit_id":"445db46976b43884648856839acaf69836925847"}],"manila/share/drivers/container/protocol_helper.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                [\"net\", \"conf\", \"setparm\", share_name, param, value]"},{"line_number":50,"context_line":"            )"},{"line_number":51,"context_line":"        # TODO(tbarron): pass configured address family when we support IPv6"},{"line_number":52,"context_line":"        address \u003d self.container.fetch_container_address(server_id, \u0027inet\u0027)"},{"line_number":53,"context_line":"        return r\"//%(addr)s/%(name)s\" % {\"addr\": address, \"name\": share_name}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def delete_share(self, server_id, share_name, swallow_exception\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_d77a6222","line":52,"range":{"start_line":52,"start_character":69,"end_line":52,"end_character":73},"updated":"2019-02-25 23:13:32.000000000","message":"pass kwargs as kwargs","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                [\"net\", \"conf\", \"setparm\", share_name, param, value]"},{"line_number":50,"context_line":"            )"},{"line_number":51,"context_line":"        # TODO(tbarron): pass configured address family when we support IPv6"},{"line_number":52,"context_line":"        address \u003d self.container.fetch_container_address(server_id, \u0027inet\u0027)"},{"line_number":53,"context_line":"        return r\"//%(addr)s/%(name)s\" % {\"addr\": address, \"name\": share_name}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def delete_share(self, server_id, share_name, swallow_exception\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_e424890f","line":52,"range":{"start_line":52,"start_character":69,"end_line":52,"end_character":73},"in_reply_to":"9fdfeff1_d77a6222","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        self.container.execute("},{"line_number":57,"context_line":"            server_id,"},{"line_number":58,"context_line":"            [\"net\", \"conf\", \"delshare\", share_name],"},{"line_number":59,"context_line":"            swallow_exception"},{"line_number":60,"context_line":"        )"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _get_access_group(self, access_level):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_17854a07","line":59,"range":{"start_line":59,"start_character":12,"end_line":59,"end_character":29},"updated":"2019-02-25 23:13:32.000000000","message":"pass kwargs as kwargs","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        self.container.execute("},{"line_number":57,"context_line":"            server_id,"},{"line_number":58,"context_line":"            [\"net\", \"conf\", \"delshare\", share_name],"},{"line_number":59,"context_line":"            swallow_exception"},{"line_number":60,"context_line":"        )"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _get_access_group(self, access_level):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_4479d5f9","line":59,"range":{"start_line":59,"start_character":12,"end_line":59,"end_character":29},"in_reply_to":"9fdfeff1_17854a07","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"abd19c1cf5995473575912d38b26d9b85e67e073","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    def _get_existing_users(self, server_id, share_name, access):"},{"line_number":72,"context_line":"        result \u003d self.container.execute("},{"line_number":73,"context_line":"            server_id,"},{"line_number":74,"context_line":"            [\"net\", \"conf\", \"getparm\", share_name, access],"},{"line_number":75,"context_line":"            swallow_exception\u003dTrue"},{"line_number":76,"context_line":"        )[0].rstrip(\u0027\\n\u0027)"},{"line_number":77,"context_line":"        return result"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_8601576d","line":75,"range":{"start_line":74,"start_character":11,"end_line":75,"end_character":34},"updated":"2019-02-21 13:49:46.000000000","message":"This exception wouldn\u0027t have been swallowed before, right?\n\nWhy are we doing it now?","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    def _get_existing_users(self, server_id, share_name, access):"},{"line_number":72,"context_line":"        result \u003d self.container.execute("},{"line_number":73,"context_line":"            server_id,"},{"line_number":74,"context_line":"            [\"net\", \"conf\", \"getparm\", share_name, access],"},{"line_number":75,"context_line":"            swallow_exception\u003dTrue"},{"line_number":76,"context_line":"        )[0].rstrip(\u0027\\n\u0027)"},{"line_number":77,"context_line":"        return result"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_9797fa45","line":75,"range":{"start_line":74,"start_character":11,"end_line":75,"end_character":34},"in_reply_to":"9fdfeff1_0d201b9b","updated":"2019-02-25 23:13:32.000000000","message":"So if an exception is raised by execute, you wouldn\u0027t receive a list object as a result, you\u0027re returning None in the exception handler.... Which will fail the indexing and string method usage on line 76 below.","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    def _get_existing_users(self, server_id, share_name, access):"},{"line_number":72,"context_line":"        result \u003d self.container.execute("},{"line_number":73,"context_line":"            server_id,"},{"line_number":74,"context_line":"            [\"net\", \"conf\", \"getparm\", share_name, access],"},{"line_number":75,"context_line":"            swallow_exception\u003dTrue"},{"line_number":76,"context_line":"        )[0].rstrip(\u0027\\n\u0027)"},{"line_number":77,"context_line":"        return result"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_0d201b9b","line":75,"range":{"start_line":74,"start_character":11,"end_line":75,"end_character":34},"in_reply_to":"9fdfeff1_8601576d","updated":"2019-02-21 20:41:06.000000000","message":"All exceptions were being swallowed before, I\u0027ll post a comment where it was being swallowed","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    def _get_existing_users(self, server_id, share_name, access):"},{"line_number":72,"context_line":"        result \u003d self.container.execute("},{"line_number":73,"context_line":"            server_id,"},{"line_number":74,"context_line":"            [\"net\", \"conf\", \"getparm\", share_name, access],"},{"line_number":75,"context_line":"            swallow_exception\u003dTrue"},{"line_number":76,"context_line":"        )[0].rstrip(\u0027\\n\u0027)"},{"line_number":77,"context_line":"        return result"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_3fd3783a","line":75,"range":{"start_line":74,"start_character":11,"end_line":75,"end_character":34},"in_reply_to":"9fdfeff1_9797fa45","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"}],"manila/share/drivers/container/storage_helper.py":[{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def remove_storage(self, share):"},{"line_number":94,"context_line":"        to_remove \u003d self._get_lv_device(share)"},{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            self._execute(\"umount\", to_remove, run_as_root\u003dTrue)"},{"line_number":97,"context_line":"        except exception.ProcessExecutionError as e:"},{"line_number":98,"context_line":"            LOG.warning(\"Failed to umount helper directory %s.\","},{"line_number":99,"context_line":"                        to_remove)"},{"line_number":100,"context_line":"            LOG.error(e)"},{"line_number":101,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself in jamming logical"},{"line_number":102,"context_line":"        # volumes, so try removing once and issue warning until it is fixed."}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_addf8f64","side":"PARENT","line":99,"range":{"start_line":95,"start_character":8,"end_line":99,"end_character":34},"updated":"2019-02-21 20:41:06.000000000","message":"then here, 2nd time it is being unmounted in the old code","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def remove_storage(self, share):"},{"line_number":94,"context_line":"        to_remove \u003d self._get_lv_device(share)"},{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            self._execute(\"umount\", to_remove, run_as_root\u003dTrue)"},{"line_number":97,"context_line":"        except exception.ProcessExecutionError as e:"},{"line_number":98,"context_line":"            LOG.warning(\"Failed to umount helper directory %s.\","},{"line_number":99,"context_line":"                        to_remove)"},{"line_number":100,"context_line":"            LOG.error(e)"},{"line_number":101,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself in jamming logical"},{"line_number":102,"context_line":"        # volumes, so try removing once and issue warning until it is fixed."}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_884639c0","side":"PARENT","line":99,"range":{"start_line":95,"start_character":8,"end_line":99,"end_character":34},"in_reply_to":"9fdfeff1_addf8f64","updated":"2019-02-21 22:26:22.000000000","message":"ok","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        except exception.ProcessExecutionError as e:"},{"line_number":98,"context_line":"            LOG.warning(\"Failed to umount helper directory %s.\","},{"line_number":99,"context_line":"                        to_remove)"},{"line_number":100,"context_line":"            LOG.error(e)"},{"line_number":101,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself in jamming logical"},{"line_number":102,"context_line":"        # volumes, so try removing once and issue warning until it is fixed."},{"line_number":103,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_0dca5ba0","side":"PARENT","line":100,"range":{"start_line":100,"start_character":12,"end_line":100,"end_character":24},"updated":"2019-02-21 20:41:06.000000000","message":"LOG.error as it was before","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        except exception.ProcessExecutionError as e:"},{"line_number":98,"context_line":"            LOG.warning(\"Failed to umount helper directory %s.\","},{"line_number":99,"context_line":"                        to_remove)"},{"line_number":100,"context_line":"            LOG.error(e)"},{"line_number":101,"context_line":"        # (aovchinnikov): bug 1621784 manifests itself in jamming logical"},{"line_number":102,"context_line":"        # volumes, so try removing once and issue warning until it is fixed."},{"line_number":103,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_a841bda8","side":"PARENT","line":100,"range":{"start_line":100,"start_character":12,"end_line":100,"end_character":24},"in_reply_to":"9fdfeff1_0dca5ba0","updated":"2019-02-21 22:26:22.000000000","message":"ok","commit_id":"79504a3d7a2729a2fda8ed27b57c290cb4caea2d"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36547bd8d1cbc6662132ca92d71f1ef1fa27a9d1","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    # NOTE(ganso): We invoke this method to be sure volume was unmounted, and"},{"line_number":93,"context_line":"    # we swallow the exception in case it fails to."},{"line_number":94,"context_line":"    def _try_to_unmount_device(self, device):"},{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            self._execute(\"umount\", device, run_as_root\u003dTrue)"},{"line_number":97,"context_line":"        except exception.ProcessExecutionError as e:"},{"line_number":98,"context_line":"            LOG.warning(\"Failed to umount helper directory %(device)s due to \""},{"line_number":99,"context_line":"                        \"%(reason)s.\", {\u0027device\u0027: device, \u0027reason\u0027: e})"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def remove_storage(self, share_name):"},{"line_number":102,"context_line":"        device \u003d self._get_lv_device(share_name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_2dcddfb6","line":99,"range":{"start_line":95,"start_character":9,"end_line":99,"end_character":71},"updated":"2019-02-21 20:41:06.000000000","message":"2nd time it is being unmounted in the refactored code. I changed it to log.warning","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"26477a70104dc54710acef8b9d1bb93e7ee47471","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    # NOTE(ganso): We invoke this method to be sure volume was unmounted, and"},{"line_number":93,"context_line":"    # we swallow the exception in case it fails to."},{"line_number":94,"context_line":"    def _try_to_unmount_device(self, device):"},{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            self._execute(\"umount\", device, run_as_root\u003dTrue)"},{"line_number":97,"context_line":"        except exception.ProcessExecutionError as e:"},{"line_number":98,"context_line":"            LOG.warning(\"Failed to umount helper directory %(device)s due to \""},{"line_number":99,"context_line":"                        \"%(reason)s.\", {\u0027device\u0027: device, \u0027reason\u0027: e})"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def remove_storage(self, share_name):"},{"line_number":102,"context_line":"        device \u003d self._get_lv_device(share_name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_481291b6","line":99,"range":{"start_line":95,"start_character":9,"end_line":99,"end_character":71},"in_reply_to":"9fdfeff1_2dcddfb6","updated":"2019-02-21 22:26:22.000000000","message":"ok","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"84a254b3bbc40935772a21f9dc4aeeab5729a10a","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        self._execute(\"mkfs.ext4\", self._get_lv_device(share_name),"},{"line_number":90,"context_line":"                      run_as_root\u003dTrue)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    # NOTE(ganso): We invoke this method to be sure volume was unmounted, and"},{"line_number":93,"context_line":"    # we swallow the exception in case it fails to."},{"line_number":94,"context_line":"    def _try_to_unmount_device(self, device):"},{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            self._execute(\"umount\", device, run_as_root\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_f0a3da41","line":93,"range":{"start_line":92,"start_character":0,"end_line":93,"end_character":51},"updated":"2019-02-26 19:45:19.000000000","message":"put this inside the method..","commit_id":"445db46976b43884648856839acaf69836925847"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"9faf84fe686f0e758dad4b218018ab816ee9be73","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        self._execute(\"mkfs.ext4\", self._get_lv_device(share_name),"},{"line_number":90,"context_line":"                      run_as_root\u003dTrue)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    # NOTE(ganso): We invoke this method to be sure volume was unmounted, and"},{"line_number":93,"context_line":"    # we swallow the exception in case it fails to."},{"line_number":94,"context_line":"    def _try_to_unmount_device(self, device):"},{"line_number":95,"context_line":"        try:"},{"line_number":96,"context_line":"            self._execute(\"umount\", device, run_as_root\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9fdfeff1_91f218e3","line":93,"range":{"start_line":92,"start_character":0,"end_line":93,"end_character":51},"in_reply_to":"9fdfeff1_f0a3da41","updated":"2019-03-04 17:53:51.000000000","message":"Done","commit_id":"445db46976b43884648856839acaf69836925847"}],"manila/tests/share/drivers/container/test_container_helper.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def test_start_container_impossible_failure(self):"},{"line_number":52,"context_line":"        self.mock_object(self.DockerExecHelper, \"_inner_execute\","},{"line_number":53,"context_line":"                         mock.Mock(side_effect\u003dException()))"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self.assertRaises(exception.ShareBackendException,"},{"line_number":56,"context_line":"                          self.DockerExecHelper.start_container)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_97b85a11","line":53,"range":{"start_line":53,"start_character":47,"end_line":53,"end_character":56},"updated":"2019-02-25 23:13:32.000000000","message":"exceptions.ProcessExecutionError","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"446f084f769c0de82be7baf40d357c4e1fcb1412","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        fake_name \u003d \"fakeserver\""},{"line_number":134,"context_line":"        mock_execute \u003d self.DockerExecHelper.execute \u003d mock.Mock("},{"line_number":135,"context_line":"            return_value\u003dreturn_value)"},{"line_number":136,"context_line":"        address \u003d self.DockerExecHelper.fetch_container_address("},{"line_number":137,"context_line":"            fake_name,"},{"line_number":138,"context_line":"            address_family)"},{"line_number":139,"context_line":"        self.assertEqual(expected_address, address)"},{"line_number":140,"context_line":"        mock_execute.assert_called_once_with("},{"line_number":141,"context_line":"            fake_name, [\"ip\", \"-oneline\", \"-family\", address_family, \"address\","}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_37608ea5","line":138,"range":{"start_line":136,"start_character":0,"end_line":138,"end_character":27},"updated":"2019-02-25 23:13:32.000000000","message":"nit: all other unit tests in this file have one blank line before and after the function call, please follow that convention..","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"921a265e9d1faf401cdb44cf30cd67f67ee0d8e4","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        fake_name \u003d \"fakeserver\""},{"line_number":134,"context_line":"        mock_execute \u003d self.DockerExecHelper.execute \u003d mock.Mock("},{"line_number":135,"context_line":"            return_value\u003dreturn_value)"},{"line_number":136,"context_line":"        address \u003d self.DockerExecHelper.fetch_container_address("},{"line_number":137,"context_line":"            fake_name,"},{"line_number":138,"context_line":"            address_family)"},{"line_number":139,"context_line":"        self.assertEqual(expected_address, address)"},{"line_number":140,"context_line":"        mock_execute.assert_called_once_with("},{"line_number":141,"context_line":"            fake_name, [\"ip\", \"-oneline\", \"-family\", address_family, \"address\","}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_7fc5805b","line":138,"range":{"start_line":136,"start_character":0,"end_line":138,"end_character":27},"in_reply_to":"9fdfeff1_37608ea5","updated":"2019-02-26 13:01:48.000000000","message":"Done","commit_id":"7ee79df733d3c35428a48d053afd9f92161b0a33"}]}
