From 9bff6e98c84344bf82d84ebf9f9db0c5def4a685 Mon Sep 17 00:00:00 2001 From: spisarski Date: Mon, 5 Feb 2018 11:52:55 -0700 Subject: Fixed timeout logic when attaching/detaching volumes. The timeout logic in nova_utils.attach_volume() and detach_volume() was not correct which may have been the root cause behind the issue FUNCTEST-927. Timeout in both attach and detach is no longer optional. Also added a test to attach and detach without timeout as that path was never tested. Updated associated test documentation as well. JIRA: SNAPS-263 JIRA: FUNCTEST-927 Change-Id: Iea3aeab59c378917fbd175d673113e8d30e2e4b9 Signed-off-by: spisarski --- docs/how-to-use/APITests.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/how-to-use/APITests.rst b/docs/how-to-use/APITests.rst index 50cd437..6239a08 100644 --- a/docs/how-to-use/APITests.rst +++ b/docs/how-to-use/APITests.rst @@ -435,7 +435,16 @@ nova_utils_tests.py - NovaUtilsInstanceVolumeTests | Test Name | Nova API | Description | +=======================================+===============+===========================================================+ | test_add_remove_volume | 2 | Ensures that a VM instance can properly attach and detach | -| | | a volume using the nova interface | +| | | a volume using the nova interface while waiting for | +| | | the update to fully occur | ++---------------------------------------+---------------+-----------------------------------------------------------+ +| test_attach_volume_nowait | 2 | Ensures that the call to nova_utils.attach_volume raises | +| | | an exception when the timeout is too short to return an | +| | | properly updated VmInst object | ++---------------------------------------+---------------+-----------------------------------------------------------+ +| test_detach_volume_nowait | 2 | Ensures that the call to nova_utils.detach_volume raises | +| | | an exception when the timeout is too short to return an | +| | | properly updated VmInst object | +---------------------------------------+---------------+-----------------------------------------------------------+ create_flavor_tests.py - CreateFlavorTests -- cgit 1.2.3-korg