Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-3872

Tag list caching violates OCI spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • -area/registry, quay
    • 0

      Quay caches information about tags for about a minute. OCI conformance tests check that deleted tags are not present in the tag list, and it fails because of the caching.

      Steps to reproduce:

      QUAY_CREDS=quay:password
      QUAY_HOSTNAME=localhost:8080
      QUAY_REPO=quay/test
      
      skopeo copy --dest-tls-verify=false --dest-creds="$QUAY_CREDS" --override-os=linux docker://busybox docker://$QUAY_HOSTNAME/$QUAY_REPO
      skopeo delete --tls-verify=false --creds="$QUAY_CREDS" docker://$QUAY_HOSTNAME/$QUAY_REPO
      skopeo list-tags --tls-verify=false --creds="$QUAY_CREDS" docker://$QUAY_HOSTNAME/$QUAY_REPO

      Expected output:

      {
          "Repository": "localhost:8080/quay/test",
          "Tags": []
      } 

      Actual output:

      {
          "Repository": "localhost:8080/quay/test",
          "Tags": [
              "latest"
          ]
      } 

      Additional info:

      The conformance test: https://github.com/opencontainers/distribution-spec/blob/dd38b7ed8a995fc2f6e730a4deae60e2c0ee92fe/conformance/04_management_test.go#L128-L139

            Unassigned Unassigned
            obulatov@redhat.com Oleg Bulatov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: