Merge "IBM-Storage: group-create-from-src fail with error"

This commit is contained in:
Jenkins 2017-07-19 17:35:56 +00:00 committed by Gerrit Code Review
commit 8a6f4fd00e
2 changed files with 3 additions and 3 deletions

View File

@ -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'])

View File

@ -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",