1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/olm-status-viewing-cli.adoc
2020-10-13 20:48:21 +00:00

52 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * operators/admin/olm-status.adoc
// * support/troubleshooting/troubleshooting-operator-issues.adoc
[id="olm-status-viewing-cli_{context}"]
= Viewing Operator Subscription status using the CLI
You can view Operator Subscription status using the CLI.
.Prerequisites
* You have access to the cluster as a user with the `cluster-admin` role.
* You have installed the OpenShift CLI (`oc`).
.Procedure
. List Operator Subscriptions:
+
[source,terminal]
----
$ oc get subs -n <operator_namespace>
----
. Use the `oc describe` command to inspect a Subscription resource:
+
[source,terminal]
----
$ oc describe sub <subscription_name> -n <operator_namespace>
----
. In the command output, find the `Conditions` section for the status of Operator subscription condition types. In the following example, the `CatalogSourcesUnhealthy` condition type has a status of `false` because all available catalog sources are healthy:
+
.Example output
[source,terminal]
----
Conditions:
Last Transition Time: 2019-07-29T13:42:57Z
Message: all available catalogsources are healthy
Reason: AllCatalogSourcesHealthy
Status: False
Type: CatalogSourcesUnhealthy
----
[NOTE]
====
Default {product-title} cluster Operators are managed by the Cluster Version
Operator (CVO) and they do not have a Subscription object. Application Operators
are managed by Operator Lifecycle Manager (OLM) and they have a Subscription
object.
====