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

[OC] Version captured by must-gather into the version file and the oc client binary running on the machine is not the same

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.16
    • oc
    • None
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Version captured by must-gather into the version file and the oc client binary running on the machine is not the same
      

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

      Client Version: 4.16.0-202403300216.p0.gbd8ced0.assembly.stream-bd8ced0
      

      How reproducible:

      Always
      

      Steps to Reproduce:

          1. Install 4.16 ocp cluster
          2. Install oc from the atomic-openshift-clients rpm
          3. Run command oc adm must-gather
          4. Run command `cat must-gather.local.8529167588529325119/quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-d25335e4cf3d57720339a8b59b706a6fee2b3c7e926777e97b32019031aef225/version`
      

      Actual results:

      oc version shown when run `oc version` on the client system and `oc version` captured in the version file of must-gather is not the same.
      
      Version from version text file from generated must-gather:
      ===========================================================
      knarra@knarra-thinkpadx1carbon7th openshift-tests-private]$ cat must-gather.local.8529167588529325119/quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-d25335e4cf3d57720339a8b59b706a6fee2b3c7e926777e97b32019031aef225/version 
      openshift/must-gather
      4.16.0-202404011219.p0.g6b4b176.assembly.stream.el8-6b4b176
      
      Version shown when `oc version` is run on the linux client:
      =========================================================
      [knarra@knarra-thinkpadx1carbon7th openshift-tests-private]$ oc version
      Client Version: 4.16.0-202403300216.p0.gbd8ced0.assembly.stream-bd8ced0
      

      Expected results:

      oc version shown when run `oc version` on the client system and `oc version` captured in the version file of must-gather should be the same.
      

      Additional info:

      Looks like not actually capturing the `oc client version` but instead capturing the image version i.e i ran the command as
      `oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel9:v4.15.0` and i happened to see the version file has below contents

      [knarra@knarra-thinkpadx1carbon7th openshift-tests-private]$ cat must-gather.local.5918323468939272009/registry-redhat-io-container-native-virtualization-cnv-must-gather-rhel9-sha256-7d1ad741dbef8c0b482a8da6d3025ca776abad9a52a764085ee8880e1eb89cdd/version 
      kubevirt/must-gather
      v4.15.0 d25335e4cf3d57720339a8b59b706a6fee2b3c7e926777e97b32019031aef225
      

              jchaloup@redhat.com Jan Chaloupka
              knarra@redhat.com Rama Kasturi Narra
              Rama Kasturi Narra Rama Kasturi Narra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: