Back to bug 1822513

Who When What Removed Added
Lalatendu Mohanty 2020-04-09 17:39:58 UTC CC lmohanty
Lalatendu Mohanty 2020-04-09 17:40:25 UTC Keywords Upgrades
W. Trevor King 2020-04-09 20:19:10 UTC Flags needinfo?(jiajliu)
liujia 2020-04-10 04:20:02 UTC Flags needinfo?(jiajliu)
Eric Paris 2020-04-13 21:07:11 UTC Target Release 4.4.z ---
W. Trevor King 2020-04-13 23:59:51 UTC Target Release --- 4.5.0
Scott Dodson 2020-04-21 17:21:09 UTC Priority medium low
Scott Dodson 2020-04-21 17:21:19 UTC Assignee wking lmohanty
Lalatendu Mohanty 2020-05-06 15:18:33 UTC Keywords UpcomingSprint
Eric Paris 2020-05-11 18:24:44 UTC Keywords UpcomingSprint, Upgrades
Eric Paris 2020-05-11 22:36:06 UTC Keywords Upgrades
Lalatendu Mohanty 2020-05-19 11:04:16 UTC Target Release 4.5.0 4.6.0
Lalatendu Mohanty 2020-05-19 11:12:18 UTC Keywords UpcomingSprint
Eric Paris 2020-06-01 15:19:43 UTC Keywords UpcomingSprint
Lalatendu Mohanty 2020-06-18 12:39:35 UTC Keywords UpcomingSprint
Eric Paris 2020-06-22 13:14:15 UTC Keywords UpcomingSprint
Lalatendu Mohanty 2020-06-24 11:57:09 UTC Status NEW ASSIGNED
Jack Ottofaro 2020-06-25 23:08:49 UTC CC jack.ottofaro
Assignee lmohanty jack.ottofaro
OpenShift BugZilla Robot 2020-06-26 20:36:14 UTC Status ASSIGNED POST
OpenShift BugZilla Robot 2020-06-26 20:36:16 UTC Link ID Github openshift/cluster-version-operator/pull/394
Lalatendu Mohanty 2020-07-06 17:26:34 UTC Summary "oc adm upgrade --to-image" cause upgradeable=false blocked during 4.y.z-4.y.(z+1) upgrade Upgrades are getting blocked during 4.y.z-4.y.(z+1) upgrade with "oc adm upgrade --to-image" command when CVO has upgradeable=false
W. Trevor King 2020-07-06 18:39:29 UTC CC wking
Jack Ottofaro 2020-07-09 14:18:23 UTC Keywords UpcomingSprint
Eric Paris 2020-07-13 13:14:40 UTC Keywords UpcomingSprint
OpenShift BugZilla Robot 2020-07-22 15:48:14 UTC Status POST MODIFIED
errata-xmlrpc 2020-07-22 18:09:50 UTC Status MODIFIED ON_QA
liujia 2020-08-03 05:39:38 UTC Status ON_QA VERIFIED
Jack Ottofaro 2020-09-30 13:00:06 UTC Doc Text Cause: currentMinor is always being pulled from cv.Status.History[0].Version which contains the version being upgraded to and not the current version.

Consequence: When --to-image is used, cv.Status.History[0].Version = "" which then fails the check for a z-level upgrade.

Fix: Iterate the version history to find and use the first version with State == configv1.CompletedUpdate, which will yield the current version, and pull currentMinor from it.

Result: z-level upgrades using "oc adm upgrade --to-image" command are allowed even when CVO has upgradeable=false.
Doc Type If docs needed, set a value Bug Fix
errata-xmlrpc 2020-10-26 00:05:07 UTC Status VERIFIED RELEASE_PENDING
errata-xmlrpc 2020-10-27 15:57:47 UTC Status RELEASE_PENDING CLOSED
Resolution --- ERRATA
Last Closed 2020-10-27 15:57:47 UTC
errata-xmlrpc 2020-10-27 15:58:15 UTC Link ID Red Hat Product Errata RHBA-2020:4196

Back to bug 1822513