Bug 1838473

Summary: oc adm catalog build generates corrupted catalogSource
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: high CC: aos-bugs, jiazha, jokerman, mfojtik, nhale, sasha, yprokule
Version: 4.4Keywords: Reopened, TestBlocker, UpcomingSprint
Target Milestone: ---   
Target Release: 4.4.z   
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-06-04 18:00:59 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:
Bug Depends On: 1827544    
Bug Blocks:    

Description Asher Shoshan 2020-05-21 08:37:42 UTC
Description of problem:

oc adm catalog build --appregistry-org redhat-operators \
                     --from=quay.io/openshift/origin-operator-registry:4.5 \
                     --to=<localRegistry>/local-redhat-operators:latest \
                      -a pull-secret.txt

Trying to work with the catalogSource showing errors/no info



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


How reproducible:


Steps to Reproduce:
1. 
oc adm catalog build --appregistry-org redhat-operators \
                     --from=quay.io/openshift/origin-operator-registry:4.5 \
                     --to=<localRegistry>/local-redhat-operators:latest \
                      -a pull-secret.txt

2. 
cat << EOF | oc create -f -
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: local-redhat-operators
  namespace: openshift-marketplace
spec:
  sourceType: grpc
  image: <localRegistry>/local-redhat-operators:latest 
  displayName: local-redhat-operators
  publisher: Red Hat
EOF

3.
oc -n openshift-marketplace get packagemanifest -l catalog=local-redhat-operators 


Actual results:

No resources found in openshift-marketplace namespace

Expected results:
list of operators as in redhat-operators


Additional info:

in OC 4.4 - working fine

Comment 1 Jian Zhang 2020-05-26 09:25:48 UTC

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