The Kubernetes Pattern is missing a deletion strategy for OpenShift Project


Description

Issue:

The Collect OpenShift info extension of the Kubernetes pattern discovers the OpenShift components of the Kubernetes deployment.

The extension creates the relationship cmdb_ci_openshift_project << Contains:: Contained by >> cmdb_ci_kubernetes_cluster.

However, there is no deletion strategy for this relationship.


Impact:

OpenShift Project class CI's that are no longer discovered or existing on customers kubernetes/openshift platform are still populated to their CMDB as Installed and Operational.

Steps to Reproduce

1.Login into application.
2.Navigate to sa_ci_to_pattern table.
3.Search Kubernetes in 'Pattern' column.

Actual:
9 out of 10 openShift components have deletion strategy except cmdb_ci_openshift_project.

Expected:
Add deletion strategy for cmdb_ci_openshift_project like other openshift components.

Workaround

This Issue has been fixed and is available in the ServiceNow Store - ITOM - Discovery and Service Mapping June 2021 Release.


If you're unable to upgrade to this version you can add a deletion strategy for cmdb_ci_openshift_project like other OpenShift components.

ServiceNow Documentation: Set a deletion strategy

1.Login into application.
2.Navigate to sa_ci_to_pattern table.
3.Search Kubernetes in 'Pattern' column and Add deletion strategy for cmdb_ci_openshift_project like other openshift components.


Related Problem: PRB1488724