Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-480

Re-pushed images cause an extra, untagged image in image list response

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 2.0
    • None
    • Backend
    • None
    • 13
    • False
    • False
    • Undefined
    • AAH Sprint 6, AAH Sprint 7, AAH Sprint 8

      Reproduction Steps:

      • Tag an image version to be pushed to the Hub container API
      • Push the image via docker push twice
      • Fetch a list of images, of which there should be only one, from the container image list API

      Excepted:

      • Only one image in the response, as only one image was pushed

      Actual:

      • Two copies of the image come back (not the identical digest) one as expected and one with missing tag information
      • If the image is pushed more than twice, it never seems to get more than this one extra entry.

       

      {
         "data":[
            {
               "config_blob":{
                  "digest":"sha256:302aba9ce190db9e247d710f4794cc303b169035de2048e76b82c9edbddbef4e",
                  "media_type":"application/vnd.docker.image.rootfs.diff.tar.gzip"
               },
               "digest":"sha256:4266485e304a825d82c375d3584121b53c802e3540d6b520b212a9f0784d56f5",
               "layers":[
                  {
                     "digest":"sha256:9aae54b2144e5b2b00c610f8805128f4f86822e1e52d3714c463744a431f0f4a",
                     "size":2811681
                  }
               ],
               "media_type":"application/vnd.docker.distribution.manifest.v2+json",
               "pulp_created":"2021-03-30T18:47:12.718503Z",
               "pulp_id":"434c84b1-e9b9-4d49-af7e-61b558445c91",
               "schema_version":2,
               "tags":[
                  "1.0.1",
                  "1.0.0",
                  "latest"
               ]
            },
            {
               "config_blob":{
                  "digest":"sha256:302aba9ce190db9e247d710f4794cc303b169035de2048e76b82c9edbddbef4e",
                  "media_type":"application/vnd.docker.image.rootfs.diff.tar.gzip"
               },
               "digest":"sha256:755be20688a4938bce4128f81f938a78828f486c755fd911587a2bfb7f102f71",
               "layers":[
                  {
                     "digest":"sha256:9aae54b2144e5b2b00c610f8805128f4f86822e1e52d3714c463744a431f0f4a",
                     "size":2811681
                  }
               ],
               "media_type":"application/vnd.docker.distribution.manifest.v2+json",
               "pulp_created":"2021-03-30T18:45:58.810374Z",
               "pulp_id":"56e22c30-d1ae-4711-9c06-1a9e0d8a05a2",
               "schema_version":2,
               "tags":[
                  
               ]
            }
         ],
         "links":{
            "first":"/api/automation-hub/_ui/v1/execution-environments/repositories/testrepo/image/_content/images/?limit=10&offset=0",
            "last":"/api/automation-hub/_ui/v1/execution-environments/repositories/testrepo/image/_content/images/?limit=10&offset=0",
            "next":"None",
            "previous":"None"
         },
         "meta":{
            "count":2
         }
      }

            cspealma@redhat.com Clara Spealman
            cspealma@redhat.com Clara Spealman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: