Notifications

16 views

Issue

Symptoms

The AWS discovery fails with the error at IRE.

  • The  Cloud API trails give the error as below.
Error executing translator script :AWS Datacenter.List_Datacenters_Response_Processor
com.snc.cloud.mgmt.modules.cloudaccount.exception.CloudAccountException: There is no existing relationship between cmdb_ci_logical_datacenter and cmdb_ci_cloud_service_account
  • The Syslog tables show the IRE errors as below 
identification_engine : Output = {"items":[{"className":"cmdb_ci_cloud_service_account","operation":"UPDATE","sysId":"28c69f84dbbdff006f7a96888a9619cf","identifierEntrySysId":"Unknown","identificationAttempts":[]},{"className":"cmdb_ci_aws_datacenter","operation":"UPDATE","sysId":"b9aab0dadbceff00038fc4048a961993","identifierEntrySysId":"Unknown","identificationAttempts":[]},{"className":"cmdb_ci_network","operation":"UPDATE","sysId":"4898a2a2db0233406f7a96888a961927","identifierEntrySysId":"39480c290be62200639be0d425673abe",
"identificationAttempts":[{"identifierName":"Network Rule","attemptResult":"MATCHED","attributes":["object_id"],"searchOnTable":"cmdb_ci_network"}]},{"sysId":"Unknown",
"identifierEntrySysId":"Unknown","errors":[{"error":"METADATA_RULE_MISSING","message":"No containment or hosting rules defined for dependent class [cmdb_ci_cloud_subnet].

Add containment/hosting rules for '{\"className\":\"cmdb_ci_cloud_subnet\",\"values\":{\"primary_dns\":\"\",\"discovery_source\":\"ServiceNow\",\"name\":\"WCS-InternalLoadbalancerSubnet-C\",\"cidr\":\"172.16.10.0/24\",\"state\":\"available\",\"available_ip_count\":\"250\",\"object_id\":\"subnet-c5975d9d\"}}'"},{"error":"ABANDONED","message":"Too many other errors"}],"identificationAttempts":[]},
{"identifierEntrySysId":"Unknown","errors":[{"error":"INSERT_FAILED","message":"Insertion failed with error "}],
"identificationAttempts":[{"identifierName":"Availibilty Zone Rule","attemptResult":"NO_MATCH","attributes":["object_id"],"searchOnTable":"cmdb_ci_availability_zone"}]},

Release

  • Kingston P* & London P* 

Cause

  • The missing Containment and Hosting rules cause the IRE to fail 

Resolution

Refer below doc to add the Containment and Hosting rules according to the CI class in the error (As per above error, the issue is on cmdb_ci_cloud_subnet)

Additional Information

Sometimes, even after adding the required relations and containment hosting rules, the IRE still might fail with below errors.

Previous error: (Solved by adding the above relations) 

{"error":"METADATA_RULE_MISSING","message":"No containment or hosting rules defined for dependent class [cmdb_ci_cloud_subnet]

Current error:

"{"error":"METADATA_RULE_MISSING","message":"No containment or hosting rules defined for dependent class [cmdb_ci_cloud_subnet]", is not present in latest discovery.

Solution

  1. Log into the instance 
  2. Navigate >> cmdb_metadata_containment_list.do 
  3. Compare the number of rules available from the instance in issue and OOB or where the issue not appeared
  4. Copy all the missing rules from OOB to the instance in the issue.

Article Information

Last Updated:2019-08-13 19:44:36
Published:2019-07-19