Skip to content

[Bug]: Zot doesn't remove blobs from Minio repository #3086

Open
@Kras4ooo

Description

@Kras4ooo

zot version

v2.1.3-rc4

Describe the bug

When I try to remove the tag, it is not removed from my Minio Bucket. I've successfully uploaded an image. I can see that the index.json is configured correctly, but when I remove a tag, I can see again that index.json has the right info, but the blobs are still there :( . What can be the issue?
If I remove it by tab name: curl -X DELETE -u 'admin:<pass>' http://localhost:5000/v2/busybox/manifests/latest it is not removed, but If I use digest: curl -X DELETE -u 'admin:admin' http://localhost:5000/v2/busybox/manifests/sha256:f2e98ad37e4970f48e85946972ac4acb5574c39f27c624efbd9b17a3a402bfe4 it is removed correctly. I tried via UI, but it doesn't work from there.

This is my config:

    {
      "storage": {
        "rootDirectory": "/tmp/zot",
        "dedupe": true,
        "gc": true,
        "commit": true,
        "gcDelay": "1s",
        "gcInterval": "5s",
        "storageDriver": {
            "name": "s3",
            "region": "eu-central-1",
            "regionendpoint": ".......",
            "forcepathstyle": true,
            "bucket": "........",
            "v4auth": true,
            "secure": true,
            "skipverify": false,
            "accesskey": ".......",
            "secretkey": "........."
        },
        "cacheDriver": {
            "name": "redis",
            "url": "redis://user:pass@host:6379/4"
        }
      },
      "http": {
        "address": "0.0.0.0",
        "port": "5000",
        "compat": ["docker2s2"],
        "auth": { "htpasswd": { "path": "/secret/htpasswd" } },
        "accessControl": {
          "repositories": {
            "**": {
              "policies": [{
                "users": ["user"],
                "actions": ["read"]
              }],
              "defaultPolicy": []
            }
          },
          "adminPolicy": {
            "users": ["admin"],
            "actions": ["read", "create", "update", "delete"]
          }
        }
      },
      "log": { "level": "debug" },
      "extensions": {
        "search": {
          "enable": true
        },
        "mgmt": {
          "enable": true
        },
        "ui": {
          "enable": true
        },
        "scrub": {
          "enable": true,
          "interval": "10s"
        }
      },
      "scheduler": {
        "numWorkers": 30
      }
    }

To reproduce

  1. Configuration
  2. Client tool used
  3. Seen error

Expected behavior

No response

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrm-externalRoadmap item submitted by non-maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions