Allow specify a quota in bytes for an account.

Registered by Chmouel Boudjnah on 2013-03-07

Limit an account by a certain amount of bytes on an account via the header

X-Account-Meta-Quota-Bytes

the header can be updated only by the reseller account (or the user with the ResellerAdmin role in keystone).

A value of -1 mean unlimited no header mean unlimited as well.

the logic when blocking work as this pseudo block :

new_size = total_bytes + (client_request_header('content_length') or 0)
quota = container_header('X-Account-Meta-Quota-Bytes') or -1.

if 0 <= quota < new_size:
    return HTTPRequestEntityTooLarge()

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Chmouel Boudjnah
Direction:
Needs approval
Assignee:
Christian Schwede
Definition:
Approved
Series goal:
Accepted for grizzly
Implementation:
Implemented
Milestone target:
None
Started by
Chmouel Boudjnah on 2013-03-07
Completed by
John Dickinson on 2013-04-24

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.