Bug 1884534 - Any typo in Subscription leads to user unfriendly Unknown failure
Summary: Any typo in Subscription leads to user unfriendly Unknown failure
Keywords:
Status: CLOSED DUPLICATE of bug 1862846
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.7.0
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-02 08:46 UTC by Filip Brychta
Modified: 2020-10-09 22:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-09 22:22:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Example subscription (265 bytes, text/plain)
2020-10-02 08:46 UTC, Filip Brychta
no flags Details
screenshot (85.38 KB, image/png)
2020-10-02 08:47 UTC, Filip Brychta
no flags Details

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 ***


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