From: David Galloway Date: Tue, 27 Feb 2018 18:28:10 +0000 (-0500) Subject: fog: Wait 15 minutes for FOG task to complete X-Git-Tag: 1.1.0~355^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=33f0f4b379be5477b874348eb16bb0f208b18648;p=teuthology.git fog: Wait 15 minutes for FOG task to complete When there are running jobs and a large run gets scheduled, FOG provisioning gets backed up due to its built-in rate limiting. 15 minutes should be a little more lenient and prevent large spikes of dead jobs when a run is scheduled in an idle queue. Signed-off-by: David Galloway --- diff --git a/teuthology/provision/fog.py b/teuthology/provision/fog.py index a9a3cca05..3e08e038e 100644 --- a/teuthology/provision/fog.py +++ b/teuthology/provision/fog.py @@ -241,7 +241,7 @@ class FOG(object): completed) """ self.log.info("Waiting for deploy to finish") - with safe_while(sleep=15, tries=40) as proceed: + with safe_while(sleep=15, tries=60) as proceed: while proceed(): if not self.deploy_task_active(task_id): break diff --git a/teuthology/provision/test/test_fog.py b/teuthology/provision/test/test_fog.py index d849bee21..61c342c43 100644 --- a/teuthology/provision/test/test_fog.py +++ b/teuthology/provision/test/test_fog.py @@ -252,7 +252,7 @@ class TestFOG(object): @mark.parametrize( 'tries', - [3, 45], + [3, 61], ) def test_wait_for_deploy_task(self, tries): wait_results = [True for i in range(tries)] + [False] @@ -262,7 +262,7 @@ class TestFOG(object): deploy_task_active=DEFAULT, ) as local_mocks: local_mocks['deploy_task_active'].side_effect = wait_results - if tries >= 40: + if tries >= 60: with raises(MaxWhileTries): obj.wait_for_deploy_task(9) return