Bug 2087248 - `oc adm upgrade` should return ReleaseAccepted condition to show upgrade status.
Summary: `oc adm upgrade` should return ReleaseAccepted condition to show upgrade status.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.z
Assignee: David Hurta
QA Contact: liujia
URL:
Whiteboard:
Depends On: 2065507
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-17 16:40 UTC by OpenShift BugZilla Robot
Modified: 2022-05-31 12:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-31 12:40:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 1147 0 None open [release-4.10] Bug 2087248: Add the ReleaseAccepted condition to the oc adm upgrade command 2022-05-17 16:40:35 UTC
Red Hat Product Errata RHBA-2022:4754 0 None None None 2022-05-31 12:41:06 UTC

Comment 4 liujia 2022-05-23 07:12:23 UTC
Verified on 4.10.0-0.nightly-2022-05-19-133122

# ./oc version
Client Version: 4.10.0-0.nightly-2022-05-19-133122
Server Version: 4.10.14
Kubernetes Version: v1.23.5+b463d71

1. Trying to upgrade a cluster to an unsigned payload.
# ./oc adm upgrade
Cluster version is 4.10.14

ReleaseAccepted=False

  Reason: RetrievePayload
  Message: Retrieving payload failed version="" image="registry.ci.openshift.org/ocp/release@sha256:60a93f1ca1a0e3db1916b201ee2c846f70ba6991cdcdac96b12e740574c9daa1" failure=The update cannot be verified: unable to locate a valid signature for one or more sources

2. Trying to upgrade a cluster to an unavailable payload.
# ./oc adm upgrade
Cluster version is 4.10.14

ReleaseAccepted=False

  Reason: RetrievePayload
  Message: Retrieving payload failed version="" image="quay.io/openshift-release-dev/ocp-release@sha256:e0719cb528dbac58ab0462637a6016aff7ce51b12d65747121a6165c170f9373" failure=Unable to download and prepare the update: deadline exceeded, reason: "DeadlineExceeded", message: "Job was active longer than specified deadline"

3. Precondition check for etcd backup
# ./oc adm upgrade
Cluster version is 4.10.14

ReleaseAccepted=False

  Reason: PreconditionChecks
  Message: Preconditions failed for payload loaded version="4.11.0-0.nightly-2022-05-20-213928" image="registry.ci.openshift.org/ocp/release@sha256:e0719cb528dbac58ab0462637a6016aff7ce51b12d65747121a6165c170f9373": Precondition "EtcdRecentBackup" failed because of "ControllerStarted": 

4. Precondition check for upgradeable=false
# ./oc adm upgrade
Cluster version is 4.10.14

Upgradeable=False

  Reason: ClusterVersionOverridesSet
  Message: Disabling ownership via cluster version overrides prevents upgrades. Please remove overrides before continuing.

ReleaseAccepted=False

  Reason: PreconditionChecks
  Message: Preconditions failed for payload loaded version="4.10.15" image="quay.io/openshift-release-dev/ocp-release@sha256:ddcb70ce04a01ce487c0f4ad769e9e36a10c8c832a34307c1b1eb8e03a5b7ddb": Precondition "ClusterVersionUpgradeable" failed because of "ClusterVersionOverridesSet": Disabling ownership via cluster version overrides prevents upgrades. Please remove overrides before continuing.

Comment 7 errata-xmlrpc 2022-05-31 12:40: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 (OpenShift Container Platform 4.10.16 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-2022:4754


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