Skip to content

Bugreport: the quota parameter gets lost somewhere, when sets from web-console #72

Closed

Description

@kh0mka

Report bugs in the PGSTY SILO server (pgsty/silo) here. Community maintainers
handle reports on a best-effort basis. There is no SLA, SLO, or emergency
production-support channel. Follow the
Code of Conduct.
Report suspected vulnerabilities privately through
SECURITY.md.
For patches, see the contribution guide.

Expected Behavior

When a quota is set in the web console, it should be reflected in mcli/mc, the web console (in the general list of buckets), and the "summary" view.

Current Behavior

If you set or modify a quota for a bucket via the console binary (mc / mcli), the setting is successfully applied and becomes visible - for example:

mc --version
mc version RELEASE.2026-10-26T00-00-00Z (commit-id=0ceb298cdcd05f2ffdc4ea62d7d01a3666c3e8cc)
Silo object storage client, based on MinIO technology
Runtime: go1.27.3 linux/amd64
Copyright (c) 2015-2025 MinIO, Inc.
Copyright (c) 2025-2026 PGSTY
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>

mc mb test/quota-bucket
Bucket created successfully `test/quota-bucket`.

mc quota info test/quota-bucket
Bucket `quota-bucket` has  quota of 0 B

Next:

mc quota set test/quota-bucket --size 100GiB
Successfully set bucket quota of 100 GiB on `quota-bucket`

mc quota info test/quota-bucket
Bucket `quota-bucket` has hard quota of 100 GiB

Let’s go to the web console, where we can see that the quota is displayed everywhere: in the list of buckets, in the summary, and—as confirmed earlier—via mc / mcli:

List of buckets:

Image

Summary:

Image

Behavior when Bucket Quota sets (or change) from Web-Console

Change it from Web-Console (not mc):

Image

In Summary / MC / MCLI – everything is in order

Image
mc quota info test/quota-bucket
Bucket `quota-bucket` has hard quota of 110 GiB

In the Web Console, we see a dash.

Image

Your Environment

Test Environment (Single Node, Single Disk):

mc --version
mc version RELEASE.2026-10-26T00-00-00Z (commit-id=0ceb298cdcd05f2ffdc4ea62d7d01a3666c3e8cc)
Silo object storage client, based on MinIO technology
Runtime: go1.27.3 linux/amd64
Copyright (c) 2015-2025 MinIO, Inc.
Copyright (c) 2025-2026 PGSTY
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
root@prx-testminio:~# mc admin info test
●  10.X.X.X:9000
   Uptime: 16 minutes
   Version: 2026-10-26T00:00:00Z
   Network: 1/1 OK
   Drives: 1/1 OK
   Pool: 1

┌──────┬────────────────────────┬─────────────────────┬──────────────┐
│ Pool │ Drives Usage           │ Erasure stripe size │ Erasure sets │
│ 1st  │ 50.4% (total: 200 GiB) │ 1                   │ 1            │
└──────┴────────────────────────┴─────────────────────┴──────────────┘

96 GiB Used, 42 Buckets, 87,616 Objects
1 drive online, 0 drives offline, EC:0

This bug was also present in older releases from September, August, and so on. It is likewise observed in other clusters (Multi-Node, Multi-Disks / Multi-Node, Single Disk and etc.).

Tested on Releases:

  1. RELEASE.2026-10-26T00-00-00Z
  2. RELEASE.2026-10-18T00-00-00Z

Activity

  1. Vonng commented on Oct 29, 2026

    @Vonng
    Member

    Thanks for the detailed reproduction. We reproduced the CLI 100 GiB -> web Console 110 GiB case and confirmed the cause.

    The web Console stores the quota in the admin API's Size field. The bucket list was reading only the legacy Quota field, while Summary already preferred a positive Size and fell back to Quota. After the web edit, the server returned size=118111600640, quota=0, so Summary and mcli showed 110 GiB but the list displayed a dash.

    The fix makes the bucket list and Summary use the same normalization. It preserves legacy quotas, including fallback when Size is zero, and does not change quota writes, enforcement, or the API schema.

    Validation includes handler JSON regression tests, race checks, and real SILO/Chromium acceptance for standalone and embedded Console. The reported 100 -> 110 GiB flow, set/modify/clear, refresh, re-entry, and persistence after restart all passed, with raw admin JSON, Summary, the list, and mcli agreeing. Narrow-screen checks verified the API/DOM and visible Summary; the existing responsive layout still hides the list quota column below 1200px.

    The fix is now committed locally, but has not been pushed or released. Delivering it in the embedded Console also requires updating the Server's formal Console dependency and validating the release build. This issue remains open pending delivery.

  2. self-assigned this
    on Oct 29, 2026
  3. added
    bug
    on Oct 29, 2026
  4. added theissue type on Oct 29, 2026
  5. Vonng commented on Nov 4, 2026

    @Vonng
    Member

    Fixed on main by #74, merged as 3d1dd56. Bucket list and detail responses now use the same precedence for the modern size and legacy quota fields.

    Verified against the maintained SILO + mcli + Console stack: setting 100 GiB with mcli and changing it to 110 GiB in Console keeps the list, detail view, and mcli in agreement at 118111600640 bytes. The embedded production UI also displays 110.0 GiB correctly; saving an unchanged quota sends no update request. Both required CI checks passed.

    This issue is closed as fixed in source. A Console release and the SILO Server dependency/release update needed to deliver the embedded UI are separate steps and have not been performed here. Thank you for the detailed reproduction.

  6. added a commit that references this issue on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions