Skip to content

Commit

Permalink
Merge pull request #6025 from honza/bootstrap-timeout-4.9
Browse files Browse the repository at this point in the history
[release-4.9] Bug 2098158: Bootstrap timeout
  • Loading branch information
openshift-ci[bot] committed Jun 23, 2022
2 parents f7230c8 + 39afc8b commit eae23da
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cmd/openshift-install/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,19 @@ func waitForBootstrapComplete(ctx context.Context, config *rest.Config) *cluster
// completed.
func waitForBootstrapConfigMap(ctx context.Context, client *kubernetes.Clientset) *clusterCreateError {
timeout := 30 * time.Minute
logrus.Infof("Waiting up to %v for bootstrapping to complete...", timeout)

// Wait longer for baremetal, due to length of time it takes to boot
if assetStore, err := assetstore.NewStore(rootOpts.dir); err == nil {
if installConfig, err := assetStore.Load(&installconfig.InstallConfig{}); err == nil && installConfig != nil {
if installConfig.(*installconfig.InstallConfig).Config.Platform.Name() == baremetal.Name {
timeout = 60 * time.Minute
}
}
}

untilTime := time.Now().Add(timeout)
logrus.Infof("Waiting up to %v (until %v) for bootstrapping to complete...",
timeout, untilTime.Format(time.Kitchen))

waitCtx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
Expand Down

0 comments on commit eae23da

Please sign in to comment.