Closed gcs278 closed 4 months ago
@gcs278: This pull request references Jira Issue OCPBUGS-26498, which is valid.
Requesting review from QA contact: /cc @ShudiLi
The bug has been updated to refer to the pull request using the external bug tracker.
Though this is a valid improvement, I'm closing in favor of https://github.com/openshift/router/pull/588 as I now don't think this PR fixes the TestRouteAdmissionPolicy
flake.
/close
@gcs278: Closed this PR.
@gcs278: This pull request references Jira Issue OCPBUGS-26498. The bug has been updated to no longer refer to the pull request using the external bug tracker.
TestRouteAdmissionPolicy
is still flaking, and this may be a reasonable fix.
/reopen
@gcs278: Reopened this PR.
@gcs278: This pull request references Jira Issue OCPBUGS-26498, which is valid.
Requesting review from QA contact: /cc @ShudiLi
The bug has been updated to refer to the pull request using the external bug tracker.
Putting a hold to wait for testing confirmation. /hold
Thanks! /approve /lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Miciah
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@gcs278: all tests passed!
Full PR test history. Your PR dashboard.
I've ran nearly a hundred times with my e2e test in https://github.com/openshift/origin/pull/28710 and no issues. Reviewed the router logs and lease extends are drastically reduced. /hold cancel
@gcs278: Jira Issue OCPBUGS-26498: Some pull requests linked via external trackers have merged:
The following pull requests linked via external trackers have not merged:
These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh
.
Jira Issue OCPBUGS-26498 has not been moved to the MODIFIED state.
[ART PR BUILD NOTIFIER]
This PR has been included in build ose-haproxy-router-base-container-v4.16.0-202405020546.p0.g5610ac8.assembly.stream.el9 for distgit ose-haproxy-router-base. All builds following this will include this PR.
Both performIngressConditionUpdate and performIngressConditionRemoval functions add tasks to the writerlease queue even if no work needed to be done. This commit optimizes the Upgrade Validation plugin by ensuring that tasks for updating UnservableInFutureVersions are only added to the queue when changes are required.
This reduction in unnecessary work significantly lowers the frequency of lease extensions. Previously, excessive lease extensions could delay route status updates under certain conditions, such as during temporary contention periods where a router pod gets demoted to a follower. After the contention is resolved, the pod’s subsequent retry will be delayed more than necessary.
Additionally, this update provides a clearer indication of when updates are actually required, but have been completed by another router pod. The prior logic did not clearly distinguish between unnecessary updates and updates that were completed by another pod.
The selective updates are only added to the interface used by Upgrade Validation plugin to avoid perturbing existing Admitted condition logic. This means nominal clusters without SHA1 routes should not be impacted by the Upgrade Validation plugin, minimizing the risk associated with its introduction.
Fixes TestRouteAdmissionPolicy Flake by reducing the number of unnecessary lease extensions.