Nova may pass a connector to Cinder with no 'host' field, which was
causing a KeyError in the Storwize driver. This patch resolves this case
by doing the following:
1. If the volume is mapped to only 1 host, unmap it
2. If the volume was not mapped or mapped to multiple hosts, print a
warning but don't raise an exception
Reviewed: https:/ /review. openstack. org/58602 github. com/openstack/ cinder/ commit/ 8185d1b5db42144 1ebba128f23f840 a42f9bf050
Committed: http://
Submitter: Jenkins
Branch: master
commit 8185d1b5db42144 1ebba128f23f840 a42f9bf050
Author: Avishay Traeger <email address hidden>
Date: Tue Nov 26 21:10:22 2013 +0200
Fix Storwize terminate_ connection with no host
Nova may pass a connector to Cinder with no 'host' field, which was
causing a KeyError in the Storwize driver. This patch resolves this case
by doing the following:
1. If the volume is mapped to only 1 host, unmap it
2. If the volume was not mapped or mapped to multiple hosts, print a
warning but don't raise an exception
Change-Id: I0ec1c24adbdfbc f1c4868b4981a2e 2618d4b411c
Closes-Bug: #1244257