Bug 1884534

Summary: Any typo in Subscription leads to user unfriendly Unknown failure
Product: OpenShift Container Platform Reporter: Filip Brychta <fbrychta>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: low    
Priority: low CC: aos-bugs, bluddy, jokerman, krizza, spadgett
Version: 4.6Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-09 22:22:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Example subscription
none
screenshot none

Description Filip Brychta 2020-10-02 08:46:26 UTC
Created attachment 1718397 [details]
Example subscription

Description of problem:
When adding a Subscription which contains type e.g .in channel or name the UI console just shows 'Unknown failure' which is not very helpful.

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-09-29-170625

How reproducible:
Always

Steps to Reproduce:
1. Apply Subscription with typo in channel or name


Actual results:
UI shows just 'Unknown failure', see attached screenshot

Expected results:
The error should be clear informing user that given channel/name does not exist.

Additional info:
Attached example Subscription and UI screenshot
Another problem related to this is that Operator Hub UI shows the operator as installed but Installed Operators page does not show it which is confusing.

Comment 1 Filip Brychta 2020-10-02 08:47:05 UTC
Created attachment 1718398 [details]
screenshot

Comment 2 Kevin Rizza 2020-10-02 12:34:14 UTC
Moving this over to the console, as the UI component is currently owned by that group. Also marking this for 4.7, since this doesn't appear to be a release blocker for 4.6.

Comment 3 Samuel Padgett 2020-10-02 12:57:51 UTC
Console currently shows this message if there is no `subscription.status.state`.

Comment 4 Jakub Hadvig 2020-10-06 11:37:02 UTC
As mentioned by Sam we are only rendering the Subscription state from `subscription.status.state`. In this particular case where given channel/name does not exist we dont have any mechanism to figure that out. This needs to be covered byt the OLM, so moving back.

Also regarding the additional info:
```
Another problem related to this is that Operator Hub UI shows the operator as installed but Installed Operators page does not show it which is confusing.
```

We are not rendering the Subscriptions in case "All projects" is picked for the resource namespace scope.

Comment 5 Ben Luddy 2020-10-09 22:22:47 UTC

*** This bug has been marked as a duplicate of bug 1862846 ***