In VNX driver's unit tests, the timeout value is set improperly, that would cause some test case to fail occasionally.
==============================
Failed 1 tests - output below:
==============================
cinder.tests.unit.test_emc_vnxdirect.EMCVNXCLIDriverISCSITestCase.test_snapshot_preparing_volume
------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/jgriffith/git/cinder.reviews/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "cinder/tests/unit/test_emc_vnxdirect.py", line 1657, in test_snapshot_preparing_volume
self.driver.create_snapshot(self.testData.test_snapshot)
File "cinder/volume/drivers/emc/emc_cli_iscsi.py", line 101, in create_snapshot
self.cli.create_snapshot(snapshot)
File "cinder/volume/drivers/emc/emc_vnx_cli.py", line 2232, in create_snapshot
self._client.wait_until_lun_ready_for_ops(volume['name'])
File "cinder/volume/drivers/emc/emc_vnx_cli.py", line 1174, in wait_until_lun_ready_for_ops
self._wait_for_a_condition(is_lun_ready_for_ops)
File "cinder/volume/drivers/emc/emc_vnx_cli.py", line 539, in _wait_for_a_condition
timer.start(interval=interval).wait()
File "/home/jgriffith/git/cinder.reviews/.tox/py27/local/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
return hubs.get_hub().switch()
File "/home/jgriffith/git/cinder.reviews/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
return self.greenlet.switch()
File "cinder/openstack/common/loopingcall.py", line 81, in _inner
self.f(*self.args, **self.kw)
File "cinder/volume/drivers/emc/emc_vnx_cli.py", line 536, in _inner
raise exception.VolumeBackendAPIException(data=msg)
cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: CommandLineHelper._wait_for_a_condition: is_lun_ready_for_ops timeout
https:/ /review. openstack. org/#/c/ 194573/