-
Notifications
You must be signed in to change notification settings - Fork 247
OCPBUGS-39241: Rate-limit RequiredInstallerResourcesMissing events in InstallerController to prevent SNO upgrade test failures #2040
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
base: release-4.18
Are you sure you want to change the base?
Conversation
…uring SNO upgrades Signed-off-by: Shaza Aldawamneh <shaza.aldawamneh@hotmail.com>
|
@ShazaAldawamneh: This pull request references Jira Issue OCPBUGS-39241, 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. |
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ShazaAldawamneh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@ShazaAldawamneh: all tests passed! 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. |
everettraven
left a comment
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.
Is the event creation frequency the problem here, or is it a symptom of another issue?
The bug says we see this on upgrades from 4.17 -> 4.18. Are we seeing this on any other releases/upgrades?
I'm skeptical of rate limiting event creation as the right solution here.
|
Better to have one PR to prove this. |
Rate-limit RequiredInstallerResourcesMissing events in InstallerController
During SNO upgrades, the installer would emit a flood of
RequiredInstallerResourcesMissing events for transient missing secrets
and configmaps, causing the [bz-etcd] pathological test to fail.
This patch adds a 30-second rate-limit per unique set of missing resources:
Events for the same missing set are only emitted once per 30 seconds.
Aggregated errors are still returned to trigger retries.
Uses InstallerController.now() for testable timestamps.
lastMissingEvent map tracks last emission times per missing resource set.
This prevents event spam while preserving retry logic and ensures
transient missing resources are still detected correctly.