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

OpenShift CLI distributed in the web console doesn't work in RHEL8 client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.16
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      In the OpenShift web console, click on the "?" in the top right corner and select "Command Line Tools" from the pull-down menu.
      (URL: https://console-openshift-console.apps.<domain>/command-line-tools)
      This will display a screen for downloading the "oc" binary for "Linux for x86_64".
      However, this oc binary is for RHEL9 clients.
      So, if you try to run the downloaded "oc" binary on an RHEL8 client, the following error message will be displayed and it will fail.
        -----
        $ ./oc version
        ./oc: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./oc)
        ./oc: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./oc)
        ./oc: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./oc)
        -----
      We confirmed this issue on OCP4.16.21 and OCP4.17.4.
      

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

          4.16.z and 4.17.z

      How reproducible:

          Refer to "Description of problem"

      Steps to Reproduce:

          1. In the OpenShift web console, click on the "?" in the top right corner and select "Command Line Tools" from the pull-down menu.     
          2. Download the "oc" binary for "Linux for x86_64".
          3. Run the "oc" binary on the RHEL8 environtment
          

      Actual results:

        $ ./oc version --client
        ./oc: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./oc)
        ./oc: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./oc)
        ./oc: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./oc)

      Expected results:

        $ ./oc version --client
        Client Version: 4.16.4
        Kustomize Version: XXXXXX

      Additional info:

      I think we need to check the following code
      
      https://github.com/openshift/console-operator/blob/f41009e8511cf5a042ca81d18e44137b7d11ba05/pkg/console/controllers/clidownloads/controller.go#L179C1-L194C1
      

              jhadvig@redhat.com Jakub Hadvig
              rhn-support-hfukumot Hideshi Fukumoto
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: