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

[4.19 HCP only] HyperShift hosted cluster kubeadmin login always fails with "Login failed (401 Unauthorized)"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.19.0
    • HyperShift
    • Critical
    • Yes
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      In 4.19 HyperShift hosted cluster, kubeadmin login always fails.
      4.18 HyperShift hosted cluster (MGTM cluster and hosted cluster both are 4.18) doesn't have the issue.
      

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

      MGMT cluster version and hosted cluster version both are 4.19.0-0.nightly-2025-02-11-161912
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      1. Launch 4.19 HyperShift management cluster and a hosted cluster on it.
      2. Run kubeadmin login against HCP:
      $ export KUBECONFIG=/path/to/mgmt/kubeconfig
      $ oc get secret kubeadmin-password -n clusters-hypershift-ci-334742 -o 'jsonpath={ .data.password }' | base64 -d
      WJt9r-xxxxx-xxxxx-fpAMT
      
      $ export KUBECONFIG=/path/to/hosted-cluster/kubeconfig
      $ oc login -u kubeadmin -p "WJt9r-xxxxx-xxxxx-fpAMT"
      Login failed (401 Unauthorized)
      Verify you have provided the correct credentials.
      

      Actual results:

      HyperShift hosted cluster kubeadmin login always fails.
      

      Expected results:

      Success.
      

      Additional info:

      If I then configured htpasswd IDP for the hosted cluster, htpasswd user can login successfully.
      

              rh-ee-mraee Mulham Raee
              xxia-1 Xingxing Xia
              Xingxing Xia Xingxing Xia
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: