Bug 1881844
| Summary: | Community and Marketplace operators doesn't show a badge in Operator Hub page and Operator Hub Details Modal | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> | ||||||||
| Component: | Management Console | Assignee: | Jon Jackson <jonjacks> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 4.6 | CC: | aos-bugs, jokerman, schituku, yapei | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | 4.6.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-27 16:44:06 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
Yadan Pei
2020-09-23 08:09:04 UTC
I've spent some time looking into this and discussing with OLM team. It looks like this was caused when the default OLM marketplace sources were updated from OperatorSources to CatalogSources. The 'opsrc-provider' label is no longer present on the source or package manifest. This is the labe we used to render the "Marketplace" and "Community" badges, as well as the warning alerts in the details pane. In order to resolve this UI bug, we're going to have to figure out how to fix the gap left by that missing label. Yeah Jon, you are right. I also tried to fix it locally and after several trying I came up with following plan: 1. Still show the `displayName` of catalogsource in OperatorHub Provider Type 2. When `displayName` contains `Community` or `Marketplace`, the badge and warning in details page will be shown HDYT? After further discussion with OLM team, looks like the best solution would be to drive these badges and alerts based on the defualt CatalogSource name instead of a label. I was worried about this approach at first because it could cause a regression if customers were using the 'opsrc-provider' label to render badges, but OLM team confirmed that this was only a 'side effect' of the original implementation, not an intentional feature. These badges and alerts should be unique to our Red Hat provided operators, so using the default catalog source names is an acceptable solution. Also, with approval from Sam, changed this to medium severity and targeted 4.6 because it's a pretty significant bug and low risk fix. Now the community and marketplace show up on the tiles and modal. Hence marking the bug as verified. Version: 4.6.0-0.nightly-2020-10-05-234751 Steps to verify: 1. Login to web console as kubeadmin 2. Navigate to PageSideBar>Operators>OperatorHub 3. On the operator hub page scroll down and select the community checkbox under ProviderType. 4. Notice the operator tiles will have community badge 5. Click on a community operator tile and notice the modal has info about community operators. 6. Repeat the same steps with marketplace checkbox and see the same result. attached are the screen shots. Created attachment 1719586 [details]
Screenshot of badges
Created attachment 1719587 [details]
Screenshot of Community
Created attachment 1719588 [details]
Screenshot of marketplace
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4196 |