grizzly: swift container quotas

Bug #1090653 reported by Tom Fifield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Anne Gentle
openstack-manuals
Fix Released
Medium
Tom Fifield

Bug Description

If merged, https://review.openstack.org/#/c/18124/ will introduce a new feature to swift: container quotas.

Quotas are subject to several limitations: eventual consistency, the timeliness
of the cached container_info (60 second ttl by default), and it’s unable to
reject chunked transfer uploads that exceed the quota (though once the quota
is exceeded, new chunked transfers will be refused).

However, they get most of the way to container quotas fairly inexpensively.

Quotas are set by adding meta values to the container, and are validated when
set:

X-Container-Meta-Quota-Bytes: Maximum size of the container, in bytes.
X-Container-Meta-Quota-Count: Maximum object count of the container.

   15
   16 """
   17 The ``container_quotas`` middleware implements simple quotas that can be
   18 imposed on swift containers by a user with the ability to set container
   19 metadata, most likely the account administrator. This can be useful for
   20 limiting the scope of containers that are delegated to non-admin users, exposed
   21 to ``formpost`` uploads, or just as a self-imposed sanity check.
   22
   23 Any object PUT operations that exceed these quotas return a 413 response
   24 (request entity too large) with a descriptive body.
   25
   26 Quotas are subject to several limitations: eventual consistency, the timeliness
   27 of the cached container_info (60 second ttl by default), and it's unable to
   28 reject chunked transfer uploads that exceed the quota (though once the quota
   29 is exceeded, new chunked transfers will be refused).
   30
   31 Quotas are set by adding meta values to the container, and are validated when
   32 set:
   33
   34 +---------------------------------------------+-------------------------------+
   35 |Metadata | Use |
   36 +=============================================+===============================+
   37 | X-Container-Meta-Quota-Bytes | Maximum size of the |
   38 | | container, in bytes. |
   39 +---------------------------------------------+-------------------------------+
   40 | X-Container-Meta-Quota-Count | Maximum object count of the |
   41 | | container. |
   42 +---------------------------------------------+-------------------------------+
   43 """

Tags: swift
Tom Fifield (fifieldt)
Changed in openstack-manuals:
milestone: none → grizzly
tags: added: swift
Revision history for this message
Tom Fifield (fifieldt) wrote :

patch abandoned right now

Revision history for this message
Tom Fifield (fifieldt) wrote :
Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Medium
Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: Confirmed → In Progress
assignee: nobody → Tom Fifield (fifieldt)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/35952

Revision history for this message
Tom Fifield (fifieldt) wrote :
Anne Gentle (annegentle)
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/35952
Committed: http://github.com/openstack/openstack-manuals/commit/8ea9114738a53a0481f08d2e21f0d99ea9ffe984
Submitter: Jenkins
Branch: master

commit 8ea9114738a53a0481f08d2e21f0d99ea9ffe984
Author: Tom Fifield <email address hidden>
Date: Sat Jul 6 22:07:19 2013 +1000

    doc container quotas

    Grizzly introduced the container quota feature in object storage

    fixes bug 1090653

    Change-Id: I2779633ba63b8aafc9c00861a952c122ca2e9ce8

Changed in openstack-manuals:
status: In Progress → Fix Released
Changed in openstack-api-site:
assignee: nobody → Miranda Zhang (miranda-zhang-q)
Anne Gentle (annegentle)
Changed in openstack-api-site:
assignee: Miranda Zhang (miranda-zhang-q) → nobody
assignee: nobody → Anne Gentle (annegentle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/135131

Changed in openstack-api-site:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/135131
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=69af9874ff89b84aea591e749ef9ef986065195f
Submitter: Jenkins
Branch: master

commit 69af9874ff89b84aea591e749ef9ef986065195f
Author: Anne Gentle <email address hidden>
Date: Mon Nov 17 17:52:23 2014 -0600

    Adds container quotas headers

    Documents X-container-meta-quota-bytes and X-container-meta-quota-count headers.

    Change-Id: Ib743e40ddcdfdcdb73016f4a2c3809f29d1e9d87
    Closes-bug:1090653

Changed in openstack-api-site:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.