Bug 1785093
| Summary: | Console shows 'Error retrieving' in Update Status even upgrade is in progress [openshift-4.4] | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> | ||||
| Component: | Management Console | Assignee: | Robb Hamilton <rhamilto> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.4 | CC: | aos-bugs, eparis, jokerman, rhamilto, yapei | ||||
| Target Milestone: | --- | Flags: | rhamilto:
needinfo-
|
||||
| Target Release: | 4.4.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1797755 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-05-04 11:20:43 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1797755, 1797756, 1797758 | ||||||
| Attachments: |
|
||||||
|
Description
Yadan Pei
2019-12-19 06:20:59 UTC
Steps to Reproduce: 1. Do a force upgrade from 4.2.12 to 4.3 nightly without changing default configuration of ClusterVersion $ oc adm upgrade --to-image registry.svc.ci.openshift.org/ocp/release:4.3.0-0.nightly-2019-12-18-224446 --force --allow-explicit-upgrade=true 2. Check Cluster Settings page -> Overview 3. Check Cluster Settings page -> Cluster Operators http://g.recordit.co/rwALTQZmSj.gif Not sure if everyone can open it, but please refresh and try in different browsers if you can't open it(we confirmed it works after retry, in different browser) Hi Robb I did an upgrade from 4.4.0-0.nightly-2020-02-02-225006 to 4.4.0-0.nightly-2020-02-03-043955 and Update Status on Cluster Settings page is showing correct status, but attached PR #4161 is still open, does other PR fixed the issue? Created attachment 1657459 [details]
UpdateStatus
Or do I need to verify the bug during a 4.2 -> 4.4 upgrade? It sounds unreasonable > Or do I need to verify the bug during a 4.2 -> 4.4 upgrade? It sounds unreasonable No. In fixing the bug, I noticed it occurs in all versions. And with the bug back porting process, it made the most sense to update this bug to cover the current version and then clone it to cover the previous versions so the dependency chain is easily created. Prior to the fix, the bug occurs any time the RetrievedUpdates Condition at k8s/cluster/config.openshift.io~v1~ClusterVersion/version is false. This can be easily replicated by editing Cluster Version spec.upstream to an invalid value (e.g., https://bogus.openshift.com/api/upgrades_info/v1/graph) at k8s/cluster/config.openshift.io~v1~ClusterVersion/version/yaml and then following your steps to reproduce. The bug was occurring because code was returning 'Error retrieving' before 'Cluster update in progress, working towards .....', thus never showing an update was in progress. 1. patch clusterversion/version to an invalid value
$ oc patch clusterversion version --type='json' -p='[{"op": "replace", "path": "/spec/upstream", "value":"https://testopenshift-release.svc.ci.openshift.org/graph"}]'
clusterversion.config.openshift.io/version patched
2. Update Status will show 'Failing', click 'view details' will show detail error message
3. upgrade the cluster to a new 4.4
$ oc adm upgrade --to-image registry.svc.ci.openshift.org/ocp/release:4.4.0-0.nightly-2020-02-05-234656 --force --allow-explicit-upgrade
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.4.0-0.nightly-2020-02-05-211857 True True 49s Working towards 4.4.0-0.nightly-2020-02-05-234656: 15% complete
4. Update Status in Cluster Settings also show ' Working towards 4.4.0-0.nightly-2020-02-05-234656: N% complete', click 'View details' will redirect user to Cluster Operators tab, there is also update message there
Verified on 4.4.0-0.nightly-2020-02-05-211857
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, 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:0581 |