Bug 1666231 - The content of CURRENT PAYLOAD is missing on Cluster Settings page
Summary: The content of CURRENT PAYLOAD is missing on Cluster Settings page
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.1.0
Assignee: Samuel Padgett
QA Contact: XiaochuanWang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-15 09:42 UTC by XiaochuanWang
Modified: 2019-03-12 14:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-18 14:02:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
CURRENT PAYLOAD field visibility (26.56 KB, image/png)
2019-01-15 10:34 UTC, Jakub Hadvig
no flags Details

Description XiaochuanWang 2019-01-15 09:42:42 UTC
Description of problem:
Cluster admin check cluster settings page, here is a CURRENT PAYLOAD field but the content is missing.

Version-Release number of selected component (if applicable):
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE     STATUS
version   4.0.0-0.nightly-2019-01-15-010905   True        False         11m       Cluster version is 4.0.0-0.nightly-2019-01-15-010905
$ sudo podman inspect <console_image_id>
            "version": "v4.0.0"
            "release": "0.139.0.0",
            "io.openshift.source-repo-commit": "a62eaa43f2aab9a817a3fb66e1c8b88d5ef100da",

How reproducible:
Always

Steps to Reproduce:
1. Cluster admin login and check cluster settings page


Actual results:
Here is a CURRENT PAYLOAD field but the content is missing.

Expected results:
Since the request can get the payload, it should display the correct content.

Eg. Current payload:
$oc get po -n openshift-cluster-version -o yaml |grep 'release-image'
 - --release-image=registry.svc.ci.openshift.org/ocp/release@sha256:bcfba3a40b8c30738475aa71743348df38df5a59820c7f6aaaea0644e830ed54

or $ oc get clusterversion -o yaml | grep -B2 payload

Additional info:

Comment 1 Jakub Hadvig 2019-01-15 10:34:20 UTC
Created attachment 1520705 [details]
CURRENT PAYLOAD field visibility

Was trying to reproduce the issue using:

[jhadvig@dhcp-0-147 frontend]$ oc get clusterversion
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE     STATUS
version   4.0.0-9   True        False         1d        Cluster version is 4.0.0-9

but I've seen the `CURRENT PAYLOAD` field

Comment 2 Samuel Padgett 2019-01-15 21:16:47 UTC
https://github.com/openshift/console/pull/1085

Comment 3 Samuel Padgett 2019-01-17 00:07:24 UTC
Fix merged to master

Comment 4 XiaochuanWang 2019-01-17 06:48:00 UTC
Checked the PR, the value of CURRENT PAYLOAD is got from 'status.desired.payload', but literally it should get from 'status.history'.  (Also the CURRENT VERSION is the same issue.)
It'll be a risk when the current version is old and it doesn't match the desired version any more before upgrading.
It's better to match the current status. Could you please to take a look into this, thanks!

Comment 5 Samuel Padgett 2019-02-05 20:22:02 UTC
https://github.com/openshift/console/pull/1100

We now show "Desired Release Image" for  `status.desired.image` and added a history table to make update status more clear.

Comment 6 XiaochuanWang 2019-02-12 07:23:50 UTC
The version and state now is in the new table "Update History".
Also the content of "Desired Version" field (which is same as `oc get clusterversion`) could be found in one of the history versions.
the "Desired Release Image" is same as `oc get po -n openshift-cluster-version -o yaml |grep 'release-image'`

This is fixed. 
Verified on OCP 4.0 as below detail:
$ oc get clusterversion
NAME      VERSION                           AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.0.0-0.alpha-2019-02-11-201342   True        False         132m    Cluster version is 4.0.0-0.alpha-2019-02-11-201342

$ oc get po -n openshift-cluster-version -o yaml |grep 'release-image'
      - --release-image=registry.svc.ci.openshift.org/openshift/origin-release@sha256:5d87e5ecc0751494e7cc4cb428b409a76b7249189d5faec3fa09f685672d851e


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