From: Markos Chandras Date: Tue, 20 Feb 2018 15:13:29 +0000 (+0000) Subject: openstack: nova_utils_tests: Increase timeout for API calls X-Git-Tag: opnfv-6.0.0~19 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=91b3bcb7ad2dda9479d2f97b080d8665d83968dd;hp=20902078a98bfb76c12919b92cd0345dd3c06f8c;p=snaps.git openstack: nova_utils_tests: Increase timeout for API calls Patch I2245adb84d0e6d4e3350d17d0c2e44baf5202d51 increased the timeout for the API calls to 2 minutes which was then somewhat reverted in Iea3aeab59c378917fbd175d673113e8d30e2e4b9. However, the problem still persists on slow systems and 30 seconds may not be enough to confirm a volume attachment to the VM. Change-Id: I860b2a797917e13772e95c5d756919e9792b63a6 Signed-off-by: Markos Chandras --- diff --git a/snaps/openstack/utils/tests/nova_utils_tests.py b/snaps/openstack/utils/tests/nova_utils_tests.py index 560a9f3..494c96c 100644 --- a/snaps/openstack/utils/tests/nova_utils_tests.py +++ b/snaps/openstack/utils/tests/nova_utils_tests.py @@ -458,7 +458,7 @@ class NovaUtilsInstanceVolumeTests(OSComponentTestCase): vol_attach = None attached = False start_time = time.time() - while time.time() < start_time + 30: + while time.time() < start_time + 120: vol_attach = cinder_utils.get_volume_by_id( self.cinder, self.volume_creator.get_volume().id) @@ -547,7 +547,7 @@ class NovaUtilsInstanceVolumeTests(OSComponentTestCase): vol_attach = None attached = False start_time = time.time() - while time.time() < start_time + 30: + while time.time() < start_time + 120: vol_attach = cinder_utils.get_volume_by_id( self.cinder, self.volume_creator.get_volume().id)