Getting Error, "In payload no relations defined for dependent class".

Patrick Gonzal2
Mega Contributor

I'm having difficulty discovering an IBM Z/OS mainframe (ACF2).  Below is the complete error message I'm seeing in the Pattern Log. 

I originally thought it was a permissions issue with the SSH cred but if I run Pattern Designer (out of the box IBM zOS Server pattern) in debug mode I can connect to the device in question and the commands are returning data and updating the File System, IP Address, and Network Adapter tables, just not the IBM zOS Server table. The same pattern works perfectly with another mainframe (RACF) environment in our CMDB so I'm a bit lost on what the issue might be. 

Any help would be greatly appreciated. Please let me know if more information is needed. 

In payload no relations defined for dependent class [cmdb_ci_ip_address] that matches any containment/hosting rules: [cmdb_ci_ip_address >> Owned by >> cmdb_ci_hardware,cmdb_ci_ip_address >> Owned by >> cmdb_ci_cloud_db_cluster,cmdb_ci_ip_address >> Owned by >> cmdb_ci_rhv_vm_instance,cmdb_ci_ip_address >> Owned by >> cmdb_ci_cloud_database,cmdb_ci_ip_address >> Owned by >> cmdb_ci_cloud_load_balancer,cmdb_ci_ip_address >> Owned by >> cmdb_ci_cloud_webserver]. Add appropriate relations in payload for '{"className":"cmdb_ci_ip_address","values":{"discovery_source":"ServiceNow","install_status":"1","netmask":"0.0.0.0","mac_address":"XXXXXXXXXXXX","ip_address":"XX.XXX.X.XX","sys_class_name":"cmdb_ci_ip_address"},"internal_id":"8d5e06f17304f850897720bab3f0714d","sys_object_source_info":{"source_name":"ServiceNow"},"settings":{},"sys_ire_info":{"ire_received_time":"2021-05-11 20:23:07"}}',Too many other errors,In payload no relations defined for dependent class [cm

2 REPLIES 2

Akshatha Ballal
Tera Expert

No relations defined for dependent class that matches any hosting/containment rule usually means the associated dependent class data is not present/captured in the pattern to successfully create the CI.

 

If you go to CI Class manager, type IP address and study its dependent relationship, you can see that it is dependent on one of the four classes- Hardware, Cloud DB, cloud LB or Cloud Webserver with the relationship Owns.

find_real_file.png

 

 

This means that in order to populate the IP address, there should already be a CI 
with one of the four class populated in the cmdb with a contains owns/owned by
connection/relation to
IP Address, then only the pattern would be successfully executed.
So, in your pattern see the step and check if IP address connection/creation is getting captured correctly. 
On checking what is posted here, I don't see the relationship captured for the IBM zOS Server table.
The IP and mac captured also seems to be wrong. Check if the server has a valid IP address and why it is not returned in servicenow.

Please refer this KB article
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725816

nicks8850
Tera Expert

Did it work?