Timeout issue in EMC VNX driver's unit test

Bug #1467763 reported by Xi Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Xi Yang

Bug Description

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

Tags: drivers emc vnx
Changed in cinder:
assignee: nobody → Xi Yang (xi-yang)
status: New → In Progress
Xing Yang (xing-yang)
Changed in cinder:
importance: Undecided → Medium
Xing Yang (xing-yang)
description: updated
Revision history for this message
Eric Harney (eharney) wrote :
Xi Yang (xi-yang)
tags: added: drivers emc vnx
Changed in cinder:
status: In Progress → Fix Committed
Changed in cinder:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-2 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.