]> 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)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 14:08:51 +0000 (22:08 +0800)
commitcb6ce8740131189f79472b6d07c6a02e117d6d53
tree86f7ce2a13af002346bb7d1b2596cb3b289fdd10
parent39f5a29d00138cbe136790fdac8b276e85074341
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
(cherry picked from commit 0c4a94eac94399a524ff758fa7046e98b07951ae)
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py