Project

General

Profile

Bug #15779

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

Added by Radoslaw Zarzynski almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Target version:
-
Start date:
05/09/2016
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
jewel
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Related to rgw - Bug #15977: rgw: updating custom metadata on account/container is broken Resolved 05/21/2016
Copied to rgw - Backport #15967: jewel: rgw: account/container metadata not actually present in a request are deleted during POST through Swift API Resolved

History

#1 Updated by Radoslaw Zarzynski almost 3 years ago

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

I'm working on that.

#2 Updated by Radoslaw Zarzynski almost 3 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.

#3 Updated by Radoslaw Zarzynski almost 3 years ago

  • Status changed from In Progress to Need Review
  • Backport set to Jewel

#4 Updated by Radoslaw Zarzynski almost 3 years ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Radoslaw Zarzynski almost 3 years ago

  • Backport changed from Jewel to jewel

#6 Updated by Nathan Cutler almost 3 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

#7 Updated by Radoslaw Zarzynski almost 3 years ago

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

#8 Updated by Radoslaw Zarzynski almost 3 years ago

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

#9 Updated by Radoslaw Zarzynski almost 3 years ago

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

#10 Updated by Radoslaw Zarzynski almost 3 years ago

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

#11 Updated by Loic Dachary over 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF