Bug 1330364

Summary: Should update the role name in the prompt on the web console
Product: OpenShift Container Platform Reporter: Wei Sun <wsun>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.0CC: jokerman, mmccomas, tdawson
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 20:13:21 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:

Description Wei Sun 2016-04-26 03:28:26 UTC
Description of problem:
In online env,the project admin role name is openshift-online:admin,so on web console,the prompt also should be updated to "oc policy add-role-to-user openshift-online:admin wsun1 -n <projectname>"

Version-Release number of selected component (if applicable):
dev-preview-int

How reproducible:
always

Steps to Reproduce:
1.Login web cosnole
2.Create a project and then access /console page
3.

Actual results:
There is prompt "A project admin can add you as an admin to a project by running the command oc policy add-role-to-user admin wsun1 -n <projectname>"

Expected results:
The prompt should be updated to "A project admin can add you as an admin to a project by running the command oc policy add-role-to-user openshift-online:admin wsun1 -n <projectname>"

Additional info:

Comment 1 Jessica Forrester 2016-04-26 14:32:45 UTC
There is no way for us to know, the right fix is to put in placeholder text like <role> instead of the actual role name.  Should also probably update the message to something like "A project admin can add you to a role in a project by running ..."

Comment 2 Jessica Forrester 2016-04-26 15:13:34 UTC
ose PR for 3.2.0.z branch https://github.com/openshift/ose/pull/188

Comment 3 Wei Sun 2016-05-04 06:07:42 UTC
Checked this bug using the hotfix puddle,the bug has been fixed.
Now on the web console ,the prompt is :
A project admin can add you to a role on a project by running the command oc policy add-role-to-user <role> wsun -n <projectname>

After the fix is merged to Online and the bug is moved to ON_QA,I'll verify it.

Comment 4 Troy Dawson 2016-05-10 16:23:26 UTC
This is in atomic-openshift-3.2.0.43-1.git.0.672599f.el7

Comment 6 Yadan Pei 2016-05-11 05:34:35 UTC
Checked against atomic-openshift-3.2.0.43-1.git.0.672599f.el7

Now the prompt on web console is:

A project admin can add you to a role on a project by running the command oc policy add-role-to-user <role> yapei -n <projectname>

yapei is current user

Comment 7 Yadan Pei 2016-05-11 05:59:18 UTC
Will change product to Atomic Enterprise Platform and OpenShift Enterprise since issue is not specific to Online and changes already merged in OSE

New prompt message is more flexible, user could change <role> based on different envs

Comment 8 Yadan Pei 2016-05-11 05:59:56 UTC
Move to VERIFIED since it works as expected now

Comment 10 errata-xmlrpc 2016-05-19 20:13:21 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, 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/RHSA-2016:1094