Bug 1841171

Summary: custom display name did not change after updating on console
Product: OpenShift Container Platform Reporter: Bowen Song <bsong>
Component: OLMAssignee: Bowen Song <bsong>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, bsong, dmesser, ecordell, hasha, jiazha, jokerman, jrouth, nhale, vdinh
Version: 4.5   
Target Milestone: ---   
Target Release: 4.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: updating catsrc without a new address gets skipped on updating the package manifests without reconciling other parts of the catsrc. Consequence: display name is not updated on package manifest Fix: reconcile package manifest after any catsrc update. Result: package manifest updated after following catsrc update including packageManifest.status.catalogSourceDisplayName which is based on .spec.displayName.
Story Points: ---
Clone Of: 1823714 Environment:
Last Closed: 2020-06-23 00:57:26 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: 1823714    
Bug Blocks: 1824274, 1846220    

Comment 7 Jian Zhang 2020-06-15 09:21:13 UTC
Cluster version is 4.4.0-0.nightly-2020-06-14-142924
OLM version:
mac:~ jianzhang$ oc  -n openshift-operator-lifecycle-manager  exec catalog-operator-79877479c6-bbxsd -- olm --version
OLM version: 0.14.2
git commit: 33671ebb9929e837d1e9f8104476bf278f203080

In 4.4.z, there is only "Custom" display on the UI, not the CatalogSource Name. See the screenshot:
https://user-images.githubusercontent.com/15416633/84640173-ecd41d00-af2b-11ea-8475-738c13ba4d88.png
So, the user would not encounter this issue. Anyway, I just check the "packagemanifest" in the backend.

Follows the above steps:
1, Create a new CatalogSource on the Web console:
$ cat bug-cs.yaml
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: custom-test
  namespace: openshift-marketplace
spec:
  displayName: custom-test22
  image: docker.io/aosqe/custom-keycloak:latest
  publisher: hasha
  sourceType: grpc

2, Update the displayName "custom-test" to "custom-test22"
$ oc edit catalogsource  custom-test

3, Check if the displayName updated:
$ oc get packagemanifest keycloak-operator   -o=jsonpath='{.status.catalogSourceDisplayName}'
custom-test22

LGTM, verify it.

Comment 10 errata-xmlrpc 2020-06-23 00:57:26 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-2020:2580