]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Prevent missing Purity hosts from raising errors
authorPatrick East <patrick.east@purestorage.com>
Mon, 13 Jul 2015 22:49:40 +0000 (15:49 -0700)
committerPatrick East <patrick.east@purestorage.com>
Mon, 20 Jul 2015 17:58:37 +0000 (17:58 +0000)
commitc18e1c7cad6f0209a322a0db1ec653bc7940a0d8
treeb8e6a5165442e65aa1c9cf09dfb8a5789bba67ff
parent94e3098238f4af32f6ffa85833d0107cab07c14c
Prevent missing Purity hosts from raising errors

Occasionally a Purity host can be deleted out from underneath Cinder.
When this happens if cinder is attempting to disconnect a volume from
that host we should treat it as a ‘success’ since if the host is gone,
it is disconnected already (as far as Purity is concerned).

To prevent one cause of this, the disconnect method will now be locked
with the connect ones so that can’t delete a host we intend to re-use.

Change-Id: Iba82c93f9e101709cf5532225068474688187b29
Closes-bug: #1472710
cinder/tests/unit/test_pure.py
cinder/volume/drivers/pure.py