diff --git a/heat_integrationtests/scenario/test_autoscaling_lb.py b/heat_integrationtests/scenario/test_autoscaling_lb.py index 080f17f20c..e3de091b73 100644 --- a/heat_integrationtests/scenario/test_autoscaling_lb.py +++ b/heat_integrationtests/scenario/test_autoscaling_lb.py @@ -38,7 +38,11 @@ class AutoscalingLoadBalancerTest(scenario_base.ScenarioTestsBase): resp = set() for count in range(retries): time.sleep(1) - r = requests.get(url) + try: + r = requests.get(url) + except requests.exceptions.ConnectionError: + # The LB may not be up yet, let's retry + continue # skip unsuccessful requests if r.status_code == 200: resp.add(r.text)