Skip to content

Commit

Permalink
Increase apiserver wait time for a min
Browse files Browse the repository at this point in the history
In openshift 4.7 looks like the moment we start the kubelet service
and kubelet being able to start the pod, have added more than a min
time. This patch will unblock us to start the 4.7.0-rc testing.

We should revert it as soon as https://bugzilla.redhat.com/show_bug.cgi?id=1927263
is fixed.

```
DEBU retry loop: attempt 117
DEBU About to run SSH command:
oc get nodes --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: Process exited with status 1, output:
DEBU The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?
DEBU error: Temporary error: ssh command error:
command : oc get nodes --context admin --cluster crc --kubeconfig /opt/kubeconfig
err     : Process exited with status 1\n - sleeping 1s
DEBU retry loop: attempt 118
DEBU About to run SSH command:
oc get nodes --context admin --cluster crc --kubeconfig /opt/kubeconfig
DEBU SSH command results: err: <nil>, output: NAME                 STATUS   ROLES           AGE   VERSION
crc-wknpw-master-0   Ready    master,worker   26h   v1.20.0+ba45583
```
  • Loading branch information
praveenkumar authored and guillaumerose committed Feb 11, 2021
1 parent d126446 commit 4da07ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crc/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func WaitForAPIServer(ocConfig oc.Config) error {
logging.Debug(stdout)
return nil
}
return errors.RetryAfter(2*time.Minute, waitForAPIServer, time.Second)
return errors.RetryAfter(3*time.Minute, waitForAPIServer, time.Second)
}

func DeleteOpenshiftAPIServerPods(ocConfig oc.Config) error {
Expand Down

0 comments on commit 4da07ce

Please sign in to comment.