Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: AWS Datacenter identification, error: Match step predicate is not matched.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2020 07:37 AM
Hi team,
I am facing this issue while selecting Schedule discovery --> Discovery Manager/cloud discovery --> New --> Add account--> Select Datacenter (Error) .
Identification sections in pattern failed: section: AWS Datacenter identification, error: Match step predicate is not matched.
Logs for AWS Datacenter identification
{
"name" : "Discovery Log",
"status" : "FAILURE",
"children" : [ {
"name" : "Pre Pattern Execution",
"id" : "pre_pattern_execution_script",
"status" : "SUCCESS",
"level" : 2,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Getting pre pattern execution data generated by script."
}, {
"message" : "2020-05-08 13:58:39: setAttribute(service_account,........)\r\nThe max object size reached the maximum limit of [1000]. To adjust this use the mid property mid.sm.discolog.max_object_size.",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(hosted_relation_type,Hosted on::Hosts)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(hosted_relation_id,5f985e0ec0a8010e00a9714f2a172815)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(service_account_id,c8bce51b1ba01010153ced3abc4bcb04)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(pattern_runtime_mode,horizontal)",
"severity" : "DEBUG"
} ],
"type" : "NONE"
}, {
"name" : "Selecting Pattern for Execution",
"id" : "set_pattern_name",
"status" : "SUCCESS",
"level" : 2,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Pattern: Amazon AWS Datacenter discovery"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(pattern,Amazon AWS Datacenter discovery)",
"severity" : "DEBUG"
} ],
"type" : "NONE"
}, {
"name" : "AWS Datacenter identification",
"status" : "TERMINATION",
"children" : [ {
"name" : "Create Service Account From Input Params",
"status" : "SUCCESS",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Library 'Create Service Account From Input Params' executing",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Create service account table if doesn't exist",
"status" : "NOP",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Step condition is false. step not executed.",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Execution time: 0 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Add credentials and account ID to service account table if don't exist",
"status" : "NOP",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Step condition is false. step not executed.",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Execution time: 16 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Populate cmdb_ci_cloud_service_account",
"status" : "SUCCESS",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: setAttribute(cmdb_ci_cloud_service_account,........)\r\nThe max object size reached the maximum limit of [1000]. To adjust this use the mid property mid.sm.discolog.max_object_size.",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Execution time: 0 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Get AWS Host",
"status" : "SUCCESS",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: setAttribute(awsHost,signin.aws.amazon.com/console)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Execution time: 0 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Set Query URL",
"status" : "SUCCESS",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: setAttribute(amazonQueryURL,https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Execution time: 0 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Get AWS regions",
"status" : "MIXED",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: setAttribute(headers,)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(method,GET)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(formatted,true)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(arrayName,rest_resp_region)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(body,)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(url,https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(body,null)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(headers,null)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Exception occurred while executing operation Cloud REST - add response to context. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Invalid parameter for cloud request: Invalid URL: https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15. Check the URL (script_include:AwsApiCommand; line 245). Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Invalid parameter for cloud request: Invalid URL: https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15. Check the URL (script_include:AwsApiCommand; line 245)",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: Execution time: 93 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
}, {
"name" : "Verify if we have any valid response",
"status" : "TERMINATION",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Execution time: 0 ms",
"severity" : "DEBUG"
} ],
"type" : "STEP_TYPE"
} ],
"level" : 2,
"type" : "IDENTIFICATION_SECTION_TYPE"
}, {
"name" : "discovery",
"id" : "discovery",
"status" : "FAILURE",
"children" : [ {
"name" : "Check Processing Success",
"id" : "Check Processing Success",
"status" : "FAILURE",
"level" : 3,
"messages" : [ {
"message" : "2020-05-08 06:58:40: Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: AWS Datacenter identification, error: Match step predicate is not matched. "
} ],
"type" : "NONE"
} ],
"level" : 2,
"type" : "NONE"
} ],
"level" : 0,
"messages" : [ {
"message" : "2020-05-08 13:58:39: Task is running on MID server AWS_MID",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(cmdb_ci_cloud_service_account,[{}])",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(cmdb_ci_aws_datacenter,[{}])",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(cmdb_ci_cloud_service_account,[{}])",
"severity" : "DEBUG"
}, {
"message" : "2020-05-08 13:58:39: setAttribute(cmdb_ci_aws_datacenter,[{}])",
"severity" : "DEBUG"
} ],
"type" : "NONE"
}
Regards,
Swapnil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2020 08:52 PM
Hi all,
I also see the same error in AWS Datacenter identification:
>Exception occurred while executing operation Cloud REST - add response to context. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Invalid parameter for cloud request: Invalid URL: https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15. Check the URL (script_include:AwsApiCommand; line 263). Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Invalid parameter for cloud request: Invalid URL: https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15. Check the URL (script_include:AwsApiCommand; line 263)
"ec2.signin.aws.amazon.com" is clearly wrong.
"ec2" should be replaced with aws account id digit.
I already set mid.sm.discolog.max_object_size to 50,000.
Did anybody solve this error?
Best Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2020 10:42 PM
Hi Swapnil and all,
I cleared this error:
>Invalid URL: https://ec2.signin.aws.amazon.com/console/?Action=DescribeRegions&Version=2016-11-15.
I changed URL in the previous screen "Add account"
from https://(Account ID).signin.aws.amazon.com/console
to amazonaws.com
I referred https://docs.servicenow.com/bundle/orlando-it-operations-management/page/product/discovery/concept/aws-cloud-discovery.html.
>https://ec2.amazonaws.com/?Action=DescribeRegions&Version=2016-11-15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 02:48 AM
Hi Kody, don't fill in a url in screen 'Add account'.
cf. instruction: https://www.youtube.com/watch?v=0dka2AW09qI
worked for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2020 04:53 AM
check service account is associated with proper credentials and service accountID.