Node drain hangs

When completing maintenance tasks, Netcool® Operations Insight® PodDisruptionBudgets (PDBs) block the draining of worker nodes on Red Hat® OpenShift®.

Problem

The draining of worker nodes is blocked. A message similar to the following is displayed when pod eviction fails:
Cannot evict pod as it would violate the pod's disruption budget.

Resolution

The Netcool Operations Insight PDBs must be deleted by running the following commands before draining the worker node:
oc get pdb | grep <helm-release>
oc delete pdb -l release=noi-release-name --all
The oc get pdb command returns the PDB names, for example: noi-cassandra-pdb. Each PDB must be deleted with the oc delete pdb command.