Bug 1832889

Summary: [VMWare] Upgrade from OCS 4.4 to OCS 4.5 does not upgrade osd pods
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Rachael <rgeorge>
Component: rookAssignee: Travis Nielsen <tnielsen>
Status: CLOSED ERRATA QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: ebenahar, hchiramm, madam, mrajanna, nberry, ocs-bugs, owasserm, ratamir, tnielsen
Target Milestone: ---Keywords: AutomationBackLog, Regression, TestBlockerForLayeredProduct, Upgrades
Target Release: OCS 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-15 10:16:49 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:

Comment 5 Travis Nielsen 2020-05-07 18:09:33 UTC
There is an issue in the operator related to 4.5. This should not block the 4.4 release as the fix is needed in the 4.5 operator. 

2020-05-07T09:42:22.075116409Z 2020-05-07 09:42:22.075087 E | op-osd: unknown PVC template type "", valid names are "data" for the main OSD block and "metadata" for a metadata device to back the OSD.
2020-05-07T09:42:22.075116409Z 2020-05-07 09:42:22.075108 E | op-osd: unknown PVC template type "", valid names are "data" for the main OSD block and "metadata" for a metadata device to back the OSD.
2020-05-07T09:42:22.075133115Z 2020-05-07 09:42:22.075115 E | op-osd: unknown PVC template type "", valid names are "data" for the main OSD block and "metadata" for a metadata device to back the OSD.

@Seb can you take a look?

Comment 10 Sébastien Han 2020-05-12 08:19:16 UTC
I wonder why the volumeClaimTemplates has no metadata name this is clearly a problem.
Will look at this.

Comment 11 Travis Nielsen 2020-05-12 20:06:39 UTC
(In reply to leseb from comment #10)
> I wonder why the volumeClaimTemplates has no metadata name this is clearly a
> problem.
> Will look at this.

I'm assuming the operator should just interpret the empty string as a data template. OCS doesn't currently use metadata templates.

Comment 14 Sébastien Han 2020-05-22 08:57:13 UTC
Synced with https://github.com/openshift/rook/pull/60

Comment 18 Elad 2020-08-10 16:02:03 UTC
All pods, including OSD ones, are being upgraded when upgrade OCS 4.4 to 4.5.

oc -n openshift-storage --kubeconfig /home/jenkins/current-cluster-dir/openshift-cluster-dir/auth/kubeconfig get Pod rook-ceph-osd-0-6fd9dbdc46-9pv9j -n openshift-storage -o yaml

All the images: {'container': 'quay.io/rhceph-dev/rhceph@sha256:df67e134c9037707118a8533670b2f77647355a4af2fdc1247d79679cb6bb676', 'osd': 'quay.io/rhceph-dev/rhceph@sha256:df67e134c9037707118a8533670b2f77647355a4af2fdc1247d79679cb6bb676', 'config-init': 'quay.io/rhceph-dev/rook-ceph@sha256:164ff0868bf6d848a45b325a6eb3a2280e8978df69645b1b91d79ecca44da684', 'copy-bins': 'quay.io/rhceph-dev/rook-ceph@sha256:164ff0868bf6d848a45b325a6eb3a2280e8978df69645b1b91d79ecca44da684', 'blkdevmapper': 'quay.io/rhceph-dev/rhceph@sha256:df67e134c9037707118a8533670b2f77647355a4af2fdc1247d79679cb6bb676', 'chown-container-data-dir': 'quay.io/rhceph-dev/rhceph@sha256:df67e134c9037707118a8533670b2f77647355a4af2fdc1247d79679cb6bb676'} were successfully upgraded in: rook-ceph-osd-0-6fd9dbdc46-9pv9j!



===================================
Source OCS version - v4.4.2-510.ci
Target OCS version - 4.5.0-43.ci

OCP version - 4.5.0-0.nightly-2020-08-10-061547

Comment 20 errata-xmlrpc 2020-09-15 10:16:49 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 Container Storage 4.5.0 bug fix and enhancement 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-2020:3754