]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
FlashSystem reports error while running tests with multi-thread
authorEdwin Wang <edwin.wang@cn.ibm.com>
Fri, 8 May 2015 03:00:01 +0000 (11:00 +0800)
committerEdwin Wang <edwin.wang@cn.ibm.com>
Fri, 8 May 2015 16:02:00 +0000 (00:02 +0800)
commit4e3259e9f1bdcd0b5d274ca39c603fc8ad7536f1
tree5657f91b8dd633e85ecd1cd3f4c6c366170edb36
parenta1bfeeb5eef3a19bc1d2941e6803c89e1c48ec8c
FlashSystem reports error while running tests with multi-thread

There was an issue while running initialize_connection/
terminate_connection/_map_vdisk_to_host/_unmap_vdisk_from_host in
parallel threads.

This fix adds lock into these functions and removes incorrect
timer.stop().

Change-Id: If433522bc7799e16a918ba7c5b300b7333e430a8
Close-bug: 1452721
cinder/volume/drivers/ibm/flashsystem.py