Bug 1981882 - OLM: Missing catalog source message can be misleading
Summary: OLM: Missing catalog source message can be misleading
Keywords:
Status: ASSIGNED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.10.0
Assignee: Jon Jackson
QA Contact: Siva Reddy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-13 16:06 UTC by Samuel Padgett
Modified: 2021-09-27 16:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Version: 4.8.0-0.nightly-2021-06-13-101614 Cluster ID: 8f1756d2-ca60-4189-97be-ece0a159c45b Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9491 0 None open Bug 1981882: Update CatalogSource not found message 2021-07-13 16:10:39 UTC

Description Samuel Padgett 2021-07-13 16:06:43 UTC
When we can't find an operator's catalog source, we show the message "CatalogSource was removed" in a few places like the "Installed Operators" table. This message can be misleading, however, since it can appear during operator install and perhaps other times when no one has deleted a catalog source. We should replace this with a more general message like "CatalogSource not found."

Comment 2 Yadan Pei 2021-07-19 09:28:31 UTC
Hi Sam,

I'm wondering whether the logic we used to get catalogSource correct? 
https://github.com/openshift/console/blob/master/frontend/packages/operator-lifecycle-manager/src/components/subscription.tsx#L76~L84

When user create a global wide catalogsource and subscribe one operator into user namespace, the message `CatalogSource not found` is always there during installation early phase ~~ however I doubt if `CatalogSource not found` message is correct since the operators are coming from a global wide catalogsource and the catalogsource does exist

For example, I subscribe prometheusoperator.0.47.0 which is coming from CatalogSource 'Community Operators' in openshift-marketplace namespace, it will first show Unknown, then 'CatalogSource not found' message together with 'Cannot update'

$ oc get catalogsource -n openshift-marketplace
NAME                                    DISPLAY                          TYPE   PUBLISHER               AGE
certified-operators                     Certified Operators              grpc   Red Hat                 9h
community-operators                     Community Operators              grpc   Red Hat                 9h
custom-console-catalogsource-yanpzhan   Custom Console Testing Yanping   grpc   OpenShift QE yanpzhan   33m
redhat-marketplace                      Red Hat Marketplace              grpc   Red Hat                 9h
redhat-operators                        Red Hat Operators                grpc   Red Hat                 9h

$ oc get packagemanifest | grep prometheus
prometheus-exporter-operator                         Community Operators              9h
prometheus                                           Community Operators              9h

Comment 3 Yadan Pei 2021-07-21 10:23:51 UTC
Sam, could you help check my comment above?

Comment 4 Yadan Pei 2021-07-26 02:37:11 UTC
Assigning back for confirmation


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