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

Bug 1769841

Summary: Marketplace-operator produces unbounded number of package registry replicasets when CatalogSourceConfig targetNamespace is missing
Product: OpenShift Container Platform Reporter: Kevin Rizza <krizza>
Component: OLMAssignee: Nick Hale <nhale>
OLM sub component: OperatorHub QA Contact: Fan Jia <jfan>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: cblecker, dageoffr, ecordell, jfan, nhale, smilner
Version: 4.2.z   
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1767547 Environment:
Last Closed: 2019-12-11 22:36:10 UTC Type: ---
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: 1767547    
Bug Blocks:    

Comment 4 Fan Jia 2019-11-29 08:18:08 UTC
test env:
cv:4.2.0-0.nightly-2019-11-28-230858


test result:

1.create csc "csctestkey" in ns "kaka"
#kubectl get rs -n openshift-marketplace
NAME                             DESIRED   CURRENT   READY   AGE
certified-operators-78bf6874cb   1         1         1       65m
community-operators-57976f96b5   1         1         1       65m
csctestkey-56b868f887            1         1         1       92s
csctestkey-67f47cfc9c            0         0         0       2m19s
csctestkey-6ccb785d56            0         0         0       2m19s
marketplace-operator-56b786fb4   1         1         1       70m
redhat-operators-56cc9849d8      1         1         1       65m
testkey-6447665bb8               1         1         1       2m39s


2.delete project kaka

3. the rs in marketplace will update and won't increase anymore , the csc status is configuring
1)$ kubectl get rs -n openshift-marketplace  
NAME                              DESIRED   CURRENT   READY   AGE
certified-operators-78bf6874cb   1         1         1       68m
community-operators-57976f96b5   1         1         1       68m
csctestkey-56b868f887            0         0         0       4m29s
csctestkey-67f47cfc9c            0         0         0       5m16s
csctestkey-6ccb785d56            0         0         0       5m16s
csctestkey-7c849f867b            1         1         1       2m41s
marketplace-operator-56b786fb4   1         1         1       73m
redhat-operators-56cc9849d8      1         1         1       68m
testkey-6447665bb8               1         1         1       5m36s

2)$oc get csc
NAME         STATUS        MESSAGE                       AGE
csctestkey   Configuring   namespaces "kaka" not found   7m42s

4.recreate project kaka
The csc will recover and the rs will update again
1)$ kubectl get rs -n openshift-marketplace  
NAME                             DESIRED   CURRENT   READY   AGE
certified-operators-78bf6874cb   1         1         1       71m
community-operators-57976f96b5   1         1         1       71m
csctestkey-56b868f887            0         0         0       7m53s
csctestkey-67f47cfc9c            0         0         0       8m40s
csctestkey-6ccb785d56            0         0         0       8m40s
csctestkey-75764ddc68            1         1         1       30s
csctestkey-7c849f867b            0         0         0       6m5s
marketplace-operator-56b786fb4   1         1         1       76m
redhat-operators-56cc9849d8      1         1         1       71m
testkey-6447665bb8               1         1         1       9m

2)$ oc get csc
NAME         STATUS      MESSAGE                                       AGE
csctestkey   Succeeded   The object has been successfully reconciled   8m38s

Comment 6 errata-xmlrpc 2019-12-11 22:36:10 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:4093