Skip to content
This repository was archived by the owner on Oct 31, 2019. It is now read-only.

Commit adbb94b

Browse files
authored
Update runner.py
Add debug to wait until loop and make the wait for load balancer more patient.
1 parent dd3a9da commit adbb94b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/create/runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def _wait_until(predicate, timeoutSeconds, delaySeconds=0.25, *args, **kwargs):
9898
except Exception:
9999
pass
100100
time.sleep(delaySeconds)
101-
102-
raise Exception("Condition not met within " + str(timeoutSeconds))
103-
101+
102+
print("Condition not met within " + str(timeoutSeconds))
103+
raise
104104

105105
def _utf_encode_list(list):
106106
return [s.encode("UTF8") for s in list]
@@ -230,7 +230,7 @@ def _verifyConfig(tfvars_file, no_create=None, no_destroy=None):
230230

231231
_log("Waiting for the LoadBalancer to initialize", as_banner=True)
232232
externalIPReady = lambda: _kubectl("get svc/frontend -o jsonpath={.status.loadBalancer.ingress[0].ip}", exit_on_error=True) != ""
233-
_wait_until(externalIPReady, 300)
233+
_wait_until(externalIPReady, 600)
234234
externalIP = _kubectl("get svc/frontend -o jsonpath={.status.loadBalancer.ingress[0].ip}", exit_on_error=True)
235235
_log("Frontend service IP (OCI Load Balancer): " + str(externalIP))
236236

0 commit comments

Comments
 (0)