Skip to content

Commit

Permalink
fix(azure_runner): extend the connect timeout
Browse files Browse the repository at this point in the history
seem like 2024 based azure sct runner, take a bit longer to
be up and ready (probably sinece the Azure Agent being installed)

we should try a bit longer for it to connect

(cherry picked from commit bc2582d)
  • Loading branch information
fruch committed Nov 25, 2024
1 parent b08111d commit 75781a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1584,8 +1584,8 @@ def create_runner_instance(cloud_provider, region, availability_zone, instance_t

LOGGER.info("Verifying SSH connectivity...")
runner_public_ip = sct_runner.get_instance_public_ip(instance=instance)
remoter = sct_runner.get_remoter(host=runner_public_ip, connect_timeout=120)
if remoter.run("true", timeout=100, verbose=False, ignore_status=True).ok:
remoter = sct_runner.get_remoter(host=runner_public_ip, connect_timeout=240)
if remoter.run("true", timeout=200, verbose=False, ignore_status=True).ok:
LOGGER.info("Successfully connected the SCT Runner. Public IP: %s", runner_public_ip)
with sct_runner_ip_path.open(mode="w", encoding="utf-8") as sct_runner_ip_file:
sct_runner_ip_file.write(runner_public_ip)
Expand Down

0 comments on commit 75781a8

Please sign in to comment.