Skip to content

Buckets : check for used disk space before updating a quota #2

@phlg

Description

@phlg

At the moment, it's possible to set a quota to a size lower than what is actually used by a bucket, which causes the operator to fail for path creation operations, with a generic error similar to this one :

2023-06-05T16:30:04.830+0200    INFO    s3Client        checking path existence on a bucket     {"bucket": "dummy-bucket", "path": "opendata"}
2023-06-05T16:30:05.142+0200    INFO    s3Client        the path does not exist {"bucket": "dummy-bucket", "path": "opendata"}
2023-06-05T16:30:05.152+0200    INFO    s3Client        creating a path on a bucket     {"bucket": "dummy-bucket", "path": "opendata"}
2023-06-05T16:30:05.252+0200    ERROR   s3Client        an error occurred during path creation on bucket        {"bucket": "dummy-bucket", "path": "opendata", "error": "Bucket quota exceeded"}
github.com/inseefrlab/s3-operator/controllers/s3/factory.(*MinioS3Client).CreatePath

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions