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

Bug 1808591

Summary: [marketplace] Alert to make custom operatorsource users aware of deprecation
Product: OpenShift Container Platform Reporter: Anik <anbhatta>
Component: OLMAssignee: Anik <anbhatta>
OLM sub component: OLM QA Contact: Salvatore Colangelo <scolange>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: anbhatta, bandrade, chezhang, dageoffr, jfan, jiazha, krizza, nhale
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1801294 Environment:
Last Closed: 2020-05-04 11:43:49 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: 1801294    
Bug Blocks:    

Description Anik 2020-02-28 21:43:54 UTC
+++ This bug was initially created as a clone of Bug #1801294 +++

Description of problem:
In 4.5 we are deprecating the OperatorSource and CatalogSourceConfig APIs. For default OperatorSources, this is fine because we will migrate any existing OLM workloads onto new CatalogSources that are index image based.

However, for non default custom OperatorSources and for all CatalogSourceConfigs we will need to alert users that these resources will need to be migrated manually after they are deprecated.

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


How reproducible:

Always.


Steps to Reproduce:
1. Create a custom OperatorSource or CatalogSourceConfig

Actual results:

No alert is created.

Expected results:

See an alert created that lets an administrator know these APIs are being deprecated.

Comment 3 Zhang Cheng 2020-03-09 12:11:41 UTC
Removed depend on bug 1801294 since it was verified.

Comment 4 Salvatore Colangelo 2020-03-09 13:49:50 UTC
Hi below the step:

[scolange@scolange BUG-1732914]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.0-0.nightly-2020-03-09-081304   True        False         83m     Cluster version is 4.4.0-0.nightly-2020-03-09-081304


1. Create catalogSource 

[scolange@scolange .kube]$ cat catalogsourceconfig.yaml 
apiVersion: operators.coreos.com/v1
kind: CatalogSourceConfig
metadata:
  name: opsrctest
  namespace: openshift-marketplace
spec:
  source: community-operators
  packages: etcd
  targetNamespace: openshift-marketplace

2. Veriffy the pods create 

[scolange@scolange .kube]$ oc get pods
NAME                                   READY   STATUS    RESTARTS   AGE
certified-operators-7b9f5f4767-r2fbq   1/1     Running   1          135m
community-operators-c78f786f8-str24    1/1     Running   0          14m
marketplace-operator-f84f67d6c-2xxd5   1/1     Running   0          135m
opsrctest-764f9f5ffd-jnwh4             1/1     Running   0          62s
redhat-marketplace-fcf688d4c-5kbdk     1/1     Running   1          135m
redhat-operators-79f7d576c6-7rfcc      1/1     Running   0          117m
test-operator-xcjv7                    1/1     Running   0          35m


3. Verify the log of pod

[scolange@scolange .kube]$ oc logs -f marketplace-operator-f84f67d6c-2xxd5 -n openshift-marketplace|grep DEPRECATION

time="2020-03-09T11:44:10Z" level=warning msg="DEPRECATION NOTICE: The OperatorSource API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T11:44:10Z" level=warning msg="DEPRECATION NOTICE: The OperatorSource API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T11:44:10Z" level=warning msg="DEPRECATION NOTICE: The OperatorSource API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T11:44:13Z" level=warning msg="DEPRECATION NOTICE: The OperatorSource API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T11:50:10Z" level=warning msg="DEPRECATION NOTICE: The OperatorSource API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T13:45:11Z" level=warning msg="DEPRECATION NOTICE: The CatalogSourceConfig API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T13:45:11Z" level=warning msg="DEPRECATION NOTICE: The CatalogSourceConfig API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"
time="2020-03-09T13:45:11Z" level=warning msg="DEPRECATION NOTICE: The CatalogSourceConfig API is deprecated in future versions. Please visit this link for futher details: https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-marketplace-apis-deprecated"


LGMT!

Comment 6 errata-xmlrpc 2020-05-04 11:43:49 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:0581