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

The source of idms should not be localhost:55000/openshift

XMLWordPrintable

    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done
    • Customer Facing

      Description of problem:

      oc-mirror with v2 will create the idms file as output , but the source is like :
      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        creationTimestamp: null
        name: idms-2024-01-08t04-19-04z
      spec:
        imageDigestMirrors:
        - mirrors:
          - ec2-3-144-29-184.us-east-2.compute.amazonaws.com:5000/ocp2/openshift
          source: localhost:55000/openshift
        - mirrors:
          - ec2-3-144-29-184.us-east-2.compute.amazonaws.com:5000/ocp2/openshift-release-dev
          source: quay.io/openshift-release-dev
      status: {}
      
      The source should always be the origin registry like :quay.io/openshift-release-dev

       

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

         

      How reproducible:

      always  

      Steps to Reproduce:

         1. run the command with v2 :
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        platform:
          channels:
            - name: stable-4.14
              minVersion: 4.14.3
              maxVersion: 4.14.3
          graph: true
      
      `oc-mirror --config config.yaml file://out --v2` 
      `oc-mirror --config config.yaml --from file://out  --v2 docker://xxxx:5000/ocp2`    
      2. check the idms file 

      Actual results:

          2. cat idms-2024-01-08t04-19-04z.yaml 
      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        creationTimestamp: null
        name: idms-2024-01-08t04-19-04z
      spec:
        imageDigestMirrors:
        - mirrors:
          - xxxx.com:5000/ocp2/openshift
          source: localhost:55000/openshift
        - mirrors:
          - xxxx.com:5000/ocp2/openshift-release-dev
          source: quay.io/openshift-release-dev

      Expected results:

      The source should not be localhost:55000, should be like the origin registry. 

      Additional info:

          

              skhoury@redhat.com Sherine Khoury
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: