Project

General

Profile

Actions

Bug #15779

closed

rgw: account/container metadata not actually present in a request are deleted during POST through Swift API

Added by Radoslaw Zarzynski almost 8 years ago. Updated over 7 years ago.

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

0%

Source:
Development
Tags:
Backport:
jewel
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

RadosGW:
$ curl -i -X POST -H "X-Account-Meta-Test: OK" -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
X-Trans-Id: tx00000000000000000000c-0057308b1f-1019-default
Content-Type: text/plain; charset=utf-8
Date: Mon, 09 May 2016 13:05:35 GMT

$ curl -i -X HEAD -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
X-Timestamp: 1462799154.19351
X-Account-Container-Count: 0
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
X-Account-Meta-test: OK
X-Trans-Id: tx00000000000000000000d-0057308b32-1019-default
Content-Length: 0
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 09 May 2016 13:05:54 GMT

$ curl -i -X POST -H "X-Account-Meta-Test2: OK" -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
X-Trans-Id: tx00000000000000000000e-0057308b3f-1019-default
Content-Type: text/plain; charset=utf-8
Date: Mon, 09 May 2016 13:06:07 GMT

$ curl -i -X HEAD -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
X-Timestamp: 1462799170.56030
X-Account-Container-Count: 0
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
X-Account-Meta-test2: OK
X-Trans-Id: tx00000000000000000000f-0057308b42-1019-default
Content-Length: 0
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 09 May 2016 13:06:10 GMT

As we can see the X-Account-Meta-test disappeared.

Swift:
$ curl -i -X POST -H "X-Account-Meta-Test: OK" -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txe88c3da149d64daaa6f5e-0057308ad5
Date: Mon, 09 May 2016 13:04:21 GMT

$ curl -i -X HEAD -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Account-Object-Count: 14
X-Timestamp: 1444053537.48538
X-Account-Bytes-Used: 565
X-Account-Container-Count: 13
Content-Type: text/plain; charset=utf-8
X-Account-Meta-Test: OK
X-Trans-Id: tx3b2f09a2a175495db74b3-0057308ae4
Date: Mon, 09 May 2016 13:04:36 GMT

$ curl -i -X POST -H "X-Account-Meta-Test2: OK" -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx192000e6cd4d4ac693cf2-0057308aef
Date: Mon, 09 May 2016 13:04:47 GMT

$ curl -i -X HEAD -H "X-Auth-Token: $token" "$publicURL"

HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Account-Object-Count: 14
X-Account-Meta-Test2: OK
X-Timestamp: 1444053537.48538
X-Account-Meta-Test: OK
X-Account-Container-Count: 13
Content-Type: text/plain; charset=utf-8
X-Account-Bytes-Used: 565
X-Trans-Id: tx76180ce7b4eb4b64bde09-0057308af1
Date: Mon, 09 May 2016 13:04:49 GMT

Introduced in: 4d494d5b05a1dc6b41b858eeb293394592abf60c.


Related issues 2 (0 open2 closed)

Related to rgw - Bug #15977: rgw: updating custom metadata on account/container is brokenResolvedRadoslaw Zarzynski05/21/2016

Actions
Copied to rgw - Backport #15967: jewel: rgw: account/container metadata not actually present in a request are deleted during POST through Swift APIResolvedAbhishek VarshneyActions
Actions #1

Updated by Radoslaw Zarzynski almost 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Radoslaw Zarzynski

I'm working on that.

Actions #2

Updated by Radoslaw Zarzynski almost 8 years ago

  • Subject changed from rgw: account metadata not present in a request are deleted during POST thorugh Swift API to rgw: account/container metadata not actually present in a request are deleted during POST through Swift API

The issue affects container metadata as well. See: 12a32373b78beea7654c4db888dfaf66d489f9b1.

Actions #3

Updated by Radoslaw Zarzynski almost 8 years ago

  • Status changed from In Progress to Fix Under Review
  • Backport set to Jewel
Actions #4

Updated by Radoslaw Zarzynski almost 8 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Radoslaw Zarzynski almost 8 years ago

  • Backport changed from Jewel to jewel
Actions #6

Updated by Nathan Cutler almost 8 years ago

  • Copied to Backport #15967: jewel: rgw: account/container metadata not actually present in a request are deleted during POST through Swift API added
Actions #7

Updated by Radoslaw Zarzynski almost 8 years ago

Unfortunately, the commit 3f3b18bff16f6a5b36987f888ba3f2a0d1ea3155 introduced a regression. It should be backported together with the fix (see: http://tracker.ceph.com/issues/15977).

Actions #8

Updated by Radoslaw Zarzynski almost 8 years ago

  • Related to Bug #15976: rgw: updating CORS/ACLs might not work in some circumstances added
Actions #9

Updated by Radoslaw Zarzynski almost 8 years ago

  • Related to deleted (Bug #15976: rgw: updating CORS/ACLs might not work in some circumstances)
Actions #10

Updated by Radoslaw Zarzynski almost 8 years ago

  • Related to Bug #15977: rgw: updating custom metadata on account/container is broken added
Actions #11

Updated by Loïc Dachary over 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF