Merge "NetApp ONTAP: Fix type error exception in get_volume_state"

This commit is contained in:
Zuul 2022-09-16 18:53:22 +00:00 committed by Gerrit Code Review
commit 7809711a22
3 changed files with 12 additions and 3 deletions

View File

@ -748,7 +748,7 @@ class NetAppCDOTDataMotionMixinTestCase(test.TestCase):
fakes.PROVISIONING_OPTS['size'],
volume_type='dp', **expected_prov_opts)
mock_volume_state.assert_called_with(
flexvol_name=self.dest_flexvol_name)
name=self.dest_flexvol_name)
mock_dedupe_enabled.assert_not_called()
mock_compression_enabled.assert_not_called()
@ -812,7 +812,7 @@ class NetAppCDOTDataMotionMixinTestCase(test.TestCase):
fakes.PROVISIONING_OPTS['size'],
volume_type='dp', **expected_prov_opts)
mock_volume_state.assert_called_once_with(
flexvol_name=self.dest_flexvol_name)
name=self.dest_flexvol_name)
mock_dedupe_enabled.assert_called_once_with(
self.dest_flexvol_name)
mock_compression_enabled.assert_called_once_with(

View File

@ -508,7 +508,7 @@ class DataMotionMixin(object):
def _wait_volume_is_online():
volume_state = dest_client.get_volume_state(
flexvol_name=dest_flexvol_name)
name=dest_flexvol_name)
if volume_state and volume_state == 'online':
raise loopingcall.LoopingCallDone()

View File

@ -0,0 +1,9 @@
---
fixes:
- |
NetApp ONTAP `bug #1958245
<https://bugs.launchpad.net/cinder/+bug/1958245>`_: In an ONTAP
flexgroup replication environment, snapmirror creation would
succeed but a driver bug caused an error message to be logged
for the cinder-volume service. The issue has been corrected in
this release.