Operator installation failed. Subscription object stays in UpgradePending but the InstallPlan it associated with isn’t installing

Solution Unverified - Updated

Environment

  • Red Hat OpenShift Container Platform
    • 4.4.x

Issue

  • After deploying several operators into the namespace, then removing and adding an operator can get blocked by the previous installplan
  • Hence, a user can't recreate the operator if the installplan already exist in the namespace
  • A couple of operators were seen blocked at upgradePending forever

Resolution

Diagnostic Steps

# oc describe sub <subscription_name> 
# oc describe installplan <installplan_name>
SBR
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.