Skip to content

Wrap wait.* calls to expose the real error on failure #410

Closed

Description

@runcom

Taken from #408 (comment)

There are other spots where we're not correctly reporting the error (i.e. https://github.com/openshift/machine-config-operator/blob/master/pkg/daemon/node.go#L55-L65)

On error, we should save the lastErr encountered + check for wait.ErrWaitTimeout in the if err != nil and report lastErr.

Activity

  1. jlebon commented on Feb 12, 2019

    @jlebon
    Member

    in the if err != nil and report lastErr

    Ahh yep, that makes sense to me. (With the caveat that it might actually have been a different error on each retry, but even then, just percolating the last error seems like the right behaviour.)

  2. openshift-bot commented on Sep 2, 2020

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  3. added
    lifecycle/stale
    on Sep 2, 2020
  4. openshift-bot commented on Oct 2, 2020

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  5. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Oct 2, 2020
  6. openshift-bot commented on Nov 1, 2020

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

  7. openshift-ci-robot commented on Nov 1, 2020

    @openshift-ci-robot
    Contributor

    @openshift-bot: Closing this issue.

    Details

    In response to this:

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rotten

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions