Bug 2182703

Summary: [RDR] After upgrading from 4.12.2 to 4.13.0 version.odf.openshift.io cr is not getting updated with latest ODF version
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Pratik Surve <prsurve>
Component: ocs-operatorAssignee: Malay Kumar parida <mparida>
Status: CLOSED ERRATA QA Contact: Shivam Durgbuns <sdurgbun>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.13CC: amagrawa, mparida, muagarwa, ocs-bugs, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-21 15:25:01 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 Pratik Surve 2023-03-29 12:18:17 UTC
Description of problem (please be detailed as possible and provide log
snippests):

[RDR] After upgrading from 4.12.2 to 4.13.0 version.odf.openshift.io cr is not getting updated with latest ODF version


Version of all relevant components (if applicable):

OCP version:- 4.13.0-0.nightly-2023-03-28-014156
ODF version:- 4.13.0-102
CEPH version:- ceph version 17.2.5-1338.el9cp (5adce3015143c7c2cc135a71368be194744f5761) quincy (stable)
ACM version:- v2.7.2


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

Is there any workaround available to the best of your knowledge?


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


Can this issue reproducible?
yes always

Can this issue reproduce from the UI?


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


Steps to Reproduce:
1.Deploy cluster with 4.12.2
2. Upgrade to 4.13.0
3. check the content of version.odf.openshift.io


Actual results:
####Before upgrade

oc get clusterclaims.cluster.open-cluster-management.io version.odf.openshift.io -o yaml
apiVersion: cluster.open-cluster-management.io/v1alpha1
kind: ClusterClaim
metadata:
  creationTimestamp: "2023-03-29T12:02:56Z"
  generation: 1
  name: version.odf.openshift.io
  resourceVersion: "209079"
  uid: 94b4b4d9-1664-4ee6-a854-974885f0ae32
spec:
  value: 4.12.2-rhodf


$ oc get csv --show-labels 
NAME                                    DISPLAY                       VERSION        REPLACES                          PHASE       LABELS
mcg-operator.v4.12.2-rhodf              NooBaa Operator               4.12.2-rhodf   mcg-operator.v4.12.1              Succeeded   operators.coreos.com/mcg-operator.openshift-storage=
ocs-operator.v4.12.2-rhodf              OpenShift Container Storage   4.12.2-rhodf   ocs-operator.v4.12.1              Succeeded   full_version=4.12.2-2,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/ocs-operator.openshift-storage=
odf-csi-addons-operator.v4.12.2-rhodf   CSI Addons                    4.12.2-rhodf   odf-csi-addons-operator.v4.12.1   Succeeded   operators.coreos.com/odf-csi-addons-operator.openshift-storage=
odf-operator.v4.12.2-rhodf              OpenShift Data Foundation     4.12.2-rhodf   odf-operator.v4.12.1              Succeeded   full_version=4.12.2-2,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/odf-operator.openshift-storage=



###After uograde

$ oc get clusterclaims.cluster.open-cluster-management.io version.odf.openshift.io -o yaml
apiVersion: cluster.open-cluster-management.io/v1alpha1
kind: ClusterClaim
metadata:
  creationTimestamp: "2023-03-29T12:02:56Z"
  generation: 1
  name: version.odf.openshift.io
  resourceVersion: "209079"
  uid: 94b4b4d9-1664-4ee6-a854-974885f0ae32
spec:
  value: 4.12.2-rhodf


$ oc get csv --show-labels                                                                
NAME                                         DISPLAY                       VERSION             REPLACES                                PHASE       LABELS
mcg-operator.v4.13.0-102.stable              NooBaa Operator               4.13.0-102.stable   mcg-operator.v4.12.2-rhodf              Succeeded   operators.coreos.com/mcg-operator.openshift-storage=
ocs-operator.v4.13.0-102.stable              OpenShift Container Storage   4.13.0-102.stable   ocs-operator.v4.12.2-rhodf              Succeeded   full_version=4.13.0-102,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/ocs-operator.openshift-storage=
odf-csi-addons-operator.v4.13.0-102.stable   CSI Addons                    4.13.0-102.stable   odf-csi-addons-operator.v4.12.2-rhodf   Succeeded   operators.coreos.com/odf-csi-addons-operator.openshift-storage=
odf-operator.v4.13.0-102.stable              OpenShift Data Foundation     4.13.0-102.stable   odf-operator.v4.12.2-rhodf              Succeeded   full_version=4.13.0-102,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/odf-operator.openshift-storage=



Expected results:
ODF version should be updated post upgrade 


Additional info:

Comment 2 Malay Kumar parida 2023-03-31 08:53:53 UTC
Somewhat relevant discussion is going on here https://chat.google.com/room/AAAAREGEba8/Lk0La-8uSzE

Comment 8 Shivam Durgbuns 2023-06-05 17:29:33 UTC
Verified! able to see the updated versions
hub: https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster/25165/
cluster1: https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster/25166/
cluster2: https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster/25228/

Before Uprade
--------------

[sdurgbun auth]$ oc get clusterclaims.cluster.open-cluster-management.io version.odf.openshift.io -o yaml
apiVersion: cluster.open-cluster-management.io/v1alpha1
kind: ClusterClaim
metadata:
  creationTimestamp: "2023-06-05T15:15:22Z"
  generation: 1
  name: version.odf.openshift.io
  resourceVersion: "2252181"
  uid: 8484123b-3f5a-46c3-8988-d115f2ab085a
spec:
  value: 4.12.3-rhodf
[sdurgbun auth]$ 
[sdurgbun auth]$ oc get csv --show-labels --namespace openshift-storage
NAME                                    DISPLAY                       VERSION        REPLACES                                PHASE       LABELS
mcg-operator.v4.12.3-rhodf              NooBaa Operator               4.12.3-rhodf   mcg-operator.v4.12.2-rhodf              Succeeded   operators.coreos.com/mcg-operator.openshift-storage=
ocs-operator.v4.12.3-rhodf              OpenShift Container Storage   4.12.3-rhodf   ocs-operator.v4.12.2-rhodf              Succeeded   full_version=4.12.3-17,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/ocs-operator.openshift-storage=
odf-csi-addons-operator.v4.12.3-rhodf   CSI Addons                    4.12.3-rhodf   odf-csi-addons-operator.v4.12.2-rhodf   Succeeded   operators.coreos.com/odf-csi-addons-operator.openshift-storage=
odf-operator.v4.12.3-rhodf              OpenShift Data Foundation     4.12.3-rhodf   odf-operator.v4.12.2-rhodf              Succeeded   full_version=4.12.3-17,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/odf-operator.openshift-storage=
[sdurgbun auth]$ 

After Upgrade
---------------
[sdurgbun auth]$ oc get clusterclaims.cluster.open-cluster-management.io version.odf.openshift.io -o yaml
apiVersion: cluster.open-cluster-management.io/v1alpha1
kind: ClusterClaim
metadata:
  creationTimestamp: "2023-06-05T15:15:22Z"
  generation: 2
  name: version.odf.openshift.io
  resourceVersion: "2266678"
  uid: 8484123b-3f5a-46c3-8988-d115f2ab085a
spec:
  value: 4.13.0-207.stable
[sdurgbun auth]$ oc get csv --show-labels --namespace openshift-storage
NAME                                         DISPLAY                         VERSION             REPLACES                                PHASE       LABELS
mcg-operator.v4.13.0-207.stable              NooBaa Operator                 4.13.0-207.stable   mcg-operator.v4.12.3-rhodf              Succeeded   operators.coreos.com/mcg-operator.openshift-storage=
ocs-operator.v4.13.0-207.stable              OpenShift Container Storage     4.13.0-207.stable   ocs-operator.v4.12.3-rhodf              Succeeded   full_version=4.13.0-207,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/ocs-operator.openshift-storage=
odf-csi-addons-operator.v4.13.0-207.stable   CSI Addons                      4.13.0-207.stable   odf-csi-addons-operator.v4.12.3-rhodf   Succeeded   operators.coreos.com/odf-csi-addons-operator.openshift-storage=
odf-operator.v4.13.0-207.stable              OpenShift Data Foundation       4.13.0-207.stable   odf-operator.v4.12.3-rhodf              Succeeded   full_version=4.13.0-207,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operators.coreos.com/odf-operator.openshift-storage=
odr-cluster-operator.v4.12.3-rhodf           Openshift DR Cluster Operator   4.12.3-rhodf        odr-cluster-operator.v4.12.2-rhodf      Succeeded   olm.copiedFrom=openshift-dr-system
volsync-product.v0.6.2                       VolSync                         0.6.2               volsync-product.v0.6.1                  Succeeded   olm.copiedFrom=openshift-operators,operatorframework.io/arch.amd64=supported,operatorframework.io/arch.arm64=supported,operatorframework.io/arch.ppc64le=supported,operatorframework.io/arch.s390x=supported,operatorframework.io/os.linux=supported
[sdurgbun auth]$

Comment 10 errata-xmlrpc 2023-06-21 15:25:01 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.13.0 enhancement and 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-2023:3742