]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
PureISCSIDriver needs to disconnect hosts before deleting volumes.
authorPatrick East <patrick.east@purestorage.com>
Sat, 13 Sep 2014 00:09:42 +0000 (17:09 -0700)
committerMudassir Latif <mudassir.latif@purestorage.com>
Fri, 21 Nov 2014 01:38:36 +0000 (17:38 -0800)
commit84378681d89c70185065df6958540f872c63bd3f
treebf9a0ac2f85cb664bd03b619be9db8183636dda6
parent1d77d79f81cf5e6a808453432f6e510ad0ea5a25
PureISCSIDriver needs to disconnect hosts before deleting volumes.

Some error conditions can cause a situation where the volume is
“connected” to a Purity host, but the volume failed to attach on the
initiator side. If we then try to delete this volume it will cause
errors and leave orphaned volumes behind on the Flash Array.

The solution is to check for any connections and then remove them prior
to making a call to delete the volume.

Closes-Bug: 1388260
Change-Id: I8f5b3b28900d79228fd91f2ad53535224f263657
cinder/tests/test_pure.py
cinder/volume/drivers/pure.py