Bug 1808591 - [marketplace] Alert to make custom operatorsource users aware of deprecation
Summary: [marketplace] Alert to make custom operatorsource users aware of deprecation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.4.0
Assignee: Anik
QA Contact: Salvatore Colangelo
URL:
Whiteboard:
Depends On: 1801294
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-28 21:43 UTC by Anik
Modified: 2020-05-04 11:44 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1801294
Environment:
Last Closed: 2020-05-04 11:43:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github operator-framework operator-marketplace pull 284 0 None closed [release-4.4] Bug 1808591: Alert to make custom opsrc/csc users aware of deprecation 2020-08-30 16:15:44 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:44:08 UTC

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


Note You need to log in before you can comment on or make changes to this bug.