RGW swift API: Adding custom metadata to containers using x-container-meta-name is not working.
Steps to reproduce:
1. swift post container
2. curl -i https://10.20.20.15:80/swift/v1/container -X POST -H "X-Auth-Token: c12140163cce491e9aed7165796f1f02" -H "x-object-meta-testmeta1: data1"
3. swift stat container
Server: Apache/2.4.7 (Ubuntu)
As per the link http://ceph.com/docs/master/radosgw/swift/ adding/deleting custom container metadata is supported
rgw: Swift API. Dump container's custom metadata.
Backport: hammer, firefly
Reported-by: Ahmad Faheem <firstname.lastname@example.org>
Signed-off-by: Dmytro Iurchenko <email@example.com>
(cherry picked from commit 2f8d31e9b1c4b09506bd1b0dad635c6e820783b2)
The first hunk conflicts because X-Storage-Policy was added
after firefly. The second hunk conflicts because the type of the
s->object data member changed after firefly but it is irrelevant
because the patch does not need to access s->object anymore.