Fixed timeout logic when attaching/detaching volumes. 95/51695/12
authorspisarski <s.pisarski@cablelabs.com>
Mon, 5 Feb 2018 18:52:55 +0000 (11:52 -0700)
committerspisarski <s.pisarski@cablelabs.com>
Tue, 6 Feb 2018 21:21:58 +0000 (14:21 -0700)
commit9bff6e98c84344bf82d84ebf9f9db0c5def4a685
tree0dd1d37374e5b5fc6e1458187b1619cc889f6cd5
parent9cf59ae0a133b0c8ab3907c84ec3c7b962df599a
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 <s.pisarski@cablelabs.com>
docs/how-to-use/APITests.rst
snaps/openstack/create_instance.py
snaps/openstack/utils/nova_utils.py
snaps/openstack/utils/tests/nova_utils_tests.py