Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44279

ROKS v4.16.16 HyperShift-based clusters fail to get oauth token in the OpenShift web console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • 4.14.z
    • 4.16.z
    • HyperShift
    • None
    • Critical
    • Yes
    • Hypershift Sprint 262, Hypershift Sprint 263
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, {hcp}-based clusters were unable to authenticate through the `oc login` command. The web browser displayed an error when it attepted to retrieve the the token after selecting *Display Token*. with this release, `cloud.ibm.com` and other cloud-based endpoints are no longer proxied and authentication is successful. (link:https://issues.redhat.com/browse/OCPBUGS-44279[*OCPBUGS-44279*])
      Show
      * Previously, {hcp}-based clusters were unable to authenticate through the `oc login` command. The web browser displayed an error when it attepted to retrieve the the token after selecting *Display Token*. with this release, `cloud.ibm.com` and other cloud-based endpoints are no longer proxied and authentication is successful. (link: https://issues.redhat.com/browse/OCPBUGS-44279 [* OCPBUGS-44279 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-44278. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-44277. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-44276. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-44163. The following is the description of the original issue:

      Description of problem:

      We identified a regression where we can no longer get oauth tokens for HyperShift v4.16 clusters via the OpenShift web console. v4.16.10 works fine, but once clusters are patched to v4.16.16 (or are created at that version) they fail to get the oauth token. 
      
      This is due to this faulty PR: https://github.com/openshift/hypershift/pull/4496.
      
      The oauth openshift deployment was changed and affected the IBM Cloud code path.  We need this endpoint to change back to using `socks5`.
      
      Bug:
      <           value: socks5://127.0.0.1:8090
      ---
      >           value: http://127.0.0.1:8092
      98c98
      <           value: socks5://127.0.0.1:8090
      ---
      >           value: http://127.0.0.1:80924:53
      Fix:
      Change http://127.0.0.1:8092 to socks5://127.0.0.1:8090
      
      

       

       

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

      4.16.16

      How reproducible:

      Every time.

      Steps to Reproduce:

          1. Create ROKS v4.16.16 HyperShift-based cluster. 
          2. Navigate to the OpenShift web console.
          2. Click IAM#<username> menu in the top right.
          3. Click 'Copy login command'.
          4. Click 'Display token'.
          

      Actual results:

      Error getting token: Post "https://example.com:31335/oauth/token": http: server gave HTTP response to HTTPS client    

      Expected results:

      The oauth token should be successfully displayed.

      Additional info:

          

              agarcial@redhat.com Alberto Garcia Lamela
              openshift-crt-jira-prow OpenShift Prow Bot
              Evan Reilly Evan Reilly
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: