-
Notifications
You must be signed in to change notification settings - Fork 551
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 1841175: Recreate pending installplan if deleted before approval #1843
Bug 1841175: Recreate pending installplan if deleted before approval #1843
Conversation
@dinhxuanvu: This pull request references Bugzilla bug 1841175, which is valid. 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. 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 kubernetes/test-infra repository. |
/retest |
267aa10
to
bdcc6ac
Compare
bdcc6ac
to
25abfc7
Compare
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.
Did you consider handling this by verifying the install plan reference as part of reconciling subscriptions, then making ensureSubscriptionInstallPlanState
bail if a subscription has a missing reference? I think this fix will be more resilient if it doesn't require the resolver to change its behavior.
I have considered to do that but to me the state of the subscription doesn't change. It is the IP that is missing which we simply need to recreate. Changing the state can be a bit confusing to the UI. However, I think it may require less code if we change the subscription state which will force the |
25abfc7
to
d013e28
Compare
51a589d
to
0181bf7
Compare
/retest |
2 similar comments
/retest |
/retest |
02ea9bf
to
3ff7232
Compare
/retest |
45a21b9
to
0d812b3
Compare
/retest |
2 similar comments
/retest |
/retest |
d4843d6
to
8a842df
Compare
At the moment, OLM will not recreate the pending-approval installplan. The subscription will be stuck in UpgradePending forever as a result. This PR will enable installplan recreation if it is deleted before approval. Signed-off-by: Vu Dinh <[email protected]>
8a842df
to
77f5564
Compare
/retest |
2 similar comments
/retest |
/retest |
4ca952a
to
6063161
Compare
@benluddy May I have a lgtm and approval? :) |
/retest |
1 similar comment
/retest |
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.
/lgtm
Signed-off-by: Vu Dinh <[email protected]>
6063161
to
3db342e
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dinhxuanvu, kevinrizza 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 |
/lgtm |
/retest |
/cherry-pick release-4.6 |
@dinhxuanvu: once the present PR merges, I will cherry-pick it on top of release-4.6 in a new PR and assign it to you. 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/test-infra repository. |
@dinhxuanvu: All pull requests linked via external trackers have merged: Bugzilla bug 1841175 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 kubernetes/test-infra repository. |
@dinhxuanvu: new pull request created: #1874 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/test-infra repository. |
At the moment, OLM will not recreate the pending-approval
installplan. The subscription will be stuck in UpgradePending forever
as a result. This PR will enable installplan recreation if it is deleted
before approval.
Signed-off-by: Vu Dinh [email protected]
Description of the change:
Motivation for the change:
Reviewer Checklist
/docs