From 815c6b75893dba5395e826f61eea518963c9dbb7 Mon Sep 17 00:00:00 2001
From: Xinliang Liu <xinliang.liu@linaro.org>
Date: Thu, 2 Aug 2018 16:56:30 +0800
Subject: [PATCH] Enable rgw_swift_enforce_content_length

Currently test_list_containers tempest tests[1] would be failed.
It is becuase accept-ranges header does not exist. See ceph bug[2].

Rgw_swift_enforce_content_length assures Content-Length and
Accept-Ranges in dynamically generated account & container listings.

[1] tempest.api.object_storage.test_account_services.AccountTest.test_list_containers
[2] http://tracker.ceph.com/issues/21554
Related-Bug: #1783456

Change-Id: I9b5fcc361f0bc0e521302d2df1974aabf6f4a7e7
---
 ansible/roles/ceph/templates/ceph.conf.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/ceph/templates/ceph.conf.j2 b/ansible/roles/ceph/templates/ceph.conf.j2
index 118450ae3..f33ff6302 100644
--- a/ansible/roles/ceph/templates/ceph.conf.j2
+++ b/ansible/roles/ceph/templates/ceph.conf.j2
@@ -46,5 +46,6 @@ log file = /var/log/kolla/ceph/client.radosgw.gateway.log
 {% if ceph_rgw_compatibility | bool %}
 rgw_swift_url_prefix = "/"
 rgw_enable_apis = swift,swift_auth,admin
+rgw_swift_enforce_content_length = true
 {% endif %}
 {% endif %}
-- 
GitLab