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

Bug 1821406

Summary: catalogSource with image created by oc adm catalog build not working
Product: OpenShift Container Platform Reporter: Asher Shoshan <ashoshan>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: unspecified CC: yprokule
Version: 4.4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-08 12:23:02 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 Asher Shoshan 2020-04-06 18:50:12 UTC
Description of problem:

created an image in a private registry by oc adm catalog build
Created a catalogsource using the image above
Unable to deploy any operator from this catsrc


Version-Release number of selected component (if applicable):
4.4


How reproducible:


Steps to Reproduce:
1. oc adm catalog build --appregistry-org redhat-operators --to=cnv-qe-server.rhevdev.lab.eng.rdu2.redhat.com:8443/olm/redhat-operators:v1 -a ./pull-secret.txt

2. create a catsrc by this source:
apiVersion: operators.coreos.com/v1alpha1
---
kind: CatalogSource
metadata:
  name: redhat-operators-disconnected
  namespace: openshift-marketplace
spec:
  sourceType: grpc
  image: cnv-qe-server.rhevdev.lab.eng.rdu2.redhat.com:8443/olm/redhat-operators:v1
  displayName: redhat-operators-disconnected
  publisher: grpc


3. Create a subscription using some operator from the above

Actual results:
ip, csv are not created

Expected results:
operator to be deployed

Additional info:
oc -n openshift-operator-lifecycle-manager logs catalog-operator-5f7b485984-srlxk -->
 
E0406 18:17:55.496296       1 queueinformer_operator.go:290] sync "openshift-cnv" failed: {kubevirt-hyperconverged 2.1 kubevirt-hyperconverged-operator.v2.1.0 {redhat-operators-disconnected openshift-marketplace}} not found: rpc error: code = Unknown desc = no such column: api_provider.operatorbundle_name

Comment 1 Evan Cordell 2020-04-08 12:23:02 UTC
Could you please try to create the catalog image with `oc adm catalog build`, but this time, please set the `--from` flag to the correct base image for the version of ocp.

For example, for 4.4 the command would be `oc adm catalog build --from=quay.io/openshift/origin-operator-registry:4.4 <other options>`. 

There is a duplicate bug being used to track the doc fix to indicate that this is required.

*** This bug has been marked as a duplicate of bug 1820419 ***