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

Unclear failure message when using an incompatible oc client to run "oc adm release extract" command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 4.16.0
    • 4.15.z
    • oc
    • None
    • Low
    • No
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      When using an old version "oc" client to extract something newly introduced into the release extract, got an error about it doesn't support linux, which is a bit confusing.
      
      
      [root@gpei-test-rhel9 0423]# ./oc version
      Client Version: 4.15.10
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      Kubernetes Version: v1.27.12+7bee54d
      
      [root@gpei-test-rhel9 0423]# ./oc adm release extract --registry-config ~/.docker/config --command=openshift-install-fips --to ./ registry.ci.openshift.org/ocp/release:4.16.0-0.ci-2024-04-23-065741
      error: command "openshift-install-fips" does not support the operating system "linux"
      
      And for the oc client extracted from the same payload, it works well.
      [root@gpei-test-rhel9 fips]# ./oc version
      Client Version: 4.16.0-0.ci-2024-04-23-065741
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      Kubernetes Version: v1.27.12+7bee54d
      
      [root@gpei-test-rhel9 fips]# ./oc adm release extract --registry-config ~/.docker/config --command=openshift-install-fips --to ./ registry.ci.openshift.org/ocp/release:4.16.0-0.ci-2024-04-23-065741
      
      [root@gpei-test-rhel9 fips]# ls
      oc  openshift-install-fips
      
      It would be expected to get error prompt "command "openshift-install-fips" is not supported in current oc client" or something like this, but not saying it does not support the operating system "linux"
      
      

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

          

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

            aguclu@redhat.com Arda Guclu
            rh-ee-gpei Gaoyun Pei
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: