Skip to content

no-jira:test/monitoring: increase load balancer readiness timeout to 20 minutes#30994

Open
tthvo wants to merge 2 commits intoopenshift:mainfrom
tthvo:lb-timeout
Open

no-jira:test/monitoring: increase load balancer readiness timeout to 20 minutes#30994
tthvo wants to merge 2 commits intoopenshift:mainfrom
tthvo:lb-timeout

Conversation

@tthvo
Copy link
Copy Markdown
Member

@tthvo tthvo commented Apr 10, 2026

The service-type-load-balancer-availability monitor test was timing out during preparation when waiting for the load balancer to become reachable.

DNS SOA records for AWS ELB in EUSC region show a 900s (15-minute) retry interval, which can cause the load balancer hostname resolution to take longer than the previous 10-minute timeout.

Increase the timeout from 10 to 20 minutes to accommodate slow DNS propagation in regions with high TTL values.

The service-type-load-balancer-availability monitor test was timing out
during preparation when waiting for the load balancer to become reachable.

DNS SOA records for AWS ELB in EUSC region show a 900s (15-minute) retry
interval, which can cause the load balancer hostname resolution to take
longer than the previous 10-minute timeout.

Increase the timeout from 10 to 20 minutes to accommodate slow DNS
propagation in regions with high TTL values.
@openshift-merge-bot
Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@openshift-ci-robot
Copy link
Copy Markdown

@tthvo: This pull request explicitly references no jira issue.

Details

In response to this:

The service-type-load-balancer-availability monitor test was timing out during preparation when waiting for the load balancer to become reachable.

DNS SOA records for AWS ELB in EUSC region show a 900s (15-minute) retry interval, which can cause the load balancer hostname resolution to take longer than the previous 10-minute timeout.

Increase the timeout from 10 to 20 minutes to accommodate slow DNS propagation in regions with high TTL values.

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-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 10, 2026
@openshift-ci openshift-ci bot requested review from deads2k and p0lyn0mial April 10, 2026 02:52
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

Walkthrough

Increased the initial HTTP reachability check timeout from 10 to 20 minutes in the load-balancer disruption test; added WithTimeout(time.Duration) to BackendSampler and set a 120s connection timeout on backend samplers used in the test.

Changes

Cohort / File(s) Summary
Network Disruption Service Load Balancer Test
pkg/monitortests/network/disruptionserviceloadbalancer/monitortest.go
Increased the testReachableHTTPWithMinSuccessCount timeout from 10 * time.Minute to 20 * time.Minute. Introduced connectionTimeout := 120 * time.Second and applied it to backend samplers via .WithTimeout(connectionTimeout).
Backend Disruption Sampler
pkg/monitor/backenddisruption/disruption_backend_sampler.go
Added func (b *BackendSampler) WithTimeout(timeout time.Duration) *BackendSampler to set an overrideable timeout on BackendSampler instances (stored as a pointer) used when constructing request/phase timeouts.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 10, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tthvo
Once this PR has been reviewed and has the lgtm label, please assign deads2k for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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-merge-bot
Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

The service-load-balancer-with-pdb disruption test was experiencing
DNS resolution failures when connecting to the load balancer during
test execution. AWS ELB DNS zones have an SOA TTL of 900 seconds,
which means DNS propagation can take up to 15 minutes for newly
created load balancers.

This change adds a WithTimeout() method to BackendSampler and sets
a 120-second timeout for the service load balancer disruption samplers,
allowing sufficient time for DNS retries during the propagation period.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@pkg/monitor/backenddisruption/disruption_backend_sampler.go`:
- Around line 235-237: Validate the timeout in BackendSampler.WithTimeout and
refuse non-positive values: check if timeout <= 0 and if so do not set b.timeout
(return b unchanged) so callers cannot accidentally disable timeouts; otherwise
set b.timeout = &timeout and return b. This ensures BackendSampler.WithTimeout
enforces a positive time.Duration (use the existing BackendSampler and
WithTimeout identifiers and the b.timeout field).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 304a4f0e-faeb-43e6-99fa-921457c4fef5

📥 Commits

Reviewing files that changed from the base of the PR and between f454514 and 60e1b17.

📒 Files selected for processing (2)
  • pkg/monitor/backenddisruption/disruption_backend_sampler.go
  • pkg/monitortests/network/disruptionserviceloadbalancer/monitortest.go
✅ Files skipped from review due to trivial changes (1)
  • pkg/monitortests/network/disruptionserviceloadbalancer/monitortest.go

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@tthvo
Copy link
Copy Markdown
Member Author

tthvo commented Apr 10, 2026

/test e2e-aws-ovn-fips

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 10, 2026

@tthvo: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn-fips 60e1b17 link true /test e2e-aws-ovn-fips

Full PR test history. Your PR dashboard.

Details

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants