CMDB sync of almost all hosts/devices fails with the following error: <CI Name>: Failed creation of 1 non-shared relationship: Failed creation of BMC_InIPSubnet BMC_IPEndpoint:<IP> - BMC_IPConnectivitySubnet:<subnet> : Violates relationship cardinality (120039)
Destroying and re-scanning the hosts/devices does not resolve the error. When running a full resync to the same dataset or to an empty/new dataset, the same "Violates relationship cardinality (120039)" error is reported for many CIs: Request (400): ERROR (120039): The operation violates the cardinality constraint of the relationship. : 1-Many cardinality will be violatedCannot create relationship instance because right endpoint is already in another relationship.Relationship Instance Id: <ID> During the resync process, the following timeout error is also reported: cmdb_sync.rest_exporter: ERROR: Failed POST http://<CMDB Server>:8008/api/cmdb/v1.0/instances/BMC.ADDM5: HTTP Error Service Unavailable (503): ERROR (93): Timeout during data retrieval due to busy server -- retry the operation. Please contact administrator if the problem persists
|
During the full resync, when creating the relationship CIs (in batches of 100), the Discovery connection fails on the client API timeout because the AR server is busy, and a timeout error is reported. However, a few of these relationships do get created in the CMDB. When this happens, the CMDB transformer log reports: cmdb_sync.resync: INFO: <CMDBServer> - New: Sync creation of 91386 relationships
cmdb_sync.rest_exporter: INFO: Sync CREATE 100 relationships to http://<CMDBServer>:8008 (0a9d683989698d8866160a610e013941 : <CMDBServer> - New). cmdb_sync.rest_exporter: ERROR: Failed POST http://<CMDBServer>:8008/api/cmdb/v1.0/instances/BMC.ADDM5: HTTP Error Service Unavailable (503): ERROR (93): Timeout during data retrieval due to busy server -- retry the operation. Please contact administrator if the problem persists
Request (400): ERROR (120039): The operation violates the cardinality constraint of the relationship. : 1-Many cardinality will be violatedCannot create relationship instance because right endpoint is already in another relationship.Relationship Instance Id: OIGAA5V0FF7DEAQSHWALQSHWALLF5R
cmdb_sync.resync: INFO: <CMDBServer> - New: End task RESYNC_TASK_COMMIT: state = RESYNC_STATE_COMPLETED message = 'Processed 72390 CIs, 110805 relationships (duration 0:26:43)' errors = [CMDBSyncCORBA.ErrorMessage(time='<>', short_message='muccmdbi02 - New: Failed Creation of <> relationships',
|