Error 500 on policies screen

This issue occurs on both a hybrid and full stack deployment of Netcool® Operations Insight®. The policies screen is showing an error when you run data ingestion and train commands to get data into Cassandra.

Problem

When running data ingestion and training to create policies in the Manage Policies screen, no policies are created in Cassandra. In the UI, the Manage Policies screen gives the error 500 and you are unable to proceed.

Resolution

To solve the issue, perform the following actions:
  1. Scale down the policyregistryservice deployment by running the command:
    oc scale deployment noi-ibm-hdm-analytics-dev-policyregistryservice -n noi --replicas=0
    
  2. Delete the pods from the following list:
    -ibm-hdm-analytics-dev-archivingservice
    -ibm-ea-asm-mime-eaasmmime
    -ibm-ea-mime-classification-eaasmmimecls
    -ibm-hdm-analytics-dev-trainer
    by running the command:
    oc delete pod <pod_name>
    Where <pod_name> needs to be substituted each time with the name of the pods from the list.
  3. Scale the policyregistryservice back to the original number of instances. Run the command:
    oc scale deployment noi-ibm-hdm-analytics-dev-policyregistryservice -n noi --replicas=2