From db66b43dd246660bc5fc3460df18d2f854c3bef8 Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Wed, 7 Dec 2016 14:29:52 +0000 Subject: [PATCH] Set copy as a middleware for Swift This patch adds copy as a middleware for swift, this follows upstream's approach and reduces errors that indicate it is being automatically included in the pipeline. Change-Id: I4591ff3f3464d8bfa4ffd012f117aba881b02b65 --- defaults/main.yml | 1 + templates/proxy-server.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index f4b471e4..178e8599 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -72,6 +72,7 @@ swift_middleware_list: - authtoken - keystoneauth - staticweb + - copy - container-quotas - account-quotas - slo diff --git a/templates/proxy-server.conf.j2 b/templates/proxy-server.conf.j2 index fc1092ea..758e9f63 100644 --- a/templates/proxy-server.conf.j2 +++ b/templates/proxy-server.conf.j2 @@ -48,6 +48,9 @@ log_statsd_metric_prefix = {{ swift.statsd_metric_prefix | default(inventory_hos [pipeline:main] pipeline = {{ swift_middleware_list | join(' ') }} +[filter:copy] +use = egg:swift#copy + [app:proxy-server] use = egg:swift#proxy log_facility = LOG_LOCAL1