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:
https://github.com/openshift/console/pull/1936
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.
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