PowerMax Driver - Array capabilities extend fix

The _array_ode_capabilities_check during volume
extends is always returning negative.

Change-Id: If89afa620da38ad6cecf4c6ee433a06e46d0822b
Closes-Bug: 1881928
This commit is contained in:
odonos12 2020-06-03 16:07:55 +01:00
parent 307fccea4c
commit fa6f1898ae
2 changed files with 7 additions and 1 deletions

View File

@ -729,6 +729,8 @@ class PowerMaxCommonTest(test.TestCase):
self.common.extend_volume(volume, new_size)
mck_extend.assert_called_once_with(
array, device_id, new_size, ref_extra_specs, '1')
mck_ode.assert_called_once_with(
array, ref_extra_specs[utils.REP_CONFIG], True)
@mock.patch.object(provision.PowerMaxProvision, 'extend_volume')
@mock.patch.object(common.PowerMaxCommon, '_extend_legacy_replicated_vol')
@ -755,6 +757,8 @@ class PowerMaxCommonTest(test.TestCase):
mck_leg_extend.assert_called_once_with(
array, volume, device_id, volume.name, new_size,
ref_extra_specs, '1')
mck_ode.assert_called_once_with(
array, ref_extra_specs[utils.REP_CONFIG], True)
mck_extend.assert_not_called()
@mock.patch.object(provision.PowerMaxProvision, 'extend_volume')
@ -782,6 +786,8 @@ class PowerMaxCommonTest(test.TestCase):
mck_leg_extend.assert_called_once_with(
array, volume, device_id, volume.name, new_size,
ref_extra_specs, '1')
mck_ode.assert_called_once_with(
array, ref_extra_specs[utils.REP_CONFIG], True)
mck_extend.assert_not_called()
@mock.patch.object(common.PowerMaxCommon, '_array_ode_capabilities_check',

View File

@ -1092,7 +1092,7 @@ class PowerMaxCommon(object):
rep_config = ex_specs[utils.REP_CONFIG]
rdf_grp_no, __ = self.get_rdf_details(array, rep_config)
r1_ode, r1_ode_metro, r2_ode, r2_ode_metro = (
self._array_ode_capabilities_check(array, True))
self._array_ode_capabilities_check(array, rep_config, True))
if self.next_gen:
if self.utils.is_metro_device(rep_config, ex_specs):