diff options
author | Markos Chandras <mchandras@suse.de> | 2018-02-20 15:13:29 +0000 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-02-20 15:27:51 +0000 |
commit | 91b3bcb7ad2dda9479d2f97b080d8665d83968dd (patch) | |
tree | 6354c206e957a74be3b5682ee0f339ff368594f7 | |
parent | 20902078a98bfb76c12919b92cd0345dd3c06f8c (diff) |
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 <mchandras@suse.de>
-rw-r--r-- | snaps/openstack/utils/tests/nova_utils_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |