Bug 2213456 - Set ​​maxOpenShiftVersion to block OpenShift that didn't upgrade ODF version
Summary: Set ​​maxOpenShiftVersion to block OpenShift that didn't upgrade ODF version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-operator
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.13.1
Assignee: Nitin Goyal
QA Contact: Vijay Avuthu
URL:
Whiteboard:
Depends On:
Blocks: 2213452
TreeView+ depends on / blocked
 
Reported: 2023-06-08 08:01 UTC by Eran Tamir
Modified: 2023-08-28 09:04 UTC (History)
7 users (show)

Fixed In Version: 4.13.1-3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2213452
Environment:
Last Closed: 2023-08-02 16:07:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage odf-operator pull 316 0 None Merged makefile: block OCP upgrades beyond the X+1 version 2023-06-09 09:46:36 UTC
Github red-hat-storage odf-operator pull 317 0 None open Bug 2213456:[release-4.13] makefile: block OCP upgrades beyond the X+1 version 2023-07-03 05:44:30 UTC
Red Hat Product Errata RHSA-2023:4437 0 None None None 2023-08-02 16:08:03 UTC

Description Eran Tamir 2023-06-08 08:01:41 UTC
+++ This bug was initially created as a clone of Bug #2213452 +++

Description of problem (please be detailed as possible and provide log
snippests):

Currently, we don't block OpenShift upgrades when the ODF version is not compatible. For example, when the ODF version is 4.13 and the OpenShift version is 4.14, we should block an upgrade to 4.15 as ODF 4.13 is incompatible. 



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

Yes. It may cause and issue and ends with a support call. 

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

Sometimes manual changes in the CSV can help, but it involves support and may help just to upgrade to the relevant ODF version, while part of the service may be impacted. 

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

Comment 5 Nitin Goyal 2023-07-03 06:11:47 UTC
PR is merged.

Comment 9 Vijay Avuthu 2023-07-25 07:13:39 UTC
Update:
========

installed OCP 4.13.4 + ODF 4.13.1-9 using job: https://url.corp.redhat.com/c14cbdc

1. chnaged channel to candidate-4.14 and upgrade to 4.14.0-ec.3

$ oc get clusterversion
NAME      VERSION       AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.14.0-ec.3   True        False         18h     Cluster version is 4.14.0-ec.3
$ oc adm upgrade
Cluster version is 4.14.0-ec.3

Upstream is unset, so the cluster will use an appropriate default.
Channel: candidate-4.14 (available channels: candidate-4.14)
No updates available. You may force an upgrade to a specific release image, but doing so may not be supported and may result in downtime or data loss.
$ 

> since there is no build for OCP 4.15 , we cannot initiate upgrade to 4.15

> oc get csv odf-operator.v4.13.1-rhodf -o json | jq '.metadata.annotations."olm.properties"'
"[{\"type\": \"olm.maxOpenShiftVersion\", \"value\": \"4.14\"}]"

> Verified the same on backported releases.

Comment 10 Vijay Avuthu 2023-07-25 07:23:11 UTC
moving to Verified as we don't have OCP 4.15 build and olm.maxOpenShiftVersion property is set on odf operator.

Comment 15 errata-xmlrpc 2023-08-02 16:07:42 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 (Moderate: Red Hat OpenShift Data Foundation 4.13.1 security 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/RHSA-2023:4437


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