Bug 1867848
Summary: | Registry returns incorrect properties and dependencies for bundles without any properties or dependencies | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ben Luddy <bluddy> |
Component: | OLM | Assignee: | Ben Luddy <bluddy> |
OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | ||
Version: | 4.6 | ||
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:27:30 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: |
Description
Ben Luddy
2020-08-11 01:42:46 UTC
[root@preserve-olm-env data]# opm version Version: version.Version{OpmVersion:"v1.12.5-106-gd724d65", GitCommit:"d724d65", BuildDate:"2020-08-18T01:16:19Z", GoOs:"linux", GoArch:"amd64"} [root@preserve-olm-env data]# docker cp $(docker create quay.io/operator-framework/upstream-community-operators):/bundles.db . ... [root@preserve-olm-env data]# opm registry serve -d bundles.db time="2020-08-17T21:23:01-04:00" level=info msg="Keeping server open for infinite seconds" database=bundles.db port=50051 time="2020-08-17T21:23:01-04:00" level=info msg="serving registry" database=bundles.db port=50051 In another terminal, [root@preserve-olm-env data]# grpcurl --plaintext localhost:50051 api.Registry/ListBundles | jq '{csvName,dependencies,properties}' { "csvName": "hive-operator.v1.0.1", "dependencies": null, "properties": [ { "type": "olm.gvk", "value": "{\"group\":\"hive.openshift.io\",\"kind\":\"Checkpoint\",\"version\":\"v1\"}" }, ... It returns nothing, LGTM, verify it. [root@preserve-olm-env data]# grpcurl --plaintext localhost:50051 api.Registry/ListBundles | jq '{csvName,dependencies,properties}|select(.properties==[{}] or .dependencies==[{}])' [root@preserve-olm-env data]# 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 |