Bug 1774630
| Summary: | Incorrect CSV data causes grpc pod to panic | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Anik <anbhatta> |
| Component: | OLM | Assignee: | Anik <anbhatta> |
| OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | bandrade, jpeeler, scolange, tbuskey |
| Version: | 4.3.0 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.3.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-01-23 11:13:20 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
Anik
2019-11-20 15:18:32 UTC
Git commit info:
mac:operator-registry jianzhang$ git branch
* master
mac:operator-registry jianzhang$ git log
commit fb1e512b62e95519df2010d8f6780d605e34d9d9 (HEAD -> master, origin/master, origin/HEAD)
Merge: 4a06281 8b0a98c
Author: OpenShift Merge Robot <openshift-merge-robot.github.com>
Date: Fri Nov 22 01:05:17 2019 +0100
Merge pull request #129 from anik120/bug-rearrange-dir
Bug 1774630: relocate test data
mac:operator-registry jianzhang$ git clone git:anik120/test-manifests.git
Cloning into 'test-manifests'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 14 (delta 7), reused 14 (delta 7), pack-reused 0
Receiving objects: 100% (14/14), 23.55 KiB | 259.00 KiB/s, done.
Resolving deltas: 100% (7/7), done.
mac:operator-registry jianzhang$ make build
go build -o bin/appregistry-server ./cmd/appregistry-server
go build -o bin/configmap-server ./cmd/configmap-server
go build -o bin/initializer ./cmd/initializer
go build -o bin/opm ./cmd/opm
go build -o bin/registry-server ./cmd/registry-server
No panic, LGTM, verify it.
mac:operator-registry jianzhang$ ./bin/initializer -m test-manifests
INFO[0000] loading Bundles dir=test-manifests
INFO[0000] directory dir=test-manifests file=test-manifests load=bundles
INFO[0000] skipping hidden directory dir=test-manifests file=.git load=bundles
INFO[0000] directory dir=test-manifests file=3scale-community-operator load=bundles
INFO[0000] directory dir=test-manifests file=0.3.0 load=bundles
INFO[0000] loading Packages and Entries dir=test-manifests
INFO[0000] directory dir=test-manifests file=test-manifests load=package
INFO[0000] skipping hidden directory dir=test-manifests file=.git load=package
INFO[0000] directory dir=test-manifests file=3scale-community-operator load=package
INFO[0000] directory dir=test-manifests file=0.3.0 load=package
FATA[0000] permissive mode disabled error="error loading manifests from directory: [could not decode contents of file test-manifests/3scale-community-operator/0.3.0/3scale-community-operator.v0.3.0.clusterserviceversion.yaml into package: error converting YAML to JSON: yaml: line 187: did not find expected key, error loading package into db: [FOREIGN KEY constraint failed, no default channel specified for 3scale-community-operator]]"
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, 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:0062 |