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

daemon/update: Log each error before retrying #412

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Feb 12, 2019

That way, we get more feedback when retrying since it can take a while.
And we also catch the instance when e.g. different errors might have
happened each time.

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 12, 2019
@cgwalters
Copy link
Member

/lgtm

But...I think the real fix here is something like #410 where all of the fiddly details of "retry in a loop" are codified and consistent.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2019
@runcom
Copy link
Member

runcom commented Feb 12, 2019

could you also fix the formatting some lines below:

			return errors.Wrapf(lastErr, "Failed to drain node (%s tries)", backoff.Steps)

it should be %d as backoff.Steps is an int, not a string

@ashcrow
Copy link
Member

ashcrow commented Feb 12, 2019

/hold

Per @runcom's comment.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 12, 2019
Copy link
Member

@ashcrow ashcrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as is, but there was a request for update.

@runcom
Copy link
Member

runcom commented Feb 12, 2019

Looks good as is, but there was a request for update.

a really nit(y) one lol sorry for that

That way, we get more feedback when retrying since it can take a while.
And we also catch the instance when e.g. different errors might have
happened each time.
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2019
@jlebon
Copy link
Member Author

jlebon commented Feb 12, 2019

it should be %d as backoff.Steps is an int, not a string

Fixed!

@runcom
Copy link
Member

runcom commented Feb 12, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2019
@ashcrow
Copy link
Member

ashcrow commented Feb 12, 2019

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 12, 2019
@ashcrow
Copy link
Member

ashcrow commented Feb 12, 2019

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashcrow, cgwalters, jlebon, runcom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ashcrow,cgwalters,jlebon,runcom]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2019
@runcom
Copy link
Member

runcom commented Feb 12, 2019

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 691bf5f into openshift:master Feb 12, 2019
@jlebon jlebon deleted the pr/add-drain-logging branch May 1, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants