]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Do not use prefix to lookup host in Storwize/SVC.
authorAvishay Traeger <avishay@il.ibm.com>
Thu, 7 Mar 2013 17:18:54 +0000 (19:18 +0200)
committerAvishay Traeger <avishay@il.ibm.com>
Mon, 11 Mar 2013 09:09:41 +0000 (11:09 +0200)
commite342ff4b509a4184bfa984b467e9cd79b53ed9af
treeb860335eb71ea1e9c71be79d541788ba99dde774
parent4c52cd0b020c8221185454a87d6d03d732d2c2f4
Do not use prefix to lookup host in Storwize/SVC.

Currently, the Storwize/SVC driver creates a host name prefix for host
objects on the back-end, and uses that to look up hosts. However, if a
host was already created with a different name (for example, manually
by an admin), the host creation operation will fail, as a host with
that connection information already exists. Instead, we look up a host
based on available connection information.

Fixes bug: 1149072

Change-Id: I336dbea85bfaf928a550a15d177e2b9b0ffd38bf
cinder/tests/test_storwize_svc.py
cinder/volume/drivers/storwize_svc.py