Operator shows UpgradePending status - OLM known issue

An operator continuously shows UpgradePending status.

Symptom

In OpenShift Container Platform version 4.4, when you reinstall common services, the service operators (operands) are not installed.

The service operators continuously show UpgradePending status.

Cause

This is a known issue in the Operator Lifecycle Manager (OLM) version 4.4.

The service operators are not installed because they are blocked by the previous installplan.

The previous installplan is removed only when all the subscriptions from the installplan are deleted from the cluster.

Resolving the problem

Complete these steps to remove the subscriptions.

  1. Check the operators that are in UpgradePending status.

    1. Log in to your OpenShift Container Platform cluster console.
    2. Switch to the ibm-common-services namespace.
    3. Click Operators > Installed Operators.
    4. Identify the operators that show UpgradePending status.
  2. Delete the installplan of the operators that are in UpgradePending status.

    1. Click Home > Explore.
    2. Type installplan in the Filter by kind text box. The search results display the InstallPlan kind.
    3. Click InstallPlan.
    4. Switch to the ibm-common-services namespace by selecting it from the Project drop-down list.
    5. Select the Instances tab.
    6. Under Components, find the ClusterServiceVersion (CSV) of the operator that was in UpgradePending status.
    7. Note all the operators that are part of the InstallPlan of the operator CSV.
    8. Delete the InstallPlan of the operator CSV. Click the overflow menu icon and select Delete InstallPlan.
      Note: If you are using CLI to delete the InstallPlan, you must delete all the CSVs and Subscriptions that are associated with the InstallPlan.
    9. Uninstall all the operators that you noted earlier.
      1. Click Operators > Installed Operators.
      2. For the operator that you are uninstalling, click the overflow menu icon and select Uninstall Operator.

The Operand Deployment Lifecycle Manager reinstalls the operators that you deleted. The services are not impacted during this time.