'Run storage CLI and return the result or raise an exception.'

def run_and_verify_storage_cli(self, *cmd, **kwargs):

    do_raise = kwargs.pop('do_raise', True)
    ignore_error = kwargs.get('ignore_error')
    success_code = kwargs.get('success_code', set([0]))
    (ret, stdout, stderr) = self.run_storage_cli(*cmd, **kwargs)
    if ((ret not in success_code) and (not utils.check_ignore_error(ignore_error, stderr))):
        msg = utils.output_log(MSG.STORAGE_COMMAND_FAILED, cmd=utils.mask_password(cmd), ret=ret, out='    '.join(stdout.splitlines()), err='    '.join(stderr.splitlines()))
        if do_raise:
            raise exception.VSPError(msg)
    return (ret, stdout, stderr)
