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

'oc import-image' command skips several tags

XMLWordPrintable

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      While executing the command oc import-image, it skips several tags. No reason was given on why it skips these tags. 
      The customer is  using the image "registry.access.redhat.com/ubi8/openjdk-8". The newest image tag is not present as versioned tag for "1.14-14.1675788284". It only has a tag  as latest.
      As it is a bad practice to use the latest tag  in production environments.  They need it as normal and also expect the newest version tag additional to the latest tag. (as normally expected)

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

      v.4.10.51

      How reproducible:

      Always

      Steps to Reproduce:

      1. oc import-image test-openjdk-8 --from=registry.access.redhat.com/ubi8/openjdk-8 --confirm --all=true --namespace=test-namespace
      

      Actual results:

      info: The remote repository contained 35 additional tags which were not imported: 1.14-14.1675788284, 1.14-14.1675788284-source, 1.14-3-source, 1.14-3.1661371529, 1.14-3.1661371529-source, 1.14-3.1661798447, 1.14-3.1661798447-source, 1.14-5-source, 1.14-5.1665493427, 1.14-5.1665493427-source, 1.14-5.1666624658, 1.14-5.1666624658-source, 1.3-12-source, 1.3-12.1622550094, 1.3-12.1622550094-source, 1.3-13-source, 1.3-14-source, 1.3-15-source, 1.3-2.1591609345, 1.3-2.1591609345-source, 1.3-2.1593143011, 1.3-2.1593143011-source, 1.3-2.1595330282, 1.3-2.1595330282-source, 1.3-3-source, 1.3-5-source, 1.3-7-source, 1.3-7.1608081529, 1.3-7.1608081529-source, 1.3-8-source, 1.3-8.1614713187, 1.3-8.1614713187-source, 1.3-9-source, 1.3-9.1617297653, 1.3-9.1617297653-source

      Expected results:

      All tagged images should be imported when '--all=true' flag is used.

      Additional info:

      As workaround, while the oc import-image command succeeds if individual tags are specified.
      
      $ oc import-image test-openjdk-8:1.14-14.1675788284  --from=registry.access.redhat.com/ubi8/openjdk-8:1.14-14.1675788284 --confirm
      
      $ oc get istag
      NAME                                IMAGE REFERENCE                                                                                                     UPDATED
      test-openjdk-8:1.14-14.1675788284   registry.access.redhat.com/ubi8/openjdk-8@sha256:b838fa18dab68d43a19f0c329c3643850691b8f9915823c4f8d25685eb293a11   9 seconds ago 

            fmissi Flavian Missi
            rhn-support-apurty1 Abhinay Purty (Inactive)
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: