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

Bug 1740824: Fix degraded status on upgrade #241

Merged

Conversation

awgreene
Copy link
Member

@awgreene awgreene commented Aug 13, 2019

Bug 1740824: Fix Degraded status on upgrade

Problem: There are three bugs that should be addressed within this bugzilla:

During an upgrade, multiple marketplace operators are running and updating the ClusterOperatorStatus at the same time, making it difficult to identify the actual state of the marketplace operator.
The marketplace operator is reporting degraded while it is upgrading. The marketplace operator reports degraded when the number of failed syncs surpasses some threshold of total syncs. The marketplace operator currently reports a failed sync whenever an error is encountered while reconciling an operand (OperatorSources or CatalogSourceConfigs). This allows network issues or invalid operands to drive the marketplace operator to a degraded state.
It is difficult to identify why a ClusterOperatorStatus condition is in a given state via telemetry. Marketplace currently does not set a reason when setting conditions and telemetry only includes the state and reason.
Solution: Three changes need to be made to address the bugzilla:

Implement leader election using the functions provided by the Operator-SDK to prevent multiple marketplace operators from updating the ClusterOperatorStatus at the same time.
Rather than reporting a failed sync whenever an error is encountered while reconciling an operand, report a failed sync when the marketplace operator is unable to get or update an existing operand.
Update marketplace to include a reason when setting a condition that indicates why the condition is being set.

@openshift-ci-robot
Copy link
Contributor

@awgreene: This pull request references an invalid Bugzilla bug:

  • expected the bug to target the "4.1.z" release, but it targets "4.2.0" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1740824: Fix degraded status on upgrade

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 13, 2019
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 13, 2019
@awgreene
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 13, 2019
@openshift-ci-robot
Copy link
Contributor

@awgreene: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/bugzilla refresh

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.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 13, 2019
Problem: During an upgrade, multiple marketplace operators are running
and updating the ClusterOperatorStatus at the same time, making it
difficult to identify the actual state of the marketplace operator.

Solution: Implement leader election using the functions provided by the
Operator-SDK to prevent multiple marketplace operators from updating
the ClusterOperatorStatus at the same time.
Update an invalid comment that suggest that the ClusterOperatorStatus
Degraded condition is being set to true when the operator exits.
Problem: The marketplace operator is reporting degraded while it is
upgrading. The marketplace operator reports degraded when the number
of failed syncs surpasses some threshold of total syncs. The marketplace
operator currently reports a failed sync whenever an error is
encountered while reconciling an operand (OperatorSources or
CatalogSourceConfigs). This allows network issues or invalid operands
to drive the marketplace operator to a degraded state.

Solution: Rather than reporting a failed sync whenever an error is
encountered while reconciling an operand, report a failed sync
when the marketplace operator is unable to get or update an existing
operand.
Problem: It is difficult to identify why a ClusterOperatorStatus
condition is in a given state via telemetry. Marketplace currently does
not set a reason when setting conditions and telemetry only includes
the state and reason.

Solution: Update marketplace to set the Reason field when setting a
condition.
@openshift-ci-robot
Copy link
Contributor

@awgreene: This pull request references a valid Bugzilla bug.

In response to this:

Bug 1740824: Fix degraded status on upgrade

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.

@ecordell
Copy link
Member

/approve

1 similar comment
@aravindhp
Copy link
Member

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aravindhp, awgreene, ecordell

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:

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 Aug 14, 2019
@ecordell
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 14, 2019
@awgreene
Copy link
Member Author

PTAL @shawn-hurley

@shawn-hurley
Copy link
Member

/lgtm

@eparis eparis added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Aug 20, 2019
@awgreene
Copy link
Member Author

/test e2e-aws-operator

@awgreene
Copy link
Member Author

/test e2e-aws

@awgreene
Copy link
Member Author

/retest

1 similar comment
@awgreene
Copy link
Member Author

/retest

@awgreene
Copy link
Member Author

/retest

1 similar comment
@awgreene
Copy link
Member Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit 6881ba3 into operator-framework:release-4.1 Aug 20, 2019
@openshift-ci-robot
Copy link
Contributor

@awgreene: All pull requests linked via external trackers have merged. Bugzilla bug 1740824 has been moved to the MODIFIED state.

In response to this:

Bug 1740824: Fix degraded status on upgrade

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
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants