ERROR: 13303866: Associating the specified SnapMirror policy with this SnapMirror relationship is not supported
Applies to
- ONTAP 9.7
- ONTAP 9.8
- ONTAP 9.9
- ONTAP 9.10
- REST API
Issue
- Error is encountered when trying to create a new SnapMirror relationship over REST API while also trying to apply a SnapMirror policy during the creation:
DEBUG: SnapmirrorRelationship({'destination': {'path': 'volume1:misc1'}, 'source': {'path': 'vserver_dr:misc1'}, 'policy': {'name': 'volume1'}})
ERROR: 13303866: Associating the specified SnapMirror policy with this SnapMirror relationship is not supported.
- Used REST API code:
snapmirror_dict = {
'source': {'path': f'{svmname}_dr:{volname}'},
'destination': {'path': f'{svmname}_vault:{volname}'},
'policy': {'name': f'{svmname}_vault'},
#'state': 'snapmirror',
}
snapmirror = SnapmirrorRelationship.from_dict(snapmirror_dict)
snapmirror.set_connection(connection=vault_connection)
debug(snapmirror)
snapmirror.post()