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

sync: Report a specific cluster operator error when not available #110

Merged
merged 1 commit into from
Feb 6, 2019

Conversation

smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented Feb 4, 2019

Cluster operators block most of upgrade, so we should report the information the cluster operator has available back to the CV status object via an UpdateError.

Reduce the amount of debug info printed by cluster operator status waiting to simplify the logs.

While reviewing CV logs from startup, we run the resync loop more frequently waiting for the CO to be created because we exit the poll loop on any error. When we see "CO not found", continue the loop to avoid triggering the top level sync worker backoff loop. Shaves a few tens of seconds of startup time.

Finally, remove the apiVersion info from the status log message, it didn't make much sense and the end user is going to have to look at the payload anyway if we get into a wierd error case where it matters (the apiVersion was put in in case we had to debug a typo in a version, which really shouldn't happen).

@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 4, 2019
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 4, 2019
@smarterclayton
Copy link
Contributor Author

/assign @abhinavdahiya

@smarterclayton
Copy link
Contributor Author

Flake is #111

@smarterclayton
Copy link
Contributor Author

Comments addressed

@smarterclayton
Copy link
Contributor Author

/retest

@abhinavdahiya
Copy link
Contributor

/lgtm

@smarterclayton
Copy link
Contributor Author

/test all

@smarterclayton
Copy link
Contributor Author

/refresh

@smarterclayton
Copy link
Contributor Author

/test e2e-aws

Cluster operators block most of upgrade, so we should report the
information the cluster operator has available back to the CV status
object via an UpdateError.

Reduce the amount of debug info printed by cluster operator status
waiting to simplify the logs.

While reviewing CV logs from startup, we run the resync loop more
frequently waiting for the CO to be created because we exit the
poll loop on any error. When we see "CO not found", continue the
loop to avoid going back and syncing on top.

Finally, remove the apiVersion info from the status log message,
it didn't make much sense and the end user is going to have to look
at the payload anyway if we get into a wierd error case where it
matters (the apiVersion was put in in case we had to debug a typo
in a version, which really shouldn't happen).
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, smarterclayton

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 [abhinavdahiya,smarterclayton]

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

@smarterclayton
Copy link
Contributor Author

/test all

@smarterclayton
Copy link
Contributor Author

/test images

1 similar comment
@smarterclayton
Copy link
Contributor Author

/test images

@smarterclayton
Copy link
Contributor Author

/refresh

@smarterclayton
Copy link
Contributor Author

/test all

@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label Feb 6, 2019
@smarterclayton
Copy link
Contributor Author

Trivial rebase, reapplying label

@openshift-merge-robot
Copy link
Contributor

/retest

@openshift-merge-robot openshift-merge-robot merged commit 9335e43 into openshift:master Feb 6, 2019
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants