]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Storwize/SVC driver crashes when check volume copy status
authorLi Min Liu <liminliu@cn.ibm.com>
Tue, 8 Apr 2014 02:18:56 +0000 (10:18 +0800)
committerLi Min Liu <liminliu@cn.ibm.com>
Mon, 14 Apr 2014 15:40:25 +0000 (23:40 +0800)
commit0c4a94eac94399a524ff758fa7046e98b07951ae
tree24f341232a7cac870e3b80343151dd69868d4967
parentf50c884e223f4b7a6d68026a4096ced23a9496d5
Storwize/SVC driver crashes when check volume copy status

Storwize/SVC driver does not clear up property of _vdiskcopyops
when deleting a volume. So if a volume which under async copy is
deleted before sync completed, the driver will crash.

When delete a volume, add a check for _vdiskcopyops, if volume
is in the dict, remove it.

Change-Id: I4905404b72a7ac8f90bd92fa4345ba771a78418b
Closes-Bug: #1304115
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py