Bug 1727249

Summary: Could not add github idp successfully on console
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:33:09 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 Yanping Zhang 2019-07-05 07:52:05 UTC
Description of problem:
Add github idp from console, after filled field with "*", click "Add", it prompts error:"Error "Invalid value: "null": one of organizations or teams must be specified unless hostname is set or lookup is used" for field "spec.identityProviders[1].github"."

Version-Release number of selected component (if applicable):
4.2.0-0.ci-2019-07-03-100447

How reproducible:
Always

Steps to Reproduce:
1.Go to cluster OAuth configuration page, under "Identity Providers", click "Add", choose "GitHub".
2.Input Name, Client ID, ClientSecret. Click "Add"
3.Input a organization name in "Organization" field, click "Add" again.

Actual results:
2.Could not add successfully. See error info:
 Error "Invalid value: "null": one of organizations or teams must be specified unless hostname is set or lookup is used" for field "spec.identityProviders[1].github".
3. Still show the same error info:
Error "Invalid value: "null": one of organizations or teams must be specified unless hostname is set or lookup is used" for field "spec.identityProviders[1].github".

Expected results:
2,3. Should add idp successfully, since all required fields have been filled.

Additional info:

Comment 1 Samuel Padgett 2019-07-05 15:57:09 UTC
https://github.com/openshift/console/pull/1936

Comment 3 Yanping Zhang 2019-07-08 10:18:41 UTC
4.2.0-0.ci-2019-07-07-230657
console commit id: d14aceb5022a6eb89e18328d383a56c612a75073
Checked on OCP 4.2 env with above version. 
When create github idp from console, after set name, client id, client secret and organization, click "Add", the idp is added successfully.
The bug is fixed, so move it to Verified.

Comment 4 errata-xmlrpc 2019-10-16 06:33:09 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/RHBA-2019:2922