Unable to add ONTAP cluster belonging to a MetroCluster due to duplicate entry
Applies to
- SnapCenter Server (SC)
- MetroCluster (MC)
Issue
Unable to add ONTAP cluster in SC due to a duplicate entry error:
DEBUG SMCore_79840 PID=[4420] TID=[28] invoking command - Invoke-NcSystemApi - cluster application record
DEBUG SMCore_79840 PID=[4420] TID=[28] ex.Message : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: A cluster
application-record entry of this name already exists.
DEBUG SMCore_79840 PID=[4420] TID=[28] No retry condition match found or max retry reached. Throwing error The running command stopped because the preference variable "ErrorActionPreference" or
common parameter is set to Stop: A cluster application-record entry of this name already exists.
DEBUG SnapManagerWeb_79840 PID=[8260] TID=[55] Storage system [cluster_name_FQDN], type = DataOntapCluster, IsManagedIndependently = True, IsMetroClusterSystem = True
INFO SnapManagerWeb_79840 PID=[8260] TID=[55] Register local cluster [cluster_name] to peer cluster [peer_cluster_name] map.
ERROR SnapManagerWeb_79840 PID=[8260] TID=[55] System.Data.Entity.Infrastructure.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.
Data.Entity.Core.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Devart.Data.MySql.MySqlException: Duplicate entry '<SVM_name>' for key 'uc_svm_name'