Project

General

Profile

Bug #17932

rgw: missing support for per storage-policy usage statistics

Added by Radoslaw Zarzynski about 1 year ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
11/17/2016
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

Following headers of the Swift API aren't sent nor even calculated for GET/HEAD responses on account:

X-Account-Storage-Policy-<policy_name>-Bytes-Used
X-Account-Storage-Policy-<policy_name>-Object-Count
X-Account-Storage-Policy-<policy_name>-Container-Count

Related issues

Copied to rgw - Backport #21460: luminous: rgw: missing support for per storage-policy usage statistics Resolved

History

#1 Updated by Radoslaw Zarzynski about 1 year ago

Dump of /info:

rgw$ curl "127.0.0.1:8000/info" -X GET -H "X-Auth-Token: $token" | python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   454  100   454    0     0   117k      0 --:--:-- --:--:-- --:--:--  147k
{
    "account_quotas": {},
    "bulk_delete": {},
    "container_quotas": {},
    "slo": {
        "max_manifest_segments": 1000
    },
    "staticweb": {},
    "swift": {
        "container_listing_limit": 10000,
        "max_container_name_length": 255,
        "max_file_size": 5368709120,
        "max_meta_name_length": 81,
        "max_object_name_size": 1024,
        "policies": [
            {
                "default": true,
                "name": "default-placement" 
            }
        ],
        "strict_cors_mode": true,
        "version": "11.0.2-1602-g02fead2" 
    },
    "tempauth": {},
    "tempurl": {
        "methods": [
            "GET",
            "HEAD",
            "PUT",
            "POST",
            "DELETE" 
        ]
    }
}

#2 Updated by Radoslaw Zarzynski 12 months ago

  • Status changed from New to In Progress

#3 Updated by Radoslaw Zarzynski 12 months ago

  • Status changed from In Progress to Need Review

#4 Updated by Radoslaw Zarzynski 12 months ago

Verification of the mentioned headers has been introduced in Tempest in following gerrit review: https://review.openstack.org/#/c/306788/.

#5 Updated by Yehuda Sadeh 12 months ago

  • Subject changed from rgw: /info claims support for Swift's storage policies but we're lacking per-storage usage statistics to rgw: missing support for per storage-policy usage statistics

#6 Updated by Matt Benjamin 3 months ago

  • Status changed from Need Review to Pending Backport
  • Backport set to Luminous

#7 Updated by Nathan Cutler 3 months ago

  • Backport changed from Luminous to luminous

#8 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #21460: luminous: rgw: missing support for per storage-policy usage statistics added

#9 Updated by Nathan Cutler 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF