Nutanix-discovery - no CIs created

Sven Brose
Tera Guru

Hello Community,
I have a question regarding  Nutanix Discovery:
We have setup the configuration like in documentation described.
https://www.servicenow.com/docs/bundle/vancouver-it-operations-management/page/product/service-mappi...

We go to the Rest-API via the URL "https://10.10.108.xxx:9440/, credentials are stored and we can also access the system. But Nutanix-CIs are not created.
Errormessage 

 Exception occurred while executing operation Nutanix API Query. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Cannot convert null to an object.

in Step 6 "Get Nutanix Clusters". 

Until Step 5 the pattern is working fine. Variable "all_prism_elements" is filled. Step  5 extracts two IP-Adresses from Clusters in variable "prism_element". From now they will be used to access the API and the pattern  tries to get cluster information via https://{prism_element}:9440/PrismGateway/services/rest/v2.0/clusters. Of course, that doesn't work because we can't access the cluster servers. The same applies to hosts and VMs (e.g. https://{prism_element}:9440/PrismGateway/services/rest/v2.0/hosts). Although the information is available via the REST API.
For testing I've changed the pattern ("Nutanix Components") and set the prism_element-variable to the IP of the Rest-API then cluster and hosts will be created.

Has anyone an idea for this behavior?

Thanks!

1 REPLY 1

omarmoumen
Tera Contributor

Hello Sven,

Please, did you resolve your problem?

When having one prism element, the Nutanix pattern is working fine and Nutanix CIs are discovered. When having multi Prism elements, the Json parsing is working in step 5 but the variable prism_element is empty

Can you help please?

Regards.