]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
NetApp ESeries: fix delete of non-existent volume
authorubaumann <openstack@m.ubaumann.ch>
Wed, 22 Jul 2015 17:25:47 +0000 (19:25 +0200)
committerTom Barron <tpb@dyncloud.net>
Fri, 24 Jul 2015 11:43:36 +0000 (11:43 +0000)
commiteccf433fd716ac5f61cafbb490ddeed0a6827531
tree9f326e7f53c6b2f18c01466f7bcd9a9ed331a22f
parent94e3098238f4af32f6ffa85833d0107cab07c14c
NetApp ESeries: fix delete of non-existent volume

If a non existing volume is deleted the NetApp
iSCSI eseries driver throws a KeyError Exception
in the delete_volume method.
This situation can occur if the user manually deletes
a LUN in the NetApp controller directly or if the
delete operation initiated via cinder is interrupted,
which leaves the system in an inconsistent state.
For example if the volume is deleted on the NetApp
controller but still residing in the OpenStack database.

Change-Id: I4e9388c620556ed042b7e3fe59b550871df5b563
Closes-Bug: #1477027
cinder/tests/unit/volume/drivers/netapp/eseries/test_library.py
cinder/volume/drivers/netapp/eseries/library.py