Bug 2024048: Remove outdated subscription update logic to improve resolution delay#215
Conversation
Currently, olm logic checks for upgrade in subscription via another obsolete API that is no longer in use for dependency solution. As a result, sometimes, subscriptions display `UpgradeAvailable` status but there will be no upgrades as the upgrade is not valid in the resolver. Also, the `UpgradeAvailable` status is used to trigger the new resolution even though that status is no longer a valid indicator of having a pending upgrade. This leads to unwanted upgrade delay when the obsolete API works properly. This commit will remove the code that is using this obsolete API and allow the resolution to happen when there is a subscription change. Signed-off-by: Vu Dinh <vudinh@outlook.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: 81e7a60bc7a62da4a469041ce89e3867e9f47fde
|
@dinhxuanvu: This pull request references Bugzilla bug 2024048, 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. 6 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dinhxuanvu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
/retest |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
|
@jianzhangbjz PTAL |
Currently, when resolution happens, every subscription will get updated regardless if there are any changes applied or not. This resolves into unnecessary API update calls. This commit will filter out subscriptions that don't get changed and only changed ones get updated. Note: Remove an additional update API call from one of subscription sync methods as well. Signed-off-by: Vu Dinh <vudinh@outlook.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: e6cc305d49e865020b0d3481b621bf7412fb871a
|
/lgtm |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@jianzhangbjz: The label(s) DetailsIn 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-required Please review the full test history for this PR and help us cut down flakes. |
|
/label cherry-pick-approved |
|
Sorry for the late. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/test e2e-upgrade |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@dinhxuanvu: All pull requests linked via external trackers have merged: Bugzilla bug 2024048 has been moved to the MODIFIED state. DetailsIn 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. |
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
…mpty (openshift#215) * fix: alm-example parse check should not fail when the annotation if empty * applying review Upstream-repository: api Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
Currently, olm logic checks for upgrade in subscription via another
obsolete API that is no longer in use for dependency solution. As a
result, sometimes, subscriptions display
UpgradeAvailablestatus butthere will be no upgrades as the upgrade is not valid in the resolver.
Also, the
UpgradeAvailablestatus is used to trigger the new resolutioneven though that status is no longer a valid indicator of having a pending
upgrade. This leads to unwanted upgrade delay when the obsolete API works
properly.
This commit will remove the code that is using this obsolete API and
allow the resolution to happen when there is a subscription change.
Signed-off-by: Vu Dinh vudinh@outlook.com
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 81e7a60bc7a62da4a469041ce89e3867e9f47fde