Bug 1682928

Summary: [marketplace] catalogsourceconfig objects are deleted and recreated on marketplace restart
Product: OpenShift Container Platform Reporter: Abu Kashem <akashem>
Component: OLMAssignee: Abu Kashem <akashem>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: low Docs Contact:
Priority: low    
Version: 4.1.0CC: akashem, aravindh
Target Milestone: ---   
Target Release: 4.1.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: 2019-06-04 10:44:27 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 Abu Kashem 2019-02-25 20:51:25 UTC
On restart, marketplace operator deletes and recreates the catalogsourceconfig objects associated with each OperatorSource.

Steps:
- Restart marketplace operator by killing the pod.
- You will observe that all CatalogSourceConfig object(s) associated with each OperatorSource gets deleted and then recreated.

These are all CatalogSourceConfig object(s) having the following label
      opsrc-datastore: "true"


Expected Result:
- CatalogSourceConfig object(s) should be updated instead of being deleted and created again.

Comment 1 Aravindh Puthiyaparambil 2019-02-26 19:55:59 UTC
https://github.com/operator-framework/operator-marketplace/pull/117

Comment 2 Fan Jia 2019-02-27 06:50:13 UTC
The latest cv:4.0.0-0.nightly-2019-02-26-125216  doesn't include the pr. will test it until it include the fix pr

Comment 3 Fan Jia 2019-02-28 06:49:58 UTC
1.testenv:
clusterversion: 4.0.0-0.nightly-2019-02-27-213933
marketplace image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:db3741fada8ffb0417e20b58781d2028a17c2c7697c0965b248b6af8501ef312

2.catalogsourceconfig objects (with label opsrc-datastore: "true") do not updated or cleaned anymore on marketplace restart.but the operatorsource is updated on marketplace restart. I think it is correct.

Comment 6 errata-xmlrpc 2019-06-04 10:44:27 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, 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-2019:0758

Comment 7 Red Hat Bugzilla 2023-09-14 05:24:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days