self.mox.ReplayAll()
ip = self.driver._get_iscsi_ip('fakehost')
- self.assertEqual(ip, '10.10.220.253')
+ self.assertEqual(ip, '10.10.220.252')
def test_get_iscsi_ip(self):
self.flags(lock_path=self.tempdir)
[{'portPos': {'node': 1, 'slot': 8, 'cardPort': 2},
'hostname': 'bar', 'active': True},
{'portPos': {'node': 1, 'slot': 8, 'cardPort': 1},
- 'hostname': 'fakehost', 'active': True},
+ 'hostname': 'bar', 'active': True},
{'portPos': {'node': 1, 'slot': 8, 'cardPort': 2},
'hostname': 'bar', 'active': True},
{'portPos': {'node': 1, 'slot': 8, 'cardPort': 2},
- 'hostname': 'bar', 'active': True}]})
+ 'hostname': 'fakehost', 'active': True}]})
VLUNS3_RET = ({'members':
[{'portPos': {'node': 1, 'slot': 8, 'cardPort': 2},
1.2.1 - Synchronized extend_volume method.
1.2.2 - Added try/finally around client login/logout.
1.2.3 - log exceptions before raising
+ 1.2.4 - Fixed iSCSI active path bug #1224594
"""
- VERSION = "1.2.3"
+ VERSION = "1.2.4"
def __init__(self, *args, **kwargs):
super(HP3PARISCSIDriver, self).__init__(*args, **kwargs)
# see if there is already a path to the
# host, if so use it
for vlun in vluns['members']:
- if vlun['active'] == 'true':
+ if vlun['active']:
if vlun['hostname'] == hostname:
# this host already has a path, so use it
nsp = self.common.build_nsp(vlun['portPos'])