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

Format & oc-mirror version is not shown correctly when User-Agent check for oc-mirror is performed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.14
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When User Agent is checked in oc-mirror i see that format and oc-mirror version is not shown correctly
      
      User-Agent: oc-mirror/v0.0.0 (linux/arm64) kubernetes/$Format 

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

      [ec2-user@ip-10-0-135-150 openshift-tests-private]$ oc-mirror version
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.14.0-202306191016.p0.gd0553a2.assembly.stream-d0553a2", GitCommit:"d0553a2cd939a4c17c25d72d6fd4ebc12149271d", GitTreeState:"clean", BuildDate:"2023-06-19T10:37:46Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"linux/arm64"}
      

      How reproducible:

      Always

      Steps to Reproduce:

      1. Extract latest oc-mirror from a 4.14 payload (nightly or EC)
      2. create imagesetConfig.yaml using the spec below
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.13
            packages:
              - name: cluster-logging
                channels:
                - name: stable
       3. Now run the command `oc-mirror --config /tmp/imgconfig.yaml file:///tmp/case46523 -v=7 --dry-run`
        

      Actual results:

      verify that oc-mirror version and format is not displayed correctly
      Request Headers:
          Authorization: Bearer <masked>
          User-Agent: oc-mirror/v0.0.0 (linux/arm64) kubernetes/$Format
      

      Expected results:

      oc-mirror version & $Format should be displayed correctly 

      similar to what is seen when run with oc-mirror amd64 client bits

      Additional info:

       

              luzuccar@redhat.com Luigi Mario Zuccarelli
              knarra@redhat.com Rama Kasturi Narra
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: