]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
EMC VMAX - get_short_host_name not called in find_device_number
authorHelen Walsh <helen.walsh@emc.com>
Tue, 1 Dec 2015 22:38:33 +0000 (22:38 +0000)
committerHelen Walsh <helen.walsh@emc.com>
Tue, 15 Dec 2015 02:08:27 +0000 (02:08 +0000)
commit86c28cd8ee19fa17f64d80c8929f73ea3f6aa389
tree0c30ee439888c87ac5a7072d1c3b4925bc410507
parentc4f8fb865c4d4fa511846282d3cf93d0982eebff
EMC VMAX - get_short_host_name not called in find_device_number

The get_short_host_name needs to be called in find_device_number.
There are 2 reasons for this:
1. Sometimes the full host name is contained in the
   connector['host'] object.
2. When the short host name still exceeds 38 characters,
   it must be truncated, in order to guarantee a "contains string"
   match between the host and the masking view name.

Change-Id: I9631f33eafe2cfb64388d8e19c6ed8d1e948a6fa
Closes-Bug: #1520635
cinder/tests/unit/test_emc_vmax.py
cinder/volume/drivers/emc/emc_vmax_common.py
cinder/volume/drivers/emc/emc_vmax_fc.py
cinder/volume/drivers/emc/emc_vmax_iscsi.py