Bug 2257711

Summary: ocs-metrics-exporter is not updated when ocs-operator is upgraded
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: arun kumar mohan <amohan>
Component: ocs-operatorAssignee: umanga <uchapaga>
Status: CLOSED ERRATA QA Contact: Vijay Avuthu <vavuthu>
Severity: high Docs Contact:
Priority: high    
Version: 4.14CC: amohan, muagarwa, nthomas, odf-bz-bot, skatiyar
Target Milestone: ---   
Target Release: ODF 4.15.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.15.0-123 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-19 15:31:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description arun kumar mohan 2024-01-10 15:10:08 UTC
Description of problem (please be detailed as possible and provide log
snippests):
This is one of the findings Umanga has noticed during BZ#2255036 triaging:

ocs-operator does not update ocs-metrics-exporter deployment when ocs-operator is upgraded. This breaks upgrades for ocs-metrics-exporter.

Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
No

Is there any workaround available to the best of your knowledge?
We may have to manually update the new image for ocs-metrics-exporter

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1

Can this issue reproducible?
Yes

Can this issue reproduce from the UI?
Yes

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.
2.
3.


Actual results:
ocs-operator upgrade don't update ocs-metrics-exporter component

Expected results:
ocs-metrics-exporter should also be upgraded to a newer version corresponding to it's parent, ocs-operator.

Additional info:

Comment 5 Vijay Avuthu 2024-02-01 08:10:10 UTC
1. installed multi storagecluster with version ocs-registry:4.15.0-123
    oc get csv
NAME                                         DISPLAY                       VERSION             REPLACES   PHASE
mcg-operator.v4.15.0-123.stable              NooBaa Operator               4.15.0-123.stable              Succeeded
ocs-operator.v4.15.0-123.stable              OpenShift Container Storage   4.15.0-123.stable              Succeeded
odf-csi-addons-operator.v4.15.0-123.stable   CSI Addons                    4.15.0-123.stable              Succeeded
odf-operator.v4.15.0-123.stable              OpenShift Data Foundation     4.15.0-123.stable              Succeeded
$ 

2. check Image for ocs-metrics-exporter pod in both NS "openshift-storage" and "openshift-storage-extended"

$ oc get pod ocs-metrics-exporter-cc78f875f-58kxh -o yaml | egrep -i "image:|imageID:"
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:a281e43809417a0fc2ae5743f5822a16c717dda107dd3c8d2e86cca7da04c669
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:a281e43809417a0fc2ae5743f5822a16c717dda107dd3c8d2e86cca7da04c669
    imageID: 232913f8c4459b8fdb208933664e69404b1e7dbfdafe0943ca495a9cad66b9f8
$ 
$ oc get pod ocs-metrics-exporter-69d4ddb9-xfqlc -o yaml -n openshift-storage-extended | egrep -i "image:|imageID:"
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:a281e43809417a0fc2ae5743f5822a16c717dda107dd3c8d2e86cca7da04c669
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:a281e43809417a0fc2ae5743f5822a16c717dda107dd3c8d2e86cca7da04c669
    imageID: 232913f8c4459b8fdb208933664e69404b1e7dbfdafe0943ca495a9cad66b9f8
$ 

3. upgrade odf to ocs-registry:4.15.0-125

$ oc get csv
NAME                                         DISPLAY                       VERSION             REPLACES                                     PHASE
mcg-operator.v4.15.0-125.stable              NooBaa Operator               4.15.0-125.stable   mcg-operator.v4.15.0-123.stable              Succeeded
ocs-operator.v4.15.0-125.stable              OpenShift Container Storage   4.15.0-125.stable   ocs-operator.v4.15.0-123.stable              Succeeded
odf-csi-addons-operator.v4.15.0-125.stable   CSI Addons                    4.15.0-125.stable   odf-csi-addons-operator.v4.15.0-123.stable   Succeeded
odf-operator.v4.15.0-125.stable              OpenShift Data Foundation     4.15.0-125.stable   odf-operator.v4.15.0-123.stable              Succeeded
$

4.  Again check Image for ocs-metrics-exporter pod in both NS "openshift-storage" and "openshift-storage-extended" and image should be upgraded
$ oc get pods | grep -i ocs-metrics-exporter
ocs-metrics-exporter-b94d575ff-p7fm8                              1/1     Running     0          7m29s
$ 

$ oc get pod ocs-metrics-exporter-b94d575ff-p7fm8 -o yaml | egrep -i "image:|imageID:"
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:f723bd14abc53be69d971541fb02b2d46f4d37ed9501a2f4fa498437fa43e620
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:f723bd14abc53be69d971541fb02b2d46f4d37ed9501a2f4fa498437fa43e620
    imageID: f7773d5416c9348587c89d297e0ceec823e34a61b2e2b5232af7d60142766339
$ 
$ oc get pods -n openshift-storage-extended
NAME                                    READY   STATUS    RESTARTS   AGE
ocs-metrics-exporter-66cb9b9bfc-78d82   1/1     Running   0          6m25s
$ 
$ oc get pod ocs-metrics-exporter-66cb9b9bfc-78d82 -o yaml -n openshift-storage-extended | egrep -i "image:|imageID:"
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:f723bd14abc53be69d971541fb02b2d46f4d37ed9501a2f4fa498437fa43e620
    image: registry.redhat.io/odf4/ocs-metrics-exporter-rhel9@sha256:f723bd14abc53be69d971541fb02b2d46f4d37ed9501a2f4fa498437fa43e620
    imageID: f7773d5416c9348587c89d297e0ceec823e34a61b2e2b5232af7d60142766339
$

Comment 6 Vijay Avuthu 2024-02-01 08:48:59 UTC
moving to verified

Comment 8 errata-xmlrpc 2024-03-19 15:31:09 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 (Important: Red Hat OpenShift Data Foundation 4.15.0 security, enhancement, & 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/RHSA-2024:1383