Skip to content

Bug 2024048: Remove outdated subscription update logic to improve resolution delay#215

Merged
openshift-merge-robot merged 2 commits intoopenshift:release-4.9from
dinhxuanvu:upgrade-delay-4.9
Dec 2, 2021
Merged

Bug 2024048: Remove outdated subscription update logic to improve resolution delay#215
openshift-merge-robot merged 2 commits intoopenshift:release-4.9from
dinhxuanvu:upgrade-delay-4.9

Conversation

@dinhxuanvu
Copy link
Copy Markdown
Contributor

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

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
@openshift-ci openshift-ci Bot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label Nov 17, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 17, 2021

@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
  • bug is open, matching expected state (open)
  • bug target release (4.9.z) matches configured target release for branch (4.9.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 2002276 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 2002276 targets the "4.10.0" release, which is one of the valid target releases: 4.10.0
  • bug has dependents

Requesting review from QA contact:
/cc @jianzhangbjz

Details

In response to this:

Bug 2024048: Remove outdated subscription update logic to improve resolution delay

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.

@openshift-ci openshift-ci Bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 17, 2021
@openshift-ci openshift-ci Bot requested a review from jianzhangbjz November 17, 2021 06:03
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 17, 2021

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot requested review from anik120 and joelanford November 17, 2021 06:03
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 17, 2021
@kevinrizza
Copy link
Copy Markdown
Member

/lgtm
/label backport-risk-assessed

@openshift-ci openshift-ci Bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Nov 17, 2021
@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 17, 2021
@kevinrizza
Copy link
Copy Markdown
Member

/retest

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@dinhxuanvu
Copy link
Copy Markdown
Contributor Author

/retest

@dinhxuanvu
Copy link
Copy Markdown
Contributor Author

@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
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 1, 2021
@timflannagan
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Dec 1, 2021
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 2, 2021

@jianzhangbjz: The label(s) /label cherry-pick-approoved cannot be applied. These labels are supported: platform/aws, platform/azure, platform/baremetal, platform/google, platform/libvirt, platform/openstack, ga, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, px-approved, docs-approved, qe-approved, downstream-change-needed, backport-risk-assessed, cherry-pick-approved

Details

In response to this:

/label cherry-pick-approoved

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.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@jianzhangbjz
Copy link
Copy Markdown
Contributor

/label cherry-pick-approved

@openshift-ci openshift-ci Bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Dec 2, 2021
@jianzhangbjz
Copy link
Copy Markdown
Contributor

Sorry for the late.
/lgtm

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

4 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@dinhxuanvu
Copy link
Copy Markdown
Contributor Author

/test e2e-upgrade

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 5fc4c78 into openshift:release-4.9 Dec 2, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 2, 2021

@dinhxuanvu: All pull requests linked via external trackers have merged:

Bugzilla bug 2024048 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2024048: Remove outdated subscription update logic to improve resolution delay

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.

awgreene pushed a commit to awgreene/operator-framework-olm that referenced this pull request Feb 2, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
awgreene pushed a commit to awgreene/operator-framework-olm that referenced this pull request Feb 22, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 1, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 2, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 2, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 2, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 7, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 7, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 8, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 9, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 10, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 10, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 12, 2022
…mpty (openshift#215)

* fix: alm-example parse check should not fail when the annotation if empty

* applying review

Upstream-repository: api
Upstream-commit: 77b398430e0168ac9339d3a1620715d26ab876d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants