-
Notifications
You must be signed in to change notification settings - Fork 150
OCPBUGS-65880: Reset StorageVersionMigrationDegraded condition #1071
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: main
Are you sure you want to change the base?
Conversation
|
@jhadvig: This pull request references Jira Issue OCPBUGS-65880, 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. |
|
/jira refresh |
|
@jhadvig: This pull request references Jira Issue OCPBUGS-65880, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
Review |
Leo6Leo
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.
The problem is the controller never calls HandleDegraded() to clear the condition, and it only calls to set the condition, therefore causing it to stuck in degraded forever. jakub's pr handles it pretty well by extracting the logic and centralizing condition management
// setting reason and err to empty string will clear the degraded status
statusHandler.AddCondition(status.HandleDegraded("StorageVersionMigration", reason, err))
and the changes looks good to me, ping QE for verification
/assign @yapei
/lgtm
Test seems like a flaky cypress test, retesting:
/retest-required
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, Leo6Leo 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 |
|
/retest |
|
@jhadvig: 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. |
|
Per bug, we havent been reseting the StorageVersionMigrationDegraded condition when the degradation cause got fixed.
Due to that Ive created a
syncStorageVersionMigrationmethod to perform all the SVM related actions and return appropriate reason and error which will be used to set/unset the condition and flush./assign @TheRealJon