OCPBUGS-81635: AWS: Increase cluster bootstrap timeout with userProvisioned DNS#10459
Conversation
|
@sadasu: This pull request references Jira Issue OCPBUGS-81635, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@sadasu: This pull request references Jira Issue OCPBUGS-81635, which is valid. The bug has been moved to the POST state. 3 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/test |
|
/test e2e-aws-custom-dns-techpreview |
WalkthroughRefactors scoping of Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
tthvo
left a comment
There was a problem hiding this comment.
/lgtm
/approve
The log shows this is applied as expected:
time="2026-04-02T15:33:50Z" level=info msg="Increasing bootstrapping timeout on AWS to 1h0m0s since UserProvisionedDNS is enabled"
time="2026-04-02T15:33:50Z" level=info msg="Waiting up to 1h0m0s (until 4:33PM UTC) for bootstrapping to complete..."
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tthvo 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 |
|
/retest-required |
For standard AWS installs, continue to use 45-minute timeout (default) for the bootstrap phase and 40 minute timeout for cluster creation step. For AWS with UserProvisionedDNS enabled, use 60-minute timeout each for both the bootstrap and cluster creation steps.
|
/test e2e-aws-custom-dns-techpreview |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cmd/openshift-install/command/waitfor.go (1)
95-106: Consider extracting the type assertion to reduce repetition.The type assertion
installConfig.(*installconfig.InstallConfig)is repeated three times. Extracting it to a variable would improve readability.♻️ Optional refactor
if installConfig, err := assetstore.Load(&installconfig.InstallConfig{}); err == nil && installConfig != nil { - switch installConfig.(*installconfig.InstallConfig).Config.Platform.Name() { + ic := installConfig.(*installconfig.InstallConfig) + switch ic.Config.Platform.Name() { case baremetal.Name: // Wait longer for baremetal, due to length of time it takes to boot timeout = 60 * time.Minute case aws.Name: // Wait longer for AWS with userProvisionedDNS enabled. // Tests show that with this feature enabled, MCO needs additional time to complete tasks - if installConfig.(*installconfig.InstallConfig).Config.AWS != nil && - installConfig.(*installconfig.InstallConfig).Config.AWS.UserProvisionedDNS == dns.UserProvisionedDNSEnabled { + if ic.Config.AWS != nil && ic.Config.AWS.UserProvisionedDNS == dns.UserProvisionedDNSEnabled { timeout = 60 * time.Minute } } }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@cmd/openshift-install/command/waitfor.go` around lines 95 - 106, Extract the repeated type assertion by assigning installConfig.(*installconfig.InstallConfig) to a local variable (e.g., ic) near the top of the switch, then use ic.Config.Platform.Name(), ic.Config.AWS and ic.Config.AWS.UserProvisionedDNS in the cases to remove the duplicate assertions; ensure you reference the same symbols (installConfig, installconfig.InstallConfig, Config.Platform.Name, AWS.UserProvisionedDNS) so behavior remains identical.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@cmd/openshift-install/command/waitfor.go`:
- Around line 95-106: Extract the repeated type assertion by assigning
installConfig.(*installconfig.InstallConfig) to a local variable (e.g., ic) near
the top of the switch, then use ic.Config.Platform.Name(), ic.Config.AWS and
ic.Config.AWS.UserProvisionedDNS in the cases to remove the duplicate
assertions; ensure you reference the same symbols (installConfig,
installconfig.InstallConfig, Config.Platform.Name, AWS.UserProvisionedDNS) so
behavior remains identical.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6005069f-a5b6-4027-be29-cc9a1167f6c2
📒 Files selected for processing (2)
cmd/openshift-install/command/waitfor.gocmd/openshift-install/create.go
|
/verified by e2e-aws-custom-dns-techpreview |
|
@yunjiang29: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
tthvo
left a comment
There was a problem hiding this comment.
/lgtm
I guess it'd be nice to have a similar log: "Increasing operator initialization timeout on..." too (if later on we adjust this code again) :D
|
@sadasu: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
f8a1613
into
openshift:main
|
@sadasu: Jira Issue Verification Checks: Jira Issue OCPBUGS-81635 Jira Issue OCPBUGS-81635 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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 openshift-eng/jira-lifecycle-plugin repository. |
For standard AWS installs, continue to use 45-minute timeout (default) For AWS with UserProvisionedDNS enabled, use 60-minute timeout (extended)