Swift Account quota-count is not honored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Sachin |
Bug Description
=======
- Ensure that setting the quota is only possible by someone with reseller rights
- You need to compare account_
- Add or update the tests
=======
(with reseller_admin)
[vagrant@saio swift]$ swift stat -v
Containers in policy "gold": 0
Objects in policy "gold": 0
Bytes in policy "gold": 0
X-
[vagrant@saio swift]$ swift post -m quota-count:3
[vagrant@saio swift]$ swift stat -v
Containers in policy "gold": 0
Objects in policy "gold": 0
Bytes in policy "gold": 0
Meta Quota-Count: 3
X-
(without reseller_admin)
[vagrant@saio swift]$ swift upload keys CHANGELOG
CHANGELOG
[vagrant@saio swift]$ swift upload keys LICENSE
LICENSE
[vagrant@saio swift]$ swift upload keys AUTHORS
AUTHORS
[vagrant@saio swift]$ swift list keys --lh
12K 2017-01-02 13:56:38 application/
81K 2017-01-02 13:56:01 application/
11K 2017-01-02 13:56:34 application/
104K
[vagrant@saio swift]$ swift upload keys README.rst
README.rst
[vagrant@saio swift]$ swift list keys --lh
12K 2017-01-02 13:56:38 application/
81K 2017-01-02 13:56:01 application/
11K 2017-01-02 13:56:34 application/
5.4K 2017-01-02 13:56:52 application/
110K
[vagrant@saio swift]$ swift stat -v
Containers in policy "gold": 1
Objects in policy "gold": 4
Bytes in policy "gold": 113005
Meta Quota-Bytes: 30000
Meta Quota-Count: 3
X-
[vagrant@saio swift]$ swift stat -v
Containers in policy "gold": 1
Objects in policy "gold": 4
Bytes in policy "gold": 113005
Meta Quota-Bytes: 30000
Meta Quota-Count: 3
X-
description: | updated |
Changed in swift: | |
assignee: | nobody → Sachin (sacpatil) |
status: | Incomplete → New |
description: | updated |
tags: |
added: low-hanging-fruit removed: quota swift |
tags: | added: quota swift |
tags: |
added: account-quota removed: quota swift |
I couldn't verify this using the current master branch - it worked as expected in my quick test.
Can you please share some more information?
- which version did you use? proxy-server. conf?
- what is the output of "swift info"?
- can you share the proxy pipeline config from /etc/swift/
Thanks,
Christian