Bug 1877012

Summary: Hide cluster upgrade UI on OpenShift Dedicated and Amazon Red Hat OpenShift
Product: OpenShift Container Platform Reporter: Robb Hamilton <rhamilto>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: low    
Version: 4.5CC: amobrem, aos-bugs, jhadvig, jokerman, pstrick, pweil, rhamilto, spadgett, yapei
Target Milestone: ---Keywords: Reopened
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The cluster upgrade UI is always present. Consequence: OpenShift Dedicated users are not permitted to perform cluster upgrades. Fix: Hide the cluster upgrade UI when the console branding is OpenShift Dedicated. Result: OpenShift Dedicated users do not see the cluster upgrade UI.
Story Points: ---
Clone Of: 1874257 Environment:
Last Closed: 2020-09-30 14:07:01 UTC Type: ---
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: 1874257    
Bug Blocks:    

Comment 1 Robb Hamilton 2020-09-10 15:18:06 UTC
This back port is not needed for 4.5.

Comment 2 Robb Hamilton 2020-09-14 17:24:10 UTC
Reopening as it back port is requested after all.

Comment 5 Yadan Pei 2020-09-22 05:52:28 UTC
1. create a cluster with 4.5.0-0.nightly-2020-09-18-234758
2. patch clusterversion to get updates
# oc patch clusterversion/version --patch '{"spec":{"upstream":"https://openshift-release.apps.ci.l2s4.p1.openshiftapps.com/graph"}}' --type=merge 
3. cluster admin user can view cluster updates info at Cluster Status card, Notification Drawer and Cluster Setting page
4. change brand to dedicated and wait for new console pods are running, refresh the browser
# oc patch console.operator cluster -p '{"spec":{"customization": {"brand":"dedicated","documentationBaseURL":"https://docs.okd.io/latest/"}}}' --type merge
console.operator.openshift.io/cluster patched
5. check cluster upgrade info in Notification Drawer && Cluster Status card, cluster upgrade info is not shown on these two pages
6. check cluster upgrade info on Cluster Settings page, we can only see  Update available message, but no 'Upgrade Now' button and upgrade channel list button is disabled


Verified on 4.5.0-0.nightly-2020-09-18-234758

Comment 9 errata-xmlrpc 2020-09-30 14:07:01 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.5.13 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-2020:3760