Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: isRetryableAPIError() should match any etcdserver timeout #2312

Merged
merged 1 commit into from
Jul 23, 2021

Commits on Jul 23, 2021

  1. e2e: isRetryableAPIError() should match any etcdserver timeout

    framework.RunKubectl() returns an error that does not end with
    "etcdserver: request timed out", but contains the text somewhere in the
    middle:
    
        error running /usr/bin/kubectl --server=https://192.168.39.57:8443 --kubeconfig=/root/.kube/config --namespace=cephcsi-e2e-a44ec4b4 create -f -:
        Command stdout:
    
        stderr:
        Error from server: error when creating "STDIN": etcdserver: request timed out
    
        error:
        exit status 1
    
    isRetryableAPIError() should  return `true` for this case as well, so
    instead of using HasSuffix(), we'll use Contains().
    
    Signed-off-by: Niels de Vos <ndevos@redhat.com>
    nixpanic authored and mergify-bot committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    deea1bf View commit details
    Browse the repository at this point in the history