One installplan is having multiple clusterServiceVersionNames/Subscriptions

Solution Verified - Updated -

Environment

  • Red Hat Openshift Container Platform (RHOCP)
    • 4

Issue

  • One installplan is having multiple clusterServiceVersionNames/Subscriptions
  • While trying to install gitops-operators operator it is installing other operators as well
  • Installplan of a single operator includes clusterServiceVersionNames for other operators as well

Resolution

  • It is an expected behavior, Installplans will aggregate all of the subscriptions in a namespace. If there are other subscriptions in a namespace for other operators that have a version that hasn't been installed, they will be included in the new installplan.
  • Also certain operators like devworkspace by default will have multiple CSV's in their Installplans.

Diagnostic Steps

  • While trying to install gitops-operator the Installplan of it is installing other operators as well
$ oc -n openshift-operators get installplan  install-xxxxx -oyaml
apiVersion: operators.coreos.com/v1alpha1
kind: InstallPlan
metadata:
[...]
spec:
  approval: Manual
  approved: false
  clusterServiceVersionNames:
  - devworkspace-operator.v0.21.1
  - gatekeeper-operator-product.v0.2.5
  - devspacesoperator.v3.6.0-0.1685322634.p
  - openshift-gitops-operator.v1.7.0
  • Check if there are other uninstalled/failed subscriptions in the Namespace. In this case there were uninstalled subscription for devspaces, devworkspace-operator and gatekeeper-operator.
# oc get subs -n openshift-operators
NAME                                                                PACKAGE                       SOURCE             CHANNEL
devspaces                                                           devspaces                     redhat-operators   stable
devworkspace-operator-fast-redhat-operators-openshift-marketplace   devworkspace-operator         redhat-operators   fast
gatekeeper-operator-product                                         gatekeeper-operator-product   redhat-operators   stable
openshift-gitops-operator                                           openshift-gitops-operator     redhat-operators   latest

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.

Comments