Jump to: navigation, search

Swift/ideas/account-quota-files

< Swift‎ | ideas
Revision as of 15:40, 7 June 2018 by Marco.passerini (talk | contribs) (Swift needs a way to enforce quota-count on accounts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Problem

It's possible to set "X-Container-Meta-Quota-Bytes" and "X-Container-Meta-Quota-Count" on containers (https://docs.openstack.org/swift/latest/api/container_quotas.html). It's currently possible to configure quotas on Accounts for "quota-bytes" (https://www.swiftstack.com/docs/admin/middleware/account_quotas.html), but there's no way to configure account quota for "quota-count". Because of this, a user could possibly exhaust the filesystem inodes.

Proposed solution

The code https://github.com/openstack/swift/blob/master/swift/common/middleware/account_quotas.py should include a way for users with ResellerAdmin role to add a quota-count limit on accounts, and enforce such limit.

Contact: mpasserini on IRC