ServiceMapping connection issue

angel_jimenez
Mega Expert

Hi community!

When we launch Service Mapping, we are getting the following error:

<<Missing pattern-based outgoing connections from load balancer. Please check the correctness of the incoming connection>>

And the resulting map is the following: (see attachment map.jpg)

Checking the discovery log we see the following: (see attachment discovery_log.jpg)

Furthermore, checking for the step (Connecting section using CMDB data) we get to the following log:

#####################################################################

get service name

2019-06-19 08:32:50: setAttribute(name,plataformas-inet.adc.santalucia.net)

2019-06-19 08:32:50: Execution time: 0 ms

get configuration

2019-06-19 08:32:50: all commands failed on host: 192.168.244.31. command type: SHELL_COMMAND. command track:

ShellCommand\(Relevant),

WindowsShellCommand\(NotRelevant),; input:

2019-06-19 08:32:50: Execution time: 0 ms

keep only our vserver config

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

extract our afex

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

get our pools or nodes info

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

get our pools

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

get our members

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

parse members and build connections table

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

get servers config

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

merge tables

2019-06-19 08:32:50: setAttribute(connectionstmp,[])

2019-06-19 08:32:50: setAttribute(connections,[])

2019-06-19 08:32:50: Execution time: 0 ms

if connections empty get node connections

2019-06-19 08:32:50: setAttribute(connectionstmp,[])

2019-06-19 08:32:50: setAttribute(connections,[])

2019-06-19 08:32:50: Execution time: 0 ms

Create connection

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

verify no connections

2019-06-19 08:32:50: Execution time: 0 ms

filter out all connections with non operational status and without ip address

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

keep all connections with port 0 empty * or null on seperate table

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

remove all connections with port 0 empty * or null on seperate table

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

replace empty ports with real ports

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

union both tables

2019-06-19 08:32:50: setAttribute(connectionstmp,[])

2019-06-19 08:32:50: setAttribute(connections,[])

2019-06-19 08:32:50: Execution time: 0 ms

Create connection

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

verify no connections

2019-06-19 08:32:50: Execution time: 0 ms

get service name

2019-06-19 08:32:50: all commands failed on host: 192.168.244.31. command type: SHELL_COMMAND. command track:

ShellCommand\(Relevant),

WindowsShellCommand\(NotRelevant),; input:

2019-06-19 08:32:50: Execution time: 0 ms

get group name

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

get  members alias

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

get servers config

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

merge tables

2019-06-19 08:32:50: setAttribute(connectionstmp,[])

2019-06-19 08:32:50: setAttribute(connections,[])

2019-06-19 08:32:50: Execution time: 0 ms

Create connection

2019-06-19 08:32:50: Step condition is false. step not executed.

2019-06-19 08:32:50: Execution time: 0 ms

#####################################################################

 

How can we solve this issue? What does mean the error showed by ServiceMapping???

 Thanks!

1 ACCEPTED SOLUTION

Hi Michael!

Using the debug option, we have been able to identify that the problem was that we had no valid SSH credentials to run following commands in the A10 Load Balancer on top of the ServiceMapping:

  1. "show config"
  2. "show slb virtual-server | include " + $ip_address

Adding valid SSH credentials in "discovery_credentials" table in ServiceNow and running again ServiceMapping, we get the correct map.

View solution in original post

2 REPLIES 2

Michael Skov2
Kilo Guru

It means that Service Mapping cant create the outgoing connections from the load balancer.

1. There should be a red step in the log, where it fails

2. Try opening the pattern in debug for the load balancer in question, and then go through the steps to see where it fails

Hi Michael!

Using the debug option, we have been able to identify that the problem was that we had no valid SSH credentials to run following commands in the A10 Load Balancer on top of the ServiceMapping:

  1. "show config"
  2. "show slb virtual-server | include " + $ip_address

Adding valid SSH credentials in "discovery_credentials" table in ServiceNow and running again ServiceMapping, we get the correct map.