diff --git a/cinder/tests/unit/volume/drivers/ibm/test_xiv_proxy.py b/cinder/tests/unit/volume/drivers/ibm/test_xiv_proxy.py index f07f65864b6..e823b7b96a2 100644 --- a/cinder/tests/unit/volume/drivers/ibm/test_xiv_proxy.py +++ b/cinder/tests/unit/volume/drivers/ibm/test_xiv_proxy.py @@ -1453,8 +1453,8 @@ class XIVProxyTest(test.TestCase): {}, group_obj, [volume], cgsnap_group_obj, [snapshot], None, None) - p.ibm_storage_cli.cmd.cg_create.assert_called_once_with(cg=group_obj, - pool='WTF32') + p.ibm_storage_cli.cmd.cg_create.assert_called_once_with( + cg=p._cg_name_from_id(group_obj.id), pool='WTF32') self.assertEqual('available', model_update['status']) diff --git a/cinder/volume/drivers/ibm/ibm_storage/xiv_proxy.py b/cinder/volume/drivers/ibm/ibm_storage/xiv_proxy.py index b1e0460c989..c0c29501b3e 100644 --- a/cinder/volume/drivers/ibm/ibm_storage/xiv_proxy.py +++ b/cinder/volume/drivers/ibm/ibm_storage/xiv_proxy.py @@ -1775,7 +1775,7 @@ class XIVProxy(proxy.IBMStorageProxy): LOG.debug("Creating from cgsnapshot %(cg)s", {'cg': self._cg_name_from_group(cgsnapshot)}) try: - self._create_consistencygroup(context, group) + self._create_consistencygroup(context, cgname) except Exception as e: LOG.error( "Creating CG from cgsnapshot failed: %(details)s",