Orphan rules are getting removed automatically in CI Class Manager


Description

Orphan rules for below classes are getting removed automatically in CI Class Manager. E.g. 

1. Class Name: SAP System (cmdb_ci_sap_sid)
2. Class Name: Cloud Functions (cmdb_ci_cloud_function)

You may have multiple times tried created Orphan rules in above class however it got disappeared after a refresh. For example, Below Orphan rules are getting removed automatically in CI Class Manager.

Class Name: SAP System (cmdb_ci_sap_sid)

Created below Orphan rule however got disappeared after a refresh.

Class Name: Cloud Functions (cmdb_ci_cloud_function)

Created below Orphan rule however got disappeared after a refresh.

 

 

 

Cause

Scope selection issue.

Resolution

When this issue reproduced you may notice below error in the system logs,


Error message:- Invalid 'Class' selected on the CMDB Health Orphan Rule record. The 'SAP System' table is in application 'Discovery and Service Mapping Patterns', but the current application is 'Global'.: no thrown error



This basically signifies that the class which we have chosen is not a part of the Global scope which we belongs to while creating the Rule at our end.. Rather this specific table and class comes with the Plugin "Discovery and Service Mapping Patterns'. If you would like to know about this plugin you can go to the plugin from Navigator and search for this.


The SAP system class is installed on your system with this plugin activations not by the CMDB plugin which is in Global scope. Hence it is not allowing you to create the rule in different scope.

As a resolution I have changed the Scope from "Global" to "Discovery and Service Mapping Patterns" and then I have tried creating the same Orphan Rule again and this time it's successful.