Skip to content
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

[release-4.18] OCPBUGS-49687: Add Readiness Probe to Router Status Tests #29513

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #29395

/assign gcs278

Previously, the router was configured without a readiness probe, resulting in
racy startup conditions during router status stress tests. Routers would be
marked as ready immediately upon starting, causing the waitForReadyReplicaSet
function to proceed prematurely. This allowed the next step of route creation
to occur before the routers had fully initialized.

This often led to the first two routers to fight over the route status while
the third router was still starting. As a result, the third router missed
observing these early status contentions, leading to more writes to the
route status than we were expecting.

Adding the readiness probe also revealed that HAProxy was failing to start
due to insufficient permissions. The anyuid SCC was added to the router's
service account to resolve the issue.
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-44238 has been cloned as Jira Issue OCPBUGS-49687. Will retitle bug to link to clone.
/retitle [release-4.18] OCPBUGS-49687: Add Readiness Probe to Router Status Tests

In response to this:

This is an automated cherry-pick of #29395

/assign gcs278

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.

@openshift-ci openshift-ci bot changed the title [release-4.18] OCPBUGS-44238: Add Readiness Probe to Router Status Tests [release-4.18] OCPBUGS-49687: Add Readiness Probe to Router Status Tests Jan 31, 2025
@openshift-ci openshift-ci bot requested review from gcs278 and miheer January 31, 2025 01:42
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jan 31, 2025
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-49687, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.18.0) matches configured target version for branch (4.18.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-44238 is in the state ON_QA, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-44238 targets the "4.19.0" version, which is one of the valid target versions: 4.19.0
  • bug has dependents

Requesting review from QA contact:
/cc @lihongan

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This is an automated cherry-pick of #29395

/assign gcs278

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.

@openshift-ci openshift-ci bot requested a review from lihongan January 31, 2025 01:42
@Miciah
Copy link
Contributor

Miciah commented Jan 31, 2025

This change only modifies test code, so it is low risk. Furthermore, the test is currently erroneously making component readiness red.

/label backport-risk-assessed

Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

@Miciah: Can not set label backport-risk-assessed: Must be member in one of these teams: [openshift-staff-engineers]

In response to this:

This change only modifies test code, so it is low risk. Furthermore, the test is currently erroneously making component readiness red.

/label backport-risk-assessed

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.

@Miciah
Copy link
Contributor

Miciah commented Jan 31, 2025

Clean cherry-pick.
/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 31, 2025
Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Miciah, openshift-cherrypick-robot

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 31, 2025
@gcs278
Copy link
Contributor

gcs278 commented Jan 31, 2025

It's failing E2E with:

{  fail [github.com/openshift/origin/test/extended/router/stress.go:292]: Unexpected error:
    <*errors.errorString | 0xc0017d3450>: 
    replicaset "router-add-condition" never became ready
    {
        s: "replicaset \"router-add-condition\" never became ready",
    }
occurred

I'll try to figure out why it worked in 4.19, but not in 4.18:
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 31, 2025
@gcs278
Copy link
Contributor

gcs278 commented Jan 31, 2025

Ah this is my own fault. I depended the test update on the default cert getting updated to SHA256: openshift/router#646. So that needs to get backported too in order for this to merged, otherwise you get this.

[ALERT]    (12) : config : parsing [/var/lib/haproxy/conf/haproxy.config:129] : 'bind unix@/var/lib/haproxy/run/haproxy-sni.sock' in section 'frontend' : unable to load SSL certificate into SSL Context '/var/lib/haproxy/conf/default_pub_keys.pem': ca md too weak.

I think it's easier (and cleaner) to just backport openshift/router#646 instead of altering this cherry-pick to specify a SHA256 default cert explicitly.

@gcs278
Copy link
Contributor

gcs278 commented Jan 31, 2025

Depends on openshift/router#648 to be merged

@gcs278
Copy link
Contributor

gcs278 commented Jan 31, 2025

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 31, 2025
@gcs278
Copy link
Contributor

gcs278 commented Jan 31, 2025

Wrong PR 🫤

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 31, 2025
@gcs278
Copy link
Contributor

gcs278 commented Jan 31, 2025

releasing the hold as openshift/router#648 is expected to merge soon.

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 31, 2025
@jupierce jupierce added backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. labels Feb 7, 2025
@jupierce jupierce added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Feb 7, 2025
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0c7bed9 and 2 for PR HEAD f2eadcb in total

@neisw
Copy link
Contributor

neisw commented Feb 10, 2025

/retest-required

@jluhrsen
Copy link
Contributor

/skip

@neisw
Copy link
Contributor

neisw commented Feb 10, 2025

Seems like an awful lot of disruption in aws-ovn-edge-zones

Though I see the same outside of this pr #29427

@jluhrsen
Copy link
Contributor

Seems like an awful lot of disruption in aws-ovn-edge-zones

Though I see the same outside of this pr #29427

was just about to comment the same thing. dug through the last 8 or so of these jobs and some have this massive disruption and some have none. but to the point, some jobs with the disruption are on different PRs so guessing it's not related to this PR at least.

@jupierce jupierce added the staff-eng-approved Indicates a release branch PR has been approved by a staff engineer (formerly group/pillar lead). label Feb 10, 2025
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0c7bed9 and 2 for PR HEAD f2eadcb in total

1 similar comment
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0c7bed9 and 2 for PR HEAD f2eadcb in total

@candita
Copy link
Contributor

candita commented Feb 11, 2025

/retest-required

@candita
Copy link
Contributor

candita commented Feb 11, 2025

The e2e-aws-ovn-edge-zones test is perma-failing due to an issue with metrics-api-new-connections service, which never comes up.

time="2025-02-11T02:19:58Z" level=error msg="disruption sample failed: error running request: 503 Service Unavailable: error trying to reach service: context deadline exceeded\n" auditID=ca08b173-35cd-4da3-9430-05d99bc7741a backend=metrics-api-new-connections this-instance="{Disruption map[backend-disruption-name:metrics-api-new-connections connection:new disruption:openshift-tests]}" type=new
I0211 02:19:58.471851 313 disruption_backend_sampler.go:654] reason/DisruptionBegan request-audit-id/ca08b173-35cd-4da3-9430-05d99bc7741a backend-disruption-name/metrics-api-new-connections connection/new disruption/openshift-tests stopped responding to GET requests over new connections: error running request: 503 Service Unavailable: error trying to reach service: context deadline exceeded

@neisw
Copy link
Contributor

neisw commented Feb 11, 2025

It appears to have passed on 2/1 but not since. I don't see other PRs hitting this when reviewing the history Most recent pass outside this pr looks like 2/4

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0c7bed9 and 2 for PR HEAD f2eadcb in total

@jluhrsen
Copy link
Contributor

and it wasn't a problem in the 4.19 version of this PR, FWIW.

@neisw
Copy link
Contributor

neisw commented Feb 11, 2025

I opened a noop 4.18 pr and kicked off pull-ci-openshift-origin-release-4.18-e2e-aws-ovn-edge-zones, curious to see what the results are.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0c7bed9 and 2 for PR HEAD f2eadcb in total

@candita
Copy link
Contributor

candita commented Feb 11, 2025

@Miciah The test of e2e-aws-ovn-edge-zones in #29537 succeeded, so maybe now it will succeed here. Or, is it possible we need to wait for openshift/router#648 to be present in a new router build?

Copy link
Contributor

openshift-ci bot commented Feb 12, 2025

@openshift-cherrypick-robot: all tests passed!

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.

@openshift-merge-bot openshift-merge-bot bot merged commit f89d72e into openshift:release-4.18 Feb 12, 2025
29 checks passed
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-49687: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-49687 has been moved to the MODIFIED state.

In response to this:

This is an automated cherry-pick of #29395

/assign gcs278

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. 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. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. staff-eng-approved Indicates a release branch PR has been approved by a staff engineer (formerly group/pillar lead).
Projects
None yet
Development

Successfully merging this pull request may close these issues.