Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1821274

Summary: OperatorHub filtering keyword limits
Product: OpenShift Container Platform Reporter: bpeterse
Component: OLMAssignee: Alexander Greene <agreene>
OLM sub component: OperatorHub QA Contact: yhui
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: agreene, aos-bugs, cajieh, dsover, fdeutsch, igulina, jokerman, krizza, nhale, vdinh, yapei
Version: 4.4Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Some Metadata featured on the CSV was not being ported via the packagemanifest type. Consequence: The operatorhub UI was unable to filter the operators based on keyword that were not present in the packagemanifest. Fix: OLM now makes the following CSV information available in the packagemanifest: * Keywords * Maturity * NativeAPIs * MinKubeVersion * RelatedImages * Links * Maintainers Result: The OperatorHub UI is now able to filter based on metadata mentioned above.
Story Points: ---
Clone Of: 1812019 Environment:
Last Closed: 2020-08-18 11:45:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1812019    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of keyword vm search none

Comment 2 Vu Dinh 2020-05-28 14:51:26 UTC
The cherry-pick PR is ready but not yet approved.

Comment 3 Nick Hale 2020-06-04 14:28:22 UTC
Awaiting cherry-pick-approval.

Comment 8 yhui 2020-07-16 07:54:38 UTC
Version:
[root@preserve-olm-env ~]# oc get clusterversion
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.13    True        False         3h6m    Cluster version is 4.4.13
[root@preserve-olm-env ~]# oc exec catalog-operator-77fc55cdf8-vthhr -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.14.2
git commit: 0326066b8b2f87a1feec4c2bd9fdc8622ef5e1a0

Steps to test:
1. check whether the keywords have been added into packagemanifests.
[root@preserve-olm-env ~]# oc get packagemanifests -o yaml | grep keywords | wc -l
0
[root@preserve-olm-env ~]# oc get packagemanifests -o yaml | grep keywords
[root@preserve-olm-env ~]#

The keywords are not added to packagemanifests.

2. Check the keyword VM
[root@preserve-olm-env ~]# oc get packagemanifests -o yaml | grep keywords  -A 5 |grep VM
[root@preserve-olm-env ~]#

There is no keyword VM in the packagemanifests.

3. Search the keyword VM in the OperatorHub on the UI.
No results.

The issue has not been fixed. Assigned it.

Comment 9 yhui 2020-07-16 07:56:46 UTC
Created attachment 1701344 [details]
Screenshot of keyword vm search

Comment 12 Alexander Greene 2020-07-30 14:46:20 UTC
yhui

I repeated your steps and the keywords were present in the packagemanifests:

oc exec catalog-operator-784cc87f6-pr9mz -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.14.2
git commit: d1ebc80b9ac1612b003f2f0f36639d7edca45f39

oc get packagemanifests -o yaml | grep keywords | wc -l
418

oc get packagemanifests -o yaml | grep keywords
        keywords:
        keywords:
        keywords:
        keywords:
        keywords:
        keywords:
        keywords:
        keywords:
...
...
...

 oc get packagemanifests -o yaml | grep keywords  -A 5 |grep VM
        - VM
        - VM

Comment 13 Alexander Greene 2020-07-30 14:47:29 UTC
The test above was performed on a 4.4.15 cluster:

$ oc get clusterversion
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.15    True        False         28m     Cluster version is 4.4.15

Comment 14 Alexander Greene 2020-07-30 14:54:53 UTC
I will add that the UI doesn't seem to filter based on the existing keywords, but the data is available in the packagemanfiest and will need to be fixed in console.

Comment 15 yhui 2020-08-03 04:36:47 UTC
Version:
[hui@bogon ~]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.0-0.nightly-2020-08-01-220435   True        False         11m     Cluster version is 4.4.0-0.nightly-2020-08-01-220435
[hui@bogon ~]$ oc exec catalog-operator-64b687c6c5-k6rcr -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.14.2
git commit: d1ebc80b9ac1612b003f2f0f36639d7edca45f39

Steps to test:
1. check whether the keywords have been added into packagemanifests.
[hui@bogon ~]$ oc get packagemanifests -o yaml | grep keywords | wc -l
463
[hui@bogon ~]$ oc get packagemanifests -o yaml | grep keywords  -A 2
        keywords:
        - ptp
        links:
--
        keywords:
        - ptp
        links:
--
        keywords:
        - ptp
        links:
--
        keywords:
        - security
        - encryption
--
        keywords:
        - database
        - distributed-SQL
--
        keywords:
        - database
        - distributed-SQL
--
The keywords have been added to packagemanifests.

2. Check the keyword VM.
[hui@bogon ~]$ oc get packagemanifests -o yaml | grep keywords  -A 5 |grep VM
        - VM
        - VM
The keyword VM has been added into packagemanifests.

3. Login to the web console, search the keyword VM on the OperatorHub. There is no results.
No Results Match the Filter Criteria

Since this bug only test the packagemanifests, no console. Verify the bug.

Comment 18 errata-xmlrpc 2020-08-18 11:45:28 UTC
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.4.17 bug fix update), 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:3334