Project

General

Profile

Actions

Bug #11147

closed

RGW Swift API: there is no possibility to upload custom metadata during container creation

Added by Radoslaw Zarzynski about 9 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

1. RGW via the civetweb frontend:

$ curl -i http://localhost:8000/swift/v1/cont/ -X PUT -H "X-Auth-Token: $token" -H "X-Container-Meta-TestX: x"

HTTP/1.1 201 Created
Content-type: text/plain; charset=utf-8
Content-Length: 0
Date: Wed, 18 Mar 2015 14:50:17 GMT

$ curl -i http://localhost:8000/swift/v1/cont/ -X HEAD -H "X-Auth-Token: $token"

HTTP/1.1 204 No Content
X-Timestamp: 1426690217.00000
X-Container-Object-Count: 0
X-Container-Bytes-Used: 0
X-Container-Bytes-Used-Actual: 0
X-Storage-Policy: default-placement
Content-type: text/plain; charset=utf-8
Content-Length: 0
Date: Wed, 18 Mar 2015 14:50:20 GMT

2. Swift
$ curl -i http://localhost:9090/v1/AUTH_test/cont/ -X PUT -H "X-Auth-Token: $token" -H "X-Container-Meta-TestX: x"

HTTP/1.1 201 Created
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx3f114ff98aad4a528208b-0055099157
Date: Wed, 18 Mar 2015 14:53:11 GMT

$ curl -i http://localhost:9090/v1/AUTH_test/cont/ -X HEAD -H "X-Auth-Token: $token"

HTTP/1.1 204 No Content
Content-Length: 0
X-Container-Object-Count: 0
Accept-Ranges: bytes
X-Timestamp: 1424789735.12920
X-Container-Meta-Testx: x
X-Container-Bytes-Used: 0
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx59ea2cf32ffb41f1b6faf-0055099162
Date: Wed, 18 Mar 2015 14:53:22 GMT

Actions #1

Updated by Radoslaw Zarzynski about 9 years ago

  • Assignee set to Radoslaw Zarzynski

I'm working on that.

Actions #2

Updated by Radoslaw Zarzynski about 9 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Casey Bodley about 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF