Dell SC: Specify High Availability for create replication

No SyncMode was being specified. This defaults the SyncMode to
High Consistency. This patch changes it to High Availability.

Change-Id: Idaa8f4f9a4d1914da99caeb8a49e4740e4d9e68b
Closes-Bug: #1596680
This commit is contained in:
Tom Swanson 2016-06-27 14:23:04 -05:00
parent bffc3030da
commit 70b039cfe6
2 changed files with 3 additions and 0 deletions

View File

@ -6100,6 +6100,7 @@ class DellSCSanAPITestCase(test.TestCase):
'StorageCenter': ssn,
'ReplicateActiveReplay': False,
'Type': 'Asynchronous',
'SyncMode': 'HighAvailability',
'DestinationVolumeAttributes':
{'CreateSourceVolumeFolderPath': True,
'Notes': notes,
@ -6165,6 +6166,7 @@ class DellSCSanAPITestCase(test.TestCase):
'StorageCenter': ssn,
'ReplicateActiveReplay': False,
'Type': 'Asynchronous',
'SyncMode': 'HighAvailability',
'DestinationVolumeAttributes':
{'CreateSourceVolumeFolderPath': True,
'Notes': notes,

View File

@ -2703,6 +2703,7 @@ class StorageCenterApi(object):
# Have to replicate the active replay.
payload['ReplicateActiveReplay'] = replicate_active or synchronous
payload['Type'] = 'Synchronous' if synchronous else 'Asynchronous'
payload['SyncMode'] = 'HighAvailability'
destinationvolumeattributes = {}
destinationvolumeattributes['CreateSourceVolumeFolderPath'] = True
destinationvolumeattributes['Notes'] = self.notes