DS8K: correct the return value for initialize_connection method
In patch https://review.openstack.org/#/c/564724/, the comparison operation is case sensitive and DS8K driver converts the return host wwpn value to uppercase for initialize_connection method so this caused os_brick not to discover the volume for the host. Change-Id: Iffc30ac75851436a1b0aed7099656d4076ff687a Closes-Bug: 1776134
This commit is contained in:
parent
aa1901279e
commit
edbc2956a5
|
@ -60,7 +60,7 @@ TEST_SOURCE_DS8K_IP = '1.1.1.1'
|
|||
TEST_TARGET_DS8K_IP = '2.2.2.2'
|
||||
TEST_SOURCE_WWNN = '5000000000FFC111'
|
||||
TEST_TARGET_WWNN = '5000000000FFD222'
|
||||
TEST_SOURCE_WWPN_1 = '10000090FA3418BC'
|
||||
TEST_SOURCE_WWPN_1 = '10000090fa3418bc'
|
||||
TEST_SOURCE_WWPN_2 = '10000090FA3418BD'
|
||||
TEST_SOURCE_IOPORT = 'I0001'
|
||||
TEST_TARGET_IOPORT = 'I0002'
|
||||
|
@ -2707,6 +2707,12 @@ class DS8KProxyTest(test.TestCase):
|
|||
|
||||
map_data = self.driver.initialize_connection(volume, TEST_CONNECTOR)
|
||||
self.assertEqual(int(TEST_LUN_ID), map_data['data']['target_lun'])
|
||||
self.assertTrue(
|
||||
list(map_data['data']['initiator_target_map'].keys())[0] in
|
||||
[TEST_SOURCE_WWPN_1, TEST_SOURCE_WWPN_2])
|
||||
self.assertTrue(
|
||||
list(map_data['data']['initiator_target_map'].keys())[1] in
|
||||
[TEST_SOURCE_WWPN_1, TEST_SOURCE_WWPN_2])
|
||||
|
||||
def test_initialize_connection_of_eckd_volume(self):
|
||||
"""attach a ECKD volume to host."""
|
||||
|
|
|
@ -662,7 +662,7 @@ class DS8KCommonHelper(object):
|
|||
'target_lun': int(lun_id, 16),
|
||||
'target_wwn': target_ports,
|
||||
'initiator_target_map': {initiator: target_ports for
|
||||
initiator in host_wwpn_set}
|
||||
initiator in connector['wwpns']}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue