]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Don't fail on clearing 3PAR object volume key
authorKurt Martin <kurt.f.martin@hpe.com>
Wed, 2 Mar 2016 22:57:06 +0000 (14:57 -0800)
committerKurt Martin <kurt.f.martin@hpe.com>
Fri, 4 Mar 2016 00:07:21 +0000 (16:07 -0800)
commitc86b150d5fb4bc5a238da1d84b94408c68e74a04
treea674399f0dce9080709c438fc7e05ec5154255eb
parentf813bde3c5b2ec357a51b8172db64e31a967cc35
Don't fail on clearing 3PAR object volume key

The 3PARs drivers write a key value pair on the 3PAR backend volumes
to track the instance that the volume is exported to. However, in
certain cases the key is not present and we would throw an
exception and not allow the detach to continue. If the key is not
present then we do not need to clear it. This patch will just
log a warning that it wasn't present and continue with the detaching
the volume.

Change-Id: Ie19c9050d514d68ba162bcbfa95dfc6e96d5d7bb
Closes-Bug: #1546392
cinder/tests/unit/test_hpe3par.py
cinder/volume/drivers/hpe/hpe_3par_common.py