Description of problem: ------------------------------- While trying to check the status of storage cluster creation via CLI , it was observed that the versions of OCS operator was different for the commands mentioned below :- ** [root@localhost test]# oc get storagecluster -n openshift-storage NAME AGE PHASE EXTERNAL CREATED AT VERSION ocs-storagecluster 30m Ready 2021-12-22T11:22:33Z 4.9.0 ** [root@localhost test]# oc get csv -n openshift-storage NAME DISPLAY VERSION REPLACES PHASE mcg-operator.v4.10.0 NooBaa Operator 4.10.0 Succeeded ocs-operator.v4.10.0 OpenShift Container Storage 4.10.0 Succeeded odf-operator.v4.10.0 OpenShift Data Foundation 4.10.0 Succeeded Version of all relevant components: ------------------------------------ OCP 4.10 ODF 4.10 Can this issue reproducible? ----------------------------------- YES Can this issue reproduce from the UI? -------------------------------------- No, it is a CLI issue. Steps to Reproduce: -------------------- 1. Deploy a OCP 4.10 and ODF 4.10 and create storage system . 2. Go to CLI and run following commands :- * oc get storagecluster -n openshift-storage * oc get csv -n openshift-storage Actual results: ------------------ The OCS operator versions differ. Expected results: ------------------ The OCS operator version should be same everywhere .
OCS Storage yaml is present here :- https://docs.google.com/document/d/1h9cUGgT7cIJOku6MWd-NSl_9nZymTdbqE-bh2xUk6qY/edit?usp=sharing Thanks Mugdha
Hi Yes it was fresh deployment. Thanks Mugdha
This was already recently fixed in ocs-operator release-4.10: https://github.com/red-hat-storage/ocs-operator/commit/2f04820b772726b55f4eda3d72a6a4c7114c8e7f
QE will check that storagecluster CR provides the correct version.
Hi Tested the fix with following versions:- OCP :- 4.10.0-0.nightly-2022-02-11-123954 ODF :- 4.10.0-147 ** Observations :- The versions were same :- [root@localhost l]# oc get csv odf-operator.v4.10.0 -o yaml -n openshift-storage| grep full_version full_version: 4.10.0-147 f:full_version: {} [root@localhost l]# oc get storagecluster -n openshift-storage NAME AGE PHASE EXTERNAL CREATED AT VERSION ocs-storagecluster 10m Ready 2022-02-13T11:39:25Z 4.10.0 [root@localhost l]# oc get csv -n openshift-storage NAME DISPLAY VERSION REPLACES PHASE mcg-operator.v4.10.0 NooBaa Operator 4.10.0 Succeeded ocs-operator.v4.10.0 OpenShift Container Storage 4.10.0 Succeeded odf-csi-addons-operator.v4.10.0 CSI Addons 4.10.0 Succeeded odf-operator.v4.10.0 OpenShift Data Foundation 4.10.0 Succeeded Moving this bug to verified state . Thanks Mugdha Soni
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.10.0 enhancement, security & 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-2022:1372