Bug 2276565 - [Provider mode] odf-csi-addons-operator did not upgrade automatically after upgrading ocs-client-operator
Summary: [Provider mode] odf-csi-addons-operator did not upgrade automatically after u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-client-operator
Version: 4.15
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ODF 4.15.5
Assignee: Rohan Gupta
QA Contact: Jilju Joy
URL:
Whiteboard: isf-provider
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-23 04:35 UTC by Jilju Joy
Modified: 2024-07-15 14:30 UTC (History)
9 users (show)

Fixed In Version: 4.15.5-5
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-07-15 14:30:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-client-operator pull 152 0 None open match csi-addons subscription channel to ocs-client-operator 2024-05-27 11:25:52 UTC
Github red-hat-storage ocs-client-operator pull 173 0 None open BUG 2276565: controllers: fixed typo subscription to subscriptions 2024-06-24 05:46:16 UTC
Red Hat Product Errata RHBA-2024:4538 0 None None None 2024-07-15 14:30:29 UTC

Description Jilju Joy 2024-04-23 04:35:26 UTC
Description of problem:
After upgrading ocs-client-operator from 4.14.6 to 4.15.2, odf-csi-addons-operator  did not upgrade to 4.15.2. odf-csi-addons-operator remained in 4.14.6 version. This problem is in native client in the clients on hosted clusters.

Version-Release number of selected component (if applicable):
$ oc get csv -n openshift-storage-client
NAME                                    DISPLAY                            VERSION               REPLACES                                PHASE
metallb-operator.v4.15.0-202403220332   MetalLB Operator                   4.15.0-202403220332   metallb-operator.v4.14.0-202402161909   Succeeded
ocs-client-operator.v4.15.2-rhodf       OpenShift Data Foundation Client   4.15.2-rhodf          ocs-client-operator.v4.14.6-rhodf       Succeeded
odf-csi-addons-operator.v4.14.6-rhodf   CSI Addons                         4.14.6-rhodf          odf-csi-addons-operator.v4.14.5-rhodf   Succeeded


$ oc get csv -n openshift-storage
NAME                                    DISPLAY                       VERSION               REPLACES                                PHASE
mcg-operator.v4.15.2-rhodf              NooBaa Operator               4.15.2-rhodf          mcg-operator.v4.14.6-rhodf              Succeeded
metallb-operator.v4.15.0-202403220332   MetalLB Operator              4.15.0-202403220332   metallb-operator.v4.14.0-202402161909   Succeeded
ocs-operator.v4.15.2-rhodf              OpenShift Container Storage   4.15.2-rhodf          ocs-operator.v4.14.6-rhodf              Succeeded
odf-csi-addons-operator.v4.15.2-rhodf   CSI Addons                    4.15.2-rhodf          odf-csi-addons-operator.v4.14.6-rhodf   Succeeded
odf-operator.v4.15.2-rhodf              OpenShift Data Foundation     4.15.2-rhodf          odf-operator.v4.14.6-rhodf              Succeeded


$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.16.0-0.nightly-2024-04-15-115534   True        False         5d16h   Cluster version is 4.16.0-0.nightly-2024-04-15-115534

Note: OCP was upgraded from 4.14.18 to 4.16 directly to verify OCP upgrade bug https://issues.redhat.com/browse/OCPBUGS-27853. OpenShift Virtualization is 4.15.2-124 because of issues with 4.14 and 4.16 versions. ODF and client upgrade from 4.14.6 to 4.15.2 was done when OCP is at 4.16.
===================================================================
How reproducible:
Issue found in 1 native client and 2 hosted clusters. Provider is same.
=========================================================================
Steps to Reproduce:

1. Create provider -client setup with 1 or more hosted cluster clients. ODF and client version 4.14
2. Upgrade provider cluster to ODF 4.15
3. Verify that the provider is upgraded.
$ oc get csv -n openshift-storage
NAME                                    DISPLAY                       VERSION               REPLACES                                PHASE
mcg-operator.v4.15.2-rhodf              NooBaa Operator               4.15.2-rhodf          mcg-operator.v4.14.6-rhodf              Succeeded
metallb-operator.v4.15.0-202403220332   MetalLB Operator              4.15.0-202403220332   metallb-operator.v4.14.0-202402161909   Succeeded
ocs-operator.v4.15.2-rhodf              OpenShift Container Storage   4.15.2-rhodf          ocs-operator.v4.14.6-rhodf              Succeeded
odf-csi-addons-operator.v4.15.2-rhodf   CSI Addons                    4.15.2-rhodf          odf-csi-addons-operator.v4.14.6-rhodf   Succeeded
odf-operator.v4.15.2-rhodf              OpenShift Data Foundation     4.15.2-rhodf          odf-operator.v4.14.6-rhodf              Succeeded

4. Upgrade native client on provider cluster to 4.15
5. Verify that the client operator is upgraded and the dependency csi-addons is also upgraded to 4.15
$ oc get csv -n openshift-storage-client
NAME                                    DISPLAY                            VERSION               REPLACES                                PHASE
metallb-operator.v4.15.0-202403220332   MetalLB Operator                   4.15.0-202403220332   metallb-operator.v4.14.0-202402161909   Succeeded
ocs-client-operator.v4.15.2-rhodf       OpenShift Data Foundation Client   4.15.2-rhodf          ocs-client-operator.v4.14.6-rhodf       Succeeded
odf-csi-addons-operator.v4.14.6-rhodf   CSI Addons                         4.14.6-rhodf          odf-csi-addons-operator.v4.14.5-rhodf   Succeeded

Repeat step 4 and 5 on clients in hosted clusters.

========================================================
Actual results:
Step 4 and 5 was not successful. odf-csi-addons-operator did not upgrade automatically to 4.15.2.

========================================================
Expected results:
odf-csi-addons-operator should upgrade automatically to the upgraded version (4.15.2 in this case) of ocs-client-operator.


Additional info:
Logs will be shared in the next comment.

Comment 7 Rohan Gupta 2024-05-16 09:44:37 UTC
It was discussed that we update the subscription of CSI addons in 4.15

Comment 8 Rewant 2024-05-27 11:25:52 UTC
As we have a bug for it targeted for 4.16: https://bugzilla.redhat.com/show_bug.cgi?id=2280820, moving it for 4.15 and providing dev ack.

Comment 15 errata-xmlrpc 2024-07-15 14:30: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 (Red Hat OpenShift Data Foundation 4.15.5 Bug Fix Update), 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-2024:4538


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