Bug 2257711 - ocs-metrics-exporter is not updated when ocs-operator is upgraded
Summary: ocs-metrics-exporter is not updated when ocs-operator is upgraded
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-operator
Version: 4.14
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ODF 4.15.0
Assignee: umanga
QA Contact: Vijay Avuthu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-10 15:10 UTC by arun kumar mohan
Modified: 2024-03-19 15:31 UTC (History)
5 users (show)

Fixed In Version: 4.15.0-123
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-19 15:31:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 2394 0 None open refactor metrics exporter deployment 2024-01-18 09:07:26 UTC
Github red-hat-storage ocs-operator pull 2415 0 None open Bug 2257711: [release-4.15] refactor metrics exporter deployment 2024-01-23 10:44:29 UTC
Red Hat Product Errata RHSA-2024:1383 0 None None None 2024-03-19 15:31:12 UTC

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


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