Account and container Quota working ?

Asked by Heiko Krämer

Hi Guys,

i'm testing the implemented account and container quota in 1.8.0 (stable).

I've configured the proxy:
[pipeline:main]
pipeline = catch_errors healthcheck proxy-logging cache slo tempurl ratelimit authtoken keystone s3token container-quotas account-quotas proxy-logging proxy-server

[filter:account-quotas]
use = egg:swift#account_quotas

[filter:container-quotas]
use = egg:swift#container_quotas

I've set a account Quota (read in your doc: http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.account_quotas) like this:

swift -V 2 -A https://xxxxxx:5000/v2.0 -U testing:admin -K xxxx post -m x-account-meta-quota-bytes:10000
and
swift -V 2 -A https://xxxxxx:5000/v2.0 -U testing:admin -K xxxx post -m quota-bytes:10000

but it's seems to be not working....
root@swift1:~# swift -V 2 -A https://xxxxx:5000/v2.0 -U testing:admin -K xxxx stat
   Account: AUTH_d4e1c14691d841f6b53a24b6c4c42a0e
Containers: 1
   Objects: 3
     Bytes: 21210320
Meta X-Account-Meta-Quota-Bytes: 10000
Meta Quota-Bytes: 10000
X-Timestamp: 1365706132.30562
X-Trans-Id: tx4d454554a7c641c7a0c391f58a94659f
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes

I can upload files without any constraints. It's anything wrong with my config or my testcase ?

Thx and Greetings
Heiko

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Heiko Krämer
Solved:
Last query:
Last reply:
Revision history for this message
Heiko Krämer (foexle) said :
#1

Problem is solved it lokes like the admin user can upload each time :)