Maxime Guyot
2018-11-27 19:28:11 UTC
Hi,
I'm running into an issue with the RadosGW Swift API when the S3 bucket
versioning is enabled. It looks like it silently drops any metadata sent
with the "X-Object-Meta-foo" header (see example below).
This is observed on a Luminous 12.2.8 cluster. Is that a normal thing? Am I
misconfiguring something here?
With S3 bucket versioning OFF:
$ openstack object set --property foo=bar test test.dat
$ os object show test test.dat
+----------------+----------------------------------+
| Field | Value |
+----------------+----------------------------------+
| account | v1 |
| container | test |
| content-length | 507904 |
| content-type | binary/octet-stream |
| etag | 03e8a398f343ade4e1e1d7c81a66e400 |
| last-modified | Tue, 27 Nov 2018 13:53:54 GMT |
| object | test.dat |
| properties | Foo='bar' | <= Metadata is here
+----------------+----------------------------------+
With S3 bucket versioning ON:
$ openstack object set --property foo=bar test test2.dat
$ openstack object show test test2.dat
+----------------+----------------------------------+
| Field | Value |
+----------------+----------------------------------+
| account | v1 |
| container | test |
| content-length | 507904 |
| content-type | binary/octet-stream |
| etag | 03e8a398f343ade4e1e1d7c81a66e400 |
| last-modified | Tue, 27 Nov 2018 13:56:50 GMT |
| object | test2.dat | <= Metadata is absent
+----------------+----------------------------------+
Cheers,
/ Maxime
I'm running into an issue with the RadosGW Swift API when the S3 bucket
versioning is enabled. It looks like it silently drops any metadata sent
with the "X-Object-Meta-foo" header (see example below).
This is observed on a Luminous 12.2.8 cluster. Is that a normal thing? Am I
misconfiguring something here?
With S3 bucket versioning OFF:
$ openstack object set --property foo=bar test test.dat
$ os object show test test.dat
+----------------+----------------------------------+
| Field | Value |
+----------------+----------------------------------+
| account | v1 |
| container | test |
| content-length | 507904 |
| content-type | binary/octet-stream |
| etag | 03e8a398f343ade4e1e1d7c81a66e400 |
| last-modified | Tue, 27 Nov 2018 13:53:54 GMT |
| object | test.dat |
| properties | Foo='bar' | <= Metadata is here
+----------------+----------------------------------+
With S3 bucket versioning ON:
$ openstack object set --property foo=bar test test2.dat
$ openstack object show test test2.dat
+----------------+----------------------------------+
| Field | Value |
+----------------+----------------------------------+
| account | v1 |
| container | test |
| content-length | 507904 |
| content-type | binary/octet-stream |
| etag | 03e8a398f343ade4e1e1d7c81a66e400 |
| last-modified | Tue, 27 Nov 2018 13:56:50 GMT |
| object | test2.dat | <= Metadata is absent
+----------------+----------------------------------+
Cheers,
/ Maxime