openstack: nova_utils_tests: Increase timeout for API calls 59/52359/1
authorMarkos Chandras <mchandras@suse.de>
Tue, 20 Feb 2018 15:13:29 +0000 (15:13 +0000)
committerMarkos Chandras <mchandras@suse.de>
Tue, 20 Feb 2018 15:27:51 +0000 (15:27 +0000)
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 <mchandras@suse.de>
snaps/openstack/utils/tests/nova_utils_tests.py

index 560a9f3..494c96c 100644 (file)
@@ -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)