Project

General

Profile

Actions

Feature #10664

open

RGW swift API: Setting x-container-meta-quota-count and x-container-meta-quota-bytes is not supported.

Added by Ahmad Faheem about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

In swift to specify the max limits on the no of object and bytes that can be stored in a container, headers x-container-meta-quota-count and x-container-meta-quota-bytes can be used respectively using following cli.
swift post container -H "x-container-meta-quota-count: 10"
swift post container -H "x-container-meta-quota-bytes: 1024"
swift stat container

Account: AUTH_b2419ea9588d49ddbd8c006b5eb199ff
Container: container
Objects: 5
Bytes: 2097158
Read ACL:
Write ACL:
Sync To:
Sync Key:
Meta Quota-Count: 10
Meta Quota-Bytes: 1024
Accept-Ranges: bytes
X-Storage-Policy: Policy-0
X-Timestamp: 1422385210.05485
X-Trans-Id: tx7dcb6c0477e24be294fef-0054c81224
Content-Type: text/plain; charset=utf-8

But in ceph this feature is not working:
swift post container -H "x-container-meta-quota-count: 10"
swift stat container

Account: v1
Container: container
Objects: 5
Bytes: 2097152
Read ACL:
Write ACL:
Sync To:
Sync Key:
Server: Apache/2.4.7 (Ubuntu)
X-Container-Bytes-Used-Actual: 2097152
Connection: close
Access-Control-Allow-Origin: *
Content-Type: application/octet-stream

No data to display

Actions

Also available in: Atom PDF