Bug 1669028 - Couldnt view all packagemanifests
Summary: Couldnt view all packagemanifests
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks: 1664187
TreeView+ depends on / blocked
 
Reported: 2019-01-24 07:36 UTC by Jaspreet Kaur
Modified: 2019-03-12 14:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-28 06:35:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaspreet Kaur 2019-01-24 07:36:27 UTC
Description of problem: When running below command we could only view packageserver :


oc get packagemanifests
NAME            AGE
packageserver   1d


However, we couldnt see others unless running this command :

oc get packagemanifests --all-namespaces 
NAMESPACE   NAME                    AGE
            couchbase-enterprise    1d
            dynatrace-monitoring    1d
            mongodb-enterprise      1d
            automationbroker        1d
            cluster-logging         1d
            descheduler             1d
            etcd                    1d
            federationv2            1d
            jaeger                  1d
            metering                1d
            prometheus              1d
            svcat                   1d
            templateservicebroker   1d
            amq-streams             1d
            packageserver           1d

But since we couldnt view cluster-logging we are unable to utilize it for installing logging  and hence when checking installplan after creating subscription like below we couldnt see anything :

apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  generateName: cluster-logging-
  namespace: openshift-logging
spec:
  source: rh-operators
  sourceNamespace: openshift-operator-lifecycle-manager
  name: cluster-logging
  startingCSV: clusterlogging.v0.0.1
  channel: preview

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results: Could only see packageserver


Expected results: Should be able to view all packagemanifests


Additional info:

Comment 3 Jian Zhang 2019-01-28 06:35:16 UTC
Jaspreet,

> But since we couldnt view cluster-logging we are unable to utilize it for installing logging  and hence when checking installplan after creating subscription like below we couldnt see anything :

I'd suggest you can install the cluster-logging on the Web console. Click "Catalog"->"Operator Hub"->"Show Community Operators"->"Cluster Logging".
I installed the "Cluster Logging" successfully. Like below:
mac:aws-ocp jianzhang$ oc get sub
NAME              PACKAGE           SOURCE                                 CHANNEL
cluster-logging   cluster-logging   installed-community-global-operators   preview
mac:aws-ocp jianzhang$ oc get pods
NAME                                         READY     STATUS    RESTARTS   AGE
cluster-logging-operator-799577c674-8xzlz    1/1       Running   0          4m
elasticsearch-operator-db97d4d44-6mqjk       1/1       Running   0          4m
installed-community-global-operators-7t27f   1/1       Running   0          5m

The correct subscription of Cluster Logging like below:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: cluster-logging
  namespace: openshift-operators
spec:
  channel: preview
  installPlanApproval: Automatic
  name: cluster-logging
  source: installed-community-global-operators
  sourceNamespace: openshift-operators
  startingCSV: clusterlogging.v0.0.1

Not a bug, closed it, please feel free to reopen it if any problems.

Comment 4 Jaspreet Kaur 2019-01-28 06:37:14 UTC
Hello,

Its not about installing logging only its about cli bug to not view all packagemanifests. Any explanation on that ?

Comment 5 Jaspreet Kaur 2019-01-28 06:39:36 UTC
Also, How to install from cli ?

I want to describe suppose cluster-logging from cli. How should I view it ?

Comment 6 Jian Zhang 2019-01-29 02:30:29 UTC
Jaspreet,

I guess you can get the "cluster-logging" by run "oc get packagemanifests --all-namespaces".
And, you can switch to the "openshift-marketplace" project and get the cluster-logging by run "oc get packagemanifest".

> Also, How to install from cli ?

You can use that subscription file I mentioned on comment 3.


Note You need to log in before you can comment on or make changes to this bug.