-
Notifications
You must be signed in to change notification settings - Fork 412
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
OCPBUGS-27477: Pausing Master MCP results in Alerts #4707
OCPBUGS-27477: Pausing Master MCP results in Alerts #4707
Conversation
@isabella-janssen: This pull request references Jira Issue OCPBUGS-27477, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
pkg/operator/sync.go
Outdated
@@ -1731,6 +1731,9 @@ func (optr *Operator) syncRequiredMachineConfigPools(config *renderConfig, co *c | |||
} | |||
// If we don't account for pause here, we will spin in this loop until we hit the 10 minute timeout because paused pools can't sync. | |||
if pool.Spec.Paused { | |||
if isPoolStatusConditionTrue(pool, mcfgv1.MachineConfigPoolUpdated) { | |||
return false, fmt.Errorf("the required MachineConfigPool %s was paused with no pending updates; no futher syncing will occur until it is unpaused", pool.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to reviewer:
- The initial bug requested that no error was thrown on the pausing of an MCP.
- My perspective is users should still be informed they are pausing a pool that is required, so I opted to change the warning message to reassure users they have no outstanding updates while keeping the messaging of the paused pool being required.
- I would love to discuss other perspectives.
/jira refresh |
@isabella-janssen: This pull request references Jira Issue OCPBUGS-27477, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/retest-required |
8c71c0b
to
46fb474
Compare
Verified using IPI on OSP
/label qe-approved |
@isabella-janssen: This pull request references Jira Issue OCPBUGS-27477, which is invalid:
Comment In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/lgtm /jira refresh |
@djoshy: This pull request references Jira Issue OCPBUGS-27477, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: djoshy, isabella-janssen 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 |
/hold |
Makes sense to me 👍 , are we tracking potentially further improvements to this via jira somewhere? I think an eventual end goal is to be more clear what states are errors, vs what states are "we should let the user know, but it's not failing at this time" |
Thanks @yuqi-zhang! I have made tech debt story MCO-1462 to track the future state goal. Please feel free to edit/move it as you see fit. |
/unhold /retest |
/hold |
/unhold |
@isabella-janssen: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
6778953
into
openshift:master
@isabella-janssen: Jira Issue OCPBUGS-27477: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-27477 has been moved to the MODIFIED state. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
[ART PR BUILD NOTIFIER] Distgit: ose-machine-config-operator |
/cherry-pick release-4.18,release-4.17,release-4.16 |
@isabella-janssen: cannot checkout In response to this:
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-sigs/prow repository. |
/cherry-pick release-4.18 release-4.17 release-4.16 |
@isabella-janssen: new pull request created: #4748 In response to this:
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-sigs/prow repository. |
- What I did
Update the event message on pause of required pool where no updates are outstanding.
- How to verify it
Pause a required machine config pool:
$ oc patch mcp/master --patch '{"spec": {"paused":true}}' --type=merge
Watch the
machine-config-operator
pod logs:- Description for the changelog
OCPBUGS-27477: Update warning message on pause of required MCP.